Simple JavaScript API for OpenPGP operations via LocalPGP extension
Connect and search for keys
SlayOps is a simple JavaScript library that provides an easy-to-use API for OpenPGP operations via the LocalPGP browser extension.
Just include slayops.js and use the simple API - no need to understand
extension messaging or browser differences.
const pgp = new SlayOps.SlayOps();
await pgp.connect();
const keys = await pgp.getKeys();
const encrypted = await pgp.encrypt('Hello', [keys[0].fingerprint]);