libnick 2024.9.2
A cross-platform base for native Nickvision applications.
Loading...
Searching...
No Matches
passwordgenerator.h
Go to the documentation of this file.
1
23#ifndef PASSWORDGENERATOR_H
24#define PASSWORDGENERATOR_H
25
26#include <string>
27#include <vector>
28#include "passwordcontent.h"
29
30namespace Nickvision::Keyring
31{
63}
64
65#endif //PASSWORDGENERATOR_H
A random password generator.
Definition passwordgenerator.h:36
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.
std::string next(size_t length=16)
Generates a new password.
void setContentFlags(PasswordContent contentFlags)
Sets the flags of possible characters in a generated password.
Definition credential.h:30
PasswordContent
Flags to describe the content of a password.
Definition passwordcontent.h:32
@ Uppercase
The password contains uppercase characters.
@ Numeric
The password contains numeric characters.
@ Special
The password contains special characters.
@ Lowercase
The password contains lowercase characters.