Technical Article

How to Encrypt a password in T-SQL

,

A function to enctypt a string
good for hiding passwords in the database

comparing password is done via the PWDCOMPARE function

SELECT PWDENCRYPT('iecdba') AS EncryptedString,
       PWDCOMPARE('iecdba', PWDENCRYPT('iecdba'), 0) AS EncryptedCompare

Rate

You rated this post out of 5. Change rating

Share

Share

Rate

You rated this post out of 5. Change rating