Skip to main content

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 handler 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)

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-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-xades-bes-sign-b64.py

Create xml file with base64 encoded embedded source file inside own content.

xml-xades-bes-sign-xml.py

Create xml file with no encoded but still embedded source file inside own content.

xml-xades-bes-read.py

Decode generated xml signatures and extract their content.

Tools:

Online pdf validator pdfvalidator

Release files for endesive 1.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for endesive 1.1.4
File Size Uploaded
endesive-1.1.4.tar.gz 51.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for endesive 1.1.4
File Interpreter ABI Platform
endesive-1.1.4-py3-none-any.whl Python 3 none any Details

Total release size: 108.4 kB

Release files / endesive-1.1.4.tar.gz

Download URL endesive-1.1.4.tar.gz
Size 51.3 kB
Tags Source
SHA-256 checksum
How to use checksums
e1a74cf9ffeea527cefebeca3611c6ccf8371b70b02d0f1f16d28ec35cc5e208
BLAKE2b-256 checksum
How to use checksums
6a032a3cd33d282864066c168d3ff6a83045a7c35a8eab4b320ff234f33c5d8f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

Release files / endesive-1.1.4-py3-none-any.whl

Download URL endesive-1.1.4-py3-none-any.whl
Size 57.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d591cc4f16e2678568d721ae2bf3bfaa39ff2a3beb6121396484364fe1737c65
BLAKE2b-256 checksum
How to use checksums
386d94bca7ca747cd8e14b9211bbe411efbf7d8b9d193763be373afb2c3227a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

Release history Release notifications | RSS feed

2.19.3

1 release file

2.19.2

1 release file

2.19.1

1 release file

2.19.0

1 release file

2.18.5

1 release file

2.18.4

1 release file

2.18.3

1 release file

2.18.2

1 release file

2.18.1

1 release file

2.18.0

1 release file

2.17.3

1 release file

2.17.2

1 release file

2.17.1

1 release file

2.17.0

1 release file

2.16.1

1 release file

2.16

1 release file

2.0.16

1 release file

2.0.15

1 release file

2.0.14

1 release file

2.0.13

1 release file

2.0.12

1 release file

2.0.11

1 release file

2.0.10

1 release file

2.0.9

1 release file

2.0.8

1 release file

2.0.7

2 release files

2.0.6

2 release files

2.0.5

2 release files

2.0.4

2 release files

2.0.3

2 release files

2.0.2

2 release files

2.0.1

2 release files

2.0.0

2 release files

1.5.12

2 release files

1.5.10

2 release files

1.5.9

2 release files

1.5.8

2 release files

1.5.7

2 release files

1.5.6

2 release files

1.5.5

2 release files

1.5.4

2 release files

1.5.3

2 release files

1.5.2

2 release files

1.5.1

2 release files

1.5.0

2 release files

1.4.5

2 release files

1.4.4

2 release files

1.4.3

2 release files

1.4.2

2 release files

1.4.1

2 release files

1.4.0

2 release files

1.3.0

2 release files

1.2.4

2 release files

1.2.3

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.9

2 release files

1.1.8

2 release files

1.1.7

2 release files

1.1.6

2 release files

1.1.5

2 release files

This release

1.1.4 This release

2 release files

1.1.3

2 release files

1.1.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page