mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-21 15:26:16 -04:00
Converted JS operations
Deleted legacy files, neatened args in other ported ops
This commit is contained in:
parent
95f81ad740
commit
176e83a79f
13 changed files with 236 additions and 554 deletions
|
@ -63,9 +63,7 @@ class DESDecrypt extends Operation {
|
|||
run(input, args) {
|
||||
const key = Utils.convertToByteString(args[0].string, args[0].option),
|
||||
iv = Utils.convertToByteArray(args[1].string, args[1].option),
|
||||
mode = args[2],
|
||||
inputType = args[3],
|
||||
outputType = args[4];
|
||||
[,, mode, inputType, outputType] = args;
|
||||
|
||||
if (key.length !== 8) {
|
||||
return `Invalid key length: ${key.length} bytes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue