JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 270
  • Score
    100M100P100Q83615F

Argon2 adapter for WebAssembly and JS implementations

Package Exports

  • @hazae41/argon2

Readme

Argon2

Argon2 for the web

npm install @hazae41/argon2

📦 NPM

Features

Current features

  • 100% TypeScript and ESM
  • No external dependencies

Usage

const pass = crypto.getRandomValues(new Uint8Array(256))
const salt = crypto.getRandomValues(new Uint8Array(32))

const deriver = argon2.Deriver.create("argon2d", 19, 16384, 12, 2)
const derived = deriver.derive(pass, salt)