Is there a way to use C++ library in Cocos JS?

Sounds good. Just don’t put the cart before the horse :smiley:

FYI:
You can also look into the encryption component of cocos2d-x. I think it’s xxTea
Encrypt/decrypt int using xxtea and save the unsigned char using UserDefaults? .
How to secure data from hacking? .
Suggest good encrypting & decrypting algorithms.
How to secure data from hacking? .

And if you use TexturePacker
https://www.codeandweb.com/texturepacker/contentprotection .
https://www.codeandweb.com/texturepacker/tutorials/texturepacker-content-protection .

1 Like