Encrypt a string in SQL Server 2000 - Undocumented Procs
SQL
Thread Starter: Paschal
Started:
Replies: 1

Ireland .NET Developer Alliance :: Forums » Technologies » SQL » Encrypt a string in SQL Server 2000 - Undocumented Procs
« Previous Thread Next Thread »
   01 Nov 2004, 8:54
Paschal is not online. Last active: 21/01/2005 18:37:42 Paschal
Encrypt a string in SQL Server 2000 - Undocumented Procs

While reading through some blogs this morning, I found out that you can encrypt inside SQL Server .

This is an alternative solution to encrypting passwords which I wrote a security component to do a while back.  Sample code provided from the original post below:

DECLARE @ClearPIN varchar(255)
DECLARE @EncryptedPIN varbinary(255)
SELECT @ClearPIN = 'test'
SELECT @EncryptedPIN = CONVERT(varbinary(255), pwdencrypt(@ClearPIN))
SELECT pwdcompare(@ClearPIN, @EncryptedPIN, 0)

 


  
   29 Nov 2004, 5:54
ray is not online. Last active: 20/01/2005 17:16:21 ray
Re: Encrypt a string in SQL Server 2000 - Undocumented Procs

 

It is worth taking a look at this article before choosing SQL Server Encryption:

 

On second thoughts, go find the article yourselves...


 
    
  Page 1 of 1 (2 items)
Ireland .NET Developer Alliance :: Forums » Technologies » SQL » Encrypt a string in SQL Server 2000 - Undocumented Procs

Powered by Community Server :: Forums