Javascript library for generate random passwords Demo
- 0123456789
- abcdefghijklmnopqrstuvwxyz
- ABCDEFGHIJKLMNOPQRSTUVWXYZ
- -_!@#$%^&*()+/{[]}|\;:'<>?
If you want you can override this config (for example Password.config.useDigits = false)
config: {
useDigits : true,
useAlphabet : true,
useAlphabetCapitalized : true,
useSpec : true,
numberOfPasswords : 1,
length : 5
}
bits = Math.floor(Math.log(charset)*(lenght/Math.log(2)))
- bits - bit resistance
- log - natural logarithm
- length - password length
- charset - sets the total size for each of the types below, if they exist in possible characters in passwords
It's usefull method for generating password from your phrase, that you can simply remember
Example: Password.encrypt('my_password',10) returns password KElY91usje- Put it library in you project and link it
- Configure it in Password.config settings
- Password.generate() returns passwords in JSON format