0.1.1 • Published 3 years ago

nzism-passgen v0.1.1

Weekly downloads
1
License
ISC
Repository
github
Last release
3 years ago

NZISM Compliant Password Generator

This package attempts to provide an up-to-date library for generating and validating NZISM compliant passwords.

Example randomly generated passwords:

Reelection34#
Isolable68@
Aldermanic32%
Ratiocinate77@

npm version Coverage Status codebeat badge CircleCI

Usage

const pg = require('nzism-passgen');

// Get a compliant password
console.log(pg.generatePassword());

// Validate an existing password
const password = 'notcompliant';
const isCompliant = pg.validatePassword(password);
console.log(`Password "${password}" compliant:`, isCompliant);

Installation

In your app:

npm install nzism-passgen

or

yarn add nzism-passgen

Password Standard

This standard has been derived from the NZISM, section 16.1.

The current version of the ISM can be found here: https://www.nzism.gcsb.govt.nz/ism-document

As of this writing, the most recent update to the ISM was February 2020, v3.3.

As the standard defined there is not prescriptive, the rules below have been derived from the deprecated NZ Government Authentication Standard

  • Minimum length of 10 characters
  • Maximum length of 64 characters
  • Mixed case
  • A special character
  • A number
0.1.0

3 years ago

0.1.1

3 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago