The Paillier cryptosystem a probabilistic assymetric algorithm with additive homomorphic properties. This means that given the ciphertexts of two numbers, anyone can compute an encryption of the sum of these two numbers. This page demonstrates the jspaillier library, a Javascript implementation of the Paillier crypto system.
Do keep in mind this is proof-of-concept code. Also, doing crypto in Javascript is typically considered to be a Bad Idea (tm), see also the discussion "Javascript Cryptography Considered Harmful".
public n: -
private lambda: -
Elapsed time (keygen): - ms
Elapsed time (precomputation): - ms
[A] = -
Elapsed time: - ms
[B] = -
Elapsed time: - ms
[A + B] = -
Elapsed time: - ms
Elapsed time (randomize): - ms
[(A + B)*C] = -
Elapsed time: - ms
Elapsed time (randomize): - ms
(A + B)*C = -
Elapsed time: - ms