Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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">>).
```