Expand description
Secret wrapper types for sensitive data
This module provides newtype wrappers for sensitive data types.
The wrappers leverage the secrecy crate’s SecretString type internally
for automatic memory zeroing and debug redaction, while adding serialization
support needed for environment configuration storage.
Structs§
- ApiToken
- A wrapper type for API tokens that prevents accidental exposure.
- Password
- A wrapper type for passwords that prevents accidental exposure.
Traits§
- Expose
Secret - Expose a reference to an inner secret
Functions§
- generate_
random_ password - Generate a cryptographically secure MySQL-compatible password.
Type Aliases§
- Plain
ApiToken - Plain API token used in DTOs for serialization/deserialization.
- Plain
Password - Plain password used in DTOs for serialization/deserialization.