Comments (8)
We are also noticing this issue on our app.. For example on a Pixel 4a, Android 11.
@mogol Do you have any idea what might be the cause?
from flutter_secure_storage.
Hi @Rekubot
Are there any other logs?
from flutter_secure_storage.
None in the crash reports, and I haven't been able to reproduce the issue myself.
from flutter_secure_storage.
I have the same problem in pixel3a(Android 9.0).
from flutter_secure_storage.
This bug bubbled for me today. Cleaning app data fixed it
from flutter_secure_storage.
I'm also having the same issue. Android 9.0 Pixel2.
Here is Flutter doctor output
[✓] Flutter (Channel beta, 1.22.0-12.1.pre, on Mac OS X 10.15.4 19E287, locale en-TR)
• Flutter version 1.22.0-12.1.pre at /Users/bisma/Desktop/Flutter/flutter
• Framework revision 8b3760638a (3 weeks ago), 2020-09-15 17:47:13 -0700
• Engine revision 4654fc6cf6
• Dart version 2.10.0 (build 2.10.0-110.3.beta)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
• Android SDK at /Users/bisma/Library/Android/sdk
• Platform android-29, build-tools 29.0.3
• Java binary at: /Applications/Android Studio/Android Studio 4.1 Preview.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 11.4.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 11.4.1, Build version 11E503a
• CocoaPods version 1.10.0.rc.1
[!] Android Studio
• Android Studio at /Applications/Android Studio/Android Studio 4.1 Preview.app/Contents
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
[!] IntelliJ IDEA Ultimate Edition (version 2019.3.2)
• IntelliJ at /Applications/IntelliJ IDEA.app
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
• For information about installing plugins, see
https://flutter.dev/intellij-setup/#installing-the-plugins
[!] VS Code (version 1.49.2)
• VS Code at /Applications/Visual Studio Code.app/Contents
✗ Flutter extension not installed; install from
https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
Any further development regarding this?
from flutter_secure_storage.
Logs:
03-27 11:08:44.933 22599 22656 E flutter : [ERROR:flutter/lib/ui/ui_dart_state.cc(177)] Unhandled Exception: PlatformException(Exception encountered, read, javax.crypto.BadPaddingException: error:1e000065:Cipher functions:OPENSSL_internal:BAD_DECRYPT
03-27 11:08:44.933 22599 22656 E flutter : at com.android.org.conscrypt.NativeCrypto.EVP_CipherFinal_ex(Native Method)
03-27 11:08:44.933 22599 22656 E flutter : at com.android.org.conscrypt.OpenSSLEvpCipher.doFinalInternal(OpenSSLEvpCipher.java:152)
03-27 11:08:44.933 22599 22656 E flutter : at com.android.org.conscrypt.OpenSSLCipher.engineDoFinal(OpenSSLCipher.java:374)
03-27 11:08:44.933 22599 22656 E flutter : at javax.crypto.Cipher.doFinal(Cipher.java:2055)
03-27 11:08:44.933 22599 22656 E flutter : at d.g.a.b.b.b(Unknown Source:32)
03-27 11:08:44.933 22599 22656 E flutter : at d.g.a.a.b(Unknown Source:11)
03-27 11:08:44.933 22599 22656 E flutter : at d.g.a.a.d(Unknown Source:7)
03-27 11:08:44.933 22599 22656 E flutter : at d.g.a.a.a(Unknown Source:0)
03-27 11:08:44.933 22599 22656 E flutter : at d.g.a.a$b.run(Unknown Source:160)
03-27 11:08:44.933 22599 22656 E flutter : at android.os.Handler.handleCallback(Handler.java:938)
03-27 11:08:44.933 22599 22656 E flutter : at android.os.Handler.dispatchMessage(Handler.java:99)
03-27 11:08:44.933 22599 22656 E flutter : at android.os.Looper.loop(Looper.java:223)
03-27 11:08:44.933 22599 22656 E flutter : at android.os.HandlerThread.run(HandlerThread.java:67)
03-27 11:08:44.933 22599 22656 E flutter : , null)
03-27 11:08:44.933 22599 22656 E flutter : #0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:582)
03-27 11:08:44.933 22599 22656 E flutter : #1 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:159)
03-27 11:08:44.933 22599 22656 E flutter :
03-27 11:08:44.933 22599 22656 E flutter : #2 FlutterSecureStorage.read (package:flutter_secure_storage/flutter_secure_storage.dart:45)
03-27 11:08:44.933 22599 22656 E flutter :
from flutter_secure_storage.
This error can be thrown when the encryption or decryption key is not correct. Probably it became corrupted. I don't have a fix for this because it can have numerous causes. Also, there have been changes made to this package. Please try again with the latest version and if this issue is still occurring please comment.
from flutter_secure_storage.
Related Issues (20)
- [iOS] Native app update HOT 2
- App uses CBC with PKCS5/PKCS7 padding HOT 4
- [WEB] Upgrade of js Dependency in flutter_secure_storage_web HOT 1
- Implementing encryption with the same logic as FlutterSecureStorage HOT 2
- Is this project still maintained? HOT 11
- I suspect a bug where my session keys are deleted and it causes my session to be logged out. HOT 15
- Could not find gradle-8.1.1.jar (com.android.tools.build:gradle:8.1.1)
- Libsecret issues on fedora 39 HOT 1
- Error when updating the flutter_secure_storage_platform_interface 1.1.0 HOT 5
- Flutter secure storage 8.1.0 no longer works HOT 19
- The specified item could not be found in the keychain HOT 49
- Message: The specified item already exists in the keychain, IOS HOT 24
- StorageCipher initialization failed cause by AndroidKeyStore not found HOT 2
- [bug] Race condition on `write` and `read`. HOT 2
- `deleteAll` not working on iOS HOT 3
- A problem occurred configuring project ':flutter_secure_storage'. HOT 1
- [Web] Encryption of saved value by app-specific key
- PlatformException: Code: -25308. Help me! HOT 11
- requires js ^0.6.3 depends on js ^0.7.1 HOT 6
- Beware the androidx.security:security-crypto is deprecated
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.