﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Discuss Content Posted by Brian Knight / Article Discussions / Article Discussions by Author  / Encrypting Data With the Encrypt Function / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Thu, 23 May 2013 12:27:01 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Encrypting Data With the Encrypt Function</title><link>http://www.sqlservercentral.com/Forums/Topic578-31-1.aspx</link><description>encrypt is not a recognized function name in sql 2005. pwdencrypt() is, however</description><pubDate>Tue, 04 Aug 2009 17:34:25 GMT</pubDate><dc:creator>ikjeft01</dc:creator></item><item><title>RE: Encrypting Data With the Encrypt Function</title><link>http://www.sqlservercentral.com/Forums/Topic578-31-1.aspx</link><description>&lt;P&gt;&lt;FONT face=Arial color=#111111&gt;I can confirm what you're saying for the encrypt function, but not when encrypting a stored procedure.  A true test of encryption over encoding is whether or not the same result is produced each time you perform the function.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial color=#111111&gt;I created several stored procedures to see what happens, using this simple bit of SQL code:&lt;/FONT&gt;&lt;/P&gt;&lt;BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"&gt;&lt;P&gt;&lt;FONT face=Arial color=#111111&gt;CREATE PROCEDURE "sp_Test" WITH ENCRYPTION AS &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial color=#111111&gt;--This is a test&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial color=#111111&gt;GO&lt;/FONT&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;FONT color=navy size=2&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: navy; mso-bidi-font-size: 10.0pt; mso-bidi-font-family: Arial"&gt;&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;FONT face=Arial color=#111111&gt;Then I would read out the entry from the syscomments table, drop the stored procedure and repeat it.  Each time, the entry was different.  This looks like encryption to me.  What do you think?&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=navy size=2&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: navy; mso-bidi-font-size: 10.0pt; mso-bidi-font-family: Arial"&gt;&lt;o:p&gt;&lt;FONT face=Arial color=#111111&gt;Thanks.&lt;/FONT&gt;&lt;/P&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;</description><pubDate>Mon, 05 Jun 2006 06:20:00 GMT</pubDate><dc:creator>JunkMail Victim</dc:creator></item><item><title>RE: Encrypting Data With the Encrypt Function</title><link>http://www.sqlservercentral.com/Forums/Topic578-31-1.aspx</link><description>&lt;P&gt;That's quite a misnomer calling it encryption.  Thanks for the example.  I had fun with that.&lt;/P&gt;&lt;P&gt;&lt;img src='images/emotions/smile.gif' height='20' width='20' border='0' title='Smile' align='absmiddle'&gt;&lt;/P&gt;</description><pubDate>Thu, 01 Jun 2006 20:22:00 GMT</pubDate><dc:creator>JunkMail Victim</dc:creator></item><item><title>RE: Encrypting Data With the Encrypt Function</title><link>http://www.sqlservercentral.com/Forums/Topic578-31-1.aspx</link><description>For the record, PWDENCRYPT is also not secure:http://www.theregister.co.uk/2002/07/08/cracking_ms_sql_server_passwords/</description><pubDate>Thu, 01 Jun 2006 14:45:00 GMT</pubDate><dc:creator>Oskar Austegard-253928</dc:creator></item><item><title>RE: Encrypting Data With the Encrypt Function</title><link>http://www.sqlservercentral.com/Forums/Topic578-31-1.aspx</link><description>&lt;rant&gt;Crap.  I had an eloquent reply to this, but Firefox/sqlservercentral swallowed it.&lt;/rant&gt;Ok - I'm too lazy to type it all again, have a look at the sql and come to your own conclusions:--See the pattern?SELECT ENCRYPT (''), ENCRYPT ('a'), ENCRYPT ('ab'), ENCRYPT ('abc')--Simple hex encoding of unicode valuesSELECT ENCRYPT('a') / (0x0100 * 1), UNICODE('a')SELECT ENCRYPT('b') / (0x0100 * 1), UNICODE('b')--better, also undocumented alternative - for more use googleSELECT PWDENCRYPT (''), PWDENCRYPT ('a'), PWDENCRYPT ('ab'), PWDENCRYPT ('abc')</description><pubDate>Thu, 01 Jun 2006 14:40:00 GMT</pubDate><dc:creator>Oskar Austegard-253928</dc:creator></item><item><title>RE: Encrypting Data With the Encrypt Function</title><link>http://www.sqlservercentral.com/Forums/Topic578-31-1.aspx</link><description>&lt;P&gt;Hi Oskar:&lt;/P&gt;&lt;P&gt;Thanks for the reply.  In my organization we have some people who are looking into adding the encrypt clause to stored procedures prevent tampering.  This may prove reasonable, but perhaps not.  I guess what I'm looking to know are a few things about the encrypt clause:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;A recent SQL Server Central article says that Microsoft does not provide support for it.  I'm wondering where I can find Microsoft's statement to that effect.&lt;/LI&gt;&lt;LI&gt;If this is in fact encoding, and not encryption where could I go to corroborate this?&lt;/LI&gt;&lt;LI&gt;If you turn on the encrypt clause will applications running those stored procedures go belly-up or will SQL Server handle it seamlessly.&lt;/LI&gt;&lt;LI&gt;Lastly, can this be applied to triggers without issue?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Thanks for the expertise.&lt;/P&gt;</description><pubDate>Thu, 01 Jun 2006 12:10:00 GMT</pubDate><dc:creator>JunkMail Victim</dc:creator></item><item><title>RE: Encrypting Data With the Encrypt Function</title><link>http://www.sqlservercentral.com/Forums/Topic578-31-1.aspx</link><description>JunkMailVictim: As nicerguy crudely points out, the ENCRYPT function does NOT encrypt anything, it merely hex ENCODES the string, which is quite useless from a security standpoint.  If you need encryption it looks like the free version of xp_crypt would be the way to go.</description><pubDate>Thu, 01 Jun 2006 07:24:00 GMT</pubDate><dc:creator>Oskar Austegard-253928</dc:creator></item><item><title>RE: Encrypting Data With the Encrypt Function</title><link>http://www.sqlservercentral.com/Forums/Topic578-31-1.aspx</link><description>&lt;STRONG&gt; &lt;/STRONG&gt;Hi:&lt;P&gt;Is there a reference link that explains Microsoft's support limitations with the encrypt function?  Also, is it the same encryption used to encrypt stored procedures.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;img src='images/emotions/smile.gif' height='20' width='20' border='0' title='Smile' align='absmiddle'&gt;&lt;/P&gt;</description><pubDate>Wed, 31 May 2006 14:08:00 GMT</pubDate><dc:creator>JunkMail Victim</dc:creator></item><item><title>RE: Encrypting Data With the Encrypt Function</title><link>http://www.sqlservercentral.com/Forums/Topic578-31-1.aspx</link><description>Yikes.  So much for that idea, then.</description><pubDate>Tue, 30 May 2006 10:41:00 GMT</pubDate><dc:creator>Oskar Austegard-253928</dc:creator></item><item><title>RE: Encrypting Data With the Encrypt Function</title><link>http://www.sqlservercentral.com/Forums/Topic578-31-1.aspx</link><description>Uhm - executing this in SQL 2000select ENCRYPT('abc123')yields0x610062006300310032003300So I'd have to say you're wrong.</description><pubDate>Tue, 30 May 2006 10:15:00 GMT</pubDate><dc:creator>Oskar Austegard-253928</dc:creator></item><item><title>RE: Encrypting Data With the Encrypt Function</title><link>http://www.sqlservercentral.com/Forums/Topic578-31-1.aspx</link><description>Please keep your comments professional. Disagreeing is fine. Being disrespectful is not. Thanks.Andyhttp://www.sqlservercentral.com/columnists/awarren/</description><pubDate>Wed, 16 Jul 2003 03:11:00 GMT</pubDate><dc:creator>Andy Warren</dc:creator></item><item><title>RE: Encrypting Data With the Encrypt Function</title><link>http://www.sqlservercentral.com/Forums/Topic578-31-1.aspx</link><description>What the hell are you thinking?  You guys are just converting the string to a double-byte character string and type-casting it as a numerical.  Hello?0x5400 = 84  = 'T'0x6500 = 101 = 'e'0x7300 = 115 = 's'0x7400 = 116 = 't'0x5000 = 80  = 'P'0x5700 = 119 = 'w'0x3100 = 49  = '1'</description><pubDate>Tue, 15 Jul 2003 16:59:00 GMT</pubDate><dc:creator>nicerguy</dc:creator></item><item><title>RE: Encrypting Data With the Encrypt Function</title><link>http://www.sqlservercentral.com/Forums/Topic578-31-1.aspx</link><description>Probé en un sql 2000 SP2 y anda mal (la encripción es la que yo comenté anteriormente y no debe usarse).En cambio, en un  sql 7.0 SP4, aparentemente anda ok. Lo que me parece que no es muy bueno en basarse en funciones no documentadas como ENCRYPT(), viendo que cambian con las versiones del motor.Saludos,Rafael Picchirafap@uol.com.ar&lt;BLOCKQUOTE id=quote&gt;&lt;font size=1 face="Verdana, Arial, Helvetica" id=quote&gt;quote:&lt;hr height=1 noshade id=quote&gt;&lt;BLOCKQUOTE id=quote&gt;&lt;font size=1 face="Verdana, Arial, Helvetica" id=quote&gt;quote:&lt;hr height=1 noshade id=quote&gt;La encripción que hace esa función es muy fácilmente decifrable, como para usarla en cualquier ambiente. Solo guarda los caracteres en hexadecimal (2 bytes en hexa para cada uno, donde el segundo es 00) Lo que pasa al hacer select, es que solo ves el primer byte. Si te fijas, (en tu ejemplo) al hacer:select * from users where UserPW=0x5400650073007400500057003200         T   e   s   T   P   W   2te devuelve:TestUser2	TMe parece muy malo que recomiendes esto como método de encripción.Rafael PicchiArgentinarafap@uol.com.ar&lt;hr height=1 noshade id=quote&gt;&lt;/BLOCKQUOTE id=quote&gt;&lt;/font id=quote&gt;&lt;font face="Verdana, Arial, Helvetica" size=2 id=quote&gt;Try this one to confirm your idea:SET NOCOUNT ONSELECT ENCRYPT('TestPW1')SELECT ENCRYPT('TestPW2')SELECT ENCRYPT('TestPW3')SET NOCOUNT ONSELECT ENCRYPT('TestPW1')SELECT ENCRYPT('UestPW1')SELECT ENCRYPT('VestPW1')[url][/url] &lt;hr height=1 noshade id=quote&gt;&lt;/BLOCKQUOTE id=quote&gt;&lt;/font id=quote&gt;&lt;font face="Verdana, Arial, Helvetica" size=2 id=quote&gt; </description><pubDate>Thu, 15 May 2003 14:14:00 GMT</pubDate><dc:creator>rpicchi</dc:creator></item><item><title>RE: Encrypting Data With the Encrypt Function</title><link>http://www.sqlservercentral.com/Forums/Topic578-31-1.aspx</link><description>&lt;BLOCKQUOTE id=quote&gt;&lt;font size=1 face="Verdana, Arial, Helvetica" id=quote&gt;quote:&lt;hr height=1 noshade id=quote&gt;La encripción que hace esa función es muy fácilmente decifrable, como para usarla en cualquier ambiente. Solo guarda los caracteres en hexadecimal (2 bytes en hexa para cada uno, donde el segundo es 00) Lo que pasa al hacer select, es que solo ves el primer byte. Si te fijas, (en tu ejemplo) al hacer:select * from users where UserPW=0x5400650073007400500057003200         T   e   s   T   P   W   2te devuelve:TestUser2	TMe parece muy malo que recomiendes esto como método de encripción.Rafael PicchiArgentinarafap@uol.com.ar&lt;hr height=1 noshade id=quote&gt;&lt;/BLOCKQUOTE id=quote&gt;&lt;/font id=quote&gt;&lt;font face="Verdana, Arial, Helvetica" size=2 id=quote&gt;Try this one to confirm your idea:SET NOCOUNT ONSELECT ENCRYPT('TestPW1')SELECT ENCRYPT('TestPW2')SELECT ENCRYPT('TestPW3')SET NOCOUNT ONSELECT ENCRYPT('TestPW1')SELECT ENCRYPT('UestPW1')SELECT ENCRYPT('VestPW1')[url][/url] </description><pubDate>Thu, 15 May 2003 11:23:00 GMT</pubDate><dc:creator>diogenes1331</dc:creator></item><item><title>RE: Encrypting Data With the Encrypt Function</title><link>http://www.sqlservercentral.com/Forums/Topic578-31-1.aspx</link><description>&lt;BLOCKQUOTE id=quote&gt;&lt;font size=1 face="Verdana, Arial, Helvetica" id=quote&gt;quote:&lt;hr height=1 noshade id=quote&gt;La encripción que hace esa función es muy fácilmente decifrable, como para usarla en cualquier ambiente. Solo guarda los caracteres en hexadecimal (2 bytes en hexa para cada uno, donde el segundo es 00) Lo que pasa al hacer select, es que solo ves el primer byte. Si te fijas, (en tu ejemplo) al hacer:select * from users where UserPW=0x5400650073007400500057003200         T   e   s   T   P   W   2te devuelve:TestUser2	TMe parece muy malo que recomiendes esto como método de encripción.Rafael PicchiArgentinarafap@uol.com.ar &lt;hr height=1 noshade id=quote&gt;&lt;/BLOCKQUOTE id=quote&gt;&lt;/font id=quote&gt;&lt;font face="Verdana, Arial, Helvetica" size=2 id=quote&gt; </description><pubDate>Thu, 15 May 2003 11:21:00 GMT</pubDate><dc:creator>diogenes1331</dc:creator></item><item><title>RE: Encrypting Data With the Encrypt Function</title><link>http://www.sqlservercentral.com/Forums/Topic578-31-1.aspx</link><description>This may be useful, feedback is certainly most welcome.1) How does one perform validation processes in SQL2K?Below is a script that demonstrates a column that has accepted encrypted values, it then returns a row based on input that undergoes an encryption.	THIS IS NOT SUPPORTED BY MICROSOFT &amp;gt;&amp;gt;WAS IT EVER???&amp;lt;&amp;lt;&amp;lt;I hope it fits&amp;gt;SET NOCOUNT ONGO/*Author:		Shaun Tinline-JonesCreate Date:	2003/05/13Purpose:Testing some logic around the Encrypt function*/USE NorthwindGOIF OBJECTPROPERTY(OBJECT_ID(N'dbo.Test_Encrypt'), N'IsTable') = 1	DROP TABLE dbo.Test_EncryptGO-- We need to store the values in a field that holds the result of the encryptionCREATE TABLE dbo.Test_Encrypt(	Gambler sql_variant NOT NULL--	Gambler nvarchar(25) NOT NULL)GO/**************************** We have some gamblers *********************************/DECLARE @Name nvarchar(25) --sql_variantSELECT @Name = ENCRYPT(N'Shaun')INSERT INTO dbo.Test_Encrypt(Gambler) VALUES (ENCRYPT(@Name))INSERT INTO dbo.Test_Encrypt(Gambler) VALUES (ENCRYPT(N'Grant'))INSERT INTO dbo.Test_Encrypt(Gambler) VALUES (ENCRYPT(N'Jacye'))SELECT Gambler FROM dbo.Test_EncryptGO/******************************** Now let's get that winner ****************************/DECLARE @Winner nvarchar(25)SET @Winner = N'Shaun'SELECT N'and the lotto winner is.......' + @Winner FROM dbo.Test_Encrypt WHERE Gambler = ENCRYPT(@Winner) --@Encrypted_WinnerGOSET NOCOUNT OFFGO2) How does one deal with the upgrade?The encrypt function is now, correctly stated by Jacye, using the windows CryptoAPI.  So yes it is different from other versions of SQL Server and also suffers the same exposure to cracking&amp;gt;&amp;gt;Whatever that may be&amp;lt;&amp;lt; as this API .The best is to use a query that takes a first time user, that is first time since upgrade, check it against a SQL Server 7.0 with the password table.  If it succeeds, run customer created encryption algorithm, even if it is the straight Windows CryptoAPI, (as opposed to the SQL2K function) and store the result in the SQL Server instance and record that the user has upgraded.This will handle the upgrade in a controlled fashion, while remaining transparent to the user community as well as protect the customer from the possible deprecation of the ENCRYPT function. </description><pubDate>Tue, 13 May 2003 12:44:00 GMT</pubDate><dc:creator>shauntj</dc:creator></item><item><title>RE: Encrypting Data With the Encrypt Function</title><link>http://www.sqlservercentral.com/Forums/Topic578-31-1.aspx</link><description>La encripción que hace esa función es muy fácilmente decifrable, como para usarla en cualquier ambiente. Solo guarda los caracteres en hexadecimal (2 bytes en hexa para cada uno, donde el segundo es 00) Lo que pasa al hacer select, es que solo ves el primer byte. Si te fijas, (en tu ejemplo) al hacer:select * from users where UserPW=0x5400650073007400500057003200         T   e   s   T   P   W   2te devuelve:TestUser2	TMe parece muy malo que recomiendes esto como método de encripción.Rafael PicchiArgentinarafap@uol.com.ar </description><pubDate>Thu, 21 Feb 2002 17:08:00 GMT</pubDate><dc:creator>rpicchi</dc:creator></item><item><title>RE: Encrypting Data With the Encrypt Function</title><link>http://www.sqlservercentral.com/Forums/Topic578-31-1.aspx</link><description>Hi guys, Nice to meet you here, I'm author of xp_crypt(www.vtc.ru/~andrey/xp_crypt). You can easily encrypt with strong RSA encryption all what you want just with simple sql scripts.On my web page, i included all needed examples. And if you dont need encrypt strings longer then 21 chars and with key length more then 256 bits , so for you &lt;b&gt;its free&lt;/b&gt;Besides, it contains DES and SHA1 hashes with unlimited string length.Thank you for attention.Edited by - Andrey Kubyshev on 09/15/2001  07:51:13 AMEdited by - Andrey Kubyshev on 09/15/2001  07:53:25 AM</description><pubDate>Sat, 15 Sep 2001 07:49:00 GMT</pubDate><dc:creator>Max Howell</dc:creator></item><item><title>RE: Encrypting Data With the Encrypt Function</title><link>http://www.sqlservercentral.com/Forums/Topic578-31-1.aspx</link><description>&lt;font face='Tahoma'&gt;I have little doubt about this. Though data is encrypted, that can be read easily.If I inserted data like 'app' with encryption, that is shown as 'a[Odd Char]p[Odd Char]p[Odd Char]'. I highly appreciate your reply.&lt;/font id='Tahoma'&gt; </description><pubDate>Wed, 12 Sep 2001 03:47:00 GMT</pubDate><dc:creator>Dinesh Priyankara</dc:creator></item><item><title>RE: Encrypting Data With the Encrypt Function</title><link>http://www.sqlservercentral.com/Forums/Topic578-31-1.aspx</link><description>&lt;BLOCKQUOTE id=quote&gt;&lt;font size=1 face="Verdana, Arial, Helvetica" id=quote&gt;quote:&lt;hr height=1 noshade id=quote&gt;Are you connected with the author?&lt;hr height=1 noshade id=quote&gt;&lt;/BLOCKQUOTE id=quote&gt;&lt;/font id=quote&gt;&lt;font face="Verdana, Arial, Helvetica" size=2 id=quote&gt;No, in fact I haven't even tried using it myself yet. I cant even remember when I found it, but have keep a bookmark to it, I'm sure it will come in usefull one day. </description><pubDate>Thu, 09 Aug 2001 10:36:00 GMT</pubDate><dc:creator>ians</dc:creator></item><item><title>RE: Encrypting Data With the Encrypt Function</title><link>http://www.sqlservercentral.com/Forums/Topic578-31-1.aspx</link><description>Now that's a cool tool.  Frebbie's not too bad, and $98.00 for the full version seems a fair price for someone who needs this functionality!  Are you connected with the author? </description><pubDate>Tue, 07 Aug 2001 20:18:00 GMT</pubDate><dc:creator>Sean Burke</dc:creator></item><item><title>RE: Encrypting Data With the Encrypt Function</title><link>http://www.sqlservercentral.com/Forums/Topic578-31-1.aspx</link><description>I'm suprised noone has mentioned xp_crypt :-[url]http://www.vtc.ru/~andrey/xp_crypt/[/url] </description><pubDate>Tue, 07 Aug 2001 03:49:00 GMT</pubDate><dc:creator>ians</dc:creator></item><item><title>RE: Encrypting Data With the Encrypt Function</title><link>http://www.sqlservercentral.com/Forums/Topic578-31-1.aspx</link><description>&lt;BLOCKQUOTE id=quote&gt;&lt;font size=1 face="Verdana, Arial, Helvetica" id=quote&gt;quote:&lt;hr height=1 noshade id=quote&gt;Supposing im creating a personnel database and want to store national insurance numbers etc , i want this to be encrypted in the table., But throught the client application front end , a personnel details administrator should be able to see the unencrypted data .. how would i do this ?&lt;hr height=1 noshade id=quote&gt;&lt;/BLOCKQUOTE id=quote&gt;&lt;/font id=quote&gt;&lt;font face="Verdana, Arial, Helvetica" size=2 id=quote&gt;Your best bet then would be to create some type of custom middle-ware that encrypts/decrypts your data.  Les Smith (http://www.sqlservercentral.com/columnists/lsmith) has developed a few methods on doing this.  You can use these to get ideas.  You could possibly create a user defined function to do something like this as well.  Possibly wrap an extended stored procedure into it to encrypt/decrypt it.Brian Knightbknight@sqlservercentral.comhttp://www.sqlservercentral.com/columnists/bknight</description><pubDate>Tue, 31 Jul 2001 10:40:00 GMT</pubDate><dc:creator>Brian Knight</dc:creator></item><item><title>RE: Encrypting Data With the Encrypt Function</title><link>http://www.sqlservercentral.com/Forums/Topic578-31-1.aspx</link><description>This function does not exsist in 2000.So inless your living in the Stone age move on. </description><pubDate>Mon, 30 Jul 2001 12:49:00 GMT</pubDate><dc:creator>MudLuck</dc:creator></item><item><title>RE: Encrypting Data With the Encrypt Function</title><link>http://www.sqlservercentral.com/Forums/Topic578-31-1.aspx</link><description>Supposing im creating a personnel database and want to store national insurance numbers etc , i want this to be encrypted in the table., But throught the client application front end , a personnel details administrator should be able to see the unencrypted data .. how would i do this ?Santosh Benjamin</description><pubDate>Thu, 19 Jul 2001 11:32:00 GMT</pubDate><dc:creator>Santosh Benjamin</dc:creator></item><item><title>RE: Encrypting Data With the Encrypt Function</title><link>http://www.sqlservercentral.com/Forums/Topic578-31-1.aspx</link><description>&lt;BLOCKQUOTE id=quote&gt;&lt;font size=1 face="Verdana, Arial, Helvetica" id=quote&gt;quote:&lt;hr height=1 noshade id=quote&gt;Encrypt function in T-SQL is fine what about Decryption of encrytion columns.kindly tell us how to do it!&lt;hr height=1 noshade id=quote&gt;&lt;/BLOCKQUOTE id=quote&gt;&lt;/font id=quote&gt;&lt;font face="Verdana, Arial, Helvetica" size=2 id=quote&gt;As I mentioned in the article, the only way to decrypt is with a comparion techinque with a WHERE clause.  That's why if you would like to use a more advanced encryption/decryption system, you may have to resort to COM.  Les Smith will be having some excellent articles coming out this week and next about how to use this.Brian Knightbknight@sqlservercentral.comhttp://www.sqlservercentral.com/columnists/bknight</description><pubDate>Mon, 16 Jul 2001 07:23:00 GMT</pubDate><dc:creator>Brian Knight</dc:creator></item><item><title>RE: Encrypting Data With the Encrypt Function</title><link>http://www.sqlservercentral.com/Forums/Topic578-31-1.aspx</link><description>Encrypt function in T-SQL is fine what about Decryption of encrytion columns.kindly tell us how to do it!</description><pubDate>Sun, 15 Jul 2001 23:01:00 GMT</pubDate><dc:creator>gvphubli</dc:creator></item><item><title>Encrypting Data With the Encrypt Function</title><link>http://www.sqlservercentral.com/Forums/Topic578-31-1.aspx</link><description>Comments posted to this topic are about the content posted at &lt;A HREF=http://www.sqlservercentral.com/columnists/bknight/encryptfunction.asp&gt;http://www.sqlservercentral.com/columnists/bknight/encryptfunction.asp&lt;/A&gt;</description><pubDate>Sun, 15 Jul 2001 00:00:00 GMT</pubDate><dc:creator>Brian Knight</dc:creator></item></channel></rss>