Skip to content

it enables you to generate your own passwords with different degrees of power and security and adjust them to the length, characters, etc. You can include it on your website very easily, where no outside libraries have been used. Only Java Script.

License

Notifications You must be signed in to change notification settings

Syrian-Open-Source/js-password-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JS-Password-Generator

Install:

npm i sos-password-generator

Usage

  1. Require the package:
const PasswordGenerator = require('sos-password-generator')
  1. Create an instance of PasswordGenerator Class
const generator = new PasswordGenerator();
  1. Generate your password:
console.log(generator.generatePassword()); //Result => generates random 8-character-length password 
                                        // contains numbers,lower case ,upper case, and symbols.

Custom Options

Before generating password,You can pass options object to the method init

generator.init({
    hasUpper:true,
    hasLower:true,
    hasSymbol:true,
    hasNumber:false,
    passwordLength:15,
    allowedSymbols: '!@#$',
})

Default options

hasUpper:true
hasLower:true
hasSymbol:true
hasNumber:true
passwordLength:8
allowedSymbols: '!@#$%^&*(){}[]=/<>,.'

Credits

About Syrian Open Source

The Syrian Open Source platform is the first platform on GitHub dedicated to bringing Syrian developers from different cultures and experiences together, to work on projects in different languages, tasks, and versions, and works to attract Syrian developers to contribute more under one platform to open source software, work on it, and issue it with high quality and advanced engineering features, which It stimulates the dissemination of the open-source concept in the Syrian software community, and also contributes to raising the efficiency of developers by working on distributed systems and teams.

About

it enables you to generate your own passwords with different degrees of power and security and adjust them to the length, characters, etc. You can include it on your website very easily, where no outside libraries have been used. Only Java Script.

Topics

Resources

License

Stars

Watchers

Forks