Skip to content
Permalink
Browse files

Update push.md

  • Loading branch information...
krzysztof-jurkowski-roche authored and mirceanis committed Aug 27, 2019
1 parent 6a3b49c commit e91a404eb1a557d70a9b80affe1e9b03321bc04d
Showing with 1 addition and 1 deletion.
  1. +1 −1 transports/push.md
@@ -10,7 +10,7 @@ Push notifications is a transport for sending requests to users. To make sure th

### Proper encoding of the request

The message SHOULD be encrypted. See the [message encryption](/messages/encrypted.md) document for more details.
The message SHOULD be encrypted. See the [message encryption](/messages/encryption.md) document for more details.

First, simply wrap the request url in a JSON object and encode it as a string, like so: `{"url":"<request-url>"}`.
We recommend padding the message so that it is less vulnerable to analysis attacks. This is done by appending spaces to the message until it is of length `N * I`, where `N` is any integer and `I` is some consistent number. We recommend `I = 50`.

0 comments on commit e91a404

Please sign in to comment.
You can’t perform that action at this time.