예제 #1
0
파일: RSA.py 프로젝트: TiesB/pearl7
 def decrypt_message(self, m):
     # return m^d mod n
     return methods.modMacht(m, self.privateKey, self.n)
예제 #2
0
파일: RSA.py 프로젝트: TiesB/pearl7
 def encrypt_message(self, m):
     # return m^e mod n
     return methods.modMacht(m, self.publicKey, self.n)