Created
May 2, 2017 00:27
-
-
Save SimonLlewellyn/da393a97ac41f3d589846ea369b4dcdb to your computer and use it in GitHub Desktop.
Coldfusion Encrypt/Decrypt
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 application.pkey = "whateveryouwant"> | |
<cffunction name="epwd" output="no" access="remote"> | |
<cfargument name="pwd" required="yes"> | |
<cfset done = Encrypt(arguments.pwd,application.pkey,'AES/CBC/PKCS5Padding','HEX')> | |
<cfreturn done /> | |
</cffunction> | |
<cffunction name="dpwd" output="no"> | |
<cfargument name="pwd" required="yes"> | |
<cfset done = Decrypt(arguments.pwd,application.pkey,'AES/CBC/PKCS5Padding','HEX')> | |
<cfreturn done /> | |
</cffunction> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment