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

Changelog

v0.3

Changes

  • Add strict mode support. [Ash Wilson]

    Closes #1

Other

v0.2 (2020-09-14)

Fix

  • Correct parsing of DNS URI for message verification. [Ash Wilson]

v0.1 (2020-08-05)

New

  • Initial commit. [Ash Wilson]

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.3.tar.gz (6.0 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.3-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dane_jwe_jws-0.3.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.9

File hashes

Hashes for dane_jwe_jws-0.3.tar.gz
Algorithm Hash digest
SHA256 1d1d1f6f32df9cd3dad8186aeddc5e7f630a2094ac22f84d8c997254b506b65e
MD5 bcc5a27de35db3cafa7ac3f7ef69d91e
BLAKE2b-256 481cbb3eab3e5374182b4363101e3ce299aebc78dab2ed57c9d5be1c9962aa15

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dane_jwe_jws-0.3-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.9

File hashes

Hashes for dane_jwe_jws-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1ba5dc104d40d057b19ac8c96f55a737edd62587bd28bf9a305def030a82f228
MD5 1715ac7e131f51de74e7a92d495ab8ee
BLAKE2b-256 10281bd63bbc54647e73128d05ab6873aa32a33d981da46bef95a98770a0da53

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