Skip to main content

Library for digital signing and verification of digital signatures in mail, PDF and XML documents.

Project description

https://img.shields.io/pypi/v/endesive.svg endesive build status on Travis CI

Description

Python library for digital signing and verification of digital signatures in mail, PDF and XML documents.

The ASN.1 implementation depends on asn1crypto. Cryptographic routines depends on cryptography library.

For certificate verification OpenSSL is used but I would not trust it, next version should switch to cryptography.

This library implements S/MIME handler which can encrypt and decrypt S/MIME messages using a public RSA key, in AES-128/192/256 CBC/OFB modes. It can also sign and verify S/MIME messages.

This library implements CAdES-B handler for signing and verifying PDF documents in Adobe.PPKLite/adbe.pkcs7.detached form. It can sign documents during generation using a modified version of pyfpdf which is included in this library. It can also sign documents generated by external programms.

This library implements XADES BES/T with enveloped and enveloping format for creating signed xml files.

This library implements CMS handler for signing and verifying plain text files with detached signature files.

License

This software is licensed under the MIT License. See the LICENSE file in the top distribution directory for the full license text.

## Requirements

Examples

cert-make.py

Create required certificates (password is 1234)

cert-make-hsm.py

Create required certificates for SoftHSM (password is secret1)

pdf-make.py

Create simple two paged PDF document which is used in pdf-sign-cms.py.

pdf-sign-cms.py

Create signature in externally created PDF.

pdf-sign-cms-hsm.py

Create signature in externally created PDF but signed with key stored in SoftHSM.

pdf-sign-fpdf.py

Create signature while creating PDF.

pdf-verify.py

Verify prevously generated files (cms/pdf).

plain-make.py

Create simple UTF-8 text file.

plain-openssl.sh

Sign, encrypt and decrypt text file with help of openssl executable.

plain-sign-attr.py

Sign text file with ‘extended’ CMS attributes.

plain-sign-noattr.py

Sign text file without ‘extended’ CMS attributes.

plain-verify.py

Verify all generated signatures for text file.

smime-make.py

Create simple UTF-8 text file for use in following examples.

smime-openssl.sh

Create signed S/MIME file, encrypted S/MIME file and decrypt generated S/MIME file with help of openssl executable.

smime-encrypt.py

Create encrypted S/MIME file.

smime-decrypt.py

Decrypt encrypted S/MIME file.

smime-sign-attr.py

Create signed S/MIME file with ‘extended’ CMS attributes.

smime-sign-noattr.py

Create signed S/MIME file without ‘extended’ CMS attributes.

smime-verify.py

Verify all generated S/MIME files.

xml-make.py

Create simple xml file for use in following examples.

xml-hsm-certum-enveloped.py

XADES enveloped mode with real certificate (BES/T).

xml-hsm-certum-enveloping.py

XADES enveloping mode with real certificate (BES/T).

xml-hsm-softhsm2-enveloped.py

XADES enveloped mode with SoftHSM certificate (BES).

xml-hsm-softhsm2-enveloping.py

XADES enveloping mode with SoftHSM certificate (BES).

Tools

Online pdf validator pdfvalidator or verapdf. Offline Apache pdfbox java based validator.

Free S/MIME certificates (usable for documents signing) can be obtained from actalis.

Validate electronic signatures: ec_europa.

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

endesive-2.0.2.tar.gz (312.3 kB view details)

Uploaded Source

Built Distribution

endesive-2.0.2-py3-none-any.whl (332.0 kB view details)

Uploaded Python 3

File details

Details for the file endesive-2.0.2.tar.gz.

File metadata

  • Download URL: endesive-2.0.2.tar.gz
  • Upload date:
  • Size: 312.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.6.7

File hashes

Hashes for endesive-2.0.2.tar.gz
Algorithm Hash digest
SHA256 5f65eecfd59d28f261b4941f019e9e3922bc25b3ae2f11dcd711076d5f749ce4
MD5 2c24e668c68754b9ec47cfb3f6641819
BLAKE2b-256 95def1c23757f6a44316020080f7598be0d9a6d8157a27795b1633f067be58ff

See more details on using hashes here.

File details

Details for the file endesive-2.0.2-py3-none-any.whl.

File metadata

  • Download URL: endesive-2.0.2-py3-none-any.whl
  • Upload date:
  • Size: 332.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.6.7

File hashes

Hashes for endesive-2.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f1c91917db0fc38325d27ef22397edb4495bea2d0430d9d4dcb5a8dc4bb5b794
MD5 9b7426ec629f56b1bb8f7746831070a0
BLAKE2b-256 3520e00152118ec2bc5af9c89ee23c08bae950d006fee29c754a9561b80c873a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page