mirror of
https://github.com/privacyguides/privacyguides.org.git
synced 2024-12-24 15:09:38 -05:00
removed ambiguous characters
such as i, l, 1, o, 0, etc. also reduced the amount of special characters
This commit is contained in:
parent
c14ff30383
commit
d4c4b1adbb
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user