In the unit tests, convert the hexdigest to lowercase to match the behavior of 'module_hash_encode'

pull/3288/head
tweqx 2 years ago
parent fb065e6e8c
commit 97a119da82

@ -19,7 +19,7 @@ sub module_generate_hash
my $digest = blake2b_hex ($word . $salt);
my $hash = sprintf ("\$BLAKE2\$%s:%s", $digest, $salt);
my $hash = sprintf ("\$BLAKE2\$%s:%s", lc ($digest), $salt);
return $hash;
}

@ -19,7 +19,7 @@ sub module_generate_hash
my $digest = blake2b_hex ($salt . $word);
my $hash = sprintf ("\$BLAKE2\$%s:%s", $digest, $salt);
my $hash = sprintf ("\$BLAKE2\$%s:%s", lc ($digest), $salt);
return $hash;
}

Loading…
Cancel
Save