ciphers.simple_substitution_cipher

Attributes

LETTERS

Functions

check_valid_key(→ None)

decrypt_message(→ str)

encrypt_message(→ str)

get_random_key(→ str)

main(→ None)

translate_message(→ str)

Module Contents

ciphers.simple_substitution_cipher.check_valid_key(key: str) None
ciphers.simple_substitution_cipher.decrypt_message(key: str, message: str) str
>>> decrypt_message('LFWOAYUISVKMNXPBDCRJTQEGHZ', 'Ilcrism Olcvs')
'Harshil Darji'
ciphers.simple_substitution_cipher.encrypt_message(key: str, message: str) str
>>> encrypt_message('LFWOAYUISVKMNXPBDCRJTQEGHZ', 'Harshil Darji')
'Ilcrism Olcvs'
ciphers.simple_substitution_cipher.get_random_key() str
ciphers.simple_substitution_cipher.main() None
ciphers.simple_substitution_cipher.translate_message(key: str, message: str, mode: str) str
ciphers.simple_substitution_cipher.LETTERS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'