1
Reply

How to encrypt / decrypt password in SQL server 2012?

Vishal Jadav

Vishal Jadav

Aug 04, 2016
661
0

    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)).

    Vishal Jadav
    August 04, 2016
    0