endesive
Library for digital signing and verification of digital signatures in mail, PDF and XML documents.
What it is and what it does
Endesive is a Python library for creating and validating digital signatures across multiple document formats: PDF (CAdES-B format), S/MIME email messages, XML (XADES BES/T), and plain text with detached CMS signatures. It wraps cryptographic operations from the cryptography library and ASN.1 handling from asn1crypto, providing a unified interface for signing workflows that need to comply with standards like CAdES and XADES.
The library can sign documents at creation time (for PDF via an embedded pyfpdf variant) or add signatures to externally generated files. It supports both software-based keys and hardware security modules via pykcs11. Encryption and decryption of S/MIME messages is also supported. The package is actively maintained and carries no known vulnerabilities.
Use it for:
- Sign PDF documents with a digital certificate for compliance and authenticity verification.
- Create and verify signed S/MIME email messages for secure mail communication.
- Generate XADES-compliant XML signatures for legal or regulatory document workflows.
- Sign plain-text files with detached CMS signatures for non-binary document authentication.
- Integrate hardware security module keys into document signing via pykcs11.
- Encrypt and decrypt S/MIME messages in email processing pipelines.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Endesive signs and verifies digital signatures in PDF, S/MIME email, XML, and plain-text documents using cryptographic keys and certificates.
Yes, if you need to sign or verify documents in PDF, S/MIME, XML, or plain-text formats. The package is actively maintained, has low install friction, carries no known vulnerabilities, and covers a broad range of signing standards. Verify the license metadata before use in proprietary contexts, and confirm HSM requirements if you plan to use hardware keys.
Install
endesive on PyPI
pip
pip install endesiveuv
uv add endesivepoetry
poetry add endesiveInstalling endesive
Before you install
Low friction install with a pure-Python wheel. Actively maintained as of 2026-07-28 with regular commits. Depends on seven runtime libraries including cryptography, lxml, and pykcs11; all are mature and widely available.
License in practice
License treatment is unclear in the metadata, though the description states MIT licensing. Verify the actual LICENSE file in the repository before use in proprietary or restricted contexts.
Quickstart
pip install endesive
from endesive.cms import cms_sign
# Sign a document with a certificate and key
signed_data = cms_sign(document_bytes, cert, key)
Requires a valid certificate and corresponding private key; pykcs11 support for hardware security modules needs additional system-level setup.
Verify before relying
- Whether license_treatment 'unclear' reflects missing metadata or genuine ambiguity about MIT licensing stated in description.
- Whether pykcs11 is required for all use cases or only for hardware security module integration.
- Specific Python 3.x version support beyond the minimum 3.0 requirement.
- Whether AES-128/192/256 CBC/OFB modes are all supported or only a subset.
Package facts
| License | not declared (unclear) |
| Python support | supports the current Python release (>=3.0) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 7 — cryptography, asn1crypto, lxml, pykcs11, Pillow, requests, paramiko |
| Maintenance | actively maintained — 214 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 177,569/month — #10,209 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: endesive-2.19.3-py3-none-any.whl
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
pyHankopyHanko is a Python library for adding,…
permissive · top 5,000 on PyPI
signxmlSignXML implements W3C XML Signature (XMLDSig)…
permissive · top 5,000 on PyPI
xmlsecPython bindings for XML Security Library,…
permissive · top 5,000 on PyPI
pyas2libBuilds and parses AS2 protocol messages with…
copyleft · top 15,000 on PyPI
securesystemslibSecuresystemslib provides a cryptography…
permissive · top 5,000 on PyPI
signedjsonSigns and verifies JSON objects using ED25519…
unclear · top 15,000 on PyPI
asn1cryptoA pure Python library for parsing and…
permissive · top 1,000 on PyPI
pysequoiaPySequoia provides OpenPGP encryption,…
permissive · top 15,000 on PyPI
signifyValidates and inspects Windows Authenticode…
permissive · top 15,000 on PyPI
itsdangerousItsDangerous cryptographically signs data to…
permissive · top 1,000 on PyPI