Skip to main content
Deno 2 is finally here 🎉️
Learn more

deno-argon2-wasm

releases build license

This library provides support for the Argon2 password hashing algorithm in Deno. The binding are written in Rust and compiled to WebAssembly.

Usage

import { hash, verify } from 'https://deno.land/x/argon2_wasm/mod.ts';

// Hash a password and get the encoded hash.
// The salt is automatically generated.
const hashedPassword = hash('hunter2');

// Verify password against encoded hash.
const isPasswordValid = verify('hunter2', hashedPassword);

Maintainers

License

Copyright (c) 2023 Victor Wernér. Licensed under the MIT license.

See LICENSE for more details.