[Flutter Error]

[Flutter Error]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.o

민프야 2024. 7. 9. 16:04

PlatformException(Exception encountered, read, javax.crypto.BadPaddingException: error:1e000065:Cipher functions:OPENSSL_internal:BAD_DECRYPT    at cohttp://m.android.org.conscrypt.NativeCrypto.EVP_CipherFinal_ex(Native Method)    at cohttp://m.android.org.conscrypt.OpenSSLEvpCipher.doFinalInternal(OpenSSLEvpCipher.java:152) at cohttp://m.android.org.conscrypt.OpenSSLCipher.engineDoFinal(OpenSSLCipher.java:374) at javax.crypto.Cipher.doFinal(Cipher.java:2056)    at h3.h.b(Unknown Source:35)    at g3.a.d(Unknown Source:11)    at g3.a.n(Unknown Source:17)    at g3.e$b.run(Unknown Source:244)    at android.os.Handler.handleCallback(Handler.java:958)    at android.os.Handler.dispatchMessage(Handler.java:99)    at android.os.Looper.loopOnce(Looper.java:230)    at android.os.Looper.loop(Looper.java:319)    at android.os.HandlerThread.run(HandlerThread.java:67), null)

 

 

flutter_secure_storage 패키지를 사용하다가 위 에러가 나왔습니다.

해결방법은 IOS / Android 네이티브 코드로 바꿔서 진행해야합니다.

 

만약 shared_preferences로 처리해도 될만한 것이라면 shared_preferences로 처리하시면 됍니다