Advertisement
Guest User

Untitled

a guest
Feb 28th, 2015
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.56 KB | None | 0 0
  1. Public Function DeKeyPassw(Passw As String) As String
  2.   Dim I As Integer
  3.   Dim I2 As Double
  4.   Dim LastByte As Integer
  5.   Dim Erg As String
  6.   If Left(Passw, 9) = "[//Coded:" Then
  7.     For I = 10 To Len(Passw) Step 3
  8.       If I > Len(Passw) - 3 Then Exit For
  9.       LastByte = I2
  10.       I2 = Val(Mid(Passw, I, 3))
  11.       I2 = I2 - 13 - (255 * 3 - LastByte * 3) - 13 * ((I - 10) / 3 + 1)
  12.       Do While I2 < 0
  13.         I2 = I2 + 256
  14.       Loop
  15.       If I2 < 256 Then Erg = Erg + Chr(I2)
  16.     Next
  17.   Else
  18.     Erg = Passw
  19.   End If
  20.   DeKeyPassw = Erg
  21. End Function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement