Skip to content

PGP / GnuPG / OpenPGP Message Encryption in JavaScript by Herbert Hanewinkel

License

Notifications You must be signed in to change notification settings

dossy/hanewinpgp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Oct 9, 2017
758977f · Oct 9, 2017

History

19 Commits
Oct 9, 2017
Oct 9, 2017
Oct 9, 2017
Oct 9, 2017
Sep 30, 2017
Oct 3, 2017
Sep 30, 2017
Sep 30, 2017
Oct 9, 2017
Oct 2, 2017
Oct 3, 2017
Oct 9, 2017

Repository files navigation

PGP / GnuPG / OpenPGP Message Encryption in JavaScript by Herbert Hanewinkel

travis npm downloads browserstack

A very minimal implementation of PGP message encryption/decryption by Herbert Hanewinkel, originally posted to his site at https://www.hanewin.net/encrypt/ and mirrored at https://dossy.github.io/hanewinpgp/.

Install

$ npm install --save hanewinpgp

Usage

const hanewinpgp = require('hanewinpgp');

var pubkey = "ASCII armored public key here";
var plaintext = "your plaintext message here";

var key = hanewinpgp.extract(pubkey);
var encrypted = hanewinpgp.encrypt(key, plaintext);

// encrypted now contains ASCII armored encrypted message

Demo

You can try a demo of this code right in your reasonably modern web browser.

License

See LICENSE file.

About

PGP / GnuPG / OpenPGP Message Encryption in JavaScript by Herbert Hanewinkel

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published