New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't convert pvr.ccz with content protection to png #16

Open
chongchaoyu opened this Issue May 28, 2018 · 4 comments

Comments

Projects
None yet
2 participants
@chongchaoyu

chongchaoyu commented May 28, 2018

If the pvr.ccz has been protected with a key, untp can't convert it to png successfully.
And I check the untp sources and the usage of TexturePacker, it has a "--content-protection" option, but this option looks like for encrypting the pvr.ccz, other than decryption.

Do you have some idea? Thank you!

@justbilt

This comment has been minimized.

Owner

justbilt commented Jun 19, 2018

Sorry for later, i think it's an good idea.

TexturePacker does not provide decryption option, we should implement it by ourself. Fortunately, the decrypt arithmetic is very simple, just xor ever bit with key. We could ref cocos implementation:

https://github.com/cocos2d/cocos2d-x/blob/v3/cocos/base/ZipUtils.cpp#L58

I'm interested in it, i'll implement it soon.

@chongchaoyu

This comment has been minimized.

chongchaoyu commented Jun 19, 2018

I am looking forward to it, thank you very much!

justbilt added a commit that referenced this issue Jul 6, 2018

justbilt added a commit that referenced this issue Jul 6, 2018

justbilt added a commit that referenced this issue Jul 6, 2018

Merge branch 'feature/2018-06-22-protection' into develop
* feature/2018-06-22-protection:
  bomp version to 1.1.6
  feat: #16 param protection_key gui support
  feat: #16 decode protection pvr.ccz
@justbilt

This comment has been minimized.

Owner

justbilt commented Jul 6, 2018

Sorry for later, this feature has been published at 1.1.6, hope u will enjoy it !

@chongchaoyu

This comment has been minimized.

chongchaoyu commented Jul 6, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment