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

Uploaded Python 3

File details

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

File metadata

  • Download URL: dane_jwe_jws-0.8.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.10

File hashes

Hashes for dane_jwe_jws-0.8.tar.gz
Algorithm Hash digest
SHA256 c44251501300b89c9e783edb023391e7eee979a8241a94f6f179c7329bb8f1d1
MD5 88f4ec45abb55e88fa9ac9d7c53076cb
BLAKE2b-256 2ca7873c6fb5d9d3998558c6c7c68a1eaa0d07687f4a6a4e101d11d893206f68

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dane_jwe_jws-0.8-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.10

File hashes

Hashes for dane_jwe_jws-0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 b1bc9da20a23681f39dae9c4acaf002953d110f79ebd52c60205f45b33bd34fd
MD5 9342c03c058f97dd7eaf9f32e214b342
BLAKE2b-256 f052860cf654cf280ad549dcf80fe70b97fd5693902ec4a95f934b43616bf226

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