pgp-simple
Simplified wrapper around OpenPGP.js for secure encryption and decryption.
Installation
npm install pgp-simple
Usage
const PGP = ; async { let key1 = await PGP; let key2 = await PGP; let pgp1 = key1; let pgp2 = key2; let message = 'Hello world; this is a very simple way of using PGP'; let encrypted = await pgp1; let decrypted = await pgp2; console; console; };
Browser
Build for browser:
npm run build