Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/griffolion/pwned
A small, simple library for checking a password against the HaveIBeenPwned password checker API.
https://github.com/griffolion/pwned
api api-client haveibeenpwned password passwords php php-library php7 php8 php80 php81
Last synced: 1 day ago
JSON representation
A small, simple library for checking a password against the HaveIBeenPwned password checker API.
- Host: GitHub
- URL: https://github.com/griffolion/pwned
- Owner: Griffolion
- License: mit
- Created: 2020-02-16T17:33:38.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-10-10T22:19:41.000Z (about 2 years ago)
- Last Synced: 2024-11-19T01:13:24.158Z (1 day ago)
- Topics: api, api-client, haveibeenpwned, password, passwords, php, php-library, php7, php8, php80, php81
- Language: PHP
- Homepage:
- Size: 987 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license.md
Awesome Lists containing this project
README
![PHPUnit](https://github.com/Griffolion/pwned/workflows/PHPUnit/badge.svg)
# HaveIBeenPwnedRangeChecker
A small, simple library for checking a password against the [HaveIBeenPwned password checker API](https://haveibeenpwned.com/API/v3#PwnedPasswords).
Passwords appearing in the search results of the API have appeared in breached databases, and thus any accounts using such a password are at greater risk of being breahced.
## Requirements
- PHP 7.1 or above
- Curl## Installation
`composer require griffolion/pwned`
## Basic Usage
```php
use Pwned\Range;
...
$pwnedCount = (new Range())->check("password");
if ($pwnedCount > 0) {
echo "Your password is at risk!";
}
```