Popularity
2.6
Declining
Activity
0.0
Stable
14
1
1

Monthly Downloads: 42
Programming language: Elixir
License: Apache License 2.0
Tags: Security    

pwned alternatives and similar packages

Based on the "Security" category

Do you think we are missing an alternative of pwned or a related project?

Add another 'Security' Package

README

Pwned

Travis Hex.pm Docs

Check if your password has been pwned

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. Instead it uses a k-Anonymity model that allows a password to be searched for by partial hash. This allows the first 5 characters of a SHA-1 password hash to be passed to the API. Then search the results of the response for the presence of their source hash and if not found, the password does not exist in the data set.

Table of Contents

Install

The package can be installed by adding pwned to your list of dependencies in mix.exs:

def deps do
  [
    {:pwned, "~> 1.0"}
  ]
end

Usage

case Pwned.check_password("somepassword") do
  {:ok, false} -> 
    IO.puts("Good news — no pwnage found! This password wasn't found in any of the Pwned Passwords loaded into Have I been pwned.")

  {:ok, count} -> 
    IO.puts("Ohh, sorry! This password has appeared #{count} time on data breaches.")

  :error -> 
    IO.puts("Something went wrong.")
end

Contributing

See the [contributing file](CONTRIBUTING.md).

License

[Apache License, Version 2.0](LICENSE.md) © Thiago Santos


*Note that all licence references and agreements mentioned in the pwned README section above are relevant to that project's source code only.