Advertisement
8thbit

CCPROXY Encryption/Decryption

Dec 5th, 2015
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.72 KB | None | 0 0
  1. Public Function DecryptCcproxyPassword(ByVal password As String)
  2.         Dim temp As String = ""
  3.         Dim s As String = password
  4.         Dim i As Integer = 0
  5.         While i < s.Length / 3
  6.             Dim n As Integer
  7.             n = Val(s.Substring(i * 3, 3))
  8.             n = 999 - n
  9.             temp += Chr(n)
  10.             i += 1
  11.         End While
  12.         Return temp
  13. End Function
  14. Public Function EncryptCcproxyPassword(ByVal Text As String)
  15.         Dim enc As String = ""
  16.         Dim s As String = Text
  17.         For i As Integer = 0 To s.Length - 1
  18.             Dim n As Integer
  19.             n = Asc(s.Substring(i, 1))
  20.             n = 999 - n
  21.             enc += n.ToString
  22.         Next
  23.         Return enc
  24. End Function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement