[PHP-DB] Unix crypt

2001-03-16 Thread Vanstaen Laurent

Hi all,
   Do you know if the php "crypt" function really works like the unix one ??
I mean, when I compare my password on my system (crypted with unix crypt) and my 
password crypted with php crypt, it's not the same. And the php crypt doesn't 
send twice the same answer.

Laurent Vanstaen

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DB] Unix crypt

2001-03-16 Thread omar cromwell mercado


Salt is the first two characters in a DES-encrypted
password. It is used as a modifier to
regularly-encrypted passwords to avoid the same
encryptions for similar passwords. You must extract
the salt first for your reference password, then use
it as a salt to encrypt the password you want
compared.

Omar Mercado

--- Vanstaen Laurent [EMAIL PROTECTED] wrote:
 Yes I know that (I've read the doc :) ) but what is
 the salt exactly ??


__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DB] Unix crypt

2001-03-16 Thread fabrizio . ermini

On 16 Mar 2001, at 10:53, Vanstaen Laurent wrote:

 Hi all,
Do you know if the php "crypt" function really works like the unix one ??
 I mean, when I compare my password on my system (crypted with unix crypt) and my 
 password crypted with php crypt, it's not the same. And the php crypt doesn't 
 send twice the same answer.
 
Because if you don't specify the salt, this will be randomly selected 
each time you call the function, so it will give different results each 
time.
As for the system password, keep in mind that different systems 
use different crypting algorithms; I guess that the right thing to do 
is carefully reading of both php's crypt manpage that the system's 
one. 

HTH, bye

/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/

Fabrizio Ermini   Alternate E-mail:
C.so Umberto, 7   [EMAIL PROTECTED]
loc. Meleto Valdarno  Mail on GSM: (keep it short!)
52020 Cavriglia (AR)  [EMAIL PROTECTED]

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]