How to use list values to update table column in a database?
Welcome, I have a string list populated with some encryption keys. I want to use these keys to decrypt values in a column in a database (the first key in the list decrypts the first column value). How to do that??
Sreekanth ReddyPosted Nov 29, 2018, 3:59 AM
Samia SourorPosted Nov 29, 2018, 9:52 AM
Mehreen TahirPosted Nov 29, 2018, 2:27 AM
https://stackoverflow.com/questions/48423632/encrypt-decrypt-columns-without-changing-existing-functionality
Samia SourorPosted Nov 29, 2018, 1:59 AM
Mehreen TahirPosted Nov 29, 2018, 1:13 AM
It would have been great if you had mentioned which database you're using. Anyhow, you can use DecryptByKey (Transact-SQL) function. It can be applied to SQL Server and Azure SQL database.
You can also check the detailed documentation here. Hope that helps.