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

Error: android.security.keystore2.AndroidKeyStoreECPrivateKey cannot be cast to javax.crypto.SecretKey when encrypting #23

Open
Nav0003 opened this issue Dec 14, 2022 · 1 comment

Comments

@Nav0003
Copy link

Nav0003 commented Dec 14, 2022

Hi, @arifaydogmus

I've been using this package to encrypt and decrypt data perfectly on iOS. but when I attempt to encrypt on an android device, I encounter this issue:
Error: android.security.keystore2.AndroidKeyStoreECPrivateKey cannot be cast to javax.crypto.SecretKey

here are the details of the project i'm trying to work in:

react: 17.0.2
react-native: 0.66

minSdkVersion = 23
compileSdkVersion = 31
targetSdkVersion = 31

@iykazrji
Copy link

@Nav0003 Did you ever get around this issue?

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