It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming ASP & ASP.NET Forum

Password Hash and Salt Problem

Password Hash and Salt Problem

Postby arny on Thu Jun 11, 2009 4:18 am

Hi everbody,

I am using ASP.NET C# with SQL Server 2005,
I have a login page,which a user can register or login, what I am trying to do is to hash and salt the password before writig to sql server table and then return and match it when user try to login, I serched through MSDN an this is the link that I found:
http://msdn.microsoft.com/en-us/library/aa302398.aspx
But the problem is when you createsalt with integer size 5 and change it to string it gives you 8 chracter long string not 5,what is wrong with this code? can anybody explain?
arny
 
Posts: 3
Joined: Wed Jun 03, 2009 10:40 am

Who is online

Users browsing this forum: No registered users and 0 guests