easypgp

A NPM package/CLI to make the PGP process easier to use in code or through the command line!

Usage no npm install needed!

<script type="module">
  import easypgp from 'https://cdn.skypack.dev/easypgp';
</script>

README

easypgp

A simple package/CLI to make the process of PGP encryption smooth and easy.

How to use

To generate a pair of PGP keys, just do (assuming easypgp = require('easypgp')): easypgp.generateKeys([name], [email], [OPTIONAL: bits of RSA default: 512], [passphrase])

To encrypt a message, do: easypgp.encryptMesasge([publicKey (if using generateKeys object, (obj).pubKey)], [message])

To decrypt a message, do: easypgp.decryptMessage([privateKey (obj).privKey], [passphrase], [PGP message to decrypt])

CLI coming soon.