DEVPPL
http://www.devppl.com/forum/

Password Hash and Salt Problem
http://www.devppl.com/forum/viewtopic.php?f=33&t=13689
Page 1 of 1

Author:  arny [ Thu Jun 11, 2009 5:18 am ]
Post subject:  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?

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/