Error in salt size in tform.inc.php.orig
See below to details.
PHP salt for crypt function must be twelve character.
in tform.inc.php the salt is 15 character.
*** tform.inc.php.orig 2009-12-03 10:51:13.000000000 +0100 --- tform.inc.php 2009-12-04 10:45:15.000000000 +0100
*** 783,789 ****
$sql_insert_key .= "$key
, ";
if($field['encryption'] == 'CRYPT') {
$salt="1
";
! for (n=0;
n<11;$n++) {
$salt.=chr(mt_rand(64,126));
}
salt.="
";
--- 783,789 ----
$sql_insert_key .= "$key
, ";
if($field['encryption'] == 'CRYPT') {
$salt="1
";
! for (n=0;
n<8;$n++) {
$salt.=chr(mt_rand(64,126));
}
salt.="
";
*** 816,822 ****
if($field['formtype'] == 'PASSWORD') {
if(isset($field['encryption']) && $field['encryption'] == 'CRYPT') {
$salt="1
";
! for (n=0;
n<11;$n++) {
$salt.=chr(mt_rand(64,126));
}
salt.="
";
--- 816,822 ----
if($field['formtype'] == 'PASSWORD') {
if(isset($field['encryption']) && $field['encryption'] == 'CRYPT') {
$salt="1
";
! for (n=0;
n<8;$n++) {
$salt.=chr(mt_rand(64,126));
}
salt.="
";