I'm using to hash a password using MD5 programatically, but when i compared MD5 hashes created in C# and MD5 hashes created by an SQL Server ( HASHBYTES('MD5', 'admin') ) the result is not same.
How come they are not the same? How to solve this problem?
Also how should I store MD5 in sql server 2008 R2. Using varbinary(max)
or binary(16)
?