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
dwfait
Forum Contributor
Posts: 113 Joined: Sun Aug 01, 2004 10:36 pm
Post
by dwfait » Tue Aug 03, 2004 11:37 pm
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?
nigma
DevNet Resident
Posts: 1094 Joined: Sat Jan 25, 2003 1:49 am
Post
by nigma » Tue Aug 03, 2004 11:43 pm
Practically, you can't.
dwfait
Forum Contributor
Posts: 113 Joined: Sun Aug 01, 2004 10:36 pm
Post
by dwfait » Wed Aug 04, 2004 12:07 am
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.
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Wed Aug 04, 2004 12:08 am
yep