Our SDKs have built-in cryptographic libraries, allowing you to automatically encrypt your message payload with AES256. Advanced Encryption Standard (AES) is a specification for the encryption of electronic data, used by many governments and high-security applications across the world.
Simply provide a cipher key when initializing your local PubNub object; the cipher key is symmetric, meaning the same key is used to encrypt and decrypt. Since the cipher key never leaves the client, the message will be encrypted client-side before being published onto the PubNub Data Stream Network, keeping your data and your key protected from any outside entity.
These built-in AES libraries are optional, however, and customer specific encryption can be used instead to encrypt the message body.
For further learning, please see: