Re: AW: AW: AW: [vchkpw] Clear Passwords

2003-08-25 Thread Paul L. Allen
Andrej Dragicevic writes: > Here is a sample. > > $pwd = "\$1\$LObTh\$LcOWUS4U6glAr2vB4oycr0"; // this is the vpopmail > password > $decrypted = "test"; > > if ( crypt($decrypted, "\$1\$LObTh\$") == $pwd) > echo "success!"; > else > echo "failure!"; > ?> That approach works but

Re: AW: AW: AW: [vchkpw] Clear Passwords

2003-08-25 Thread Evren Yurtesen
Hmm what happens if you give 098f6bcd4621d373cade4e832627b4f6 as salt? and test with the password from vpopmail (the users decrypted password) ? Evren On Mon, 25 Aug 2003, Andrej Dragicevic wrote: > Here is a sample. > > $pwd = "\$1\$LObTh\$LcOWUS4U6glAr2vB4oycr0"; // this is the vpopmail > pas

AW: AW: AW: [vchkpw] Clear Passwords

2003-08-25 Thread Andrej Dragicevic
Here is a sample. $pwd = "\$1\$LObTh\$LcOWUS4U6glAr2vB4oycr0"; // this is the vpopmail password $decrypted = "test"; Thanks to the list, Evren and Rudi to help me understand something about cryptography. Andrej. -Ursprüngliche Nachricht- Von: Evren Yurtesen [mailto:[EMAIL PROTECTED]