Nonce Auth

A lightweight, secure nonce-based authentication library for Rust, designed to prevent replay attacks in APIs and other services.
Core Features
- Replay Protection: Employs nonces, timestamps, and HMAC-SHA256 signatures to ensure each request is unique and authentic.
- Safe & Ergonomic API: Uses a builder pattern (
credential_builder) to guide developers towards safe usage, preventing common security pitfalls. - Async & Pluggable Storage: Fully asynchronous design with a trait-based storage system, allowing for easy integration with backends like in-memory, SQLite, or Redis.
Quick Start
use ;
async
Configuration & Examples
- For detailed configuration of TTL, time windows, storage backends, and client customization, see CONFIGURATION.md.
- For more advanced usage, including a full web server implementation, see the examples directory.
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.