News Feed
Jobs Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Joshua Houle's Blog:
Easy PHP en/decryption tutorial
May 26, 2006 @ 06:14:07

On his blog today, Joshua Houle has posted a tutorial that looks at some simple encrpytion/decryption functions that he's whipped up for his everyday use.

Our first function is our encryption function called createsecretmessage. It takes two arguments, the message we want to encrypt and the key. The second function is the decryption function. It also takes two arguements, the encrypted message and the key.

Before he even gets into the code, he explains how the encryption portion of it works, complete with a chart representing the encryption process. Following this,the two functions are explained, each with their own code to make cut and paste simple.

1 comment voice your opinion now!
encryption decryption function simple encryption decryption function simple


blog comments powered by Disqus

Similar Posts

Michael Kimsal's Blog: Me griping about PHP :) (closures this time)

PHP-GTK Community Site: GTKSMS & freeFAX - Fax Over IP

Community News: Zipline Interactive Updates PHP Function Finder (Windows Gadget)

SitePoint PHP Blog: Risks and Challenges of Password Hashing

Vance Lucas: Valitron: The Simple Validation Library That Doesn't Suck


Community Events











Don't see your event here?
Let us know!


performance composer database hhvm hack threedevsandamaybe symfony2 component security framework release application introduction install package facebook podcast project language unittest

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework