Encryption for the masses

By | | ColdFusion

0

In my last post I talked about using the cfusion_encrypt() and cfusion_decrypt() functions for creating URL & DB safe encrypted strings.

As I mentioned before this isn’t for everyone because the functions are undocumented and not available to all users, ie those of you on shared hosting plans.

Well I was browsing the web and came across this thread on the House of Fusion mailing list which offers an alternative way to encrypt/decrypt strings for DB insertion

The code look like so:

This produces a db safe string This decrypts the string

Pretty straight forward and this should work on your shared hosting environment too! Just be sure to check with your IHP to ensure you have access to these functions.

Written By:

Eric Jones

Eric is an avid ColdFusion developer and gamer who currently occupies a desk in Atlanta GA where is is a Senior Application Developer and lead developer for a new Open Source CMS. Eric also sits on the Board of Directors for his local CFUG.

Website
>> More Posts By Eric Jones

 

Comments on this entry are closed.