
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
wasm-scrypt
Advanced tools
Scrypt wasm binding for nodejs and web browser
$ npm i wasm-script
const wasm = require('wasm-scrypt')
const opts = {
'./scrypt_wasm': {
'memory': new WebAssembly.Memory({initial: 256, limit: 256}),
'memoryBase': 1024,
'table': new WebAssembly.Table({initial: 0, element: 'anyfunc'}),
'tableBase': 0,
__wbindgen_throw: function (ptr, len) {
return new Error(`Custom error message...`)
},
}
}
wasm().then((scrypt) => {
// do kdf
// scrypt.kdf(...)
})
const opts = {
N: 16384,
r: 4,
p: 1
}
const dklen = 8
const kdf = scrypt.kdf(pwd, 'utf8', salt, 'utf8', dklen, opts)
Computer: 2.2 GHz 6-Core Intel Core i7
$ node -v
v12.18.1
> scrypt-benchmark@0.0.0 start /Users/peterlai/Desktop/Projects/js-scrypt/benchmarks
> node index.js
Scrypt JS x 115 ops/sec ±0.52% (83 runs sampled)
Scrypt node official x 419 ops/sec ±0.55% (92 runs sampled)
Scrypt wasm x 106 ops/sec ±0.82% (78 runs sampled)
Scrypt: fastest is Scrypt node official
FAQs
Compiled webassembly of scrypt kdf
We found that wasm-scrypt 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
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.