From e0fa99b2fd36b131cbfe607ea15634a3fbd47c7a Mon Sep 17 00:00:00 2001 From: Wan Cheuk Lun Date: Sat, 27 Oct 2018 11:13:15 +0800 Subject: [PATCH] Update keyFinder.js optimized the indentation for the if statement in line 18 --- Ciphers/keyFinder.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Ciphers/keyFinder.js b/Ciphers/keyFinder.js index 5b8bd791f..d0c12c225 100644 --- a/Ciphers/keyFinder.js +++ b/Ciphers/keyFinder.js @@ -10,14 +10,14 @@ function keyFinder(){ var str = document.getElementById("encryptedID").value; //get the input string var inStr = str.toString(); //convert the input to String var outStr = ""; // store the output value - document.getElementById("debug").innerHTML = shiftNum; + document.getElementById("debug").innerHTML = shiftNum; // debug: display the shifted number(s) for (var i=0; i<26; i++){ outStr = caesarCipherEncodeAndDecodeEngine(inStr,i); // use the encrytpion engine to decrypt the input string, shiftNum=i for ( var i=0; i