# ExpasswordExternalArgon2

This module add support for Argon2 to ExPassword via an external command (php) for environments where a NIF can't be compiled

## Prerequisites

* [PHP]( available via the PATH variable environment

## Installation

If [available in Hex](, the package can be installed by adding `expassword_external_argon2` to your list of dependencies in `mix.exs`:

def deps do
    {:expassword, "~> 0.2"},
    {:expassword_external_argon2, "~> 0.2", only: ~W[dev test]a},

Documentation can be generated with [ExDoc]( and published on [HexDocs]( Once published, the docs can be found at [](

## Options

Reasonable *options* are:

  # the algorithm between :argon2id and :argon2i
  type: :argon2id,
  # number of threads to use
  threads: 2,
  # maximum amount of time
  time_cost: 4,
  # maximum amount of memory that may be used
  memory_cost: 131072,

(you should lower these values in config/test.exs to speed up your tests)