dane-jwe-jws-0.9
توضیحات
A library for using DANE for identity-secured JWE and JWS.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | POSIX :: Linux |
| نام فایل | dane-jwe-jws-0.9 |
| نام | dane-jwe-jws |
| نسخه کتابخانه | 0.9 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Ash Wilson |
| ایمیل نویسنده | ash.d.wilson@gmail.com |
| آدرس صفحه اصلی | https://github.com/valimail/dane_jwe_jws |
| آدرس اینترنتی | https://pypi.org/project/dane-jwe-jws/ |
| مجوز | BSD |
============
dane_jwe_jws
============
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)
.. image:: https://readthedocs.org/projects/dane-jwe-jws/badge/?version=latest
:target: https://dane-jwe-jws.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status
.. image:: https://circleci.com/gh/ValiMail/dane-jwe-jws.svg?style=shield
:target: https://circleci.com/gh/ValiMail/dane-jwe-jws
.. image:: https://api.codeclimate.com/v1/badges/8a46b39865a6f88dc31c/maintainability
:target: https://codeclimate.com/github/ValiMail/dane_jwe_jws/maintainability
:alt: Maintainability
.. image:: https://api.codeclimate.com/v1/badges/8a46b39865a6f88dc31c/test_coverage
:target: https://codeclimate.com/github/ValiMail/dane_jwe_jws/test_coverage
:alt: Test Coverage
Quick Start
===========
Installation
------------
``pip install dane-jwe-jws``
Encrypt a message using a DANE-represented identity
---------------------------------------------------
.. code-block:: python
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 <https://dane-jwe-jws.readthedocs.io/en/latest/getting_started.html>`_
نیازمندی
| مقدار | نام |
|---|---|
| ==0.20 | dane-discovery |
| <2.0,>=0.7 | jwcrypto |
نحوه نصب
نصب پکیج whl dane-jwe-jws-0.9:
pip install dane-jwe-jws-0.9.whl
نصب پکیج tar.gz dane-jwe-jws-0.9:
pip install dane-jwe-jws-0.9.tar.gz