Advertisement
ZeekoSec

[ ~ Modified ~ ZARA-128 ENCRYPTION ~ ]

Jan 27th, 2015
500
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 1.23 KB | None | 0 0
  1. Public Class Form1
  2.     Public Function ZARA128_Encode(ByVal input As String) As String
  3.         Dim out As New System.Text.StringBuilder
  4.         For Each c As Char In input
  5.             Dim temp As Integer = Asc(c) + 1337
  6.             out.Append(temp.ToString & " ")
  7.         Next
  8.         Return out.ToString.Substring(0, out.Length - 1)
  9.     End Function
  10.  
  11.  
  12.  
  13.     Public Function ZARA128_Decode(ByVal input As String) As String
  14.         Dim out As New System.Text.StringBuilder
  15.         Dim data As String() = Split(input, " ")
  16.         For Each s As String In data
  17.             Dim temp As Integer = s - 1337
  18.             out.Append(Chr(temp))
  19.         Next
  20.         Return out.ToString
  21.  
  22.     End Function
  23.     Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
  24.  
  25.     End Sub
  26.  
  27.     Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
  28.         TxtEnc.Text = ZARA128_Decode(TxtPlain.Text)
  29.     End Sub
  30.  
  31.     Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
  32.         TxtEnc.Text = ZARA128_Encode(TxtPlain.Text)
  33.     End Sub
  34.  
  35.     Private Sub RichTextBox1_TextChanged(sender As Object, e As EventArgs) Handles TxtPlain.TextChanged
  36.  
  37.     End Sub
  38. End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement