A Javascript library to perform OpenSSL RSA Encryption, Decryption, and Key Generation.
OpenSSLRSAJavascript encryption
http://www.travistidwell.com/jsencrypt