DeterministicESPAsyncWebServer v6.28.0
Zero-allocation, bounded-execution async HTTP server for ESP32
Loading...
Searching...
No Matches
totp.h File Reference

TOTP two-factor auth (RFC 6238) (DETWS_ENABLE_TOTP). More...

#include "ServerConfig.h"
#include <stddef.h>
#include <stdint.h>

Go to the source code of this file.

Detailed Description

TOTP two-factor auth (RFC 6238) (DETWS_ENABLE_TOTP).

Time-based one-time passwords over HMAC-SHA1 (the existing software SHA-1) - Google Authenticator / Authy compatible. Compute the current code from a shared secret and the Unix time, verify a submitted code within a +/- step window (for clock skew), and decode the base32 secret a provisioning QR/app gives the user. Pure, no heap, host-tested against the RFC 6238 test vectors.

Author
Douglas Quigg (dstroy0)
Date
2026

Definition in file totp.h.