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

How to Secure a Room Database With Passcode-Based Encryption #7815

Open
MuindiStephen opened this issue May 6, 2023 · 3 comments
Open

How to Secure a Room Database With Passcode-Based Encryption #7815

MuindiStephen opened this issue May 6, 2023 · 3 comments
Labels
topic suggestion Suggestion for a new article.

Comments

@MuindiStephen
Copy link

Introduction

As Android developers we need to secure the data we store in our android apps. This is to objectively ensure the three triads: Confidentiality, Integrity and Availability. Password Based Encryption is an encryption technique used for providing with strong encryption keys to encrypt room persistent data away from attackers or hackers.

Key Takeaways

  1. Generate a random key
  2. SQLCipher key formats
  3. Create a hex encoded db key
  4. PBE encrypt + store the database key
  5. Restore + decrypt the database key
  6. Encrypt your Room database

References

https://developer.android.com/training/data-storage/room)

@MuindiStephen MuindiStephen added the topic suggestion Suggestion for a new article. label May 6, 2023
@github-actions
Copy link

github-actions bot commented May 6, 2023

👋 @MuindiStephen
Good afternoon and thank you for submitting your topic suggestion.
Your topic form has been entered into our queue and should be reviewed (for approval) as soon as a content moderator is finished reviewing the ones in the queue before it.

@MuindiStephen
Copy link
Author

@WanjaMIKE Could you review this, please?

@MuindiStephen
Copy link
Author

wave @MuindiStephen Good afternoon and thank you for submitting your topic suggestion. Your topic form has been entered into our queue and should be reviewed (for approval) as soon as a content moderator is finished reviewing the ones in the queue before it.

@WanjaMIKE @Ericgacoki

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic suggestion Suggestion for a new article.
Projects
None yet
Development

No branches or pull requests

1 participant