URL Safe Encrypt and Decrypt


/ Published in: ColdFusion
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <!--- Will encrypt --->
  2. <Cfset encryptedVar = ToBase64(Encrypt('Chris', 'Thekey')) >
  3.  
  4. <!--- And to decrypt --->
  5. <Cfset decryptedvar = decrypt(toString(toBinary(encryptedVar)), 'Thekey')

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.