
Security News
CISA Kills Off RSS Feeds for KEVs and Cyber Alerts
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.
hash-stream
Advanced tools
Simple wrapper around crypto.createHash()
for files and streams.
$ npm install hash-stream
var getHash = require('hash-stream')
filename
- path of the filestream
- a readable streamalgorithm
- any defined by crypto.getHashes()
Returns a hash
as a raw Buffer
, so if you want a hex:
getHash('image.png', 'sha256', function (err, hash) {
hash = hash.toString('hex')
})
You can use nhash
to hash a file and get the output instantly. The usage options are simple:
$ nhash --help
Usage: nhash [options] [file]
Options:
-h, --help output usage information
-V, --version output the version number
-a, --algorithm <sha1> the hash alorithm
-e, --encoding <hex> the encoding of output
FAQs
Get a hash of a file or a stream
We found that hash-stream demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.