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.....
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sandeep Singh ShekhawatPosted Oct 13, 2012, 1:02 AM
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/