JSPM

@marcusfernstrom/asva-password

1.1.5
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 6
  • Score
    100M100P100Q38123F
  • License MIT

Quickly check a password against OWASP ASVA v4. 2.1.1, 2.1.3, 2.1.7 / NIST 5.1.1.2 / CWE-521 requirements for minimum character count, spaces, and common passwords.

Package Exports

  • @marcusfernstrom/asva-password

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@marcusfernstrom/asva-password) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

ASVA JS Password check

Easily check a password against OWASP ASVA v4. 2.1.1, 2.1.3, 2.1.7 / NIST 5.1.1.2 / CWE-521 requirements for minimum character count and common passwords.

2.1.1 - Minimum character count 12 and top common passwords.

2.1.3 - Passwords CAN contain spaces. Multiple consecutive spaces are truncated to single spaces

2.1.7 - Password is checked against top 10.000 most common passwords sourced from https://github.com/danielmiessler/SecLists/tree/master/Passwords/Common-Credentials (commit a3416ba on May 27)

OWASP ASVA

https://owasp.org/www-project-application-security-verification-standard/ (v4.0.1 is the latest as of this package release)

NIST

https://pages.nist.gov/800-63-3/sp800-63b.html

CWE

https://cwe.mitre.org/data/definitions/521.html

Install

npm i @marcusfernstrom/asva-password

Use

Pass a string to check and get back a map.

const passwordCheck = require('@marcusfernstrom/asva-password')
const result = passwordCheck('sunshine')

{ passed: false, tooShort: true, tooCommon: true }
const passwordCheck = require('@marcusfernstrom/asva-password')
const result = passwordCheck('passwordsarecool')

{ passed: true }