Structs§
- Secure
Comparison - Secure comparison utilities
- Secure
Random Gen - Generate secure random values
- Secure
String - A secure string that is automatically zeroized when dropped
- Secure
Validation - Input validation with security considerations
Functions§
- constant_
time_ compare - Performs constant-time comparison of two byte slices to prevent timing attacks.
- generate_
secure_ token - Generates a cryptographically secure random token as a base64-encoded string.
- hash_
password - Hashes a password using bcrypt with a secure cost factor.
- verify_
password - Verifies a plaintext password against a bcrypt hash.