
Security News
Feross on the 10 Minutes or Less Podcast: Nobody Reads the Code
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.
argon2-wasm
Advanced tools
Argon2 (with Argon2u support) run as WebAssembly.
> let argon2 = require('.');
> argon2.hash({pass: 'password', salt: 'somesalt', distPath: 'dist'}).then(console.log);
{ hash:
Uint8Array [ ... ],
hashHex:
'f38afe1266d247cf1f6f836ffdbb0ab946c0a7edbcb4ba6e7324b32b9050441e',
encoded:
'$argon2d$v=19$m=1024,t=10,p=1$c29tZXNhbHQ$84r+EmbSR88fb4Nv/bsKuUbAp+28tLpucySzK5BQRB4' }
The input object has the following parameters and defaults:
{string} pass password string
{string} salt salt string
{float} time (1) the number of iterations
{float} mem (1024) used memory, in KiB
{float} hashLen (24) desired hash length
{float} parallelism (1) desired parallelism (will be computed in parallel only for PNaCl)
{number} type (argon2.types.Argon2d) hash type: argon2.ArgonType.Argon2d, .Argon2i, .Argon2id or .Argon2u
{string} distPath ('.') asm.js script location, without trailing slash
Prerequisites:
Use the provided build script:
./build.sh
You can also use npm run-script build, which will call that directly.
FAQs
Argon2 library compiled for WebAssembly runtime
The npm package argon2-wasm receives a total of 1,044 weekly downloads. As such, argon2-wasm popularity was classified as popular.
We found that argon2-wasm 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
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.

Research
/Security News
Campaign of 108 extensions harvests identities, steals sessions, and adds backdoors to browsers, all tied to the same C2 infrastructure.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.