TOTP From First Principles: Building an RFC 4226 / 6238 CLI in Rust
A small Rust CLI that generates TOTP / HOTP codes, parses otpauth:// URIs, and verifies user-supplied codes against a clock-drift window. No dependency on totp-rs or oath-toolkit. Everything — base32, HMAC wiring, dynamic truncation, URI format — is written out so you can read it. Source: https:...