I need to make a login form with an encrytped data(user or pass), so I google for many time and found a fucntion.
But the problem is I dont understand the algorithm of each statement. Could you all explain to me?
Private Function StringtoMD5(ByVal Content As String) As String
Dim M5 As New System.Security.Cryptography.MD5CryptoServiceProvider
Dim ByteString() As Byte = System.Text.Encoding.ASCII.GetBytes(Content)
ByteString = M5.ComputeHash(ByteString)
Dim FinalString As String = Nothing
For Each bt As Byte In ByteString
FinalString &= bt.ToString("x2")
Next
Return FinalString.ToUpper()
End Function
New programmer
7umper (Nuii)

New Topic/Question
Reply




MultiQuote








|