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.2

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for dane_jwe_jws-0.2.tar.gz
Algorithm Hash digest
SHA256 68e8b337f69d39f140881084192df1d772633a09ec18f2cb8edaa16070203cf4
MD5 d8b6b589fecb7f04690b004092771b1b
BLAKE2b-256 84d6f6a739852ec22492d9891fade5459ccd34c7bc905c102882c9a4728ea10a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dane_jwe_jws-0.2-py3-none-any.whl
  • Upload date:
  • Size: 6.0 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/50.3.0 requests-toolbelt/0.8.0 tqdm/4.49.0 CPython/3.8.5

File hashes

Hashes for dane_jwe_jws-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4ec6a077ced64c0d15ee982fc25eac6c8bf1b5d14696bb95f55333dfcc186299
MD5 10687a270e8fab6e2795c843d2428b9b
BLAKE2b-256 fd6a7e15fe8cba421f3e3170666e2189f01e34ac4eeb2cc64b509068fa62aa84

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