1.1.6 • Published 2 years ago

password-strong v1.1.6

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Password Strength Check And Strong Password Generation

  • Checking the entered password and recommending a strong password.

Table of Contents

Introduction

  • According to what features the password is weak, a strong password is generated according to the user's input.

Features

  • Checking the strength of the password.
  • Setting a strong password similar to the password entered by the user.
  • Automatic generation of a strong password if no password is passed as an argument.

Installation

Clone the repository:

Install dependencies:

  • cd password-strong
  • npm install

Usage

const password = "hello";
const checkGeneratePassword = checkGenerate(password);
console.log(checkGeneratePassword)

{
  error: true,
  message: 'It did not pass validations: uppercase, number, character, length.',
  recommendedPassword: 'Hello4*.'
}

const password = "Hello4*.";
const checkGeneratePassword = checkGenerate(password);
console.log(checkGeneratePassword)

{ 
  error: false, 
  message: 'Password is strong.' 
}

const checkGeneratePassword = checkGenerate();
console.log(checkGeneratePassword)

{ 
  generatedPassword: ')j4FrI0O(SKz' 
}

Contributing

  • If you would like to contribute code, please fork this repository, make your changes, and then submit a pull-request.

License

  • This project is licensed under the MIT License. See the license file for more information.
1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago