saltywitch/lib/salty_witch/passwordhash.ex

12 lines
218 B
Elixir
Raw Normal View History

2023-05-31 11:31:03 +00:00
defmodule SaltyWitch.PasswordHash do
alias SaltyWitch.NIF, as: N
def string(pass, ops, mem) do
N.pwhash_str(pass, ops, mem)
end
def verify(pwhash, pass) do
N.pwhash_str_verify(pwhash, pass)
end
end