Re: MD5 (' ')

From: Date: Wed, 29 Aug 2001 15:24:12 +0000
Subject: Re: MD5 (' ')
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-11957@lists.php.net to get a copy of this message
I had a similar problem. I think it has to do with the character encoding of the output hash. My only resort (very ugly!!) was to have a perl script wich calculated the hash. The perl script looks like: #!/usr/bin/perl use Digest::MD5 qw(md5_base64); print md5_base64($ARGV[0]); Maybe your problem is similar. The perl MD5 modules seems to have more encoding options than the php one. Have a look it might give you a clue as to where the problem is. Andre At 18:10 29/08/2001 +0300, Andrey Hristov wrote:
I'm not so sure, but there is another parameter to md5() - the salt. Andrey Hristov IcyGEN Corporation http://www.icygen.com 99% ----- Original Message ----- From: "Ignat Ikryanov" <Ignat.Ikryanov@ibd.ru> To: <php-db@lists.php.net> Sent: Wednesday, August 29, 2001 4:45 PM Subject: [PHP-DB] MD5 (' ') Hi! I use md5 function to encrypt users password stored in MySql database. When I try encrypt string 'asdf' using md5 function I retrieve: 912ec803b2ce49e4a541068d495ab570 But in 'shodow' file of my linux (Debian 2.2 used MD5 to encrypt users password) 'asdf' string looks like: $1$arjq575D$rnHVFfcQE7.h2EgSU7yzQ1 Why results are different? -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net For additional commands, e-mail: php-db-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net


« previous php.db (#11957) next »