Page 2 of 2 FirstFirst 12
Results 41 to 51 of 51

Thread: Port Java to Vb6

  1. #41

    Thread Starter
    Fanatic Member TokersBall_CDXX's Avatar
    Join Date
    Mar 2003
    Location
    America
    Posts
    571

    okay I get it now

    k1 >> 3
    is actually

    k1 /( 2^3)

    and

    1 << 7

    is
    1 * 2 ^ 7


    thank you for helping me understand that

    now I have another issue

    for some reason vb doesn't have XOR as a syntax?

    even 10 XOR 10 the XOR is giving me an error?
    is there any way to create an XOR like function?

    thanx.
    Build your own personalized flash based chat room for your webpage for FREE! http://www.4computerheaven.com

  2. #42
    PowerPoster
    Join Date
    Feb 2002
    Location
    Canada, Toronto
    Posts
    5,803
    it DOES have Xor...
    post the code where your using it

    I'm gonna be gone for couple of hours, cuz i'm gonna format my computer and re-install windows and everything else. I'll check in now and then (between installs).

  3. #43

    Thread Starter
    Fanatic Member TokersBall_CDXX's Avatar
    Join Date
    Mar 2003
    Location
    America
    Posts
    571

    hmm

    some how I don't think it'll be as simple as this

    VB Code:
    1. Private Sub cmdTest1_Click()
    2. Dim BitSet1 As BitVector
    3. Dim BitSet As New BitVector
    4. Dim HashArray() As String
    5. Dim ac As String
    6. Dim ParsedNumArray() As String
    7. Dim i1, jtemp, j1 As Integer
    8.     BitSet.NumElements = 64
    9.     HashArray() = Split("LHKf24(),..FWSqw1,783vcSWr,NSW%FGS3,S834VS$!", ",")
    10.     ParsedNumArray() = Split("58#54#58#42#50#", "#")
    11.  
    12. For i1 = 0 To 4
    13.     Set BitSet1 = BitShift(HashArray(i1))
    14.    
    15.         j1 = Val(ParsedNumArray(i1))
    16.        
    17.         For l1 = 0 To j1
    18.             Set BitSet1 = BitFlag(BitSet1)
    19.         Next
    20.         For x = 0 To 63
    21.             BitSet.SetBit (CLng(x)) Xor BitSet1.GetBit(CLng(x))
    22.         Next
    23.        
    24. Next i1
    25.  
    26.  
    27. ac = Characterize(BitSet, 8)


    my guess is I screwed up the Xor?
    Last edited by TokersBall_CDXX; Jan 16th, 2004 at 09:16 PM.
    Build your own personalized flash based chat room for your webpage for FREE! http://www.4computerheaven.com

  4. #44

    Thread Starter
    Fanatic Member TokersBall_CDXX's Avatar
    Join Date
    Mar 2003
    Location
    America
    Posts
    571

    hmm

    Anyone?
    Build your own personalized flash based chat room for your webpage for FREE! http://www.4computerheaven.com

  5. #45
    PowerPoster
    Join Date
    Feb 2002
    Location
    Canada, Toronto
    Posts
    5,803
    So, what's not working ?

  6. #46

    Thread Starter
    Fanatic Member TokersBall_CDXX's Avatar
    Join Date
    Mar 2003
    Location
    America
    Posts
    571

    well

    string ac only ends up containing 2 characters, the first character is a null character and the second is an extended character.
    it's not the result I was looking for.
    Build your own personalized flash based chat room for your webpage for FREE! http://www.4computerheaven.com

  7. #47

    Thread Starter
    Fanatic Member TokersBall_CDXX's Avatar
    Join Date
    Mar 2003
    Location
    America
    Posts
    571
    I'm stumped
    Build your own personalized flash based chat room for your webpage for FREE! http://www.4computerheaven.com

  8. #48

    Thread Starter
    Fanatic Member TokersBall_CDXX's Avatar
    Join Date
    Mar 2003
    Location
    America
    Posts
    571

    dumpidy

    anyone?
    Build your own personalized flash based chat room for your webpage for FREE! http://www.4computerheaven.com

  9. #49

    Thread Starter
    Fanatic Member TokersBall_CDXX's Avatar
    Join Date
    Mar 2003
    Location
    America
    Posts
    571

    *sigh*

    hmm?
    Build your own personalized flash based chat room for your webpage for FREE! http://www.4computerheaven.com

  10. #50
    Banned jhermiz's Avatar
    Join Date
    Jun 2002
    Location
    Antarctica
    Posts
    2,492

    Re: *sigh*

    Originally posted by TokersBall_CDXX
    hmm?
    What a waste of time ...I got tired just reading this post.

    Why dont you take an ordinary algorithm and do it on your own and stop bumping the damn thread...we get the point you need help (maybe mental) ... at the same time all this chit chat prolly cost you more money than actually buying a program which encrypts or decrypts...hell especially if its vb.

  11. #51

    Thread Starter
    Fanatic Member TokersBall_CDXX's Avatar
    Join Date
    Mar 2003
    Location
    America
    Posts
    571

    my intent isn't

    to use other encryption algorythoms, rather port this one.. I am not going to argue with a baiter. is it against the rules to bump? or are all posts required to drop dead when certain forum readers get bored of reading it?


    move along
    Build your own personalized flash based chat room for your webpage for FREE! http://www.4computerheaven.com

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width