Skip to main content

Module encryption

Module encryption 

Source
👎Deprecated:

Will be extracted to mockforge-workspace crate

Expand description

End-to-end encryption module for MockForge

This module has been refactored into sub-modules for better organization:

  • algorithms: Core encryption algorithms (AES-GCM, ChaCha20-Poly1305)
  • key_management: Key generation, storage, and lifecycle management
  • auto_encryption: Automatic encryption configuration and processing
  • derivation: Key derivation functions (Argon2, PBKDF2)
  • errors: Error types and handling for encryption operations

§Key Management Architecture

Modules§

utilsDeprecated
Utility functions for encryption operations

Structs§

AutoEncryptionConfigDeprecated
Configuration for automatic encryption of sensitive fields
AutoEncryptionProcessorDeprecated
Automatic encryption processor for sensitive data
ContextualErrorDeprecated
Enhanced encryption error with additional debugging context
EncryptionKeyDeprecated
Cryptographic key for encryption operations
ErrorContextDeprecated
Error context for enhanced debugging and error reporting
FileKeyStorageDeprecated
File-based key storage implementation
KeyManagementStoreDeprecated
Key store for managing encryption keys
KeyStoreDeprecated
Key store for managing encryption keys
MasterKeyManagerDeprecated
Master key manager for OS keychain integration
WorkspaceKeyManagerDeprecated
Workspace key manager for handling per-workspace encryption keys

Enums§

EncryptionAlgorithmDeprecated
Encryption algorithms supported by MockForge
EncryptionErrorDeprecated
Errors that can occur during encryption/decryption operations
ErrorRecoveryStrategyDeprecated
Error recovery strategies for handling encryption failures
ErrorSeverityDeprecated
Error severity levels for encryption operations
KeyDerivationMethodDeprecated
Key derivation methods for generating encryption keys from passwords

Traits§

KeyStorageDeprecated
Key storage interface for different key storage backends

Functions§

decrypt_with_keyDeprecated
Decrypt text using a stored key from the key store
encrypt_with_keyDeprecated
Encrypt text using a stored key from the key store
get_key_storeDeprecated
Get the global key store if it has been initialized
init_key_storeDeprecated
Initialize the global key store singleton

Type Aliases§

EncryptionResultDeprecated
Result type alias for encryption operations
ResultDeprecated
Result type alias for encryption operations