23#ifndef PASSWORDGENERATOR_H
24#define PASSWORDGENERATOR_H
58 std::
string next(
size_t length = 16) noexcept;
62 std::random_device m_randomDevice;
63 std::mt19937 m_randomEngine;
PasswordGenerator(PasswordContent contentFlags=PasswordContent::Numeric|PasswordContent::Uppercase|PasswordContent::Lowercase|PasswordContent::Special|PasswordContent::Space) noexcept
Constructs a PasswordGenerator.
void setContentFlags(PasswordContent contentFlags) noexcept
Sets the flags of possible characters for the generator to use.
PasswordContent getContentFlags() const noexcept
Gets the flags of possible characters for the generator to use.
std::string next(size_t length=16) noexcept
Generates a new password.
Definition credential.h:29
PasswordContent
Flags to describe the content of a password.
Definition passwordcontent.h:34
@ Uppercase
The password contains uppercase characters.
Definition passwordcontent.h:36
@ Numeric
The password contains numeric characters.
Definition passwordcontent.h:35
@ Special
The password contains special characters.
Definition passwordcontent.h:38
@ Space
The password contains spaces.
Definition passwordcontent.h:39
@ Lowercase
The password contains lowercase characters.
Definition passwordcontent.h:37