ciphers.rsa_cipher ================== .. py:module:: ciphers.rsa_cipher Attributes ---------- .. autoapisummary:: ciphers.rsa_cipher.BYTE_SIZE ciphers.rsa_cipher.DEFAULT_BLOCK_SIZE Functions --------- .. autoapisummary:: ciphers.rsa_cipher.decrypt_message ciphers.rsa_cipher.encrypt_and_write_to_file ciphers.rsa_cipher.encrypt_message ciphers.rsa_cipher.get_blocks_from_text ciphers.rsa_cipher.get_text_from_blocks ciphers.rsa_cipher.main ciphers.rsa_cipher.read_from_file_and_decrypt ciphers.rsa_cipher.read_key_file Module Contents --------------- .. py:function:: decrypt_message(encrypted_blocks: list[int], message_length: int, key: tuple[int, int], block_size: int = DEFAULT_BLOCK_SIZE) -> str .. py:function:: encrypt_and_write_to_file(message_filename: str, key_filename: str, message: str, block_size: int = DEFAULT_BLOCK_SIZE) -> str .. py:function:: encrypt_message(message: str, key: tuple[int, int], block_size: int = DEFAULT_BLOCK_SIZE) -> list[int] .. py:function:: get_blocks_from_text(message: str, block_size: int = DEFAULT_BLOCK_SIZE) -> list[int] .. py:function:: get_text_from_blocks(block_ints: list[int], message_length: int, block_size: int = DEFAULT_BLOCK_SIZE) -> str .. py:function:: main() -> None .. py:function:: read_from_file_and_decrypt(message_filename: str, key_filename: str) -> str .. py:function:: read_key_file(key_filename: str) -> tuple[int, int, int] .. py:data:: BYTE_SIZE :value: 256 .. py:data:: DEFAULT_BLOCK_SIZE :value: 128