-1

I'm workin on a cryptography project and I want to create a simple high-card game of 2-players using the concept of "Mental Poker" in python. For example a part of the concept is :
Each player produce an ri(like a key) and then computes E(ri) ( where E() is ElGamal function.

So is there a way to import a library and just type E(ri) to compute the result or I have to write my own ElGamal Function?

j08691
  • 190,436
  • 28
  • 232
  • 252

1 Answers1

0

ElGamal encryption has been implemented in https://pypi.python.org/pypi/pycrypto specifically here https://www.dlitz.net/software/pycrypto/api/current/toc-Crypto.PublicKey.ElGamal-module.html

RoachLord
  • 797
  • 9
  • 26