Current time: 05-17-2024, 03:44 PM Hello There, Guest! (LoginRegister)


Post Reply 
ftp passwd= *0
Author Message
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #10
RE: ftp passwd= *0
Hm, very strange.

I found something:
http://ch2.php.net/manual/en/function.crypt.php#71748
***
Blowfish doesn't use a sixteen character salt, it uses sixteen *bytes* of salt. So (courtesy of the docs for the Crypt::Eksblowfish::Bcrypt Perl module), it's:

"$2", optional "a", "$", two digits, "$", and 22 base 64 digits

If the salt is not long enough, crypt will return "*0" and you will have no idea what is wrong. Interestingly, the example in the documentation with a trailing '$' in the salt does not work. Replace the '$' with a '.', and the output appears as advertised.
***

So, try to set
--
if (CRYPT_BLOWFISH == 1) {
$length = 16;
$pre = '$2$';
--

maybe this improves the blowfish encryption on your system.

It seems you have to play a bit... :-)

Hope this helps

/J
12-06-2008 09:26 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
ftp passwd= *0 - saturnsuper - 11-27-2008, 05:46 PM
RE: ftp passwd= *0 - joximu - 11-27-2008, 07:22 PM
RE: ftp passwd= *0 - saturnsuper - 12-04-2008, 07:35 PM
RE: ftp passwd= *0 - joximu - 12-04-2008, 08:26 PM
RE: ftp passwd= *0 - saturnsuper - 12-04-2008, 09:50 PM
RE: ftp passwd= *0 - joximu - 12-04-2008, 10:52 PM
RE: ftp passwd= *0 - saturnsuper - 12-04-2008, 11:06 PM
RE: ftp passwd= *0 - joximu - 12-04-2008, 11:14 PM
RE: ftp passwd= *0 - saturnsuper - 12-06-2008, 07:48 AM
RE: ftp passwd= *0 - joximu - 12-06-2008 09:26 AM
RE: ftp passwd= *0 - saturnsuper - 12-08-2008, 02:43 AM
RE: ftp passwd= *0 - joximu - 12-08-2008, 05:39 PM
RE: ftp passwd= *0 - rurk - 10-19-2009, 10:54 PM
RE: ftp passwd= *0 - joximu - 10-19-2009, 11:56 PM
RE: ftp passwd= *0 - rurk - 10-20-2009, 12:27 AM
RE: ftp passwd= *0 - joximu - 10-20-2009, 12:31 AM
RE: ftp passwd= *0 - rurk - 10-20-2009, 12:56 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)