VBAHole22 Posted March 7, 2005 Posted March 7, 2005 I am trying to authenticate users against a sql server db. I don't want to store peoples passwords in plain text in the db because I don't know who will be accessing it in the future. How can I avoid this? ANyone have some sample code for using SHA or something like that? Would I have to add another field in my db for the salt? Quote Wanna-Be C# Superstar
*Gurus* Derek Stone Posted March 7, 2005 *Gurus* Posted March 7, 2005 [msdn]System.Security.Cryptography.SHA512Managed[/msdn] Quote Posting Guidelines
VBAHole22 Posted March 7, 2005 Author Posted March 7, 2005 Yeah, I stumbled across that and it works great. The only problem is that the wse2.0 AuthenticateToken method only returns string variables when you override it. This would produce byte arrays. Quote Wanna-Be C# Superstar
*Gurus* Derek Stone Posted March 7, 2005 *Gurus* Posted March 7, 2005 [msdn]System.Convert[/msdn].ToBase64String() Quote Posting Guidelines
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.