Current time: 11-16-2024, 10:48 PM Hello There, Guest! (LoginRegister)


Post Reply 
ftp passwd= *0
Author Message
saturnsuper Offline
Newbie
*

Posts: 7
Joined: Nov 2008
Reputation: 0
Post: #5
RE: ftp passwd= *0
gui/include/calc-functions.php:

function crypt_user_ftp_pass($data) {
$res = crypt($data, generate_rand_salt());
return $res;
}

function generate_rand_salt($min = 46, $max = 126) {
if (CRYPT_BLOWFISH == 1) {
$length = 13;
$pre = '$2$';
} elseif (CRYPT_MD5 == 1) {
$length = 9;
$pre = '$1$';
} elseif (CRYPT_EXT_DES == 1) {
$length = 9;
$pre = '';
} elseif (CRYPT_STD_DES == 1) {
$length = 2;
$pre = '';
}

What's wrong?
12-04-2008 09:50 PM
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: 4 Guest(s)