
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Use this for searching and fetching keys from public-key servers implementing the OpenPGP HTTP Keyserver Protocol (HKP).
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'
}
}
]
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-----
FAQs
Search and fetch keys from public key servers
The npm package hkp-client receives a total of 6 weekly downloads. As such, hkp-client popularity was classified as not popular.
We found that hkp-client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.