Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2005 > SQL Server 2005
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
SQL Server 2005 General discussion of SQL Server *2005* version only.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2005 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old September 7th, 2006, 08:43 AM
Friend of Wrox
Join Date: May 2006
Location: Northampton, United Kingdom.
Posts: 107
Thanks: 1
Thanked 8 Times in 7 Posts
Default Encryption

I have used the asp.net membership and the user login system and can see that the password and security answer are encrypted.

Is it possible to use the encryption on other columns, and in other tables?

If so how do I do it?

Also has anyone measured the performance hit on this encryption?


Try our latest project www.nobanx.com Currency Exchange for members
Reply With Quote
  #2 (permalink)  
Old September 7th, 2006, 12:35 PM
Friend of Wrox
Join Date: Dec 2005
Location: , AZ, .
Posts: 146
Thanks: 0
Thanked 1 Time in 1 Post

Here is a little example from BOL from the EncryptByKey (Transact-SQL) topic
USE AdventureWorks;

-- Create a column in which to store the encrypted data.
ALTER TABLE HumanResources.Employee
    ADD EncryptedNationalIDNumber varbinary(128);

-- Open the symmetric key with which to encrypt the data.

-- Encrypt the value in column NationalIDNumber with symmetric key
-- SSN_Key_01. Save the result in column EncryptedNationalIDNumber.
UPDATE HumanResources.Employee
SET EncryptedNationalIDNumber
    = EncryptByKey(Key_GUID('SSN_Key_01'), NationalIDNumber);

David Lundell
Principal Consultant and Trainer
Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
XSL Encryption RICHBIRD XSLT 1 June 14th, 2006 03:10 AM
FTP and encryption GeorgeW SQL Server DTS 0 June 9th, 2006 09:24 AM
Encryption mani_he Pro PHP 3 October 18th, 2005 02:20 PM
Encryption question Warbird General .NET 2 May 31st, 2005 03:24 PM
with encryption jtrifts SQL Server 2000 1 February 21st, 2005 12:49 AM

All times are GMT -4. The time now is 11:22 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.