Fork from willclarktech/PaillierExercise, to test Paillier homomorphic encryption, including
- KeyGen
- Enc
- Dec
- Homomorphic properties
- When two ciphertexts are multiplied, the result decrypts to the sum of their plaintexts;
- When a ciphertext is raised to the power of a plaintext,the result decrypts to the product of the two plaintexts;
- Gotchas: Multiplying by 0 and by 1.