# openpgp-wrapper

> little wrapper around the npm's openpgp module

Latest version **1.2.1** (published 2017-07-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install openpgp-wrapper
pnpm add openpgp-wrapper
yarn add openpgp-wrapper
bun add openpgp-wrapper
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.1 |
| Published | 2017-07-24 |
| First published | 2017-07-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+4 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Drulac |
| Maintainers | drulac |
| Keywords | openpgp |

## Links

- npm: https://www.npmjs.com/package/openpgp-wrapper
- Repository: https://github.com/Drulac/openpgpWrapper.js
- Homepage: https://github.com/Drulac/openpgpWrapper.js#readme
- Issues: https://github.com/Drulac/openpgpWrapper.js/issues
- npm.io page: https://npm.io/package/openpgp-wrapper

## Dependencies (1)

- [openpgp](https://npm.io/package/openpgp.md) ^2.5.6

## Recent versions

- 1.2.1 (latest) — 2017-07-24
- 1.2.0 — 2017-07-21
- 1.1.0 — 2017-07-21
- 1.0.0 — 2017-07-21

## README

# openpgpWrapper.js
little wrapper around the npm's openpgp module

```javascript
const OpenPGP = require('openpgp-wrapper');

(async()=>{
	let pgp = new OpenPGP();
	let keys = await pgp.generateKeys(512, { name:'Jon Smith', email:'jon@example.com' }, "secret passphrase")

	console.log(keys.privateKey);
	console.log(keys.publicKey);

	let encrypted = await pgp.encrypt("hello world", keys.publicKey, true);
	console.log(encrypted)

	let decrypted = await pgp.decryptAndVerifySignature(encrypted, keys.publicKey);
	console.log(decrypted);
})();
```

---
_Source: https://npm.io/package/openpgp-wrapper · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
