mirror of
https://github.com/gchq/CyberChef
synced 2025-12-15 07:43:22 +00:00
Fix Ciphersaber2 key concatenation
The concat method does not handle typed arrays as arguments.
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
* @license Apache-2.0
|
||||
*/
|
||||
export function encode(tempIVP, key, rounds, input) {
|
||||
const ivp = new Uint8Array(key.concat(tempIVP));
|
||||
const ivp = new Uint8Array([...key, ...tempIVP]);
|
||||
const state = new Array(256).fill(0);
|
||||
let j = 0, i = 0;
|
||||
const result = [];
|
||||
|
||||
Reference in New Issue
Block a user