Time-based OTP Demo

Mathematical exploration of time-gated authentication windows.

Server Protocol (Issuer)
System ready. Generate keys to begin...
User Device (Client)
Waiting for credentials...
Sync: - Time left: 15s
Cloud Authentication Gateway
Gateway Log.

Theoretical Basis

This demo uses a custom mathematical OTP generation algorithm:

$$OTP = S^C \pmod{M}$$

Where:

The server validates the code within a window of $[C-1, C, C+1]$ to account for network latency.