2017 © Pedro Peláez
 

library pwnedpasswords

Generic service to query Troy's pwnedpasswords.com service.

image

esolitos/pwnedpasswords

Generic service to query Troy's pwnedpasswords.com service.

  • Monday, February 26, 2018
  • by esolitos
  • Repository
  • 1 Watchers
  • 4 Stars
  • 273 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 96 % Grown

The README.md

esolitos/pwnedpasswords: Check how broken is your password

Generic php service built to query Troy Hunt's https://pwnedpasswords.com API service and let you know how "broken" is your password, without actually sending your password., (*1)

More info about this on Troy's first blog post (about Pwned Passwords v1), the follow up post (about v2, the version used by this library) and finally the post on Cloudflare blog (in which k-anonymity is explained in depth)., (*2)

Installation

Via composer: composer require esolitos/pwnedpasswords, (*3)

Usage

The usage is very simple, just create the object and call, (*4)

$mySafePassword = 'p@ssword';

$validator = Esolitos\PwnedPasswords\PwnageValidator();
$pwnedCount = $validator->getPasswordPwnage($mySafePassword);

print_r($pwnedCount)

> 47205

Bonus points: Drupal module

This library was initially built for the drupal module: Pwned Passwords, (*5)

The Versions

26/02 2018

dev-master

9999999-dev

Generic service to query Troy's pwnedpasswords.com service.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar esolitos

26/02 2018

1.0-alpha1

1.0.0.0-alpha1

Generic service to query Troy's pwnedpasswords.com service.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar esolitos

26/02 2018

dev-develop

dev-develop

Generic service to query Troy's pwnedpasswords.com service.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar esolitos