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

Method __init__

ciphers/hill_cipher.py:56–62  ·  view source on GitHub ↗

encrypt_key is an NxN numpy array

(self, encrypt_key: np.ndarray)

Source from the content-addressed store, hash-verified

54 to_int = np.vectorize(round)
55
56 def __init__(self, encrypt_key: np.ndarray) -> None:
57 """
58 encrypt_key is an NxN numpy array
59 """
60 self.encrypt_key = self.modulus(encrypt_key) # mod36 calc's on the encrypt key
61 self.check_determinant() # validate the determinant of the encryption key
62 self.break_key = encrypt_key.shape[0]
63
64 def replace_letters(self, letter: str) -> int:
65 """

Callers

nothing calls this directly

Calls 1

check_determinantMethod · 0.95

Tested by

no test coverage detected