You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-5Lines changed: 7 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -252,11 +252,13 @@ end
252
252
253
253
This library supports [end-to-end encrypted channels](https://pusher.com/docs/channels/using_channels/encrypted-channels). This means that only you and your connected clients will be able to read your messages. Pusher cannot decrypt them. You can enable this feature by following these steps:
254
254
255
-
1.Install [Libsodium](https://github.com/jedisct1/libsodium), which we rely on to do the heavy lifting. [Follow the installation instructions for your platform.](https://github.com/RubyCrypto/rbnacl/wiki/Installing-libsodium)
255
+
1.Add the `rbnacl` gem to your Gemfile (it's not a gem dependency).
256
256
257
-
2.Encrypted channel subscriptions must be authenticated in the exact same way as private channels. You should therefore [create an authentication endpoint on your server](https://pusher.com/docs/authenticating_users).
257
+
2.Install [Libsodium](https://github.com/jedisct1/libsodium), which we rely on to do the heavy lifting. [Follow the installation instructions for your platform.](https://github.com/RubyCrypto/rbnacl/wiki/Installing-libsodium)
258
258
259
-
3. Next, generate your 32 byte master encryption key, encode it as base64 and pass it to the Pusher constructor.
259
+
3. Encrypted channel subscriptions must be authenticated in the exact same way as private channels. You should therefore [create an authentication endpoint on your server](https://pusher.com/docs/authenticating_users).
260
+
261
+
4. Next, generate your 32 byte master encryption key, encode it as base64 and pass it to the Pusher constructor.
260
262
261
263
This is secret and you should never share this with anyone.
262
264
Not even Pusher.
@@ -276,9 +278,9 @@ This library supports [end-to-end encrypted channels](https://pusher.com/docs/ch
276
278
});
277
279
```
278
280
279
-
4. Channels where you wish to use end-to-end encryption should be prefixed with `private-encrypted-`.
281
+
5. Channels where you wish to use end-to-end encryption should be prefixed with `private-encrypted-`.
280
282
281
-
5. Subscribe to these channels in your client, and you're done! You can verify it is working by checking out the debug console on the [https://dashboard.pusher.com/](dashboard) and seeing the scrambled ciphertext.
283
+
6. Subscribe to these channels in your client, and you're done! You can verify it is working by checking out the debug console on the [https://dashboard.pusher.com/](dashboard) and seeing the scrambled ciphertext.
282
284
283
285
**Important note: This will __not__ encrypt messages on channels that are not prefixed by `private-encrypted-`.**
0 commit comments