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

Zashi data stored in the keychain #1469

Open
LukasKorba opened this issue Mar 6, 2025 · 0 comments
Open

Zashi data stored in the keychain #1469

LukasKorba opened this issue Mar 6, 2025 · 0 comments

Comments

@LukasKorba
Copy link
Collaborator

When a user generates some data in the settings, like flags for opt-in/out or any possible value (like currency, etc.), it would be great to store it as encrypted data.

We have 2 options:

  • custom encryption of data and store it in UserDefaults
  • use keychain

In case of Keychain, the issue is such data won't be deleted when the app is deleted.

Solution could be to create a dummy flag and address scenarios:

  • app started, there is no dummy flag but also no keychain data = fresh app start
  • app started, there is no dummy flag but keychain data are present = Zashi was deleted and reinstalled, clear the custom data from Keychain
  • app started, there is dummy flag = regular start
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

1 participant