Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Private Function GenerateHash(ByVal SourceText As String) As String
- Dim Ue As New UnicodeEncoding()
- Dim ByteSourceText() As Byte = Ue.GetBytes(SourceTStext)
- Dim Md5 As New MD5CryptoServiceProvider()
- Dim ByteHash() As Byte = Md5.ComputeHash(ByteSourceText)
- Return Convert.ToBase64String(ByteHash)
- End Function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement