Module

PwnedPasswords

Package
purescript-pwned-passwords
Repository
maxdeviant/purescript-pwned-passwords

#PasswordStatus Source

data PasswordStatus

The status of a password after checking it against Pwned Passwords.

Constructors

  • NotFound

    The password was not found in the Pwned Passwords index. This does not necessarily mean it is a good password, just that it has not appeared in any data breaches that Pwned Passwords has in its index.

  • Pwned Int

    The password appears in a data breach indexed by Pwned Passwords. The number indicates the number of times the password has been seen. This password should never be used!

Instances

#Error Source

data Error

#printError Source

#pwned Source

pwned :: String -> Aff (Either Error PasswordStatus)

Checks the specified password against Pwned Passwords to determine whether it is safe for use.