super_cache_secure 1.0.0
super_cache_secure: ^1.0.0 copied to clipboard
AES-256-GCM secure caching layer for super_cache. Integrates with iOS Keychain and Android Keystore via flutter_secure_storage.
Changelog #
All notable changes to super_cache_secure are documented here.
Releases follow Semantic Versioning.
1.0.0 — 2024-01-01 #
Stable public release. API is frozen.
Changed #
- Version aligned with the rest of the
super_cachefamily. - Documentation improvements across all public symbols.
0.3.0 #
Added #
SecureCache<K,V>— AES-256-GCM in-memory cache. Each entry is individually encrypted; the nonce and MAC are stored alongside the ciphertext so tampering is detected onget().KeyStoreabstract interface — inject any key storage backend in tests without a dependency onflutter_secure_storage.FlutterSecureKeyStore— productionKeyStorebacked byflutter_secure_storage. UsesencryptedSharedPreferences: trueon Android and the Keychain on iOS/macOS.CacheEncryptionConfig—keyAliasandwipeOnEvictionoptions. WhenwipeOnEvictionistrue, the intermediate plaintextUint8Listis zeroed out after encryption (best-effort; managed-runtime caveat documented in README).SecureCache.initialize()— reads or generates the 256-bit AES key, persists it viaKeyStore. Must be called before anyget/put.- Barrel split:
super_cache_secure.dart(pure Dart core) andsuper_cache_secure_flutter.dart(exportsFlutterSecureKeyStore).