Created
March 20, 2010 16:25
-
-
Save rtipton/338750 to your computer and use it in GitHub Desktop.
SQL -- EncryptByPassPhrase
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT EncryptByPassPhrase('Test-String', 'Bazinga') AS EncryptedString | |
--result encrypted value: 0x0100000058324693D3274FE65F2E975F9637059632CC3C9FD4C96F9E | |
SELECT CONVERT(VARCHAR(100),DecryptByPassPhrase('Test-String' | |
, 0x0100000058324693D3274FE65F2E975F9637059632CC3C9FD4C96F9E)) AS DeEncryptedString | |
--result decrypted value : Bazinga |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment