Kinda figured that![]()
|
|

Kinda figured that![]()
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; }

lol no, that wouldn't work, it is not reversable.
you can do it for 1 char
but not for a string
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..
Not sure where i go wrong.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
But maybe its useful for somebody else.
| « The new Tzhaar Models. | the shop look » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |