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