Password Protection of file in android

我的未来我决定 提交于 2019-12-08 12:58:02

问题


I would like to give some kind of protection to my files either stored in SDCard or in application sandbox. Currently I am using Cipher to encrypt or decrypt any file. Problem with using Cipher is time. It takes lots of time if file is large. Like currently I am encrypting a video file which takes more than 4 minutes to decrypt. I want to know that Can we apply some kind of password protection to file without encrypting ? If anyone knows how can we do that, please let me know.


回答1:


Short answer is NO. That is not possible. File is on SD card stored as "array of 1 and 0" so each program can access SD card and read your data. Encryption is best way to keep your data secret.



来源:https://stackoverflow.com/questions/15742091/password-protection-of-file-in-android

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