
Security News
Federal Government Rescinds Software Supply Chain Mandates, Makes SBOMs Optional
The U.S. government is rolling back software supply chain mandates, shifting from mandatory SBOMs and attestations to a risk-based approach.
framed-hash
Advanced tools
A hash function that wraps all input chunks with a length prefix.
npm install framed-hash
var framedHash = require('framed-hash')
var hash = framedHash('sha256')
hash.update('hello')
hash.update('world')
// prints 9054cf26016be468a8b56b40342bd5b479202a40da9fc9056b1ac4c5070343d8
console.log(hash.digest('hex'))
var anotherHash = framedHash('sha256')
anotherHash.update('hell')
anotherHash.update('oworld')
// prints 9cb231ff970f99993c9753364405184fc9024c3f56d98716d90f4913a6c746c0
// since the input chunks were different
console.log(anotherHash.digest('hex'))
hash = framedHash(algorithm)Create a new hash instance. Algorithm can be anything accepted by crypto.createHash(algo)
hash.update(chunk)Update the hash. Internally the chunk is prefixed with the length of the chunk and a newline
hash.digest(encoding)Returns the digest of the hash.
MIT
FAQs
A hash function that wraps all input chunks with a length prefix.
The npm package framed-hash receives a total of 6 weekly downloads. As such, framed-hash popularity was classified as not popular.
We found that framed-hash 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
The U.S. government is rolling back software supply chain mandates, shifting from mandatory SBOMs and attestations to a risk-based approach.

Security News
crates.io adds a Security tab backed by RustSec advisories and narrows trusted publishing paths to reduce common CI publishing risks.

Research
/Security News
A Chrome extension claiming to hide Amazon ads was found secretly hijacking affiliate links, replacing creators’ tags with its own without user consent.