jspaillier is a Javascript implementation of the Paillier homomorphic encryption scheme, specifically developed for demonstration purposes only. An example page that shows how it can be used for demonstrating how the Paillier crypto systems works can be found at here.
jspaillier has a single dependency: jsbn. You will need at least jsbn.js, jsbn2.js, prng4.js, and rng.js
See the included demo page for information on how to use this library.
A large part of the work on this library was done at TNO in a project supported by the "COMMIT/" program.