|
SecurePasswd_MGMT 2026.03.19
A modern, cross-platform password manager and two-factor authenticator (TOTP) designed with state-of-the-art security.
|
#include <stdbool.h>Functions | |
| char * | generate_password (int len, bool upper, bool num, bool special) |
| Generates a cryptographically secure random password. | |
| char * generate_password | ( | int | len, |
| bool | upper, | ||
| bool | num, | ||
| bool | special ) |
Generates a cryptographically secure random password.
Uses libsodium's randombytes_buf for secure entropy and guarantees the inclusion of at least one character from each enabled pool (upper, num, special) using a secured Fisher-Yates shuffle.
| len | The desired length of the password. |
| upper | Whether to include uppercase letters. |
| num | Whether to include numbers. |
| special | Whether to include special characters (!#$%^&*()). |