Module encryption

Module encryption 

Source
Expand description

Encryption for API keys at rest

This module provides AES-256-GCM encryption for storing API keys securely, inspired by Loxone’s RSA/AES encryption approach.

Structs§

EncryptedData
Encrypted data with nonce

Enums§

EncryptionError
Encryption errors

Functions§

decrypt_data
Decrypt data using AES-256-GCM
derive_encryption_key
Derive an encryption key from a master key and context
encrypt_data
Encrypt data using AES-256-GCM
generate_encryption_key
Generate a random encryption key
secure_zero
Zero out sensitive data in memory