Android: How to Encrypt and Decrypt a resource fil

2019-04-11 03:13发布

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.

1条回答
\"骚年 ilove
2楼-- · 2019-04-11 04:01

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.

查看更多
登录 后发表回答