|
mk-pass
Generate a password comprehensively
|
Data Structures | |
| struct | PasswordRequirements |
| A structure to describe the requirements of a password's contents. More... | |
Functions | |
| uint16_t | generatePassword (char *string, PasswordRequirements config) |
| void | runMain () |
| The function used as a native entrypoint for an executable. | |
| PasswordRequirements | validateRequirements (const PasswordRequirements *config) |
| uint16_t mk_pass::generatePassword | ( | char * | string, |
| PasswordRequirements | config ) |
Generate a password given the constraints specified by config.
This function will invoke validateRequirements(config) to ensure basic password requirements are met.
| void mk_pass::runMain | ( | ) |
The function used as a native entrypoint for an executable.
| PasswordRequirements mk_pass::validateRequirements | ( | const PasswordRequirements * | config | ) |
Validates the instance's values.
This returns a mutated copy of the instance where the values satisfy "sane minimum requirements" suitable for any password.
The phrase "sane minimum requirements" implies
If this function finds a conflict between the specified number of specials characters and decimal, then decimal integers takes precedence.
For example: