Encryption of images?

Hi, is it possible to encrypt images used in Cocos Studio, eg for buttons or sprites? Or at least use some atlas, because i know atlas can be encrypted?

Because if i understand it good, if i create scene in Cocos Studio, it will search for plain images in Resource folder.

Thanks,

L.

Edit: Ok now i see there can be added new file type of Spritesheet to Cocos studio project, so that’s the atlas, and the encryption should be done probably by some external software.

Encryption is not possible with CS.

It won’t load it, cause CS does not support encrypted assets.

Would need to implement the feature in CS and also in the engine itself, as the engine does not provide file-hooks at the moment.
File-hooks are planned in the future, so you can encrypt/decrypt assets upfront and pass them to other engine functions.

If you want to have that feature right now, you would have to change a lot the file/resource loaders of the engine, or use .pvr.ccz as the texture format. As this format is zipped and the engine has encryption support through ZipUtils, it is possible to encrypt/decrypt your assets.

Ok, thanks for info. So i will have to unecrypted for now.

I was also thinking to get the texture names from buttons from Cocos scene, and load them from my encrypted atlas manually runtime from C++ later, but there is no way how get texture names from uiButton (it is protected member and there is no getter) etc, so i am leaving it now.

L.