Structsยง
- Encryption
Config - Encryption configuration.
- Encryptor
- AES-256-GCM encryptor.
Constantsยง
- ENV_
ENCRYPTION_ ๐KEY - Environment variable for encryption key.
- KEY_
SIZE ๐ - Key size for AES-256 (32 bytes / 256 bits).
- MAGIC_
HEADER - Magic bytes to identify encrypted files.
Format:
SUBCOG_ENC_V1\0(14 bytes) - NONCE_
SIZE ๐ - Nonce size for AES-256-GCM (12 bytes / 96 bits).
Functionsยง
- is_
encrypted - Checks if data appears to be encrypted (has magic header).