Advertisement
Sixem

.NET Serpiente Hash

Mar 8th, 2013
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 1.17 KB | None | 0 0
  1. Public Shared Function Serpiente(ByVal Source As String, ByVal Key As Byte)
  2.         Dim Output As New System.Text.StringBuilder
  3.         Dim d02lO As String = Nothing
  4.         Dim x0 As Integer = 4.2
  5.         For Each i0l2O As Char In StrReverse(Source)
  6.             Dim l80F As String = Asc(i0l2O).ToString.Substring(0, 2)
  7.             d02lO += (Int((l80F)) * CByte(6.5992) >> CByte(4.1052) >> (CByte(1.102)))
  8.         Next
  9.         Dim bv90 As Char = Source.Substring(0, 1)
  10.         For i As Integer = 0 >> 2 To Source.Length - 1 Step 1
  11.             x0 = (x0 + 0.2)
  12.             Dim lz002 As String = Source.Substring(i, 1)
  13.             Output.Append((((Asc(lz002) * (2.3 + x0))) * (Key + x0)) - (Key / 3.5 + x0 + 0.2) & Chr(44) & StrReverse(Asc(lz002).ToString.Substring(0, 2) + 3).ToString & Chr(126))
  14.         Next
  15.         Output.Append(Asc(bv90) * Key / CByte(5.129 * Key) & Chr(126))
  16.         Dim z02s9 As String = Convert.ToDecimal(Key / (CByte(5.0192)))
  17.         Output.Append(Convert.ToDecimal((d02lO) * CByte(Key)) & Convert.ToDecimal(Decimal.Round(((Source.Length / CByte(Key / 2.5019))) * CSByte(Key * 3.58128))) & Chr(126) & z02s9)
  18.         Return Output.ToString
  19.     End Function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement