All Questions

Tagged with
Filter by
Sorted by
Tagged with
4
votes
1answer
5k views

Using HASHBYTES() yields different results for nvarchar and a variable

I'm using server-side hashing to transmit passwords, then running PBKDF2 in the database to store the hashed password + salt combination. Hashing nvarchar(max) and a @variable holding the same value ...
2
votes
1answer
595 views

How to get back value passed to HASHBYTES()?

I want to use the SQL Server HASHBYTES() function. But I don't know how to get back the value passed to HASHBYTES...
20
votes
4answers
16k views

Choosing the right algorithm in HashBytes function

We need to create hash value of nvarchar data for comparison purposes. There are multiple hash algorithms available in T-SQL, but which one the best to choose from in this scenario? We want to ensure ...