mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-03 13:09:15 -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],
|
||||
hasher = args[3],
|
||||
salt = Utils.convertToByteString(args[4].string, args[4].option),
|
||||
key = CryptoJS.EvpKDF(
|
||||
passphrase, // lgtm [js/insufficient-password-hash]
|
||||
salt,
|
||||
{
|
||||
keySize: keySize,
|
||||
hasher: CryptoJS.algo[hasher],
|
||||
iterations: iterations
|
||||
}
|
||||
);
|
||||
// prettier-ignore
|
||||
key = CryptoJS.EvpKDF(passphrase, salt, { // lgtm [js/insufficient-password-hash]
|
||||
keySize: keySize,
|
||||
hasher: CryptoJS.algo[hasher],
|
||||
iterations: iterations
|
||||
});
|
||||
|
||||
return key.toString(CryptoJS.enc.Hex);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue