mirror of
https://github.com/gchq/CyberChef.git
synced 2025-06-14 10:14:53 -04:00
Removed input extraction from try catch block to seperate input errors from key errors
This commit is contained in:
parent
01edeb28a6
commit
d3f943bee4
1 changed files with 1 additions and 1 deletions
|
@ -52,8 +52,8 @@ class XOR extends Operation {
|
|||
* @returns {byteArray}
|
||||
*/
|
||||
run(input, args) {
|
||||
input = new Uint8Array(input);
|
||||
try {
|
||||
input = new Uint8Array(input);
|
||||
const key = Utils.convertToByteArray(args[0].string || "", args[0].option),
|
||||
[, scheme, nullPreserving] = args;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue