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.

Note: Currently, only RSA public keys are supported (RSA-OAEP-256 for encryption and RS256 for signing)

Documentation Status https://circleci.com/gh/ValiMail/dane-jwe-jws.svg?style=shield 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.9.tar.gz (6.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.9-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

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

Hashes for dane_jwe_jws-0.9.tar.gz
Algorithm Hash digest
SHA256 5069824b2ba317bc62dd00ad2ee6ebd6208bde43effbbc360f799444d4f4b61d
MD5 1cbf5467c30f03c71fdf185edc29da4e
BLAKE2b-256 e57b190227961b4baceb1ef403142f1cf2f338f16e20d31d751cedfd65a85132

See more details on using hashes here.

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

Hashes for dane_jwe_jws-0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 bb897fdfd37a5a6b4af1f28cf82ffe58dcc0e28133671d6bc2377cecf61c66f0
MD5 3743ad8224ed68a9ce5cc5ae56daca43
BLAKE2b-256 c28722d37af6040a972ca3396c865b0afe38c17d10baa3cf4ab88d6fe0937f48

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