我使用 ASIDownloadCache
缓存一些数据,如下所示。
ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:url];
[request setDownloadCache:[ASIDownloadCache sharedCache]];
[request setCacheStoragePolicy:ASICachePermanentlyCacheStoragePolicy];
[request setCachePolicy:ASIOnlyLoadIfNotCachedCachePolicy];
[request setSecondsToCache:60*60*24*30]; // Cache for 30 days, this will change to a db version check.
[request setDelegate:self]; // this calls the delegate function requestFinished
[request startAsynchronous];
我想知道这些数据的安全性如何?例如,我知道拥有越狱手机的人可以访问 coredata sotrage..但是 ASIDownloadCache
呢?人们需要做什么才能实现这一目标?我该如何保护它?
最佳答案
您甚至不必越狱即可访问它,请参阅:
http://www.macroplant.com/iexplorer/
如果您想保护它,则需要对其进行加密,并且您必须自己执行此操作或修改 ASIDownloadCache 来执行此操作。
考虑到解密 key 需要出现在您的应用程序中,这实际上只是一种混淆。
关于iphone - ASID下载缓存安全,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8599263/