PHPackages                             elcodedocle/openpgpjs - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. elcodedocle/openpgpjs

ActiveLibrary

elcodedocle/openpgpjs
=====================

GnuPG compatible Javascript client library

1.0.0(8y ago)218MITJavaScript

Since Feb 19Pushed 8y ago1 watchersCompare

[ Source](https://github.com/elcodedocle/openpgpjs)[ Packagist](https://packagist.org/packages/elcodedocle/openpgpjs)[ Docs](https://github.com/elcodedocle/openpgpjs)[ RSS](/packages/elcodedocle-openpgpjs/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (3)Used By (0)

openpgpjs by [hanewin](http://www.hanewin.net/encrypt/PGencode.htm) (packaged by elcodedocle)
=============================================================================================

[](#openpgpjs-by-hanewin-packaged-by-elcodedocle)

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

Copyright (C) 2005 Herbert Hanewinkel, [www.haneWIN.de](http://www.haneWIN.de)
License: [MIT Expat](https://raw.githubusercontent.com/elcodedocle/openpgpjs/master/LICENSE)

### How to use

[](#how-to-use)

```

  doEncrypt(keyId, keyType, publicKey, text);

```

(More info at )

### Motivation

[](#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

[](#acks)

Herbert Hanewinkel, author of the original library at

Enjoy!

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3010d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3731026?v=4)[elcodedocle](/maintainers/elcodedocle)[@elcodedocle](https://github.com/elcodedocle)

---

Top Contributors

[![elcodedocle](https://avatars.githubusercontent.com/u/3731026?v=4)](https://github.com/elcodedocle "elcodedocle (4 commits)")

---

Tags

rsaaesPGPopenpgpgpg

### Embed Badge

![Health badge](/badges/elcodedocle-openpgpjs/health.svg)

```
[![Health](https://phpackages.com/badges/elcodedocle-openpgpjs/health.svg)](https://phpackages.com/packages/elcodedocle-openpgpjs)
```

###  Alternatives

[phpseclib/phpseclib

PHP Secure Communications Library - Pure-PHP implementations of RSA, AES, SSH2, SFTP, X.509 etc.

5.6k434.8M1.3k](/packages/phpseclib-phpseclib)[pear/crypt_gpg

Provides an object oriented interface to the GNU Privacy Guard (GnuPG). It requires the GnuPG executable to be on the system.

954.4M10](/packages/pear-crypt-gpg)[miladrahimi/phpcrypt

Encryption, decryption, and hashing tools for PHP projects

3171.5k2](/packages/miladrahimi-phpcrypt)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
