Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How to Encrypt Column in SQL Server?

New Here ,
Sep 11, 2006 Sep 11, 2006
Hi all,

I am using ColdFusion MX 7 and Microsoft SQL Server 2000 database. I have a column that contains social security numbers of my users and am feeling the need to encrypt that column.

Trouble is, I have no clue how to do this in SQL Server or how I could display the data from that column in my web app once the column is encrypted.

Can anyone offer any suggestions?

Thanks in advance!

TOPICS
Database access
426
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 11, 2006 Sep 11, 2006
Here's one way...
To encrypt:
URLEncodedFormat(Encrypt(yourSStoencrypt, application.encKey)) then
store this value in MSSQL

To decrypt:
Decrypt(URLDecode(yourSStodecryptfromDB), application.encKey)

HTH
--
Tim Carley
www.recfusion.com
info@NOSPAMINGrecfusion.com
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 11, 2006 Sep 11, 2006
LATEST
Thanks Tim. I'll give that a try.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources