MD5

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
dwfait
Forum Contributor
Posts: 113
Joined: Sun Aug 01, 2004 10:36 pm

MD5

Post by dwfait »

Hi again. I know to set a variable as MD5, you do MD5($variable), but how do you get an MD5 variable back to normal?
User avatar
nigma
DevNet Resident
Posts: 1094
Joined: Sat Jan 25, 2003 1:49 am

Post by nigma »

Practically, you can't.
dwfait
Forum Contributor
Posts: 113
Joined: Sun Aug 01, 2004 10:36 pm

Post by dwfait »

so if you wanted to see if a non-MD5 variable matched an MD5 variable, you would do:

if (MD5($nonMD5variable)==$MD5variable) {
Last edited by dwfait on Wed Aug 04, 2004 12:08 am, edited 1 time in total.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

yep
Post Reply