offline_secure_session 2.0.1
offline_secure_session: ^2.0.1 copied to clipboard
Enterprise-grade Dart library for secure token storage with AES-256 encryption, offline action queue, auto-sync on reconnection, and persistent cache.
Changelog #
2.0.1 #
Breaking Changes #
- Now requires
init()before using any component - Encryption key is now required
Added #
- AES-256 encryption with random IV per operation
- SHA-256 key derivation
- GZIP compression for optimized storage
- Thread-safe operations with lock mechanism
- Logger hook for enterprise monitoring
- Metrics tracking (operations, errors, queue size, avg response time)
- Exponential backoff retry (1s, 2s, 4s... max 30s)
- Configurable max queue size
onSuccessandonErrorcallbacks in OfflineSync- Configurable connectivity check host
Changed #
- Separate encrypted files for session, cache, and queue
- SDK requirement updated to >=2.17.0
Dependencies #
- Added
crypto: ^3.0.3 - Added
encrypt: ^5.0.3
1.0.0 #
Added #
SecureSession- Token storage with expirationOfflineCache- Key-value persistent storageOfflineQueue- Queue actions when offlineOfflineSync- Process queue on reconnection with 2s timeout
Features #
- Single file architecture
- Compatible with Dart SDK >=2.12.0 <4.0.0
- Automatic connectivity monitoring