initial
This commit is contained in:
commit
abb3eab559
16 changed files with 1035 additions and 0 deletions
13
lib/argon2_elixir/native.ex
Normal file
13
lib/argon2_elixir/native.ex
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue