Advertisement
ZeekoSec

Strange Encryption found in archives

Apr 7th, 2015
526
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 1.28 KB | None | 0 0
  1. Private Function Maszii_Enc(ByVal str As String) As String
  2.         Dim chars As String = Regex.Replace(str, "[^01]", "")
  3.         Dim arr((chars.Length / 2) - 1) As Byte
  4.         For i As Integer = 0 To arr.Length - 1
  5.             arr(i) = Convert.ToByte(chars.Substring(i * 2, 2), 2)
  6.         Next
  7.         Return ASCIIEncoding.ASCII.GetString(arr)
  8.         (Byval ASCIIEncoding.ASCII.GetString(arr) As String) As String
  9.         Dim out As New System.Text.StringBuilder
  10.         For Each c As Char In input
  11.             Dim temp As Integer = Asc(c) + 478
  12.             out.Append(temp.ToString & "")
  13.         Next
  14.         Return out.ToString.Substring(0, out.Length - 1)
  15.     End Function
  16.    
  17.    
  18.     Private Function Mazii_Dec(ByVal str As String) As String
  19.         Dim converted As New StringBuilder
  20.         For Each b As Byte In ASCIIEncoding.ASCII.GetBytes(str)
  21.             converted.Append(Convert.ToString(b, 2).PadLeft(2, "0"))
  22.         Next
  23.         Return converted.ToString()
  24.         Byval converted.ToString As String) As String
  25.         (Byval converted.ToString As String) As String
  26.         Dim out As New System.Text.StringBuilder
  27.         Dim data As String() = Split(input, "")
  28.         For Each s As String In data
  29.             out.Append(Chr(Asc(s) - 478))
  30.         Next
  31.         Return out.ToString
  32.     End Function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement