title: how to hide pubnub keys when using JS
body: <p>I opened a ticket in pubnub and also read: <a href="https://help.pubnub.com/entries/22251291-Can-I-Hide-my-Application-Keys-" rel="nofollow noreferrer">https://help.pubnub.com/entries/22251291-Can-I-Hide-my-Application-Keys-</a></p>
  
  <p>But I still can't understand how can I stop the user from seeing my keys as it is still on client side even after obfuscation.</p>
  
  <p>What I want to do is something I read in this post: <a href="https://stackoverflow.com/questions/10843909/pubnub-publish-message-between-two-private-channels">PubNub publish message between two Private Channels</a> </p>
  
  <ol>
  <li>Create a public channel and a private the channel for each user</li>
  <li>Hide the keys from the user </li>
  </ol>
  
  <p>I'm not sure how to create a private channel with custom keys that the user can't see.</p>
  
  <hr>
  
  <p>EDIT:
  I was able to understand the flow of auth_key but can't find the php equivalency for the JS crypto lib to grant permission. any idea on how to implement it in PHP? </p>