This commit is contained in:
Jussi 2024-11-09 14:06:34 +02:00
commit abb3eab559
16 changed files with 1035 additions and 0 deletions

View file

@ -0,0 +1,13 @@
defmodule Argon2.Native do
@moduledoc """
Native implementation of the Argon2 password hashing algorithm.
"""
use Rustler,
otp_app: :argon2id_elixir,
crate: "argon2"
def hash_password(_password, _config \\ nil), do: error()
def verify_password(_password, _hash), do: error()
defp error, do: :erlang.nif_error(:nif_not_loaded)
end