-
-
Notifications
You must be signed in to change notification settings - Fork 520
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
Does React Native Keychain use iOS Keychain and Android Keystore under the hood? #641
Comments
Hi @msalamacallsign , Even though you can, it is not recommended to store username-password credentials in your application's KeyStore/KeyChain. To your original question, short answer is yes. On Android, Couple of notes on Android: Note 1 - there are configurations where you can use Note 2 - use of the "AES" This limitation is also mentioned in the package's README4, however this may not be entirely clear to developers. Existing documentation could use some help to clear this up, which may be a future task for me I guess :). Footnotes
|
Hi @iamaldi can you clarify a little more about "it is not recommended to store user credentials in your application's KeyStore"? For example, on iOS, since |
@iamaldi Thanks a lot for your answer. |
Hi @iamaldi Currently, I am experiencing an issue where the KeyStore/Keychain gets cleared or corrupted on some user devices, and I am unsure why this is happening. I suspect there might be a conflict between a native SDK that we are integrating, which uses the Android KeyStore, and our app's React Native implementation, which uses the react-native-keychain that depends on the OS's KeyStore/Keychain. I have two clarification questions:
|
I have rephrased my original comment to note that I meant username-password credentials.
On iOS, application data stored with Let me know if this clear enough. |
Can you open a new issue with this topic, and add some more details if possible? |
@iamaldi Is there a difference between your "application's keychain" versus the device's keychain iOS? If you are using |
@iamaldi Could you elaborate why is not recommended to store credentials in keychain and also list some references? Apple docs says it is completely safe, also in Android. https://developer.apple.com/documentation/security/keychain_services OWASP also recommends using Keychain for such scenarios: https://mas.owasp.org/MASTG/iOS/0x06d-Testing-Data-Storage/#backups |
Yes, on iOS we use Keychain and on Android we use Jetpack DataStore + Android Keystore. Facebook Conceal is deprecated and will be removed in the next major release. |
I am using the React Native Keychain library in my project and I would like to understand more about its implementation. Specifically, I would like to know if this library uses the native iOS Keychain and Android Keystore for storing credentials securely.
The text was updated successfully, but these errors were encountered: