QtPass 2.0.0
Developer documentation
Loading...
Searching...
No Matches
passwordconfiguration.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2018 Anne Jan Brouwer
2// SPDX-License-Identifier: GPL-3.0-or-later
8#ifndef SRC_PASSWORDCONFIGURATION_H_
9#define SRC_PASSWORDCONFIGURATION_H_
10
11#include <QString>
12
35
42 int length{16};
53 "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890~!@#$%^&"
54 "*()_-+={}[]|:;<>,.?"; /*AllChars*/
55 Characters[ALPHABETICAL] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstu"
56 "vwxyz"; /*Only Alphabetical*/
57 Characters[ALPHANUMERIC] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstu"
58 "vwxyz1234567890"; /*Alphabetical and Numerical*/
59 Characters[CUSTOM] = Characters[ALLCHARS]; // may be redefined by user
60 }
61};
62
63#endif // SRC_PASSWORDCONFIGURATION_H_
int length
Length of the generated password, in characters.
CharacterSet selected
Currently active character set selection.
QString Characters[CHARSETS_COUNT]
The alphabet of each character set, indexed by CharacterSet. Only the CUSTOM entry is meant to be cha...
CharacterSet
Character set options for password generation; also the index into Characters.
PasswordConfiguration()
Construct a PasswordConfiguration with sensible defaults.