Please see the blog article,  PubNub Adds Cross-Platform AES Symmetric Key Encryption.