[PHP] crypt problem

2003-09-11 Thread Serge Grondin
Hi, I have a weird problem with the crypt function. If I do: ?php echo(CRYPT_SALT_LENGTH); echo(CRYPT_MD5); echo crypt(, 'aa'); echo crypt(, '$1$kTzSYf0n$'); ? It print: 12 1 aat2dQ.feSqBI $1qjC9EADQ1x6 It seem that the second password is not encrypted in MD5 but with DES. It

[PHP] crypt problem

2003-09-11 Thread Serge Grondin
Hi, I have a weird problem with the crypt function. If I do: ?php echo(CRYPT_SALT_LENGTH); echo(CRYPT_MD5); echo crypt(, 'aa'); echo crypt(, '$1$kTzSYf0n$'); It print: 12 1 aat2dQ.feSqBI $1qjC9EADQ1x6 It seem that the second password is not encrypted in MD5 but with DES. It

Re: [PHP] Crypt problem

2001-03-23 Thread Christian Reiniger
On Friday 23 March 2001 00:04, you wrote: you dont... as far as i know, crypt only works on = 8 chars it will truncate anything over 8. That's "traditional" Unix crypt. PHP's crypt() may also understand other crypt algorithms that can handle longer passwords. Check the manual. the problem

[PHP] Crypt problem

2001-03-22 Thread Randy Johnson
hello I use crypt to crypt member's passwords and use the following verify "$stored_password" is the encrypted, stored password. "$password" is the plain text password you just got from the form. ## Check the passwords $encrypted_password = crypt($password,$stored_password); if

RE: [PHP] Crypt problem

2001-03-22 Thread ..s.c.o.t.t.. [gts]
you dont... as far as i know, crypt only works on = 8 chars it will truncate anything over 8. perhaps try using md5 or mcrypt... -Original Message- From: Randy Johnson [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 22, 2001 4:33 PM To: [EMAIL PROTECTED] Subject: [PHP] Crypt