Skip to content

denosaurs/argontwo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

d8cb043 · Apr 3, 2024

History

9 Commits
Apr 3, 2024
Apr 3, 2024
Apr 3, 2024
Apr 3, 2024
May 24, 2021
May 24, 2021
May 24, 2021
Oct 20, 2023
Oct 20, 2023
May 24, 2021
May 24, 2021
Apr 3, 2024
Apr 3, 2024
Apr 3, 2024
May 24, 2021
Apr 3, 2024

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.