Skip to content

Instantly share code, notes, and snippets.

@jonathancox
Created October 23, 2010 16:16
Show Gist options
  • Save jonathancox/642376 to your computer and use it in GitHub Desktop.
Save jonathancox/642376 to your computer and use it in GitHub Desktop.
encrypt
<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