* Find character index based on ASCII order * @param {String} char - Character index to be found * @return {Boolean} Character index
(char)
| 58 | * @return {Boolean} Character index |
| 59 | */ |
| 60 | function findCharIndex(char) { |
| 61 | return char.toUpperCase().charCodeAt(0) - 'A'.charCodeAt(0) |
| 62 | } |
| 63 | |
| 64 | /** |
| 65 | * Encrypt a Affine Cipher |