2017 © Pedro Peláez
 

library password_exposed

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.

image

divineomega/password_exposed

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.

  • Friday, July 13, 2018
  • by DivineOmega
  • Repository
  • 7 Watchers
  • 89 Stars
  • 8,536 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 5 Forks
  • 0 Open issues
  • 19 Versions
  • 177 % Grown

The README.md

🔒 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., (*1)

, (*2)

Build Status StyleCI , (*3)

Installation

The password_exposed package can be easily installed using Composer. Just run the following command from the root of your project., (*4)

composer require "divineomega/password_exposed"

If you have never used the Composer dependency manager before, head to the Composer website for more information on how to get started., (*5)

Usage

To check if a password has been exposed in a data breach, just pass it to the password_exposed method., (*6)

Here is a basic usage example:, (*7)

switch(password_exposed('hunter2')) {

    case PasswordStatus::EXPOSED:
        // Password has been exposed in a data breach.
        break;

    case PasswordStatus::NOT_EXPOSED:
        // Password has not been exposed in a known data breach.
        break;

    case PasswordStatus::UNKNOWN:
        // Unable to check password due to an API error.
        break;
}

If you prefer to avoid using helper functions, the following syntax is also available., (*8)

$passwordStatus = (new PasswordExposedChecker())->passwordExposed($password);

SHA1 Hash

You can also supply the SHA1 hash instead of the plain text password, by using the following method., (*9)

$passwordStatus = (new PasswordExposedChecker())->passwordExposedByHash($hash);

or..., (*10)

$passwordStatus = password_exposed_by_hash($hash);

The Versions

13/07 2018

dev-master

9999999-dev

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.

  Sources   Download

LGPL-3.0-only

The Requires

 

The Development Requires

by Jordan Hall

13/07 2018

v2.5.3

2.5.3.0

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.

  Sources   Download

LGPL-3.0-only

The Requires

 

The Development Requires

by Jordan Hall

12/07 2018

dev-analysis-8PANEK

dev-analysis-8PANEK

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.

  Sources   Download

LGPL-3.0-only

The Requires

 

The Development Requires

by Jordan Hall

12/07 2018

v2.5.2

2.5.2.0

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.

  Sources   Download

LGPL-3.0-only

The Requires

 

The Development Requires

by Jordan Hall

02/04 2018

v2.5.1

2.5.1.0

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.

  Sources   Download

LGPL-3.0-only

The Requires

 

The Development Requires

by Jordan Hall

02/04 2018

v2.5.0

2.5.0.0

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.

  Sources   Download

LGPL-3.0-only

The Requires

 

The Development Requires

by Jordan Hall

14/03 2018

v2.4.0

2.4.0.0

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.

  Sources   Download

LGPL-3.0-only

The Requires

 

The Development Requires

by Jordan Hall

03/03 2018

v2.3.3

2.3.3.0

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.

  Sources   Download

LGPL-3.0-only

The Requires

 

The Development Requires

by Jordan Hall

03/03 2018

dev-prevent-full-hashes-being-cached

dev-prevent-full-hashes-being-cached

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.

  Sources   Download

LGPL-3.0-only

The Requires

 

The Development Requires

by Jordan Hall

03/03 2018

dev-analysis-XW3OoV

dev-analysis-XW3OoV

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.

  Sources   Download

LGPL-3.0-only

The Requires

 

The Development Requires

by Jordan Hall

02/03 2018

v2.3.2

2.3.2.0

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.

  Sources   Download

LGPL-3.0-only

The Requires

 

The Development Requires

by Jordan Hall

28/02 2018

v2.3.1

2.3.1.0

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.

  Sources   Download

LGPL-3.0-only

The Requires

 

The Development Requires

by Jordan Hall

28/02 2018

v2.3.0

2.3.0.0

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.

  Sources   Download

LGPL-3.0-only

The Requires

 

The Development Requires

by Jordan Hall

26/02 2018

v2.2.0

2.2.0.0

This PHP package provides an `password_exposed` helper function, that uses the haveibeenpwned.com API to check if a password has been exposed in a data breach.

  Sources   Download

LGPL-3.0-only

The Requires

 

The Development Requires

by Jordan Hall

15/02 2018

v2.1.1

2.1.1.0

This PHP package provides an `password_exposed` helper function, that uses the haveibeenpwned.com API to check if a password has been exposed in a data breach.

  Sources   Download

LGPL-3.0-only

The Requires

 

The Development Requires

by Jordan Hall

15/02 2018

v2.1.0

2.1.0.0

This PHP package provides an `password_exposed` helper function, that uses the haveibeenpwned.com API to check if a password has been exposed in a data breach.

  Sources   Download

LGPL-3.0-only

The Requires

 

The Development Requires

by Jordan Hall

08/02 2018

v2.0.0

2.0.0.0

This PHP package provides an `password_exposed` helper function, that uses the haveibeenpwned.com API to check if a password has been exposed in a data breach.

  Sources   Download

LGPL-3.0-only

The Requires

 

The Development Requires

by Jordan Hall

01/02 2018

v1.0.1

1.0.1.0

This PHP package provides an `password_exposed` helper function, that uses the haveibeenpwned.com API to check if a password has been exposed in a data breach.

  Sources   Download

LGPL-3.0-only

The Requires

 

The Development Requires

by Jordan Hall

01/02 2018

v1.0.0

1.0.0.0

This PHP package provides an `password_exposed` helper function, that uses the haveibeenpwned.com to check if a password has been exposed in a data breach.

  Sources   Download

LGPL-3.0-only

The Requires

 

The Development Requires

by Jordan Hall