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

Encrypt a value without storing it #605

Open
pasquale95 opened this issue Aug 10, 2023 · 1 comment
Open

Encrypt a value without storing it #605

pasquale95 opened this issue Aug 10, 2023 · 1 comment

Comments

@pasquale95
Copy link

Hi,
I open this issue to know if there's a way I can encrypt a value with an hardware key and get back the encrypted result without storing such result in the app space.
From the documentation it seems that there is no way to get the encrypted value.
Any suggestion?

Thanks!

@fendorio
Copy link

You would create an encryption key using this library, and have the encryption key stored in the keychain/keystore, then use that to encrypt your data, depending on the nature of your requirements, you could simply store the encrypted data with the AsyncStorage API.

Create encryption key with this library
Use that key to encrypt your data
Save the encrypted data (string) with AsyncStorage for example
Retrieve encryption key with this library to decrypt the data.

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