Encryption for the masses

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
toBase64(encrypt("#string2beEncrypted#","#key#"))>

This decrypts the string
decrypt(tostring(tobinary("#secret_word_encrypted#")),"#key#")>

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.

Replay

Category: software Time: 2004-07-10 Views: 1
Tags:

Related post

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development

search

Front-end development

Database

development tools

Open Platform

Javascript development

.NET development

cloud computing

server

Copyright (C) avrocks.com, All Rights Reserved.

processed in 0.230 (s). 12 q(s)