Comments (10)
from flutter_secure_storage.
I have the same problem.
from flutter_secure_storage.
class SecureStorage {
// Create storage
late FlutterSecureStorage _storage;
static final SecureStorage _instance = SecureStorage._internal();
factory SecureStorage() {
return _instance;
}
SecureStorage._internal() {
_storage = FlutterSecureStorage();
}
// Read value
Future isSet({required String key}) async {
var val = await _storage.containsKey(key: key);
return val;
}
// Read value
Future readSecureData({required String key}) async {
var readData = await _storage.read(key: key);
return readData;
}
// Read all values
Future readAllSecureData() async {
Map<String, String> allValues = await _storage.readAll();
return allValues;
}
// Write value
Future writeSecureData({required String key, required String value}) async {
var writeData =
await _storage.write(key: key, value: value);
return writeData;
}
// Delete value
Future deleteSecureData({required String key}) async {
var deleteData = await _storage.delete(key: key);
return deleteData;
}
// Delete value
Future deleteAllSecureData() async {
var deleteData = await _storage.deleteAll();
return deleteData;
}
}
//This is I am using in my app, but still issue is not fixed.
from flutter_secure_storage.
I am updated secure storage v9.0.0 to v9.2.2, then again same issue:
I got this Error after app close and reopen:
PlatformException(Unexpected security result code, Code: -25300, Message: The specified item could not be found in the keychain., -25300, null)--
Please any one have solution for this.
from flutter_secure_storage.
Every time i am calling the Login API for token update, and deleting all Secure Stotage data, then again saving fresh data in secure storage.
So when ever reopen the application in IOS app,
When ever try to save data in secure storage below error occurred
How to solve this.
from flutter_secure_storage.
Same here, is there a size limit?
my code:
class LocalStorageServiceSecureImpl {
late final FlutterSecureStorage _storage;
LocalStorageServiceSecureImpl() {
_storage = FlutterSecureStorage(
iOptions: _getIOSOptions,
aOptions: _getAndroidOptions,
);
}
AndroidOptions get _getAndroidOptions =>
const AndroidOptions(encryptedSharedPreferences: true);
IOSOptions get _getIOSOptions => const IOSOptions(
accessibility: KeychainAccessibility.first_unlock,
synchronizable: true,
);
Future<void> saveData(String key, String data) async {
await _storage.write(
key: key,
value: data,
iOptions: _getIOSOptions,
aOptions: _getAndroidOptions,
);
}
Future<String?> loadData(String key) async {
return await _storage.read(
key: key,
iOptions: _getIOSOptions,
aOptions: _getAndroidOptions,
);
}
}
from flutter_secure_storage.
We have this issue along with the BadPaddingException: #541 I feel we need to personally remove the Flutter Secure Storage. It's causing weird issues. Might look into flutter_keychain
@sureshprokraya what has been your experience so far using this package across android and ios?
from flutter_secure_storage.
value is always null
from flutter_secure_storage.
from flutter_secure_storage.
Look like it only support string as a value. I tries to store a int and got error but after storing as string its working
from flutter_secure_storage.
Related Issues (20)
- > Failed to transform android.jar to match attributes {artifactType=android-platform-attr, org.gradle.libraryelements=jar, org.gradle.usage=java-runtime}. HOT 2
- InfoSec Documentation for Windows is missing
- Question about files on Windows platform
- Getting values in separate isolate fails - Code: -25308, Message: User interaction is not allowed HOT 7
- Reading a specific key or using read all returns a null from the store HOT 1
- Running on web fails when _selectOptions are called
- Recording with encrypted data
- Linux read always empty
- Cannot compile my project with AGP >=8.0.0 due to R8 error HOT 2
- I am trying to save data but for some reason it is not saved on Flutter web (Chrome)
- app run crash on macos m1 pro HOT 2
- flutter_secure_storage for web get error: type LegacyJavaScriptObject is not a subtype of FutureOr<CryptoKey> HOT 1
- Error while reading data on windows HOT 1
- SHA-1 is a weak hash known to have hash collisions.
- App uses the encryption mode CBC with PKCS5/PKCS7 padding
- After reopen application, getting null values in IOS. But working in Android HOT 1
- Null check operator used on a null value
- iOS: Breaking Change from 9.1.x forward, causing loss of data HOT 3
- Datas are not removed when app is uninstalled - I0S HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter_secure_storage.