Skip to content

Instantly share code, notes, and snippets.

@jonathancox
jonathancox / cf_encrypt
Created October 23, 2010 16:16
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)>