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

天涯浪子 提交于 2019-12-21 20:43:31

问题


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:


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.



来源:https://stackoverflow.com/questions/12994607/android-how-to-encrypt-and-decrypt-a-resource-file-and-use-in-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!