You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
analytics/lib/plausible/auth/password.ex

14 lines
246 B
Elixir

defmodule Plausible.Auth.Password do
def hash(password) do
Bcrypt.hash_pwd_salt(password)
end
def match?(password, hash) do
Bcrypt.verify_pass(password, hash)
end
def dummy_calculation do
Bcrypt.no_user_verify()
end
end