openpgpjs by hanewin (packaged by elcodedocle)
A GnuPG compatible PGP (RSA/AES) Javascript encryption library
Copyright (C) 2005 Herbert Hanewinkel, www.haneWIN.debr/
License: [MIT Expat][3]
, (*1)
How to use
<script type="text/javascript" src="path/to/aes-enc.js"></script>
<script type="text/javascript" src="path/to/base64.js"></script>
<script type="text/javascript" src="path/to/rsa.js"></script>
<script type="text/javascript" src="path/to/PGencode.js"></script>
<script type="text/javascript">
doEncrypt(keyId, keyType, publicKey, text);
</script>
(More info at http://www.hanewin.net/encrypt/PGencode.htm), (*2)
Motivation
For obsolete reasons, I wanted to implement client side Javascript asymmetric encryption on my PHP web app., (*3)
So I did some research and the most reasonably fast and tested library was PGEncrypt by Herbert Hanewinkel, but it was old (2005) and lacked a public repository or a reliable distribution channel compatible with composer for quickly embedding on PHP web apps and tracking any changes/updates/patches or extensions, so I packaged it all and this project was born., (*4)
Acks
Herbert Hanewinkel, author of the original library at http://www.haneWIN.de/, (*5)
Enjoy!, (*6)