Posts
400
Comments
213
Trackbacks
0
Funktion zum generieren eines Hashs mit SHA512

nur für mein Archiv

Public Function GetHashCodeSHA512(ByVal ClearString As String) As String

   Dim uEncode As New UnicodeEncoding()
   Dim bytClearString() As Byte = uEncode.GetBytes(ClearString)
   Dim sha As New System.Security.Cryptography.SHA512Managed()
   Dim hash() As Byte = sha.ComputeHash(bytClearString) 

   Return Convert.ToBase64String(hash)

End Function

posted on Tuesday, February 01, 2011 12:16 PM Print
Comments
No comments posted yet.

Post Comment

Title *
Name *
Email
Url
Comment *  
Please add 3 and 6 and type the answer here: