1
Reply

How to encrypt / decrypt password in SQL server 2012?

Vishal Jadav

Vishal Jadav

8y
682
0
Reply

    There are many methods in Sql server 2012 which allows you to encrypt password easily. ENCRYPTBYPASSPHRASE(YOURKEYPHRASE,PASSWORD)will give you varbinary result. To Get the actual result you need to convert using convert(varchar(50),DECRYPTBYPASSPHRASE(YOURKEYPHRASE,ENCRYPTED_VALUE)).