Is there any method in coco2dx to "Encrypt" and "Decrypt" CCUserDefault data?

I am using Cocos2d-X 2.2.5. I want to encrypt and decrypt the data I store using CCUserDefault. Is there any way?

push

Is there any way at Cocos2d-x 3.3? or an other option to encrypt data?