This module provides Argon2 hashing support for deno and the web by providing simple bindings using argon2 compiled to webassembly.
import { hash } from "https://deno.land/x/argontwo/mod.ts";
const encoder = new TextEncoder();
const password = encoder.encode("password");
const salt = encoder.encode("somesalt");
console.log(hash(password, salt));
// Should log:
// Uint8Array(32) [
// 168, 185, 165, 229, 198, 234, 20, 3,
// 186, 99, 21, 71, 134, 180, 129, 28,
// 253, 20, 89, 220, 107, 35, 25, 13,
// 112, 207, 26, 49, 125, 219, 151, 53
// ]
- Elias Sjögreen (@eliassjogreen)
Pull request, issues and feedback are very welcome. Code style is formatted with
deno fmt
and commit messages are done following
Conventional Commits spec.
Copyright 2021, the denosaurs team. All rights reserved. MIT license.