Skip to content

Pevensie/jargon

Repository files navigation

jargon

A modern Argon2 password hashing library for Erlang.

Argon2

Argon2 is a password hashing function that was designed to be fast, memory-hard, and resistant to side-channel attacks.

Read more about Argon2 on the official Argon2 website.

Usage

Hashing

{ok, RawHash, EncodedHash} = jargon:hash(<<"password">>, <<"saltsalt">>, argon2d, 32, 12, 1, 32).

Verifying

{ok, true} = jargon:verify(EncodedHash, <<"password">>).

Building

git submodule update --init --recursive
make compile

Using in Docker

If you want to deploy an application using Jargon in a Docker container, you'll need to make sure your image includes a C compiler to build the Jargon NIF.

Alpine

RUN apk add --no-cache build-base

Debian

RUN apt-get update && apt-get install -y build-essential

## Contributing

Contributions are welcome!

About

A modern Argon2 implementation for Erlang

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •