|
libkeepass 0.2.0
KeePass key database importer/exporter library
|
TOTP code generation (RFC 6238). More...
#include <totp.hh>
Static Public Member Functions | |
| static std::string | Generate (const TotpConfig &config, std::time_t time=0) |
| Generates the current TOTP code. | |
| static std::string | Generate (const Entry &entry, std::time_t time=0) |
| Generates a code for the TOTP fields of an entry. | |
| static uint32_t | SecondsRemaining (const TotpConfig &config, std::time_t time=0) |
| Returns the number of seconds until the current time step expires. | |
TOTP code generation (RFC 6238).
Generates a code for the TOTP fields of an entry.
| entry | Entry whose custom fields are inspected. |
| time | Unix time to use; 0 means the current system time. |
|
static |
Generates the current TOTP code.
| config | Parsed parameters. |
| time | Unix time to use; 0 means the current system time. |
|
static |
Returns the number of seconds until the current time step expires.
| config | Parsed parameters. |
| time | Unix time to use; 0 means the current system time. |