skillfed

endesive

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

endesive v2.19.3 177.6K downloads/30d#10,209 on PyPI276
License unclear Active released

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 endesive

uv

uv add endesive

poetry

poetry add endesive

Installing 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

Development Status :: 4 - BetaDevelopment Status :: 5 - Production/StableIntended Audience :: DevelopersOperating System :: OS IndependentProgramming Language :: Python :: 3Topic :: Communications :: EmailTopic :: Multimedia :: GraphicsTopic :: Office/BusinessTopic :: Security :: CryptographyTopic :: Software Development :: Libraries :: Python ModulesTopic :: Text Processing

Tags

digital signature PDFS/MIME sign verifyXML digital signatureCMS document signingcertificate-based document signingXADES signingcryptographic document verification
digital-signaturesdocument-signingcryptography

More Python Modules packages