mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-03 13:09:15 -04:00
fix workflows
This commit is contained in:
parent
ab0bc52d3c
commit
eadc74e4f4
3 changed files with 11 additions and 9 deletions
4
.github/workflows/pull_requests.yml
vendored
4
.github/workflows/pull_requests.yml
vendored
|
@ -21,8 +21,8 @@ jobs:
|
|||
npm install
|
||||
npm run setheapsize
|
||||
|
||||
- name: Lint
|
||||
run: npm run style && npx grunt lint && git diff --exit-code
|
||||
- name: Format & Lint
|
||||
run: (npm run style || npm run lint) && git diff --exit-code
|
||||
|
||||
- name: Unit Tests
|
||||
run: |
|
||||
|
|
|
@ -191,7 +191,6 @@
|
|||
"testuidev": "npx nightwatch --env=dev",
|
||||
"lint": "npx grunt lint",
|
||||
"style": "prettier --write .",
|
||||
"check-style": "prettier --check .",
|
||||
"postinstall": "npx grunt exec:fixCryptoApiImports && npx grunt exec:fixSnackbarMarkup",
|
||||
"newop": "node --experimental-modules --experimental-json-modules src/core/config/scripts/newOperation.mjs",
|
||||
"minor": "node --experimental-modules --experimental-json-modules src/core/config/scripts/newMinorVersion.mjs",
|
||||
|
|
|
@ -67,12 +67,15 @@ class DeriveEVPKey extends Operation {
|
|||
iterations = args[2],
|
||||
hasher = args[3],
|
||||
salt = Utils.convertToByteString(args[4].string, args[4].option),
|
||||
key = CryptoJS.EvpKDF(passphrase, salt, {
|
||||
// lgtm [js/insufficient-password-hash]
|
||||
keySize: keySize,
|
||||
hasher: CryptoJS.algo[hasher],
|
||||
iterations: iterations
|
||||
});
|
||||
key = CryptoJS.EvpKDF(
|
||||
passphrase, // lgtm [js/insufficient-password-hash]
|
||||
salt,
|
||||
{
|
||||
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