Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
koa-instance-digest
Advanced tools
A middleware to handle verification of HTTP digest headers as described in [RFC-3230](https://tools.ietf.org/html/rfc3230) "Instance Digests in HTTP".
A middleware to handle verification of HTTP digest headers as described in RFC-3230 "Instance Digests in HTTP".
Note that, as per the RFC, this module provides:
However, it does NOT provide:
Install the package via yarn
:
❯ yarn add koa-instance-digest
or via npm
:
❯ npm install koa-instance-digest --save
The following algorithms are available: md5
, sha
, sha-256
, sha-512
.
The middleware can be configured with the following parameters:
algorithms
: List of supported algorithms (all by default).required
: Whether to set a digest header as mandatory (false
by default).You can change the defaults by doing:
middleware({
algorithms: ['sha-256'],
required: true
});
const { middleware } = require('koa-instance-digest');
const Koa = require('koa');
const app = new Koa();
app.post('/', middleware(), async ctx => {
// Your code here ...
});
app.listen(3000);
The Digest
header can be provided as follows:
'Digest: <algorithm>=<value>'
If the header is missing the following header will be added to the response:
'Want-Digest: <list-of-accepted-algorithms>'
❯ yarn test
❯ npm version [<new version> | major | minor | patch] -m "Release %s"
FAQs
A middleware to handle verification of HTTP digest headers as described in [RFC-3230](https://tools.ietf.org/html/rfc3230) "Instance Digests in HTTP".
The npm package koa-instance-digest receives a total of 1 weekly downloads. As such, koa-instance-digest popularity was classified as not popular.
We found that koa-instance-digest 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.