Pwned v1.0.2 Pwned View Source

Check if your password has been pwned.

Link to this section Summary

Functions

It uses have i been pwned? to verify if a password has appeared in a data breach. In order to protect the value of the source password being searched the value is not sended through the network

Link to this section Functions

Link to this function check_password(password) View Source
check_password(String.t()) :: {:ok, integer()} | {:ok, false} | :error

It uses have i been pwned? to verify if a password has appeared in a data breach. In order to protect the value of the source password being searched the value is not sended through the network.

Examples

iex> Pwned.check_password("P@ssw0rd")
{:ok, 47205}

iex> Pwned.check_password("Z76okiy2X1m5PFud8iPUQGqusShCJhg")
{:ok, false}