From f56e89b14fdfd582b1f011e92e2c562344696590 Mon Sep 17 00:00:00 2001 From: Andris Reinman Date: Thu, 8 Oct 2020 10:57:26 +0300 Subject: [PATCH] fixed invalid argon2 key --- lib/hashes.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/hashes.js b/lib/hashes.js index 9796663a..9ff61590 100644 --- a/lib/hashes.js +++ b/lib/hashes.js @@ -89,8 +89,8 @@ function checkHashSupport(hash) { case '6': return { result: true, algo: 'unixcrypt' }; - case 'argon2': case 'argon2d': + case 'argon2i': case 'argon2id': return { result: true, algo: 'argon2' }; @@ -123,8 +123,8 @@ module.exports.shouldRehash = hash => { // Always rehash the following algos case '6': // sha512crypt case '1': // md5 - case 'argon2': // Argon2 (mostly because we are using an inefficient implementation) - case 'argon2d': + case 'argon2d': // Argon2 (mostly because we are using an inefficient implementation) + case 'argon2i': case 'argon2id': return true;