Module hashing

Source
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§

HashingError
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