Expand description
Secure hashing for API keys
This module implements secure hashing using SHA256 HMAC and salt, following best practices from the Loxone MCP implementation.
Structs§
- Salt
- Salt for key derivation (32 bytes = 256 bits)
Enums§
- Hashing
Error - Hashing errors
Functions§
- generate_
salt - Generate a new random salt
- hash_
api_ key - Hash an API key with salt using SHA256
- hmac_
sha256 - Hash data using HMAC-SHA256 (for token generation)
- verify_
api_ key - Verify an API key against a stored hash