openpgpjs / wkd-client

Client for the Web Key Directory (WKD) protocol to lookup OpenPGP keys

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WKD Client

This library implements a client for the Web Key Directory (WKD) protocol in order to lookup keys on designated servers.

Example: lookup public key using WKD

import WKD from '@openpgp/wkd-client';
import { readKey } from 'openpgp';

(async () => {
  const wkd = new WKD();
  const publicKeyBytes = await wkd.lookup({
    email: 'alice@example.com'
  });
  const publicKey = await readKey({
    binaryKey: publicKeyBytes
  });
})();

About

Client for the Web Key Directory (WKD) protocol to lookup OpenPGP keys

License:GNU Lesser General Public License v3.0


Languages

Language:JavaScript 100.0%