将文件存储到文档目录中有多安全?
我正在Swift和Xcode中编写一个iOS应用程序,允许用户从服务器下载一些文件并将其存储到iPhone的文档目录中。
这样做有多安全?
用户是否可以从应用程序外部访问这些文件之一,例如,将手机连接到计算机并将其移动或共享?如果用户有越狱的iPhone,他是否可以通过其他方式以其他方式访问下载文件的方法?
如果是这样,下载文件时应该加密文件吗?
I am writing an iOS app in Swift and Xcode where I allow users to download some files from a server and to store them into the iPhone's document directory.
How safe is it to do so?
Is it possible for a user to access one of these files from outside the app, for example by connecting their phone to a computer, and move them around or share them? If a user has a jailbroken iPhone, could he get a way to access the downloaded files in other ways other than the one I allow within my app?
And if so, should I encrypt my files when I download them?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对于越狱的iPhone,我认为是的,可以访问应用程序目录。
对于普通iPhone,我很确定其他应用程序无法访问它,因为所有第三方应用程序均为“沙盒”
https://support.apple.com/en-gb/guide/security/sec15bfe098e/web#:~: text = sandboxing
;将手机连接到计算机。
For jailbroken iPhone i think yes it's possible to access apps directories.
For normal iPhone I'm pretty sure other apps can't access it as all third-party apps are “sandboxed"
https://support.apple.com/en-gb/guide/security/sec15bfe098e/web#:~:text=Sandboxing,information%20stored%20by%20other%20apps.
And no idea about connecting their phone to a computer.