mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-21 07:16:17 -04:00
Don't pad rail fence decode fixes #1069
This commit is contained in:
parent
c9d9730726
commit
2e0aa7ae87
1 changed files with 0 additions and 7 deletions
|
@ -59,13 +59,6 @@ class RailFenceCipherDecode extends Operation {
|
||||||
}
|
}
|
||||||
|
|
||||||
const cycle = (key - 1) * 2;
|
const cycle = (key - 1) * 2;
|
||||||
|
|
||||||
const rest = cipher.length % key;
|
|
||||||
|
|
||||||
if (rest !== 0) {
|
|
||||||
cipher = cipher + (" ".repeat(key - rest));
|
|
||||||
}
|
|
||||||
|
|
||||||
const plaintext = new Array(cipher.length);
|
const plaintext = new Array(cipher.length);
|
||||||
|
|
||||||
let j = 0;
|
let j = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue