python-paillier
python-paillier copied to clipboard
A library for Partially Homomorphic Encryption in Python
It would be useful to support numpy arrays. The following example does not work. We should aim to get a vector of encrypted numbers as result. ``` import phe as...
The standard encoding implemented in Javallier uses more of the available space for a given key size. Python-paillier should also support this encoding to preserve interop between the two libraries.
http://hypothesis.readthedocs.io/en/latest/
Update docs to contain testable code snippets. Add to travis script step: ``` make test-doc test-sphinxext ```
E.g. create temporary virtual environment, install from pypi, run a basic example. Could investigate using `tox`. Travis could test simple examples in the `after_success` section.
According to the pycrypto repository, "_PyCrypto 2.x is unmaintained, obsolete, and contains security vulnerabilities._" Moving to pycryptodome which is maintained.
Hello! I have a question about the random number g In Paillier's paper and Wikipedia, select a random integer g in the part of key generation, this g is an...
As self.g = n + 1, would it be better to replace `return invert(self.l_function(powmod(self.public_key.g, x - 1, xsquare),x), x)` with `return invert(self.l_function((self.n * (x - 1) + 1) % xsquare...
I have an algorithm that iteratively performs multiple homomorphic multiplications and needs to decrypt once in each iteration. Although the calculation is small, an error will be reported: Overflow detected...