https://github.com/denosaurs/argontwo
#️⃣ Argon2 hashing module for deno using wasm
https://github.com/denosaurs/argontwo
argon2 cryptography deno hacktoberfest wasm
Last synced: 8 months ago
JSON representation
#️⃣ Argon2 hashing module for deno using wasm
- Host: GitHub
- URL: https://github.com/denosaurs/argontwo
- Owner: denosaurs
- License: mit
- Created: 2021-05-24T13:56:28.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2024-04-03T09:50:21.000Z (about 2 years ago)
- Last Synced: 2025-10-08T12:36:37.761Z (8 months ago)
- Topics: argon2, cryptography, deno, hacktoberfest, wasm
- Language: TypeScript
- Homepage: https://deno.land/x/argontwo
- Size: 238 KB
- Stars: 10
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# argontwo
[](https://github.com/denosaurs/argontwo/releases)
[](https://doc.deno.land/https/deno.land/x/argontwo/mod.ts)
[](https://github.com/denosaurs/argontwo/actions/workflows/checks.yml)
[](https://github.com/denosaurs/argontwo/blob/master/LICENSE)
[](https://deno-visualizer.danopia.net/dependencies-of/https/deno.land/x/argontwo/mod.ts)
[](https://deno-visualizer.danopia.net/dependencies-of/https/deno.land/x/argontwo/mod.ts)
This module provides [Argon2](https://en.wikipedia.org/wiki/Argon2) hashing
support for deno and the web by providing [simple bindings](src/lib.rs) using
[argon2](https://github.com/RustCrypto/password-hashes/tree/master/argon2)
compiled to webassembly.
## Usage
```ts
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
- Elias Sjögreen ([@eliassjogreen](https://github.com/eliassjogreen))
## 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](https://www.conventionalcommits.org/en/v1.0.0/) spec.
### Licence
Copyright 2021, the denosaurs team. All rights reserved. MIT license.