|
SecurePasswd_MGMT 2026.03.19
A modern, cross-platform password manager and two-factor authenticator (TOTP) designed with state-of-the-art security.
|
#include <openssl/hmac.h>#include <openssl/evp.h>#include <string.h>#include <time.h>#include <stdio.h>#include <stdlib.h>#include "totp.h"Functions | |
| static int | base32_decode (const uint8_t *encoded, uint8_t *result, int bufSize) |
| char * | generate_totp_code_at_time (const char *base32_secret, time_t current_time) |
| Generates a 6-digit TOTP code from a base32-encoded secret for a specific time. | |
| char * | generate_totp_code (const char *base32_secret) |
| Generates a 6-digit TOTP code from a base32-encoded secret for the current time. | |
|
static |
| char * generate_totp_code | ( | const char * | base32_secret | ) |
Generates a 6-digit TOTP code from a base32-encoded secret for the current time.
| base32_secret | The base32-encoded TOTP secret. |
| char * generate_totp_code_at_time | ( | const char * | base32_secret, |
| time_t | current_time ) |
Generates a 6-digit TOTP code from a base32-encoded secret for a specific time.
| base32_secret | The base32-encoded TOTP secret. |
| current_time | The time to generate the TOTP code for. |