Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new hidden bug #112

Closed
andim27 opened this issue Mar 7, 2024 · 1 comment
Closed

new hidden bug #112

andim27 opened this issue Mar 7, 2024 · 1 comment

Comments

@andim27
Copy link

andim27 commented Mar 7, 2024

I found bug in NyStorage:
Sometime on old phones have an error

 NyStorage.read at line 200 within nylo_support
PlatformException(Exception encountered, read, javax.crypto.BadPaddingException: error:1e000065:Cipher functions:OPENSSL_internal:BAD_DECRYPT
	at com.android.org.conscrypt.NativeCrypto.EVP_CipherFinal_ex(Native Method)
	at com.android.org.conscrypt.OpenSSLCipher$EVP_CIPHER.doFinalInternal(OpenSSLCipher.java:596)
	at com.android.org.conscrypt.OpenSSLCipher.engineDoFinal(OpenSSLCipher.java:363)

I think better choice use try-catch in the core: in String? data = await StorageManager.storage.read(key: key);
Will wait new update

@agordn52
Copy link
Contributor

agordn52 commented Mar 8, 2024

Hi @andim27,

Hope you are well, thanks for reporting this.

I've done a bit of digging online and it appears related to the below issues:
juliansteenbakker/flutter_secure_storage#210
BitCodersNN/unn-mobile#224

This appears to be the solution: juliansteenbakker/flutter_secure_storage#43 (comment)

<application
    ...
        android:allowBackup="false"
        android:fullBackupContent="false">

I've updated Nylo in this commit to fix it 2be2d5b 👍

@agordn52 agordn52 closed this as completed Mar 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants