Yeah, I'm getting 2 and 0. Lame. What's the answer to this.
Go back to your PHP source directory and start digging through config.log
and config.cache or even re-run the configure to see what's going on with
various crypt libraries.
If you installed them in a non-standard place, maybe PHP
This is all better now.
I compiled with libmcrypt and php-4.0.6 at the same time, so I'm not sure
exactly which caused the fix, but it works now. Also, the perl module I
was using seemed to generate apache stype md5 hash, which is another
reason why authenticating with postgres and md5 hashes
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:
not sure if you've gotten any help on this yet. perhaps test the
CRYPT_SALT_LENGTH and CRYPT_MD5 constants to make sure that your system
and compiled php support md5 via crypt(). also, what salts did you try?
note the comments at the bottom of
http://php.net/manual/en/function.crypt.php about
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 anything special with it and my
salt
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 output of 12 and 1 (not 2 and 0) if md5 is supported in
crypt(), i think.
you compiled php on
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 output of 12 and 1 (not 2 and 0) if md5 is supported in
crypt(), i think.
Yeah, I'm getting 2 and
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 output of 12 and 1 (not 2 and 0) if md5 is
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
9 matches
Mail list logo