libnick 2024.12.0
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) | |
Constructs a PasswordGenerator. | |
PasswordContent | getContentFlags () const |
Gets the flags of possible characters in a generated password. | |
void | setContentFlags (PasswordContent contentFlags) |
Sets the flags of possible characters in a generated password. | |
std::string | next (size_t length=16) |
Generates a new password. | |
A random password generator.
Nickvision::Keyring::PasswordGenerator::PasswordGenerator | ( | PasswordContent | contentFlags = PasswordContent::Numeric|PasswordContent::Uppercase|PasswordContent::Lowercase|PasswordContent::Special | ) |
Constructs a PasswordGenerator.
contentFlags | Flags of possible characters in a generated password |
PasswordContent Nickvision::Keyring::PasswordGenerator::getContentFlags | ( | ) | const |
Gets the flags of possible characters in a generated password.
std::string Nickvision::Keyring::PasswordGenerator::next | ( | size_t | length = 16 | ) |
Generates a new password.
length | The length of the generated password |
void Nickvision::Keyring::PasswordGenerator::setContentFlags | ( | PasswordContent | contentFlags | ) |
Sets the flags of possible characters in a generated password.
contentFlags | Flags of possible characters in a generated password |