sm_generate_totp() (39172)
sm_generate_totp - generates TOTP given a secret key
SYNOPSIS
totp = sm_generate_totp(key, digits)
char *totp;
char *key;
int digits;
DESCRIPTION
Returns a TOTP (Time-based One-time Password) for a given secret key.
The digits argument specifies the number of digits (typically 6).
The algorithm matches standard authenticator apps, enabling verification
of user-entered codes against generated values.
RETURNS
totp = temporary buffer containing the TOTP code
= NULL on failure
vidstore-mfa Sample
PR_SPAN_CLASSES - Enables <span> tags with class attributes for better CSS styling (39156)PR_WEB_NO_DISP_ATTRS - Suppresses inline font styling to allow full CSS control (39257)PR_WEB_JS_ALERT - Allows customization of client-side validation popups via user-defined JavaScript functions (38742)DBMS SQL WITH statements (39104)WITH clauses are not supported