def decrypt_message(self, m): # return m^d mod n return methods.modMacht(m, self.privateKey, self.n)
def encrypt_message(self, m): # return m^e mod n return methods.modMacht(m, self.publicKey, self.n)