A Rust implementation of the Paillier cryptosystem
create a key pair:
let key_pair = KeyPairBuilder::new().bits(128)
.finalize();
encryption:
let public_key = &key_pair.public_key;
let c = public_key.encrypt(&m);
decrypt a ciphertext:
let m = key_pair.decrypt(&c);