ciphers.mono_alphabetic_ciphers

Attributes

LETTERS

Functions

decrypt_message(→ str)

encrypt_message(→ str)

main(→ None)

translate_message(→ str)

Module Contents

ciphers.mono_alphabetic_ciphers.decrypt_message(key: str, message: str) str
>>> decrypt_message("QWERTYUIOPASDFGHJKLZXCVBNM", "Hello World")
'Itssg Vgksr'
ciphers.mono_alphabetic_ciphers.encrypt_message(key: str, message: str) str
>>> encrypt_message("QWERTYUIOPASDFGHJKLZXCVBNM", "Hello World")
'Pcssi Bidsm'
ciphers.mono_alphabetic_ciphers.main() None
ciphers.mono_alphabetic_ciphers.translate_message(key: str, message: str, mode: Literal['encrypt', 'decrypt']) str
>>> translate_message("QWERTYUIOPASDFGHJKLZXCVBNM","Hello World","encrypt")
'Pcssi Bidsm'
ciphers.mono_alphabetic_ciphers.LETTERS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'