Skip to content

Commit 18ddf3a

Browse files
authored
Update README.md
1 parent 8d19639 commit 18ddf3a

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

README.md

+2-5
Original file line numberDiff line numberDiff line change
@@ -273,15 +273,12 @@ Not until the [Push API spec](http://www.w3.org/TR/push-api/) is finished.
273273
Payload is encrypted according to the [Message Encryption for Web Push](https://tools.ietf.org/html/draft-ietf-webpush-encryption-01) standard,
274274
using the user public key and authentication secret that you can get by following the [Web Push API](http://www.w3.org/TR/push-api/) specification.
275275

276-
Internally, WebPush uses the [phpecc](https://github.com/phpecc/phpecc) Elliptic Curve Cryptography library to create
277-
local public and private keys and compute the shared secret.
278-
Then, if you have a PHP >= 7.1, WebPush uses `openssl` in order to encrypt the payload with the encryption key.
279-
Otherwise, if you have PHP < 7.1, it uses [Spomky-Labs/php-aes-gcm](https://github.com/Spomky-Labs/php-aes-gcm), which is slower.
276+
Internally, WebPush uses the [WebToken](https://github.com/web-token) framework or OpenSSL to handle encryption keys generation and encryption.
280277

281278
### How do I scale?
282279
Here are some ideas:
283280

284-
1. Upgrade to PHP 7.1
281+
1. Upgrade to PHP 7.2
285282
2. Make sure MultiCurl is available on your server
286283
3. Find the right balance for your needs between security and performance (see above)
287284
4. Find the right batch size (set it in `defaultOptions` or as parameter to `flush()`)

0 commit comments

Comments
 (0)