ciphers.rsa_cipher

Attributes

BYTE_SIZE

DEFAULT_BLOCK_SIZE

Functions

decrypt_message(→ str)

encrypt_and_write_to_file(→ str)

encrypt_message(→ list[int])

get_blocks_from_text(→ list[int])

get_text_from_blocks(→ str)

main(→ None)

read_from_file_and_decrypt(→ str)

read_key_file(→ tuple[int, int, int])

Module Contents

ciphers.rsa_cipher.decrypt_message(encrypted_blocks: list[int], message_length: int, key: tuple[int, int], block_size: int = DEFAULT_BLOCK_SIZE) str
ciphers.rsa_cipher.encrypt_and_write_to_file(message_filename: str, key_filename: str, message: str, block_size: int = DEFAULT_BLOCK_SIZE) str
ciphers.rsa_cipher.encrypt_message(message: str, key: tuple[int, int], block_size: int = DEFAULT_BLOCK_SIZE) list[int]
ciphers.rsa_cipher.get_blocks_from_text(message: str, block_size: int = DEFAULT_BLOCK_SIZE) list[int]
ciphers.rsa_cipher.get_text_from_blocks(block_ints: list[int], message_length: int, block_size: int = DEFAULT_BLOCK_SIZE) str
ciphers.rsa_cipher.main() None
ciphers.rsa_cipher.read_from_file_and_decrypt(message_filename: str, key_filename: str) str
ciphers.rsa_cipher.read_key_file(key_filename: str) tuple[int, int, int]
ciphers.rsa_cipher.BYTE_SIZE = 256
ciphers.rsa_cipher.DEFAULT_BLOCK_SIZE = 128