ciphers.rsa_key_generator

Functions

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

main(→ None)

make_key_files(→ None)

Module Contents

ciphers.rsa_key_generator.generate_key(key_size: int) tuple[tuple[int, int], tuple[int, int]]
>>> random.seed(0) # for repeatability
>>> public_key, private_key = generate_key(8)
>>> public_key
(26569, 239)
>>> private_key
(26569, 2855)
ciphers.rsa_key_generator.main() None
ciphers.rsa_key_generator.make_key_files(name: str, key_size: int) None