removed ambiguous characters

such as i, l, 1, o, 0, etc. also reduced the amount of special
characters
This commit is contained in:
privacytoolsIO 2015-08-16 17:37:06 +08:00
parent c14ff30383
commit d4c4b1adbb

View File

@ -201,10 +201,10 @@
return (array[0] % range);
};
var generatePassword = function(options) {
var uppercase = "ABCDEFGHIJKLMNOPQRSTUVWXTZ";
var lowercase = "abcdefghiklmnopqrstuvwxyz";
var numbers = "0123456789";
var special = ".,-/#!$%^&*;:{}=-_`~()]";
var uppercase = "ABCDEFGHJKMNPQRSTUVWXYZ";
var lowercase = "abcdefghjkmnpqrstuvwxyz";
var numbers = "23456789";
var special = "!@#$%&*?";
var candidates = '';
if (options.includeUppercaseChars) {
candidates += uppercase;