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

Uploaded Python 3

File details

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

File metadata

  • Download URL: dane_jwe_jws-0.10.tar.gz
  • Upload date:
  • Size: 6.3 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.10.tar.gz
Algorithm Hash digest
SHA256 d48d363599c1a4dc00b91c6aeccee5c4e3b15f800da2efd9ff70660a0d6a6aa0
MD5 3659accc3a8313468ca52fe02999f492
BLAKE2b-256 4a7fa6c950a470757a99cc2fbef11a365d85a2d8aa31454b087173035b0f6ba7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dane_jwe_jws-0.10-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.10-py3-none-any.whl
Algorithm Hash digest
SHA256 8dab293fd58c8000f0965a3dc8656994413df6bd0520642bbd2e7c5f88011e09
MD5 6107d162c2686989f04c63c3142a6203
BLAKE2b-256 491dcda1974375dca8e715e6e0f5d9ce7bd1e90f96db8ffc07018039a798c1d1

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