Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command line binary #23

Closed
hardbyte opened this issue Jan 7, 2016 · 2 comments
Closed

Command line binary #23

hardbyte opened this issue Jan 7, 2016 · 2 comments

Comments

@hardbyte
Copy link
Contributor

hardbyte commented Jan 7, 2016

To aide testing integration between python-paillier and javallier, add a command line program to:

  • generate and serialize key pairs (of different key sizes)
  • encrypt and serialize given a public key and a plaintext number
  • decrypt given a private key and the ciphertext
  • add two encrypted numbers together
  • add an encrypted number to a plaintext number
  • multiply an encrypted number to a plaintext number

Initially use a standard encoding scheme.

Associated issue on python-paillier#6.

@hardbyte
Copy link
Contributor Author

Apache commons provides a useful library to help: https://commons.apache.org/proper/commons-cli/usage.html

@mpnd
Copy link
Contributor

mpnd commented Jun 7, 2016

CLI has been included in master branch as of dcdb3c8.

I notice the following issues:

  • It cannot encrypt negative number (Issue Unable to encrypt negative number using CLI #34). The main problem is it can't properly read negative number from the command line, even after following the note in the help menu.
  • Some options are inconsistent (Issue Inconsistent CLI options #35). Using -v and --verbose gives different results. Likewise for -h and --help.
  • It currently only supports one type of Paillier Context (Issue PaillierContext in CLI #36). Ideally users should be able to provide a specific Paillier Context set up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants