iOS - 使用自定义加密密钥保护文件? [英] iOS - Protecting files with a custom encryption key?

查看:115
本文介绍了iOS - 使用自定义加密密钥保护文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

昨天我发布了关于保护文件的问题:保护应用程序沙箱

Yesterday I posted this question about protecting files: Protecting the app sandbox

如上所述,如果用户在iPad上有密码,这似乎对保护文件有效。当然,如果用户不这样做,这就提出了如何处理加密的问题。现在我有了一个想法,但我不确定它是否可行。

As mentioned, it appears that this is effective for protecting a file if the user has a passcode on the iPad. Naturally this raises the question of how to handle the encryption if the user does not. Now I have an idea, but am not sure if it's feasible or not.


  • 有没有办法覆盖加密密钥以使用定制一个?我的直觉本能不是,但我认为可能有办法。 (顺便说一句,这只是一个有趣的实验,我不打算将它提交到应用程序商店...)我的应用程序有一个登录,如果可以在应用程序级别处理以适应它将非常方便没有锁定的用户。

但是,如果没有,我认为禁用保存功能是不合理的设备密码...有什么想法?

However, I suppose it wouldn't be unreasonable to disable the saving feature if there is no device passcode... Any thoughts?

推荐答案

您可以根据登录名/密码生成加密密钥,这样就可以打开用户他的文件只有在他知道密码的情况下但是,如果用户忘记密码,您需要提供以某种方式恢复数据的能力。

You can generate encryption key, based on login/password, this allowing user to open his files only if he know password. However, you'll need provide ability to restore data in some way if user will forget his password.

这篇关于iOS - 使用自定义加密密钥保护文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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