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