PrismEncryptedStore
Transparent encryption wrapper. Encrypts with AES-GCM before delegating to inner store. Decrypts on load.
Async Variant
Security
- Algorithm: AES-GCM (authenticated encryption)
- Nonce: Auto-generated per encryption
- Format: Combined nonce + ciphertext + tag
- Wrong key →
PrismStorageError.decryptionFailed
PrismCompressedStore
Transparent compression wrapper. Compresses before save, decompresses on load.
Algorithms
Async Variant
Combining Layers
Stack encryption + compression for maximum efficiency:
Compress before encrypting. Encrypted data has high entropy and compresses poorly.