Skip to main content

Module encryption

Module encryption 

Source

Structs§

EncryptionConfig
Encryption configuration
EncryptionEngine
Encryption engine using AES-256-GCM SECURITY: Uses atomic counter to guarantee nonce uniqueness
EncryptionKey
Secure encryption key with automatic zeroization
EncryptionManager
Encryption manager for repository

Functions§

cache_passphrase
Store passphrase in cache with timeout SECURITY: Passphrase stored in Zeroizing wrapper for automatic memory clearing
clear_cached_passphrase
Clear cached passphrase for specific repository
clear_passphrase_cache
Clear all cached passphrases
get_cached_passphrase
Retrieve cached passphrase if valid SECURITY: Returns clone of Zeroizing-wrapped passphrase
prompt_for_passphrase
Prompt user for passphrase securely via CLI
prompt_for_passphrase_confirmation
Prompt for passphrase confirmation (for new passphrases)