mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-21 23:36:16 -04:00
Fixed some typos
This commit is contained in:
parent
223743e3b5
commit
9d73127cae
31 changed files with 36 additions and 36 deletions
|
@ -55,7 +55,7 @@ class VigenèreDecode extends Operation {
|
|||
keyIndex = alphabet.indexOf(chr);
|
||||
msgIndex = alphabet.indexOf(input[i]);
|
||||
// Subtract indexes from each other, add 26 just in case the value is negative,
|
||||
// modulo to remove if neccessary
|
||||
// modulo to remove if necessary
|
||||
output += alphabet[(msgIndex - keyIndex + alphabet.length) % 26];
|
||||
} else if (alphabet.indexOf(input[i].toLowerCase()) >= 0) {
|
||||
chr = key[(i - fail) % key.length].toLowerCase();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue