From 2c47c03e266c51141965cf5c9828448a7cf4c793 Mon Sep 17 00:00:00 2001 From: jsteube Date: Wed, 16 Jan 2019 20:56:40 +0100 Subject: [PATCH] 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. --- tools/test.pl | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/tools/test.pl b/tools/test.pl index 673ae7547..92f90a3e9 100755 --- a/tools/test.pl +++ b/tools/test.pl @@ -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++;