mrandrewmills / substitution-cipher

JavaScript object for playing with simple monoalphabetic substitution ciphers.
0 stars 0 forks source link

auto initialize cipherAlphabet when keyword is created? #1

Closed mrandrewmills closed 9 years ago

mrandrewmills commented 9 years ago

Currently, you have to invoke buildKeyword() and then buildCipherAlphabet() before you can start encrypting or decrypting. I'm wondering if it wouldn't be better/easier to have buildKeyword() automatically trigger buildCipherAlphabet() automatically.

Thoughts?

mrandrewmills commented 9 years ago

Done.