unique-password-generator
v1.0.0
Published
Password generator function is used to generate a random password.
Downloads
3
Maintainers
Readme
Password Generator
Password generator function is used to generate a random password.
- The generated password can include upper case, lower case, numbers, and special characters.
- By default the function will return 12 characters password that include upper case, lower case, numbers, and special characters.
- And if parameters are passed then based on passed parameters the function will return the password.
Function usage
Syntax: getNewPassword();
Return Result: f%@2PC@Db76k
Syntax: getNewPassword(lowerCase, upperCase, number, specialCharacters);
Example:
getNewPassword(2, 4, 3, 7);
Return Result: F8oI$$1_M@u1H$^%
- Passed arguments will define how many characters needs to be included in password.
Syntax: getNewPassword(lowerCase, upperCase, number, specialCharacters);
Example 1:
getNewPassword(10);
Return Result: ctihhbpseg
Example 2:
getNewPassword(2, 4);
Return Result: CqLbCK
Example 3:
getNewPassword(2, 4, 0, 5);
Return Result: )B{dDJ#fB~>
- Sum of passed arguments will define the length of the generated password.
Syntax: getNewPassword(lowerCase, upperCase, number, specialCharacters);
// Length will be 6 for below example
Example: getNewPassword(1, 0, 2, 3);
Return Result: 24%_e{
License
ISC
Please let me know if you have any suggestions or feedback at: [email protected]
Thanks!