1.1.6 • Published 10 months ago
password-strong v1.1.6
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.