Exemplo n.º 1
0
Arquivo: RSA.py Projeto: TiesB/pearl7
 def decrypt_message(self, m):
     # return m^d mod n
     return methods.modMacht(m, self.privateKey, self.n)
Exemplo n.º 2
0
Arquivo: RSA.py Projeto: TiesB/pearl7
 def encrypt_message(self, m):
     # return m^e mod n
     return methods.modMacht(m, self.publicKey, self.n)