Page 1 of 1

MD5

Posted: Tue Aug 03, 2004 11:37 pm
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?

Posted: Tue Aug 03, 2004 11:43 pm
by nigma
Practically, you can't.

Posted: Wed Aug 04, 2004 12:07 am
by dwfait
so if you wanted to see if a non-MD5 variable matched an MD5 variable, you would do:

if (MD5($nonMD5variable)==$MD5variable) {

Posted: Wed Aug 04, 2004 12:08 am
by feyd
yep