Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Function getMD5Hash(ByVal strToHash As String) As String
- Dim md5Obj As New Security.Cryptography.MD5CryptoServiceProvider
- Dim bytesToHash() As Byte = System.Text.Encoding.ASCII.GetBytes(strToHash)
- bytesToHash = md5Obj.ComputeHash(bytesToHash)
- Dim strResult As String = ""
- For Each b As Byte In bytesToHash
- strResult += b.ToString("x2")
- Next
- Return strResult
- End Function
Advertisement
Add Comment
Please, Sign In to add comment