News

Log In Sponsors
Partner Sites





Password Hash and Salt Problem



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?

Click here to read the whole forum topic