hashes.enigma_machine

Note:

This algorithm has memory persistence. So multiple runs on the same runtime will carry junk and scramble the result!

Attributes

alphabets

code

gear_one

gear_three

gear_two

reflector

Functions

encode_or_decode(message, token)

engine(→ None)

menu()

rotator(→ None)

Module Contents

hashes.enigma_machine.encode_or_decode(message, token)
>>> encode_or_decode("hello", 3)
(['/', '0', "'", '%', ' '], 3)
hashes.enigma_machine.engine(input_character) None
hashes.enigma_machine.menu()
hashes.enigma_machine.rotator() None
hashes.enigma_machine.alphabets
hashes.enigma_machine.code = []
hashes.enigma_machine.gear_one
hashes.enigma_machine.gear_three
hashes.enigma_machine.gear_two
hashes.enigma_machine.reflector