ciphers.simple_substitution_cipher ================================== .. py:module:: ciphers.simple_substitution_cipher Attributes ---------- .. autoapisummary:: ciphers.simple_substitution_cipher.LETTERS Functions --------- .. autoapisummary:: ciphers.simple_substitution_cipher.check_valid_key ciphers.simple_substitution_cipher.decrypt_message ciphers.simple_substitution_cipher.encrypt_message ciphers.simple_substitution_cipher.get_random_key ciphers.simple_substitution_cipher.main ciphers.simple_substitution_cipher.translate_message Module Contents --------------- .. py:function:: check_valid_key(key: str) -> None .. py:function:: decrypt_message(key: str, message: str) -> str >>> decrypt_message('LFWOAYUISVKMNXPBDCRJTQEGHZ', 'Ilcrism Olcvs') 'Harshil Darji' .. py:function:: encrypt_message(key: str, message: str) -> str >>> encrypt_message('LFWOAYUISVKMNXPBDCRJTQEGHZ', 'Harshil Darji') 'Ilcrism Olcvs' .. py:function:: get_random_key() -> str .. py:function:: main() -> None .. py:function:: translate_message(key: str, message: str, mode: str) -> str .. py:data:: LETTERS :value: 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'