Skip to main content

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.

Documentation Status Maintainability Test Coverage

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)

More examples

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.1.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dane_jwe_jws-0.1-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file dane_jwe_jws-0.1.tar.gz.

File metadata

  • Download URL: dane_jwe_jws-0.1.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.8.0 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for dane_jwe_jws-0.1.tar.gz
Algorithm Hash digest
SHA256 7984665191cda9a7aa8036678c4f1cfddab3958211ae7c751a7527d3433f9693
MD5 32ae3a76fc20b29ce683f2d3dd9e6d05
BLAKE2b-256 c636d94512776b20f15d6a680f69300985de00d8f8148b72a3d36b55e5cb4db1

See more details on using hashes here.

File details

Details for the file dane_jwe_jws-0.1-py3-none-any.whl.

File metadata

  • Download URL: dane_jwe_jws-0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.8.0 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for dane_jwe_jws-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3c707e30528ac48d00256518760d23d9bd637b207ec925cb2488b01f19ada5e4
MD5 9a704c8d0fad7f2a9794d902522897a1
BLAKE2b-256 ce647e9732b4f902cf19e333feb305c2e4d6f47f09c0951e3436c410c96725c1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page