Hello Sir,
I want to store the password in encrypted mode in database....is there any property or other way??And also want to decrypt it while accessing it from the database.....
How to store the password in encrypted mode?
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Sandeep Singh ShekhawatRank #147 · 15.6K reputationPosted Oct 12, 2012, 9:02 PM EDT
DECLARE @CipherText NVARCHAR(MAX)
SELECT @CipherText = EncryptByPassPhrase('sss','Sandeep');
PRINT @CipherText
SELECT @PlainText =CONVERT(VARCHAR(MAX),DecryptByPassPhrase('sss',@CipherText));
PRINT @PlainText
Now You can you both variable in fruhter.
OR
FOR SQL SERVER
http://www.c-sharpcorner.com/UploadFile/chinnasrihari/data-encryption-and-decryption-in-sql-server-2008/
FOR C#
http://www.c-sharpcorner.com/UploadFile/dhananjaycoder/triple-des-encryption-and-decryption-using-user-provided-key/