mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-07 06:57:12 -04:00
fix codeql warning
This commit is contained in:
parent
eadc74e4f4
commit
3e2dddc56a
1 changed files with 6 additions and 9 deletions
|
@ -67,15 +67,12 @@ class DeriveEVPKey extends Operation {
|
||||||
iterations = args[2],
|
iterations = args[2],
|
||||||
hasher = args[3],
|
hasher = args[3],
|
||||||
salt = Utils.convertToByteString(args[4].string, args[4].option),
|
salt = Utils.convertToByteString(args[4].string, args[4].option),
|
||||||
key = CryptoJS.EvpKDF(
|
// prettier-ignore
|
||||||
passphrase, // lgtm [js/insufficient-password-hash]
|
key = CryptoJS.EvpKDF(passphrase, salt, { // lgtm [js/insufficient-password-hash]
|
||||||
salt,
|
|
||||||
{
|
|
||||||
keySize: keySize,
|
keySize: keySize,
|
||||||
hasher: CryptoJS.algo[hasher],
|
hasher: CryptoJS.algo[hasher],
|
||||||
iterations: iterations
|
iterations: iterations
|
||||||
}
|
});
|
||||||
);
|
|
||||||
|
|
||||||
return key.toString(CryptoJS.enc.Hex);
|
return key.toString(CryptoJS.enc.Hex);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue