TexturePacker Content Protection
来源:互联网 发布:php svn代码发布系统 编辑:程序博客网 时间:2024/06/05 16:12
Setting up TexturePacker for encryption
use TexturePacker running to create sprite sheets. So simply open an existing .tps file.
Download the latest TexturePacker - here you'll find a new option on the left: Content Protection. Press the "lock" icon and a new popup opens:
You can enter your own key in the line edit - or simply create a new one by pressing Create new key.
To disable encryption use Clear / Disable.
Save as global key stores the key in TexturePacker as global - using it for decryption in the .pvr viewer and allowing you paste it into other sprite sheets by simply pressing Use global key
It is important that you change the file format to pvr.ccz - which is currently the only file format that supports encryption.
Press Publish and you are done in TexturePacker.
The corresponding command in commandline is --content-protection <key>
where the key must be a 32-digits hex value.
Preparing your cocos2d project for content protection
Download and copy the following 2 files inside your cocos2d folder: libs/cocos2d/Support
- replacing the 2 files that are already there:
- ZipUtils.h
- ZipUtils.m
Now set the key in your app. You can do this by placing 4 calls inside your startup sequence before the first sprite sheet is loaded. Try to distribute the calls among several files to make them harder to spot.
If your license key is aaaaaaaabbbbbbbbccccccccdddddddd
, you have to split it into 4 parts with 8 digits each:
aaaaaaaa
bbbbbbbb
cccccccc
dddddddd
caw_setkey_part(0, 0xaaaaaaaa);caw_setkey_part(1, 0xbbbbbbbb);caw_setkey_part(2, 0xcccccccc);caw_setkey_part(3, 0xdddddddd);Make sure to add the following line to each file in which you use
caw_setkey_part
:#import "ZipUtils.h"
If you had to change the file format, make sure to now load the .pvr.ccz
file instead of whatever you used before. Also add the new files to your project.
That's it!
Conclusion
Protecting your game assets from content thieves is easy. Using the new ContentProtection feature can be set up in less than 5 minutes!
Apple's requirements on encryption and Content Protection
See the Bureau of Industry and Securitys Encryption FAQ - Question 15 (What is Note 4?):
...
Examples of items that are excluded from Category 5, Part 2 by Note 4 include, but are not limited to, the following:
Consumer applications. Some examples:...
- piracy and theft prevention for software or music;
- music, movies, tunes/music, digital photos – players, recorders and organizers
- games/gaming – devices, runtime software, HDMI and other component interfaces, development tools
Picture taken from iTunes Connect Developer Guide - Adding New Apps (scroll down to "Ready to Upload Your Binary" to find the paragraph about encryption)
- TexturePacker Content Protection
- TexturePacker
- TexturePacker
- texturepacker
- TexturePacker
- TexturePacker
- texturepacker
- TexturePacker
- TexturePacker
- TexturePacker
- texturepacker
- protection money
- Java Protection
- Database Protection
- Protection 1
- Clickjacking Protection
- Protection 6 ---- Page-Level Protection
- TexturePacker用处
- 请问怎么样在qt creator 中加入第三方库 qwt
- 我的第一个Java程序“Hello Wolrd”
- 黑马程序员——C#面向过程复习之飞行棋
- 嘻嘻嘻
- 奇数阶魔方阵!
- TexturePacker Content Protection
- Ubuntu进行apt-get update时出错
- TQ2440 u-boot-2012.10移植一串口正常输出
- 递归算法详细分析-> C
- javascript动画系列之 —— 获取坐标
- Design Pattern_Strategy(策略模式)
- myseclipse使用jstl的方法和用法
- 邮件营销者三类需注意
- 剑指offer面试题13在O(1)时间复杂度内删除单链表的一个节点