mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-08-02 03:26:14 -04:00
Adding EASCII character class.
This commit is contained in:
parent
c40a7a5265
commit
fa7c945363
2 changed files with 18 additions and 1 deletions
|
@ -195,6 +195,22 @@ QVector<PasswordGroup> PasswordGenerator::passwordGroups() const
|
||||||
|
|
||||||
passwordGroups.append(group);
|
passwordGroups.append(group);
|
||||||
}
|
}
|
||||||
|
if (m_classes & EASCII) {
|
||||||
|
PasswordGroup group;
|
||||||
|
|
||||||
|
for (int i = 128; i <= 169; i++) {
|
||||||
|
group.append(i);
|
||||||
|
}
|
||||||
|
|
||||||
|
for (int i = 171; i <= 254; i++) {
|
||||||
|
if ((m_flags & ExcludeLookAlike) && (i == 249)) { // "﹒"
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
group.append(i);
|
||||||
|
}
|
||||||
|
|
||||||
|
passwordGroups.append(group);
|
||||||
|
}
|
||||||
|
|
||||||
return passwordGroups;
|
return passwordGroups;
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,7 +32,8 @@ public:
|
||||||
LowerLetters = 0x1,
|
LowerLetters = 0x1,
|
||||||
UpperLetters = 0x2,
|
UpperLetters = 0x2,
|
||||||
Numbers = 0x4,
|
Numbers = 0x4,
|
||||||
SpecialCharacters = 0x8
|
SpecialCharacters = 0x8,
|
||||||
|
EASCII = 0x16
|
||||||
};
|
};
|
||||||
Q_DECLARE_FLAGS(CharClasses, CharClass)
|
Q_DECLARE_FLAGS(CharClasses, CharClass)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue