MSSQLTips.com - your daily source for SQL Server tips

Google
 
Web mssqltips.com

ESSENTIALS: Home | Tips | Search | Categories | Top 10 | Products | Authors | Blogs | Forums | Webcasts | Advertise | About
Natively Encrypting Social Security Numbers - SQL Server 2005 -

in Search

Natively Encrypting Social Security Numbers - SQL Server 2005

Last post 01-05-2008 6:21 PM by timothyrcullen. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 11-29-2007 6:55 PM

    Natively Encrypting Social Security Numbers - SQL Server 2005

    This post is related to this tip: Natively Encrypting Social Security Numbers - SQL Server 2005

    http://www.mssqltips.com/tip.asp?tip=1383

  • 12-19-2007 6:04 PM In reply to

    Re: Natively Encrypting Social Security Numbers - SQL Server 2005

     Hi,
    Great intro artical.  I tried the sample code and used the follow grants to test.  (I know never grant to public).  When I decrypt I still getting ascii character in the decryptbycert column.  Did I miss something?

    GRANT VIEW DEFINITION ON CERTIFICATE :: certabclients TO public
    GRANT CONTROL ON CERTIFICATE :: certabclients TO public

     select  ss_plain,ss_cert 'ss_cert',
     convert(nvarchar(50),
     decryptbycert(cert_id('certabclients'),ss_cert)) 'decryptbycert'
    from tblClients

     Plain Text     ss_cert                                                        SS_decrypt
    1234567890 0xF1642E9549F9B281D31F0D8BA6C77165 ㈱㐳㘵㠷〹

     

    Thanks
    Riskworks

  • 01-05-2008 6:21 PM In reply to

    Re: Natively Encrypting Social Security Numbers - SQL Server 2005

    Good evening.  It looks like you have the right syntax.  How did you encrypt the data when it was inserted?  Thanks-TC

Page 1 of 1 (3 items)