Name
Decrypt
Synopsis
Decrypt(encryptedstring, key
)
Decrypts encryptedstring
using
key
. The following example takes an
encrypted string and decrypts it:
<CFSET MyString = "This is the secret message."> <CFSET MyKey = "1a2"> <CFSET EncryptedString = Encrypt(MyString, MyKey)> <CFSET DecryptedString = Decrypt(EncryptedString, MyKey)> <CFOUTPUT> <B>Original String:</B> #MyString#<BR> <B>Key:</B> #MyKey# <P><B>Encrypted String:</B> #EncryptedString#<BR> <B>Decrypted String:</B> #DecryptedString# </CFOUTPUT>
Get Programming ColdFusion now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.