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
dane_jwe_jws-0.12.tar.gz
(6.4 kB
view hashes)
Built Distribution
Close
Hashes for dane_jwe_jws-0.12-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f01f0af79e0a993d6c496d9fc92df44ed5012777f6d56ba1818fe96c03d0abf |
|
MD5 | b0f84afe5f9156b34d8b54acbcf372ba |
|
BLAKE2b-256 | f7f7d3253bc39a747d7e9d8f4993a1bd317fe52ecb426c1bacfe94b189fe9e7e |