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

Inefficient way to store multiple key-value data on Android #589

Open
pasquale95 opened this issue Feb 1, 2023 · 1 comment
Open

Inefficient way to store multiple key-value data on Android #589

pasquale95 opened this issue Feb 1, 2023 · 1 comment

Comments

@pasquale95
Copy link

pasquale95 commented Feb 1, 2023

Looking inside the library I see that a way to save multiple data is by providing a different alias in com.oblador.keychain.KeychainModule#setGenericPassword for any new username-password combination (code).
However, every time a new alias is defined, a new key is generated through the KeyStore (code).
This means that for the same application I will end up generating thousands of secrets in the KeyStore and store them inside the secure storage.
This approach doesn't give any additional security. Moreover, it significantly slows down the app performances and it risks to exhaust the secure storage space. How do you handle the case of storing all the app data encrypted with your library? Why isn't there an API providing the possibility to store multiple username-password combinations using the same key?

@BraveEvidence
Copy link

@BraveEvidence
Copy link

@dhivya0413
Copy link

Can we store multiple key-value pairs?

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

3 participants