Mise à jour de GitLab prévue ce samedi 23 octobre 2021 à partir de 9h00 CET

Commit 50df4023 authored by Éloïs's avatar Éloïs
Browse files

[fix] custom scrypt parameters not applied

parent f190823f
......@@ -202,6 +202,12 @@ async function promptKey(conf: KeypairConfDTO, program: any) {
obfuscatedPasswd.length > 0 && obfuscatedPasswd == answersPasswd.passwd;
const salt = keepOldSalt ? program.salt : answersSalt.salt;
const passwd = keepOldPasswd ? program.passwd : answersPasswd.passwd;
conf.pair = await Scrypt(salt, passwd);
conf.pair = await Scrypt(
salt,
passwd,
program.keyN || 4096,
program.keyr || 16,
program.keyp || 1
);
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment