Link to home
Start Free TrialLog in
Avatar of vinny45
vinny45

asked on

encrypt-decrypt in T-SQL

can we encrypt and decrypt values in t-SQL. for example, when outputing data can we encrypt the value of an ID field in T-SQL. Then can we use the encrypted ID and decrypt it in T-SQL to query another set of data?
Avatar of Scott Pletcher
Scott Pletcher
Flag of United States of America image

SQL provides no direct support for that.  There are undocumented procedures that use SQL Server encryption, but it is known not to be especially strong.

I recommend getting a third-party tool for encrypting/decrypting that is more robust.  I don't know if there are any free, good tools available or not.
ASKER CERTIFIED SOLUTION
Avatar of ispaleny
ispaleny
Flag of Czechia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial