
Security News
Feross on TBPN: How North Korea Hijacked Axios
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.
express-wkd
Advanced tools
Express middleware for Web Key Directory
npm install express-wkd
or
yarn add express-wkd
express-wkd supports both direct mode and advanced mode as described in the Web Key Directory spec.
By default, express-wkd handles both methods.
const wkd = require('express-wkd');
app.use(wkd());
Since the domain name is included in the advanced method path, you must specify it in order for advanced method to work.
app.use(wkd({ domain: 'example.com' }));
To only use the direct or advanced method, set the method option
(defaults to all).
app.use(wkd({ method: 'direct' })); // direct method only
app.use(wkd({ method: 'advanced' })); // advanced method only
app.use(wkd({ method: 'all' })); // all methods
Set a custom path for the keys (defaults to ./keys/).
app.use(wkd({ pathKeys: './assets/keys/' }));
express-wkd expects the (non-armored) cryptographic key files to be stored in
the keys subdirectory relative to the script that called it.
So, if /index.js calls express-wkd, the keys are expected to be stored in
/keys/. This behavior can be changed using the pathKeys option.
The cryptographic key files must be non-armored, must have the .pgp file
extension and the filename must be equal to the WKD local part. To compute the
WKD local part, use the Keyoxide WKD tool.
npm install
npm test
or
yarn install
yarn test
FAQs
Express middleware for Web Key Directory
The npm package express-wkd receives a total of 4 weekly downloads. As such, express-wkd popularity was classified as not popular.
We found that express-wkd 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.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.

Security News
OpenSSF has issued a high-severity advisory warning open source developers of an active Slack-based campaign using impersonation to deliver malware.

Research
/Security News
Malicious packages published to npm, PyPI, Go Modules, crates.io, and Packagist impersonate developer tooling to fetch staged malware, steal credentials and wallets, and enable remote access.