Module crypto

Module crypto 

Source
Expand description

Cryptographic utilities for secure authentication

This module provides encryption, hashing, and key derivation functions for secure API key management, inspired by Loxone MCP’s security model.

Re-exports§

pub use encryption::EncryptionError;
pub use encryption::decrypt_data;
pub use encryption::encrypt_data;
pub use hashing::HashingError;
pub use hashing::generate_salt;
pub use hashing::hash_api_key;
pub use hashing::verify_api_key;
pub use keys::KeyDerivationError;
pub use keys::derive_key;
pub use keys::generate_secure_key;
pub use encryption::EncryptedData;
pub use hashing::Salt;

Modules§

encryption
Encryption for API keys at rest
hashing
Secure hashing for API keys
keys
Secure key generation and derivation

Enums§

CryptoError
General crypto error type

Functions§

init
Initialize the crypto module (perform any necessary setup)