You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am investigating this plugin a bit, since I want to store an encryption key for the local database in my app.
It is crucial that this key is not lost, otherwise the data in the database will be lost.
I am performing a standard check like (pseudo code):
key = flutterSecureStorage.read('key');
if (key == null) {
// On first app start.
flutterSecureStorage.write('key', cipher.generateKey());
}
database.open(key)
Do I understand correctly that is fails silently and instead returns null? That would be bad for the most usage of this plugin since you cannot count on what you get from the read method.
The text was updated successfully, but these errors were encountered:
Hi.
I am investigating this plugin a bit, since I want to store an encryption key for the local database in my app.
It is crucial that this key is not lost, otherwise the data in the database will be lost.
I am performing a standard check like (pseudo code):
However it seems from the following line in your code, that you ignore the status on the response and always just returns the value:
https://github.com/mogol/flutter_secure_storage/blob/develop/flutter_secure_storage/ios/Classes/SwiftFlutterSecureStoragePlugin.swift#L47
Do I understand correctly that is fails silently and instead returns null? That would be bad for the most usage of this plugin since you cannot count on what you get from the read method.
The text was updated successfully, but these errors were encountered: