This package has been deprecated

Author message:

WARNING: This project has been renamed to @edgeworkscreative/pwned-password. Install using @edgeworkscreative/pwned-password instead.

pwned-password
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

Built With Stencil

Pwned Password Component

Web component built with Stencil that utilizes native form validation to prevent the use of passwords found in previous data breaches via Have I Been Pwned API

Only the first 5 characters of the SHA-1 hash are sent to Have I Been Pwned.

Using the Pwned Password component on your site

Simply place this script tag <script src="https://unpkg.com/pwned-password@0.0.1/dist/pwned-password.js"></script> in the <head> of your website.

Usage

Basic

Preview

<pwned-password 
    input-name="password" 
    input-id="password" 
    input-class="form-control" 
    input-placeholder="Enter your password" />

Custom error message

$COUNT will be replaced with the number of times the password has been found.

Preview

<pwned-password 
    error-message="Custom error message - password found $COUNT times" 
    input-name="password" 
    input-id="password" 
    input-class="form-control" 
    input-placeholder="Enter your password" />

Readme

Keywords

none

Package Sidebar

Install

npm i pwned-password

Weekly Downloads

1

Version

0.0.1

License

MIT

Unpacked Size

307 kB

Total Files

28

Last publish

Collaborators

  • adamlacombe
  • drnwrks