
Research
/Security News
Fake imToken Chrome Extension Steals Seed Phrases via Phishing Redirects
Mixed-script homoglyphs and a lookalike domain mimic imToken’s import flow to capture mnemonics and private keys.
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 231 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.

Research
/Security News
Mixed-script homoglyphs and a lookalike domain mimic imToken’s import flow to capture mnemonics and private keys.

Security News
Latio’s 2026 report recognizes Socket as a Supply Chain Innovator and highlights our work in 0-day malware detection, SCA, and auto-patching.

Company News
Join Socket for live demos, rooftop happy hours, and one-on-one meetings during BSidesSF and RSA 2026 in San Francisco.