Skip to content
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

Closed
chongchaoyu opened this issue May 28, 2018 · 4 comments
Closed

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

chongchaoyu opened this issue May 28, 2018 · 4 comments

Comments

@chongchaoyu
Copy link

@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
Copy link
Owner

@justbilt 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
Copy link
Author

@chongchaoyu 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
* 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
Copy link
Owner

@justbilt justbilt commented Jul 6, 2018

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

@chongchaoyu
Copy link
Author

@chongchaoyu chongchaoyu commented Jul 6, 2018

@justbilt justbilt closed this May 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants