Other
Application background
Input:
The input should be a binary number in string format, like 1011001.
Output:
The output is an object of ArrayList<BigInteger> where each element is an encrypted value of the input bit in the corresponding location. For eg: if enc(1) = 23423523642343425245345, and the first bit is 1, then the first bit will be 23423523642343425245345.
For Encryption:
1. Call either of the constructor:
- call FullyHomomorphicEncryption(), if you do not want to change the default parameters.
- call public FullyHomomorphicEncryption(int gamma, int rho, int eta, int tau), if you like to explore a bit.
2. Call generateKey():
This method generates the public keys and the private keys.
3. public ArrayList<BigInteger> encrypt(String bits):
As told earlier, this returns the
java
No comment