How to protect iOS bundle files

时光怂恿深爱的人放手 提交于 2019-12-11 01:45:57

问题


Now people can easily get the bundle files by unzipping the .ipa file. Is there any ways to protect the media file (say mp3) that saved in the application bundle of iPhone app?

thanks, Kelvin


回答1:


You can make it harder, but you can't really make it impossible. You could implement some kind of scrambling of the data, and then unscramble it when your app is running on the phone. But really any and all solutions just make it difficult, not impossible. Even encryption, your app will have to have the key to decrypt it included.




回答2:


The only way would be to user your own encoding/encryption and decode at runtime. You might "pre-package" the data into serialized objects, i.e. NSData and add some noise. If the little extra protection is worth the loss of flexibility is up to you - using library methods will get more difficult and you can easily lose some system features.




回答3:


i think only encryption can help.



来源:https://stackoverflow.com/questions/4277506/how-to-protect-ios-bundle-files

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!