resource_storage_secure 1.0.2 resource_storage_secure: ^1.0.2 copied to clipboard
Secure persistent resource storage implementation based on flutter_secure_storage plugin.
Secure Resource Storage #
Simple implementation of secure persistent resource storage for cached_resource package, based on flutter_secure_storage.
Components #
FlutterSecureResourceStorage
: secure persistent resource storage based onflutter_secure_storage
.FlutterSecureResourceStorageProvider
: factory to use for configuration ofcached_resource
.
Note: usage on Android #
Note: On Android if custom storage
configuration is not provided for [FlutterSecureResourceStorage]
then all the data are stored using EncryptedSharedPreferences in a single file
with name resource_storage
(See kResourceStorageEncryptedSharedPrefsName
constant).
As by default Android backups data on Google Drive, it can cause exception
java.security.InvalidKeyException:Failed to unwrap key
.
You need to:
- disable autobackup: https://developer.android.com/guide/topics/data/autobackup#EnablingAutoBackup
- or exclude sharedprefs: https://developer.android.com/guide/topics/data/autobackup#IncludingFiles