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;