You can encrypt messages published via PubNub using AES-256Applying AES-256 encryption to the contents of all published messages only requires supplying a value to the CIPHER-KEY parameter. See the SDK documentation pages for the PubNub SDKs that you are using.