Encrypt and Decrypt In SQLServer

I used think often whether data whatever we are storing is secured or not so I browsed about Encrypt function in Msdn I got this

Check the Code below.Given for Both Encrypt and Decrypt

--------------Encrypt & Decrypt----------------------
USE tophat
GO
DECLARE @x nvarchar(4000)
DECLARE @code varbinary(8000)
SET @code = dbo.Encrypt ('This is my First Enigma Program ')
PRINT @code
SET @x = dbo.decrypt (@code)
PRINT @x
---------------------------------------------------------

Read Users' Comments (0)

0 Response to "Encrypt and Decrypt In SQLServer"

Post a Comment