Re: problem using crypt() without a salt

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




I have a problem with using crypt(), passing only one parameter (ie, no
salt).  When I do that, I get an empty string.  When I do use a salt, it
returns the expected value.  Does anybody have any ideas what might be
causing my problem?  It only happens when I run it on my linux server, but
not when I run it on my Windows dev machine.  Thanks in advance.

I am not sure what exactly is the problem. But check this from the manual:

If no salt is provided, PHP will auto-generate a standard two character salt by default, unless the default encryption type on the system is MD5, in which case a random MD5-compatible salt is generated.

http://gr2.php.net/manual/en/function.crypt.php

Perhaps your PHP compilation or the package are broken.

--
Thodoris


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux