A secure webhook signature library for Python.
Project description
WebhookGuard for Python
A secure, modern webhook signature library for Python. WebhookGuard uses asymmetric cryptography (RSA-SHA256 with PSS padding) and replay attack prevention to ensure your webhook endpoints are robust and secure.
The core principle is to sign webhooks with a private key and verify them with a public key, eliminating the need to share secrets.
Features
- Asymmetric Signatures: Secure RSA key pair authentication.
- Modern Cryptography: Implements the recommended RSA-PSS padding scheme.
- Replay Attack Prevention: Built-in support for timestamp and nonce checking.
- Developer-Friendly: Raises detailed, specific exceptions for easy debugging.
Getting Started
-
Installation
pip install webhookguard
-
Key Generation
# Generate a 2048-bit private key openssl genpkey -algorithm RSA -out private_key.pem -pkeyopt rsa_keygen_bits:2048 # Extract the public key from the private key openssl rsa -pubout -in private_key.pem -out public_key.pem
Documentation
For detailed usage examples, API reference, and security best practices, please see our full documentation.
➡️ View the Full Documentation
Contributing
Contributions are welcome! Please feel free to open an issue or submit a pull request.
Author
License
This project is licensed under the MIT License - see the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file webhookguard-1.0.0.tar.gz.
File metadata
- Download URL: webhookguard-1.0.0.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e1dd3d51100a696de6412574ca449af908fb0b30edb2b910e26628dac070eac9
|
|
| MD5 |
ac4ef48636356f05c2fe25ddc248c823
|
|
| BLAKE2b-256 |
aaa165c80d1279586f0c553834c9644a40fbc2fef996428ed76000c1b86630b6
|
File details
Details for the file webhookguard-1.0.0-py3-none-any.whl.
File metadata
- Download URL: webhookguard-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
23ad479ea26bb4168d9e33dbae0a8a43c772ccfdc7395160b40e63b8522c437e
|
|
| MD5 |
249dfddb5a64ec78dc9672fd66c7cfcb
|
|
| BLAKE2b-256 |
0e09e5d9943fdff400d8db22681383360ba5ac5ff34dcb96cdf4dd486cf00c98
|