We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a75bca commit e0fa99bCopy full SHA for e0fa99b
1 file changed
Ciphers/keyFinder.js
@@ -10,14 +10,14 @@ function keyFinder(){
10
var str = document.getElementById("encryptedID").value; //get the input string
11
var inStr = str.toString(); //convert the input to String
12
var outStr = ""; // store the output value
13
- document.getElementById("debug").innerHTML = shiftNum;
+ document.getElementById("debug").innerHTML = shiftNum; // debug: display the shifted number(s)
14
for (var i=0; i<26; i++){
15
outStr = caesarCipherEncodeAndDecodeEngine(inStr,i); // use the encrytpion engine to decrypt the input string, shiftNum=i
16
for ( var i=0; i<wordbank.length; i++){
17
if (wordbank[i] == outStr[i]+outStr[i+1]{
18
- key=i;
19
- }
+ key=i;
+ }
20
}
21
22
- return key;
+ return key;
23
0 commit comments