Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

343 B
Raw Blame
defmodule Plausible.Auth.Password do
  @moduledoc """
  Functions for computing and comparing against Bcrypt hashed passwords.
  """

  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