mirror of
https://github.com/nodemailer/wildduck.git
synced 2024-12-27 02:10:52 +08:00
fixed invalid argon2 key
This commit is contained in:
parent
ff72ed5aa2
commit
f56e89b14f
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue