Created
October 23, 2010 16:16
-
-
Save jonathancox/642376 to your computer and use it in GitHub Desktop.
encrypt
This file contains hidden or 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
<cfset algorithm = "AES"> | |
<cfset encoding = "hex"> | |
<cfset key = GenerateSecretKey(algorithm)> | |
<cfset str = "This is my secret string." > | |
<cfset enc = Encrypt(str, key, algorithm, encoding)> | |
<cfset dec = Decrypt(enc, key, algorithm, encoding)> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment