Skip to content

Android Keystore support? #230

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

Open
dropbeardevs opened this issue Apr 18, 2025 · 1 comment
Open

Android Keystore support? #230

dropbeardevs opened this issue Apr 18, 2025 · 1 comment

Comments

@dropbeardevs
Copy link

Now that androidx.security:security-crypto is officially deprecated, and the release notes say "Deprecated all APIs in favour of existing platform APIs and direct use of Android Keystore", will there be support for Android Keystore in the future? EncryptedSharedPreferences is working for me currently but I worry about potential issues down the line.

Or is it even worth it using EncryptedSharedPreferences in the first place and just use SharedPreferences? Also even considering a wrapper that uses Keystore to manually encrypt/decrypt the value before calling putString().

https://developer.android.com/jetpack/androidx/releases/security#version_110_2
https://developer.android.com/privacy-and-security/cryptography#jetpack_security_crypto_library

@russhwolf
Copy link
Owner

A fork of security-crypto now exists if you still have need of EncryptedSharedPreferences. There's also an encrypted-datastore you can use. I prefer to leave it to users to swap in implementations like those which are more general purpose rather than implement and maintain new keystore logic.

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