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.11.tar.gz (6.4 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.11-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dane_jwe_jws-0.11.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

File hashes

Hashes for dane_jwe_jws-0.11.tar.gz
Algorithm Hash digest
SHA256 3efcb4ef44f5c70e92038910f34668574d11b6baf30349ff838ebcd0416d3a9b
MD5 cd0803d488e25392edb3fc6500a478bd
BLAKE2b-256 bbf0b7df04c8354624799fbf7272240810a33caa4c40def2c09afd73d2a796ed

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dane_jwe_jws-0.11-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

File hashes

Hashes for dane_jwe_jws-0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 5661c0e4b517716d812ea41b1d8f3d3ee8c86ff89429d23fef52481b0f2e177e
MD5 5b17df7439d315ff53c5985e8b7ead63
BLAKE2b-256 096f5c4d7eea0c7dd62c663aac452d6582bb770d20f7db51231e75227901b57b

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