Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
The only Keccak hash (aka SHA3 before standardisation) library you need in Javascript. Ever. Pinky promise!
It is a meta package and lets you to use node-sha3
or js-sha3
with the same interface on your choice of deployment. It uses browserify-sha3
to do the mapping for you.
There's no speed loss, it is as thin as it can get (but there is some twiddling in package.json
to select the right package for your environment):
module.exports = require('sha3').SHA3Hash
Example usage:
const keccak = require('keccakjs')
var hash = new keccak() // uses 512 bits by default
hash.update('hello')
hash.update(Buffer.from('42004200', 'hex'))
hash.digest() // binary output
hash.digest('hex') // hex output
NOTE: This library supports the Keccak padding only - and not the final SHA3 padding.
FAQs
Keccak hash (SHA3) in Node.js and in the browser. Fast & simple.
The npm package keccakjs receives a total of 0 weekly downloads. As such, keccakjs popularity was classified as not popular.
We found that keccakjs 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.