fixed invalid argon2 key

This commit is contained in:
Andris Reinman 2020-10-08 10:57:26 +03:00
parent ff72ed5aa2
commit f56e89b14f

View file

@ -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;