And_dev
And_dev

Reputation: 179

Android: How to Encrypt and Decrypt a resource file and use in App

I need to store resource files(text doc,imgaes,music etc) in my app in encrypted format and in runtime i need to decrypt the files and use it. Thanks in advance.

Upvotes: 3

Views: 3141

Answers (1)

CommonsWare
CommonsWare

Reputation: 1006944

Then how can i achieve this?

If you do not want the user to have access to the data, do not store it on the user's phone.

A sufficiently interested user can access anything on their device. This would include your code along with your resources. Any encryption algorithm and key that you use will be in your code; finding that and using that to decrypt your resources is not especially difficult.

Upvotes: 4

Related Questions