IOS的文件系统加密? [英] File system encryption for IOS?

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

问题描述

我知道在Mac OS上,我们可以使用Macfuse在用户空间中编写一个文件系统,我们可以创建一个盒子加密。
我不知道在IOS有一个框架,库像FUSE,Macfuse,我可以写我的文件系统的加密/解密文件(可能挂载在一个目录/文件夹)。
任何人都可以给我一个解决方案吗?
解决方案

至于内置的iOS支持,有很多选项,从每个文件的基础上加密你的应用程序的整个沙箱。我建议你阅读的

然而,所有这些选项都需要使用磁盘加密保护数据 =nofollow noreferrer>使用磁盘加密保护数据。用户在设备上设置密码。旧设备可能不支持文件系统加密。

本文档中未提及的选项之一是设置 DataProtectionClass 授权值为 NSFileProtectionComplete 。这将自动保护你的应用程序的沙箱中的所有文件。最后,我建议你观看WWDC 2011视频 (Apple视频页面上的保护应用程序数据),并直接从Apple工程师那里了解最佳实践。这个视频涵盖了苹果提供的几乎所有东西。



编辑:



据开发论坛上的人士介绍, DataProtectionClass权利可能无法在当前iOS版本中正常工作。


I know on Mac OS,we can use Macfuse for write a file system in user space,we can create a box encryption. I don't know on IOS has a framework,library like FUSE,Macfuse that i can write my file system for encryption/decryption file (possible mount on a directory/folder). Can anyone point me a solution?

解决方案

As for built-in iOS support, there are a number of options, varying from a per-file basis to encrypting the entire sandbox of your app. I suggest you read Protecting Data Using On-Disk Encryption in the iOS App Programming Guide.

All of these options, however, require the user to have a passcode set on the device. Older devices may not support file system encryption.

One of the options not mentioned in this documentation is to set the DataProtectionClass entitlement value to NSFileProtectionComplete. This will automatically protect all the files in your app's sandbox.

Finally, I suggest you watch the WWDC 2011 Video Securing iOS Applications ("Securing Application Data" on Apple's video page) and hear directly from Apple engineers about the best practices. This video covers pretty much everything that Apple offers.

edit:

According to people on the dev forums, the DataProtectionClass entitlement may not be working correctly in current iOS versions.

这篇关于IOS的文件系统加密?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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