密码保护文件在android [英] Password Protection of file in android

查看:118
本文介绍了密码保护文件在android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想给我的文件保存一些保存在SDCard或应用程序沙盒中。目前我正在使用Cipher加密或解密任何文件。使用密码的问题是时间。如果文件很大,需要很多时间。像目前我加密的视频文件需要超过4分钟解密。我想知道,我们可以在没有加密的情况下应用某种密码保护文件吗?如果有人知道我们该怎么做,请让我知道。

解决方案

简短答案是否。这是不可能的。文件在SD卡上存储为1和0的数组,因此每个程序都可以访问SD卡并读取数据。加密是保护您的数据的最佳方法。


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.

解决方案

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.

这篇关于密码保护文件在android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆