Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hkp-client

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hkp-client

Search and fetch keys from public key servers

  • 0.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
16
increased by300%
Maintainers
1
Weekly downloads
 
Created
Source

hkp-client

Use this for searching and fetching keys from public-key servers implementing the OpenPGP HTTP Keyserver Protocol (HKP).

Build Status

var hkp = require('hkp-client');
var keyserver = 'http://pgp.mit.edu:11371';
var search = 'torvalds@linux-foundation.org';
hkp.search(keyserver, search, function(err, results) {
  if (err) return console.log(err);
  console.log(results);
});
[ 
  {
    uid: { 
      user: 'Linus Torvalds <torvalds@linux-foundation.org>',
       time: '1316554898' 
    },
    pub: { 
      keyId: '00411886', 
      bits: '2048', 
      time: '1316554898'
    }
  }
]

Fetch

var hkp = require('hkp-client');
var keyserver = 'http://pgp.mit.edu:11371';
var keyId = '00411886';
hkp.fetch(keyserver, keyId, function(err, pubKey) {
  if (err) return console.log(err);
  console.log(pubKey);
});
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: SKS 1.1.0

...
...

-----END PGP PUBLIC KEY BLOCK-----

Keywords

FAQs

Package last updated on 28 Jun 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc