如何保护iOS捆绑包文件 [英] How to protect iOS bundle files

查看:70
本文介绍了如何保护iOS捆绑包文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

现在,人们可以通过解压缩.ipa文件轻松获得捆绑文件。有什么方法可以保护保存在iPhone应用程序捆绑包中的媒体文件(例如mp3)?

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

推荐答案

唯一的方法将是用户在运行时使用自己的编码/加密和解码。您可以将数据预打包到序列化的对象(即NSData)中,并增加一些噪音。如果值得一点额外的保护,那么灵活性的损失就取决于您了-使用库方法将变得更加困难,并且您很容易失去一些系统功能。

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.

这篇关于如何保护iOS捆绑包文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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