Skip to content

Instantly share code, notes, and snippets.

@christophervigliotti
Created February 12, 2020 15:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save christophervigliotti/8a5cbd5d637c4df957345d640334aa11 to your computer and use it in GitHub Desktop.
Save christophervigliotti/8a5cbd5d637c4df957345d640334aa11 to your computer and use it in GitHub Desktop.
<cfscript>
key = 'yer mom';
secret = 'smells';
encrypted=encrypt(secret, key, "CFMX_COMPAT", "hex");
decrypted=decrypt(encrypted, key, "CFMX_COMPAT", "hex");
WriteDump([
'key: #key#',
'secret: #secret#',
'encrypted: #encrypted#',
'decrypted: #decrypted#',
cgi
]);
abort;
</cfscript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment