Posted By

ChrisCantley on 06/29/10


Tagged

toString decrypt encrypt ToBase64


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

johnw


URL Safe Encrypt and Decrypt


 / Published in: ColdFusion
 

  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  

You need to login to post a comment.