entropy-auth 2026.7.31

Authentication and authorization for Entropy Softworks server and API projects
//! Local username/password credential management.
//!
//! Provides types for validated usernames, password-carrying credentials with
//! automatic zeroization, and a [`CredentialStore`] trait for pluggable
//! storage backends. An [`InMemoryCredentialStore`] is included for testing.
//!
//! # Security
//!
//! - Passwords in [`Credentials`] are wrapped in [`crate::crypto::zeroize::Zeroizing`] and cleared
//!   from memory on drop.
//! - Usernames are validated at construction time via [`crate::util::validation::is_valid_username`].
//! - The [`CredentialStore`] trait stores only [`crate::local::password::PasswordHash`] values, never
//!   raw passwords.

mod credentials;
pub mod password;
mod store;

pub use credentials::{Credentials, Username, UsernameError};
pub use store::{CredentialStore, InMemoryCredentialStore, InMemoryStoreError, StoredCredential};