Expand description
One-time code policy, generation, normalization, and validation (RFC-003).
The four representations of a code are kept distinct (RFC-003 §11.2):
generated plaintext and user input are crate::secret::PlainCode /
normalized String (secret, never persisted); the persisted value is a
crate::hashing::LookupKey derived in the crate::hashing module.
Re-exports§
pub use alphabet::Alphabet;pub use alphabet::DEFAULT_ALPHABET;pub use generate::generate_code;pub use generate::validate_code_input;pub use normalize::normalize;pub use policy::CodePolicy;pub use policy::DEFAULT_MAX_RAW_LEN;pub use policy::SECURE_MIN_HUMAN_LENGTH;pub use policy::SHORT_COMPAT_LENGTH;