Titanium:Android设备上的数据加解密技术
我使用的是钛金1.7.6 我正在开发一个 android 2.2 应用程序,它将从 SD 卡的资源文件夹中访问图像/视频/pdf/文本。我希望只有应用程序能够读取我的资源文件夹的内容。最好的方法是什么? 以下是我的一些想法:
- 密码保护资源文件夹,只有应用程序知道密码。(不确定这是否可以完成。如果您知道如何做,请告诉我。)
- <强>加密资源文件夹内的所有文件。(在这种方法中,我猜测为了读取图像等加密文件,我必须解密该文件并将其存储到某个临时文件夹中。使用后解密的文件从临时文件夹中删除该文件。)但是有一个这种方法有问题。请参阅此处问题的链接
如果您有其他想法,请将其添加到列表中。
I am using Titanium 1.7.6
I am developing an android 2.2 application that will access images/videos/pdf/text from my resources folder from sd card. I want only the application to be able to read the contents of my resources folder. What would be the best way to do that?
Here are some of my ideas:
- password protect the resources folder, only application would know the password. (Not sure if this can be done. If you know how to do it please let me know.)
- encrypt all the files inside the resources folder. (in this approach, I am guessing in order to read an encrypted file like images, I will have to decrypt the file and store it into some temp folder. after using the decrypted file delete the file from the temp folder.) But there is a problem with this approach. please see link to the problem here
If you have some other idea please add that to the list.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我在 Android 开发方面并没有真正的经验,但这里有一些来自我脑海中的想法,可能会派上用场:
而上述方法中的最佳选择是第一个,因为
希望对您有帮助。
I don't really have a serious experience with android developing, but here are some ideas from top of my mind which may come handy:
And your best option from the above methods is the first one, because:
Hope it helps you.