You don't normally keep password as decryptable data, you use a one-way hash. Each time user enters a password you can hash it and compare with the original. That way there is 'no' way for unauthorized to get that information from your data.
Code:Dim pass As String = "word" Dim sha As New System.Security.Cryptography.SHA1Managed Dim hash As String = Convert.ToBase64String(sha.ComputeHash(System.Text.Encoding.UTF8.GetBytes(pass)))



LinkBack URL
About LinkBacks




Reply With Quote


Bookmarks