JavaScript RSA Cryptography

This project was a test to prove the viability of encrypting form contents sent via email, and having the sent form contain all the javascript necessary to decrypt itself, provided that the user can supply a password. In this way decryption could occur entirely in webmail in a user's browser. (However, this doesn't solve the problem of a compromised browser).

Using a javascript big integer math library, this form implements PGP RSA cryptography. It has a few limitations, e.g. a form field data length maximum of 117 characters. Javascript RSA functions were adapted slightly from

Example Form field data:

Public Key: n