Thread: Reversing this code..

Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16
  1. #11  
    TeleNubby
    Guest
    Quote Originally Posted by Meanz View Post
    Haxxie, i already figured that list ages ago.. but i just wanted to see if it was possible to reverse thoose codes..
    Oh. No, you cant. Because you'd need the length of the String that was originally encrypted.
    Reply With Quote  
     

  2. #12  
    Registered Member

    Join Date
    Aug 2007
    Posts
    545
    Thanks given
    6
    Thanks received
    0
    Rep Power
    196
    Kinda figured that
    Reply With Quote  
     

  3. #13  
    PeeHPee2
    Guest
    You mean like
    Code:
            String s = "W/e";
            int i = 0;
            s = s.toLowerCase();
            for(int j = 0; j < s.length(); j++) {
                i = (i % 61 - s.charAt(j)) + 32;
            }
    ?
    Reply With Quote  
     

  4. #14  
    Community Veteran


    Join Date
    Jul 2006
    Posts
    294
    Thanks given
    21
    Thanks received
    14
    Rep Power
    174
    lol no, that wouldn't work, it is not reversable.
    [Today 10:44 PM] Uzi: I wish i hadz sexz
    [Today 10:44 PM] Uzi: But no no N0 i had to go to a boys only college
    Reply With Quote  
     

  5. #15  
    Registered Member
    Join Date
    Feb 2007
    Posts
    81
    Thanks given
    0
    Thanks received
    3
    Rep Power
    11
    you can do it for 1 char

    but not for a string
    Reply With Quote  
     

  6. #16  
    ThuGie
    Guest
    Since i thought it should be posible so i converted the code to vb6,
    But i compared the results with those of clienthax and it seems i'm getting the wrong results..

    Code:
    Public Function encode(str As String) As Double
    Dim j As Integer
    Dim temp As String
    Dim i As Double
    temp = UCase(str)
    For j = 1 To Len(temp)
    i = (i * 61 + Asc(Mid(temp, j, 1))) - 32
    DoEvents
    Next j
    encode = i
    End Function
    Not sure where i go wrong.
    But maybe its useful for somebody else.
    Reply With Quote  
     

Page 2 of 2 FirstFirst 12

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

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