PHP: Password Encryption and Retrieval Support

Encrypt passwords in case anyone hacks your server and reads the password database.

If you're running a system that password-protects sensitive data, you'll also want to encrypt the passwords themselves in case anyone hacks your server and reads the password database. Allan runs through the various options available in both MySQL and PHP, dealing with one-way encryption and methods of decrypting passwords so that password reminders can be sent to the user, for example.

This tutorial stands alone, but can also be optionally used to extend the registration and confirmation suite that we built previously (part 1, part2, part 3).

 

Please note that this article forms part of a chapter in the DMXzone e-book PHP Web Applications for Dreamweaver: Juicy Solutions for the Busy Developer.

 

$2.89
- OR -

Allan Kent

Allan KentAllan comes from Cape Town, South Africa. He has been implicated in writing for several WROX, glasshaus, Wiley and Apress publications, generally in the 'cool stuff that PHP can do' sections.

You can catch up with him at his website http://www.mediafrenzy.co.za.

See All Postings From Allan Kent >>