Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add example for showing how to store encryption key #4181

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
beeender wants to merge 13 commits into main
base: main
Choose a base branch
Loading
from feature/example/store_password

Conversation

@beeender
Copy link
Contributor

@beeender beeender commented Feb 14, 2017

No description provided.

pmahend1 reacted with thumbs up emoji
Copy link
Contributor

Copy link
Contributor

Not really, although it uses the same concept. The idea is to show how to use a double layered key approach to store Realm encryption keys since the keystore does not allow you to extract the key material again, which is required by Realm.

So you

  1. Create a keystore and secure it using a fingerprint (because it's fun/easy to show, but you can use pin or whatever)

  2. Then create a AES key outside the keystore and put the key inside the keystore. From the keystores point of view it will just see random bytes which it stores quite fine.

  3. Show that on startup you can use the fingerprint to get the Realm key out of the keystore again and you can now use it to unlock the Realm.

This works quite nicely offline and is secure if you trust that the keystore does its job correctly.

Zhuinden reacted with thumbs up emoji

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /