Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2000 > SQL Server 2000
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 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
 
Old December 9th, 2006, 02:19 AM
Authorized User
 
Join Date: Sep 2006
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Default Encryption/Decryption Problem

Hi Friends ,

            I want to create a table in which , i want to declare some fields as encrypted at the time of creation so that tha data entered in that fields could not be seen by anybody .

           Can you please guide me.


Thanking you ,
Param.

 
Old December 13th, 2006, 05:06 PM
Authorized User
 
Join Date: Oct 2005
Posts: 72
Thanks: 0
Thanked 0 Times in 0 Posts
Default

There's no built-in function that you can use that will automatically encrypt the data that you insert into your table. One way of doing it is to create your own encryption/decryption algorithm that you can call as a function and use whenever you insert data in your table.

Alternatively, here's a link to an encryption/decryption function that performs a simple algorithm in encrypting a string value:

http://www.sql-server-helper.com/fun...ncryption.aspx

SQL Server Helper
How well do you know SQL? Find out with the free test assessment from SQL Server Helper!!!
http://www.sql-server-helper.com/free-test/default.aspx

Got a SQL Server Question? Ask us here: http://www.sql-server-helper.com/forums/default.asp
 
Old December 14th, 2006, 12:52 AM
Authorized User
 
Join Date: Sep 2006
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you friend SSHelper


                Your Suggestions and the link you have given me is really helpful to me.



Thanking you
Param

 
Old December 14th, 2006, 02:19 AM
Friend of Wrox
 
Join Date: Oct 2006
Posts: 475
Thanks: 0
Thanked 9 Times in 9 Posts
Default

If you think your data is worth encrypting or you need to pass a security inspection, you won't use a homegrown method... security inspectors come armed with code to easily ferret out and break these homegrown solutions and you will flunk the inspection.

I believe that the SDK (Software Developers Kit) that comes with SQL Server has some good strong DESI multi-key encryption methods.

If it's worth protecting, do it right.

--Jeff Moden
 
Old December 14th, 2006, 05:20 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

Ther's also some SQL in this thread http://p2p.wrox.com/topic.asp?TOPIC_ID=51187 that uses the freely available CAPICOM library.

--

Joe (Microsoft MVP - XML)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Encryption & Decryption jvraman SQL Server 2000 1 June 22nd, 2006 02:48 AM
Encryption and Decryption kvanchi General .NET 1 February 2nd, 2005 02:04 PM
Encryption and Decryption kvanchi General .NET 2 January 24th, 2005 02:52 PM
Encryption/Decryption using IUSR msrnivas General .NET 0 January 12th, 2005 12:35 AM
SHA1 Encryption/Decryption help kakko72 VS.NET 2002/2003 7 November 15th, 2004 07:20 PM





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