mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-22 15:56:16 -04:00
ESM: Tidied up recently ported ops
This commit is contained in:
parent
905bc6699e
commit
6768038a2f
14 changed files with 47 additions and 27 deletions
|
@ -75,10 +75,18 @@ class XORBruteForce extends Operation {
|
|||
* @returns {string}
|
||||
*/
|
||||
run(input, args) {
|
||||
const [keyLength, sampleLength, sampleOffset, scheme, nullPreserving, printKey, outputHex, /* ignore element */] = args, //eslint-disable-line array-bracket-spacing
|
||||
crib = args[7].toLowerCase();
|
||||
|
||||
const output = [];
|
||||
const [
|
||||
keyLength,
|
||||
sampleLength,
|
||||
sampleOffset,
|
||||
scheme,
|
||||
nullPreserving,
|
||||
printKey,
|
||||
outputHex,
|
||||
rawCrib
|
||||
] = args,
|
||||
crib = rawCrib.toLowerCase(),
|
||||
output = [];
|
||||
let result,
|
||||
resultUtf8,
|
||||
record = "";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue