Up to now, the cocostudio version has been developed to 1.5, and great changes have been made between various sub-tools. However, whether it is an animation Editor, UI Editor, Scenario Editor, or data editor, files generated (exported) often need to be encrypted in Commercial Development (of course, there is no need to encrypt some of them ).
So,How do I encrypt resources when a version is released?
In this regard, the previous official did not provide anyAnswer. Recently, I learned a few words from the cocoachina forum, but it is enough for our reference. The general idea is as follows:
Note: hanrea is an expert in the cocoachina forum. I often contact him when I have something to do.
Hanrea:
This method can be decided by yourself. Generally, you can perform interface work when loading resources to the memory.
Flysec:
To solve this problem, you need to modify the source code of ccfileutils and add a layer of decryption in the getfiledata function.
Eddy:
Encryption of resources is usually done by the development team. If we provide encryption for all developers, this encryption will be meaningless.
There are many encryption methods. Generally, resources are packaged and encrypted, and then code is written to decrypt and parse the data. Finally, the related cocostudio Parsing is called.
This does not conflict with the editor itself, and is more similar to an independent resource packaging tool.
This article from the "Qingfeng" blog, please be sure to keep this source http://zhuxianzhong.blog.51cto.com/157061/1438946