Wrox Programmer Forums
| 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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #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?

Thanks


__________________
Try our latest project www.nobanx.com Currency Exchange for members
  #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
Default

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

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

-- Open the symmetric key with which to encrypt the data.
OPEN SYMMETRIC KEY SSN_Key_01
   DECRYPTION BY CERTIFICATE HumanResources037;

-- 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);
GO


David Lundell
Principal Consultant and Trainer
www.mutuallybeneficial.com


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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.