Download the PHP package staabm/password_exposed without Composer
On this page you can find all versions of the php package staabm/password_exposed. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download staabm/password_exposed
More information about staabm/password_exposed
Files in staabm/password_exposed
Package password_exposed
Short Description This PHP package provides a `password_exposed` helper function, that uses the haveibeenpwned.com API to check if a password has been exposed in a data breach.
License LGPL-3.0-only
Informations about the package password_exposed
🔒 Password Exposed Helper Function
This PHP package provides a password_exposed
helper function, that uses the haveibeenpwned.com API to check if a password has been exposed in a data breach.
Credits
This package is based on the work of Jordan Hall aka. DivineOmega.
Installation
The password_exposed
package can be easily installed using Composer. Just run the following command from the root of your project.
If you have never used the Composer dependency manager before, head to the Composer website for more information on how to get started.
Usage
To check if a password has been exposed in a data breach, just pass it to the password_exposed
method.
Here is a basic usage example:
If you prefer to avoid using helper functions, the following syntax is also available.
SHA1 Hash
You can also supply the SHA1 hash instead of the plain text password, by using the following method.
or...
All versions of password_exposed with dependencies
psr/http-client Version ^1.0
symfony/http-client Version ^5.4 || ^6 || ^7.0
symfony/cache Version ^5.4 || ^6 || ^7.0
php-http/discovery Version ^1.0
paragonie/certainty Version ^2.9
psr/cache Version ^1 || ^2 || ^3
psr/http-message Version ^2.0
psr/http-factory Version ^1.1