the idea of having guaranteed mixed password and salt lengths is not working.

fixed size password (as in DES) will always produce length 8 but only the first would get accepted.
the same logic basically also applies if the range is less than 8.
pull/1877/head
jsteube 5 years ago
parent a39f414def
commit 2c47c03e26

@ -341,11 +341,6 @@ sub init_db_word_rand
$len_max = ($len_max >= 31) ? 31 : $len_max;
}
my $db_len;
$db_len->{$len_min} = undef;
$db_len->{$len_max} = undef;
my $db_out;
my $idx = 0;
@ -361,10 +356,6 @@ sub init_db_word_rand
my $len = random_number ($len_min, $len_max);
next if exists $db_len->{$len};
$db_len->{$len} = undef;
$db_out->[$idx] = $len;
$idx++;
@ -394,11 +385,6 @@ sub init_db_salt_rand
$len_max = ($len_max >= 51) ? 51 : $len_max;
}
my $db_len;
$db_len->{$len_min} = undef;
$db_len->{$len_max} = undef;
my $db_out;
my $idx = 0;
@ -414,10 +400,6 @@ sub init_db_salt_rand
my $len = random_number ($len_min, $len_max);
next if exists $db_len->{$len};
$db_len->{$len} = undef;
$db_out->[$idx] = $len;
$idx++;

Loading…
Cancel
Save