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