I’m beginner level android developer & new to encryption. I created an app which loads PDFs from Firebase to android activity based on subscription. I implemented all verification methods.
But I don’t want to load my PDFs in some reverse engineered or tampered app. I will encrypt all the PDFs on my own and save in firebase. I’m going to use OpenSSL library to encrypt.. I want my original app which user installed from play store should be able to decrypt it. I found about KeyStore in Android.
How to store the encryption key in keystore android so user can decrypt the PDF file and cannot be easily accessed if reverse engineered?
Please help me. It’s very important to me.
2
Answers
I’m about to delete my answer:
What is the code, in Java or Kotlin, that you’ve used to decrypt incoming PDFs from your database? There’s plenty of wonderful tutorials online with similar code so don’t be shy.
I’d love to help.
Here’s how you can use the KeyStore to store your encryption key securely: