Skip to content

medipass/is-pin-good

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

is-pin-good

Checks if a given pin code is secure.

Statistically, one third of all four digit codes can be guessed by trying just 61 distinct combinations. Don't believe us? PIN number analysis

Install

$ npm install is-pin-good

Usage

const isPinGood = require('is-pin-good');

isPinGood('1234');
//=> false

isPinGood('8615');
//=> true

isPinGood('5555');
//=> false

API

isPinGood(input)

Returns a boolean.

input

Type: string

The pin code to check.

License

MIT © Medipass Solutions

About

🔒 Checks if a given pin code is secure.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published