relax_storage library
A secure Flutter storage package with AES-CBC encryption.
RelaxStorage provides encrypted key-value storage built on top of GetStorage, using AES-CBC encryption with SHA-256 key derivation and random IV generation.
Quick Start
// Initialize storage
await RelaxStorage.init();
// Create an instance with an encryption key
final storage = RelaxStorage('my-secret-key');
// Save and read data
await storage.save<String>('token', 'abc123');
final token = storage.read<String>('token');
Classes
- Encrypter
- Default implementation of IEncrypter using AES-CBC encryption.
- IEncrypter
- Contract for encryption operations.
- IRelaxStorage
- Contract for encrypted key-value storage operations.
- RelaxStorage
-
Encrypted key-value storage built on top of
GetStorage.