Reputation: 57
I need to create a sha256 hash of a password entered in a TextBox
. I tried to use ComputeHash(string)
but it only works with streams.
Upvotes: 1
Views: 7011
Reputation: 57
Dim hash = New System.Security.Cryptography.SHA256Managed().ComputeHash(System.Text.Encoding.UTF8.GetBytes("The-password"))
Upvotes: 2