News Feed
Sections




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

Ryan Malesevich's Blog:
MD5 to SHA-1 in PHP and MySQL (Part 1)
October 02, 2006 @ 09:31:00

Ryan Malesevich is taking a break from his look at some handy WordPress packages to share a small series on how to move from using MD5 hashes out to SHA-1 hashes for passwords in a MySQL database. He's posted part one today.

What if you're using MD5 in your web application and want to switch over to another encryption method. It's actually not that hard and I plan to cover them in this multi-part tutorial (I know I planned on writing this months ago, but it's better late then never). In this first part I plan on going over updating the database structure and a 'pseudo-code' of what will need to be done.

As mentioned, he gives the outline (pseudo-code) of how the process will work - basically, creating an SHA1 hash of the MD5 and the username in a "newpassword" column added to your database.

2 comments voice your opinion now!
md5 sha1 encryption mysql username generate pseudocode md5 sha1 encryption mysql username generate pseudocode


blog comments powered by Disqus

Similar Posts

Andrew Podner: Lithium: Getting Stuff From Your Database

HowTo Forge: Installing And Working With Xoops Under Ubuntu 6.10

DevShed: Creating the Admin Script for a PHP/MySQL Blogging System (Part 3)

DevShed: Using Directory Iterators and MySQL with Adapter Objects with PHP

Edin Kadribasic's Blog: PHP 4.4.3 for Windows with 5.0.22 MySQL libraries


Community Events





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


library opinion podcast framework series tool install laravel release introduction interview composer package language security community version symfony update voicesoftheelephpant

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