Skip to content

A GnuPG compatible PGP (RSA/AES) Javascript encryption library

License

Notifications You must be signed in to change notification settings

elcodedocle/openpgpjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

openpgpjs by hanewin (packaged by elcodedocle)

#####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!

About

A GnuPG compatible PGP (RSA/AES) Javascript encryption library

Resources

License

Stars

Watchers

Forks

Packages

No packages published