From 731cb1c9bce0641792f30c1682b856d84ded4d96 Mon Sep 17 00:00:00 2001 From: Gabriele Gristina Date: Fri, 11 Dec 2020 14:33:45 +0100 Subject: [PATCH] add missing md5 step to test module --- tools/test_modules/m03201.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/test_modules/m03201.pm b/tools/test_modules/m03201.pm index 5baa07cdf..3020409da 100644 --- a/tools/test_modules/m03201.pm +++ b/tools/test_modules/m03201.pm @@ -26,7 +26,9 @@ sub module_generate_hash $cost = $iter; } - my $hash = bcrypt ($word, sprintf ('$2a$%s$%s$', $cost, en_base64 ($salt))); + my $md5_word = md5_hex ($word); + + my $hash = bcrypt ($md5_word, sprintf ('$2a$%s$%s$', $cost, en_base64 ($salt))); return $hash; }