ciphers.beaufort_cipher

Author: Mohit Radadiya

Attributes

dict1

dict2

Functions

cipher_text(→ str)

generate_key(→ str)

main(→ None)

original_text(→ str)

Module Contents

ciphers.beaufort_cipher.cipher_text(message: str, key_new: str) str
>>> cipher_text("THE GERMAN ATTACK","SECRETSECRETSECRE")
'BDC PAYUWL JPAIYI'
ciphers.beaufort_cipher.generate_key(message: str, key: str) str
>>> generate_key("THE GERMAN ATTACK","SECRET")
'SECRETSECRETSECRE'
ciphers.beaufort_cipher.main() None
ciphers.beaufort_cipher.original_text(cipher_text: str, key_new: str) str
>>> original_text("BDC PAYUWL JPAIYI","SECRETSECRETSECRE")
'THE GERMAN ATTACK'
ciphers.beaufort_cipher.dict1
ciphers.beaufort_cipher.dict2