Module encryption

Source
Expand description

AES256-GCM encryption/decryption functionality for configuration files

Functionsยง

decode_base64
Decode base64 data back to binary
decrypt_data
Decrypt data using AES256-GCM
derive_key_from_password
Derive a 256-bit key from a password using a simple approach In production, you might want to use PBKDF2, scrypt, or Argon2
encode_base64
Encode binary data to base64 for safe transport/storage
encrypt_data
Encrypt data using AES256-GCM