Joi Password Complexity

Password complexity validation for Joi
Alternatives To Joi Password Complexity
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Confide1,216535132 years ago49July 09, 201542PHP
Confide is a authentication solution for Laravel 4
Navajo846
524 years ago1March 24, 2015mitObjective-C
Password Validator & Strength Evaluator
Yubico Pam606
a year ago1February 27, 201852bsd-2-clauseC
Yubico Pluggable Authentication Module (PAM)
Topasscodeviewcontroller377
3a year ago2January 26, 201819mitObjective-C
A modal passcode input and validation view controller for iOS
Pwned Validator3697121 days ago10February 26, 20222mitPHP
Super simple Laravel Validator for checking password via the Pwned Passwords service of Have I Been Pwned
Pwned353766 months ago11February 23, 20222mitRuby
😱 An easy, Ruby way to use the Pwned Passwords API.
Password Validator2431378410 months ago29May 15, 20226mitJavaScript
Validates password according to flexible and intuitive specification
Laravel Nist Password Rules19565a month ago15May 27, 20218lgpl-3.0PHP
🔒 Laravel validation rules that follow the password related recommendations found in NIST Special Publication 800-63B section 5.
Genericpasswordrow179
22 years ago6October 02, 20183mitSwift
A row for Eureka to implement password validations.
Validation Composite172
3a month ago8February 24, 2023otherPHP
Allows uniting of several validation rules into single one for easy re-usage
Alternatives To Joi Password Complexity
Select To Compare


Alternative Project Comparisons
Readme

Joi Password Complexity

Creates a Joi object that validates password complexity.

Requirements

  • Joi v17 or higher

Installation

npm install joi-password-complexity

Examples

No options specified

const passwordComplexity = require("joi-password-complexity");
passwordComplexity().validate("aPassword123!");

When no options are specified, the following are used:

{
  min: 8,
  max: 26,
  lowerCase: 1,
  upperCase: 1,
  numeric: 1,
  symbol: 1,
  requirementCount: 4,
}

Options specified

const passwordComplexity = require("joi-password-complexity");

const complexityOptions = {
  min: 10,
  max: 30,
  lowerCase: 1,
  upperCase: 1,
  numeric: 1,
  symbol: 1,
  requirementCount: 2,
};

passwordComplexity(complexityOptions).validate("aPassword123!");

Error Label (optional) Specified

const label = "Password"

const passwordComplexity = require("joi-password-complexity");
  • For default options:
passwordComplexity(undefined, label).validate("aPassword123!");
  • For specified options:
passwordComplexity(complexityOptions, label).validate("aPassword123!");

The resulting error message: 'Password should be at least 8 characters long'

License

MIT

Popular Validation Projects
Popular Password Projects
Popular Data Processing Categories

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Typescript
Validation
Password
Labels