libnick 2025.9.1
A cross-platform base for native Nickvision applications.
|
A random password generator. More...
#include <passwordgenerator.h>
Public Member Functions | |
PasswordGenerator (PasswordContent contentFlags=PasswordContent::Numeric|PasswordContent::Uppercase|PasswordContent::Lowercase|PasswordContent::Special|PasswordContent::Space) noexcept | |
Constructs a PasswordGenerator. | |
PasswordContent | getContentFlags () const noexcept |
Gets the flags of possible characters for the generator to use. | |
void | setContentFlags (PasswordContent contentFlags) noexcept |
Sets the flags of possible characters for the generator to use. | |
std::string | next (size_t length=16) noexcept |
Generates a new password. | |
A random password generator.
|
noexcept |
Constructs a PasswordGenerator.
contentFlags | Flags of possible characters for the generator to use |
|
noexcept |
Gets the flags of possible characters for the generator to use.
|
noexcept |
Generates a new password.
length | The length of the generated password |
|
noexcept |
Sets the flags of possible characters for the generator to use.
contentFlags | Flags of possible characters for the generator to use |