fizzled Posted March 20, 2005 Posted March 20, 2005 All I'd like to do is create a hash of a password String to store/lookup in my users table of my database, but everything I'm reading so far makes it look a lot more complicated than it should be. Is there a simple (6 or less lines of code max) way to hash a String or is ASP.NET really that cumbersome that you need like 10+ lines of code for such a simple task? Quote
Administrators PlausiblyDamp Posted March 20, 2005 Administrators Posted March 20, 2005 Dim s As String = "hello world" Dim sh As New System.Security.Cryptography.SHA512Managed Dim b() As Byte = System.Text.UnicodeEncoding.Unicode.GetBytes(s) b = sh.ComputeHash(b) Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
HJB417 Posted March 20, 2005 Posted March 20, 2005 FormsAuthentication.HashPasswordForStoringInConfigFile Method Quote
fizzled Posted March 21, 2005 Author Posted March 21, 2005 Thanks guys, that's much more like it! :) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.