module

PwnedPassword

Implements API v2 of Troy Hunt's HIBP to check whether a given password has been exposed in a breach.

PwnedPassword.search("correct horse battery staple") # -> 2 (found in 2 breaches)
PwnedPassword.search("f7Yr,f9dffF?eKeDpjepGwcc")     # -> nil (not found)

Constants

VERSION = "0.1.1"

Class methods

search(pass : String, raise_on_api_error = false) : Int32 | Nil
Source

Nested types