4 Argon2 as Password Hash
Gabriele C edited this page 2018-03-27 10:10:26 +02:00

Compile and install argon2 library on a linux os based

git clone https://www.github.com/P-H-C/phc-winner-argon2.git argon2-src;
cd argon2-src && sudo make && sudo make install;

Distribution dependent

If you use one of the distributions listed below, you can use your package manager to install the library. You are not required to download and compile it yourself.

ArchLinux

$ pacman -S argon2

Debian based (Debian, Ubuntu, ...)

$ apt install libargon2-0-dev
$ ln -s /usr/lib/x86_64-linux-gnu/libargon2.so /usr/lib/libargon2.so

NixOs

$ nix-env -iA nixos.libargon2

OpenSUSE##

$ zypper install argon2-devel

Compile and install argon2 library on Windows:

IN THEORY : Install MINGW for Windows and Git Bash for Windows, open a git bash as Administrator somewhere, and do as follows:

git clone https://www.github.com/P-H-C/phc-winner-argon2.git argon2-src ;
cd argon2-src && make && make install;

We wrote IN THEORY because the Makefile says to do with MINGW but we cannot test the compilation correctly

Modify your authme config.yml:

    security:
        passwordHash: 'ARGON2'