message_cipher.caesar_cipher module
Caesar Cipher module.
This module defines the CaesarCipher class, which is a concrete implementation of the Mod26Cipher class. The CaesarCipher class uses the Caesar cipher algorithm for encryption and decryption.
- class message_cipher.caesar_cipher.CaesarCipher
Bases:
Mod26Cipher
Encrypy and decrypt alphabetic text using the Ceasar Cipher algorithm.
- __init__(shift: int) None
Initialize a new Caesar cipher with shift of
shift
.- Parameters:
shift (int) – The number of letters to shift the alphabet by.
- Return type:
None