MCPcopy Index your code
hub / github.com/TheAlgorithms/Python / read_key_file

Function read_key_file

ciphers/rsa_cipher.py:63–67  ·  view source on GitHub ↗
(key_filename: str)

Source from the content-addressed store, hash-verified

61
62
63def read_key_file(key_filename: str) -> tuple[int, int, int]:
64 with open(key_filename) as fo:
65 content = fo.read()
66 key_size, n, eor_d = content.split(",")
67 return (int(key_size), int(n), int(eor_d))
68
69
70def encrypt_and_write_to_file(

Callers 2

Calls 1

splitMethod · 0.80

Tested by

no test coverage detected