Security

Protect your apps with enterprise-grade encryption and fine-grain access control

What it Does

  • Secure all communications with multiple data encryption standards like AES and SSL
  • Manage permission for your real-time apps and data, down to the person, device or channel

Features

  • Encryption, including built-in AES encryption for all major PubNub APIs and optional SSL encryption
  • PubNub Access Manager for fine grain Publish and Subscribe permissions down to person, device or channel
  • Physical Security & Compliance, including SSAE 16 certified data centers, strict operations policies and safe harbor compliance

Resources

Get the Code
    1. 1
    2. 2
    3. 3
    4. 4
    5. 5
    6. 6
    7. 7
    8. 8
    9. 9
    10. 10
    11. 11
    12. 12
  1. // grants read & write permissions
  2. // for 5 minutes to channel
  3. // my_channel for my_authkey
  4.  
  5. pubnub.grant({
  6. channel: 'my_channel',
  7. auth_key: 'my_authkey',
  8. read: true,
  9. write: true,
  10. ttl: 5,
  11. callback: function(m){console.log(m)}
  12. });
    1. 1
    2. 2
    3. 3
    4. 4
    5. 5
    6. 6
    7. 7
    8. 8
    9. 9
  1. // grants read & write permissions
  2. // for 5 minutes to channel
  3. // my_channel for my_authkey
  4.  
  5. pubnub.AuthenticationKey = authKey;
  6. pubnub.GrantAccess<string>(channel=
  7. "mychannel", read=true, write=true,
  8. grantTimeLimitInSeconds=60,
  9. DisplayReturnMessage, DisplayErrorMessage);
Watch the Video