Password generator.
More...
#include <password_generator.h>
Password generator.
Password generator allows to generate and validate secure passwords for other security components.
Thread-safe.
- Examples
- password_generator.cpp.
Definition at line 51 of file password_generator.h.
◆ PasswordGenerator() [1/3]
Initialize password generator with required parameters.
- Parameters
-
length | - Password length (default is 12) |
flags | - Password flags (default is lower | upper | digits) |
Definition at line 19 of file password_generator.cpp.
◆ PasswordGenerator() [2/3]
◆ PasswordGenerator() [3/3]
◆ ~PasswordGenerator()
virtual CppSecurity::PasswordGenerator::~PasswordGenerator |
( |
| ) |
|
|
virtualdefault |
◆ flags()
◆ Generate()
◆ length()
size_t CppSecurity::PasswordGenerator::length |
( |
| ) |
const |
|
inlinenoexcept |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ Validate()
bool CppSecurity::PasswordGenerator::Validate |
( |
std::string_view |
password | ) |
const |
|
virtual |
Validate the given password with the current password requirements.
- Parameters
-
password | - Strong password |
- Returns
- 'true' if the given user password is valid, 'false' if the given user password is invalid
- Examples
- password_generator.cpp.
Definition at line 63 of file password_generator.cpp.
The documentation for this class was generated from the following files: