Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
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 0 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.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.