Re: [PHP] crypt() and md5

2001-04-23 Thread Niklas Neumann
Hello again, [...] > A bit mistakable I think. > I'll give the translator a wink. ... if i can find a way to contact him. Anybody knows how to get a contact for the german translation of the PHP documentation? Their names are listed on the front page of the manual but no email addresses. N

Re: [PHP] crypt() and md5

2001-04-23 Thread Niklas Neumann
Hello, > If your system's crypt() function supports standard DES crypt, then that > will be the default if you do not supply a salt. PHP will generate a > random DES salt for you. If you supply your own random MD5 salt and your > system's crypt() function supports MD5, then it will generate an

Re: [PHP] crypt() and md5

2001-04-23 Thread Rasmus Lerdorf
If your system's crypt() function supports standard DES crypt, then that will be the default if you do not supply a salt. PHP will generate a random DES salt for you. If you supply your own random MD5 salt and your system's crypt() function supports MD5, then it will generate an md5-encrypted st

Re: [PHP] crypt() and md5

2001-04-23 Thread Niklas Neumann
Hy, > That means that you do have MD5 crypt() support. If you simply provide a > salt that starts with $1$ you should get an md5-encrypted password. I know how to do it manually. But isn't crypt supposed to choose MD5-hashing if it is available on the system php is running on? I use PHP 4.0.4p

Re: [PHP] crypt() and md5

2001-04-23 Thread Rasmus Lerdorf
That means that you do have MD5 crypt() support. If you simply provide a salt that starts with $1$ you should get an md5-encrypted password. If you look in a passwd or shadow file that contains md5'ed passwords you will see something like this: $1$rZelmysN$Gj0rbqD76STIotGExxpna1

[PHP] crypt() and md5

2001-04-23 Thread Niklas Neumann
Hello all, i would like to crypt a password as secure as possible. The documentation says crypt() will use DES unless MD5 is available. But in my case this doesn't seem to work. 'echo CRYPT_STD_DES ;' returns 1 'echo CRYPT_EXT_DES;' returns 0 'echo CRYPT_MD5;' returns 1 'e