Re: crypt()

From: Date: Fri, 14 Feb 2003 04:55:13 +0000
Subject: Re: crypt()
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-135548@lists.php.net to get a copy of this message
On Friday 14 February 2003 03:20, Edward Peloke wrote: > Is there anyway to make crypt() behave like md5() and give the same results > for the same string? All of the passwords for the db I am using had > crpyt() applied to them before they were entered in the db. How do I then > verify that passwords match? The example in the manual shows how to verify the password. > I just did this: > $test=crypt('test'); > print $test. "<br>"; > $test2=crypt('test'); > print $test2. "<br>"; > > and it printed out two completely different strings. I saw in the > functions list it was talking about salt but I am not sure what that means. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* Bank error in your favor. Collect $200. */

« previous php.general (#135548) next »