Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 Data Encryption\Decryption

Author  Topic 

lionofdezert
Aged Yak Warrior

885 Posts

Posted - 2008-07-20 : 05:45:27
I have a table which stores owners data, i want to encrypt NAME of owner and later i would like to decrypt it for my reports etc. For this i need a function which will decrypt owners name.

CREATE TABLE dbo.owners (owner_id UNIQUEIDENTIFIER, name BINARY)

When i try to do this through function, it does not allow me to add open symetric key commands in function.

My question is how to decrypt a column data through function ?

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2008-07-20 : 08:55:06
What have you actually tried this far?



E 12°55'05.25"
N 56°04'39.16"
Go to Top of Page

GilaMonster
Master Smack Fu Yak Hacker

4507 Posts

Posted - 2008-07-20 : 13:00:20
What did you use to encrypt the name?

--
Gail Shaw
SQL Server MVP
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2008-07-20 : 13:08:02
I wrote a RC4 encryption/decryption function here at SQLTeam.
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=76258



E 12°55'05.25"
N 56°04'39.16"
Go to Top of Page
   

- Advertisement -