elcodedocle / openpgpjs
GnuPG compatible Javascript client library
Installs: 16
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 0
Open Issues: 0
Language:JavaScript
This package is not auto-updated.
Last update: 2024-11-09 18:11:38 UTC
README
#####A GnuPG compatible PGP (RSA/AES) Javascript encryption library
Copyright (C) 2005 Herbert Hanewinkel, www.haneWIN.de
License: MIT Expat
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)
Motivation
For obsolete reasons, I wanted to implement client side Javascript asymmetric encryption on my PHP web app.
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.
Acks
Herbert Hanewinkel, author of the original library at http://www.haneWIN.de/
Enjoy!