mrandrewmills / substitution-cipher

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

refactor common code in buildKeyword and buildCipherAlphabet methods #3

Closed mrandrewmills closed 9 years ago

mrandrewmills commented 9 years ago

The buildKeyword() and buildCipherAlphabet() methods share a decent amount of repeated code. This should be put into a separate function to adhere to DRY principle.

mrandrewmills commented 9 years ago

Done.