A library for using DANE for identity-secured JWE and JWS.
Project description
A library for using JWE and JWS with DANE for identity-secured messaging.
This library enables the easy generation of signed and encrypted messages, using TLSA records in DNS for public key discovery. This library places the DNS URI in the x5u protected header field. The receiving party uses this field for discovering the public key which is used for verifying message payload.
Note: Currently, only RSA public keys are supported (RSA-OAEP-256 for encryption and RS256 for signing)
Quick Start
Installation
pip install dane-jwe-jws
Encrypt a message using a DANE-represented identity
from dane_jwe_jws.encryption import Encryption
test_message = "hello world!!"
identity_name = "dns.name.where.cert.lives.in.a.tlsa.record"
encrypted = Encryption.encrypt(test_message, identity_name)
print(encrypted)
Project details
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 dane_jwe_jws-0.9.tar.gz.
File metadata
- Download URL: dane_jwe_jws-0.9.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5069824b2ba317bc62dd00ad2ee6ebd6208bde43effbbc360f799444d4f4b61d
|
|
| MD5 |
1cbf5467c30f03c71fdf185edc29da4e
|
|
| BLAKE2b-256 |
e57b190227961b4baceb1ef403142f1cf2f338f16e20d31d751cedfd65a85132
|
File details
Details for the file dane_jwe_jws-0.9-py3-none-any.whl.
File metadata
- Download URL: dane_jwe_jws-0.9-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bb897fdfd37a5a6b4af1f28cf82ffe58dcc0e28133671d6bc2377cecf61c66f0
|
|
| MD5 |
3743ad8224ed68a9ce5cc5ae56daca43
|
|
| BLAKE2b-256 |
c28722d37af6040a972ca3396c865b0afe38c17d10baa3cf4ab88d6fe0937f48
|