API Reference ex_2fa v#0.1.0

Copy Markdown View Source

Modules

A zero-dependency Elixir Two-Factor Authentication (2FA) library with full API compatibility for nio_google_authenticator.

Ecto.Changeset helper functions for inserting or regenerating a 2FA secret.

RFC 4226 HMAC-based One-Time Password (HOTP) implementation in pure Elixir.

Generates, hashes, and validates single-use 2FA recovery (backup) codes.

RFC 6238 Time-based One-Time Password (TOTP) implementation in pure Elixir.

Generates standard Key URI Format (otpauth://) provisioning URIs for TOTP and HOTP authenticator apps (Google Authenticator, 1Password, Authy, etc.), as well as the legacy Google Charts QR URL compatible with nio_google_authenticator.