How to protect iOS bundle files
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, K开发者_运维技巧elvin
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.
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.
i think only encryption can help.
精彩评论