QtPass 1.7.0
Multi-platform GUI for pass, the standard unix password manager.
Loading...
Searching...
No Matches
passwordconfiguration.h
1// SPDX-FileCopyrightText: 2018 Anne Jan Brouwer
2// SPDX-License-Identifier: GPL-3.0-or-later
3#ifndef SRC_PASSWORDCONFIGURATION_H_
4#define SRC_PASSWORDCONFIGURATION_H_
5
6#include <QString>
7
17 ALLCHARS = 0,
18 ALPHABETICAL,
19 ALPHANUMERIC,
20 CUSTOM,
21 CHARSETS_COUNT // have to be last, for easier initialization of arrays
22 };
23
30 int length;
34 QString Characters[CHARSETS_COUNT];
39 Characters[ALLCHARS] =
40 "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890~!@#$%^&"
41 "*()_-+={}[]|:;<>,.?"; /*AllChars*/
42 Characters[ALPHABETICAL] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstu"
43 "vwxyz"; /*Only Alphabetical*/
44 Characters[ALPHANUMERIC] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstu"
45 "vwxyz1234567890"; /*Alphabetical and Numerical*/
46 Characters[CUSTOM] = Characters[ALLCHARS]; // may be redefined by user
47 }
48};
49
50#endif // SRC_PASSWORDCONFIGURATION_H_
int length
Length of the password.
characterSet
Character set options for password generation.
QString Characters[CHARSETS_COUNT]
The different character sets.
characterSet selected
Currently active character set selection.
PasswordConfiguration()
Construct a PasswordConfiguration with sensible defaults.