n1analytics / javallier

A Java library for Paillier partially homomorphic encryption.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PaillierContext in CLI

mpnd opened this issue · comments

commented

Currently CLI uses one type of Paillier Context, a signed context with 32 bits precision and default base.
Ideally, in addition to a default Context, users should be able to define the Paillier Context set up (regarding the precision, signed/unsigned and base).

Another important note, the current precision used in default Context severely limits the range of number that can be encrypted/decrypted given the default keysize.

How about we just add as new cli options:

--unsigned
--base [base]
--precision [precision]