pywebpush | Python Webpush Data encryption library | Encryption library
kandi X-RAY | pywebpush Summary
kandi X-RAY | pywebpush Summary
Python Webpush Data encryption library
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Perform a webpush request
- Send data to the push service
- Encodes data
- Return data as a curl command
- Return the value for key
- Update the dictionary with the given data
- Print a verbose message
- Wrapper for getitem
- Set key value pair
- Parse arguments
- Read lines from a file
pywebpush Key Features
pywebpush Examples and Code Snippets
pip install pyelliptic==1.5.7
Community Discussions
Trending Discussions on pywebpush
QUESTION
When a user create a subscription through the PushManager.subscribe(), given the applicationServerKey
(VAPID public key), it creates a valid subscription the contents of which can be sent and stored in the database. The content sent to the database looks something like the following:
ANSWER
Answered 2020-Sep-06 at 21:46You can safely use the endpoint
as a unique identifier in your database and in the frontend calls to the backend.
We have been using it in the Pushpad Javascript SDK since 2015 without any problem.
For example, you can use the endpoint as an identifier when you make a call from Javascript to the backend in order to store data for that specific subscription.
An endpoint can be considered unique and secret (since it contains a long random token).
This is true now and it was also true at the beginning of the standard... in the past the keys
and payload were not even present and the endpoint
alone was used for everything, including fetching the new notifications from the application server.
For the keys
I would simply keep them secret in the database and not use them as identifiers.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install pywebpush
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page