Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/massivefermion/erl_argon2
nifs for hashing and verifying passwords using argon2
https://github.com/massivefermion/erl_argon2
argon2 argon2i argon2id crypto cryptography elixir erlang hash hashing nif password password-hash password-hashing rust
Last synced: about 1 month ago
JSON representation
nifs for hashing and verifying passwords using argon2
- Host: GitHub
- URL: https://github.com/massivefermion/erl_argon2
- Owner: massivefermion
- License: apache-2.0
- Created: 2022-03-02T12:47:32.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-03-23T10:35:45.000Z (10 months ago)
- Last Synced: 2024-04-24T11:11:13.232Z (9 months ago)
- Topics: argon2, argon2i, argon2id, crypto, cryptography, elixir, erlang, hash, hashing, nif, password, password-hash, password-hashing, rust
- Language: Rust
- Homepage: https://hex.pm/packages/argon2
- Size: 18.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# argon2
nifs for hashing and verifying passwords using argon2
## Build
$ rebar3 compile
## Usage
```erlang
{ok, Hash} = argon2:hash(<<"password">>).
{ok, Matched} = argon2:verify(<<"password">>, Hash).{ok, Hash} = argon2:hash(<<"password">>, argon2d).
{ok, Matched} = argon2:verify(<<"password">>, Hash).{ok, Hash} = argon2:hash_with_secret(<<"password">>, <<"secret">>).
{ok, Matched} = argon2:verify_with_secret(<<"password">>, Hash, <<"secret">>).{ok, Hash} = argon2:hash_with_secret(<<"password">>, argon2i, <<"secret">>).
{ok, Matched} = argon2:verify_with_secret(<<"password">>, Hash, <<"secret">>).
```