Skip to content

#️⃣ Argon2 hashing module for deno using wasm

License

Notifications You must be signed in to change notification settings

denosaurs/argontwo

Repository files navigation

argontwo

Tags deno doc checks License Dependencies Dependency freshness

This module provides Argon2 hashing support for deno and the web by providing simple bindings using argon2 compiled to webassembly.

Usage

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
// ]

Maintainers

Other

Contribution

Pull request, issues and feedback are very welcome. Code style is formatted with deno fmt and commit messages are done following Conventional Commits spec.

Licence

Copyright 2021, the denosaurs team. All rights reserved. MIT license.