wasn't working when
just inserting hashes generated with Crypt::PasswdMD5. Php and openssl
passwd -1 generate the correct system hashes.
Everything is good.
-jeremy
On Tue, 17 Jul 2001, tc lewis wrote:
On Tue, 17 Jul 2001, Jeremy Hansen wrote:
On Tue, 17 Jul 2001, tc lewis wrote:
try
I'd like to use php to do what I'm able to do in perl.
use String::Random;
use Crypt::PasswdMD5;
$foo = new String::Random;
$rand = $foo-randpattern(ss);
print Type in your password: ;
$password = STDIN;
$hash = unix_md5_crypt($password,$rand);
$salt = substr($hash,3,2);
print SUBSTR:
of functionality you need. my guess is that
crypt() would be suitable for you if it worked properly.
-tcl.
On Tue, 17 Jul 2001, Jeremy Hansen wrote:
I'd like to use php to do what I'm able to do in perl.
use String::Random;
use Crypt::PasswdMD5;
$foo = new String::Random;
$rand = $foo
Jul 2001, Jeremy Hansen wrote:
Well, I'm assuming, perhaps incorrectly that the perl modules I used
derived its md5 capabilities from the system. I did see all the comments
on the crypt() page and basically copied each one. When passing a md5
looking salt, crypt() doesn't seem to do
and 0. Lame. What's the answer to this.
-jeremy
you compiled php on the system it's running on? if you used a binary rpm
or something, and the system it was compiled on didn't support md5, then
it won't work.
-tcl.
On Tue, 17 Jul 2001, Jeremy Hansen wrote:
Well, I'm assuming, perhaps
On Tue, 17 Jul 2001, tc lewis wrote:
On Tue, 17 Jul 2001, Jeremy Hansen wrote:
On Tue, 17 Jul 2001, tc lewis wrote:
try:
php echo(CRYPT_SALT_LENGTH); ?
php echo(CRYPT_MD5); ?
or:
php echo constant(CRYPT_SALT_LENGTH); ?
php echo constant(CRYPT_MD5); ?
you should get
6 matches
Mail list logo