mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-09 15:55:01 -04:00
Fix RC4Drop
CryptoJS uses words instead of bytes in RC4Drop.
This commit is contained in:
parent
c9d9730726
commit
42cdb1feab
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ class RC4Drop extends Operation {
|
|||
run(input, args) {
|
||||
const message = format[args[1]].parse(input),
|
||||
passphrase = format[args[0].option].parse(args[0].string),
|
||||
drop = args[3],
|
||||
drop = args[3]/4,
|
||||
encrypted = CryptoJS.RC4Drop.encrypt(message, passphrase, { drop: drop });
|
||||
|
||||
return encrypted.ciphertext.toString(format[args[2]]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue