Skip to content
This repository was archived by the owner on Nov 7, 2023. It is now read-only.

Refactored, standarised #1

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Conversation

kameranis
Copy link

Liked your work, thought to make it more elegant. Basically changed all the names, added comments
EVERYWERE, made a couple new methods, modified _create_digraphs as a generator.

0. Converted all the tabs to 4 space
1. Added comments to every (e*v*e*r*y) class and method
2. Renamed methods and variables to match pep8
3. ommision_rules made class variable instead of instance variable
4. Tried to distinguish between public and private methods,
prepending _ to private methods
5. Add _check_pad since every pad must be checked against the same criteria
which_pad is used for debugging reasons
6. Add password arguement in __init__ (You don't usually change the password)
7. Convert _get_digraphs to a generator and wrote sleekier encrypt and decrypt
8. Removed some unnecessary parentheses in _encrypt/decrypt_digraph
9. Broke exception message errors in many lines and thus produce a very bad
result of leaving too many spaces in them... Must fix
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant