# ex_2fa v0.1.0 - API Reference

## Modules

- [Ex2FA](Ex2FA.md): A zero-dependency Elixir Two-Factor Authentication (2FA) library with full API
compatibility for `nio_google_authenticator`.
- [Ex2FA.Changeset](Ex2FA.Changeset.md): Ecto.Changeset helper functions for inserting or regenerating a 2FA secret.
- [Ex2FA.HOTP](Ex2FA.HOTP.md): RFC 4226 HMAC-based One-Time Password (HOTP) implementation in pure Elixir.

- [Ex2FA.RecoveryCodes](Ex2FA.RecoveryCodes.md): Generates, hashes, and validates single-use 2FA recovery (backup) codes.
- [Ex2FA.TOTP](Ex2FA.TOTP.md): RFC 6238 Time-based One-Time Password (TOTP) implementation in pure Elixir.
- [Ex2FA.URI](Ex2FA.URI.md): 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`.

