elgamal
elgamal copied to clipboard
Python implementation of the elgamal crypto system
This pull request adds a `Run on Repl.it` badge to the `README`. This will allow users to easily run this repository in their browser, without having to set up an...
Tested ``find_primitime_root`` function over known values from here https://en.wikipedia.org/wiki/Primitive_root_modulo_n#Elementary_example So something goes wrong. Pretty often your function generate wrong value. Prepared tests to check it. To reproduce need to run...
Changed condition for less computing operations.
Hi @RyanRiddle This is the final solution I found to secure the message space. By squaring the message $M->M^2$, it becomes an element in q-order subgroup. Interestingly, by powering $(q+1)//2$,...
from http://crypto.stanford.edu/~dabo/pubs/papers/DDH.pdf and https://en.wikipedia.org/wiki/ElGamal_encryption We need to map a message to the space of G. One idea in Boneh's paper [STOC'97]: use the hash function to hash g^{ab} and make...
No content in requirement.txt Plz update it.
If you can setup travis-ci account, I will configure the .travis.yml file. This will also help if you really want to add python2 support.
elgamal was originally implemented in python 3 and it only works in 3. The whole world is still using python 2 and I have received requests for python 2 support.