Documents and knowledge · Independent · 23 Oct 2026

MatthiasValvekens/pyHanko

pyHanko: sign and stamp PDF files

← Documents and knowledge
pyHanko: sign and stamp PDF files. Adds cryptographic signatures and visual stamps to PDFs.

In simple English

This tool adds cryptographic signatures and visual stamps to PDF files. It helps you prove that a document is real and has not been changed. You can run it from your terminal or build it into your own programs. It is free to use under an MIT licence. You need some knowledge of Python and digital certificates to set it up.

What it is

pyHanko is a command-line tool and Python library for digital signatures in PDF documents. It supports advanced European standards for long-term signature validation.

What it is good for

Solo builders and developers who need to programmatically sign invoices, legal documents, or certificates without paying for proprietary software.

Stars791
LicenceMIT
LatestNo tagged releasechecked 23 Oct 2026
Last code change2026-10-23
Written inPython
Setup effort
3 / 5
Payoff
4 / 5
Good
  • Supports advanced PAdES signature profiles for long-term validation.
  • Works with hardware security tokens and smart cards using PKCS#11.
  • Includes a command-line interface for quick script automation.
Watch for
  • Requires Python 3.11 or later and manual dependency management.
  • Needs familiarity with cryptographic certificates and keys.
  • The project is in beta and not yet fully production-ready.
Replaces

manual PDF signing in desktop applications or expensive commercial signing software

Works well with

cryptography (a Python library for recipes and cryptographic primitives)

Also reviewed on Repo Radar
  • Future-Scholars/paperlib2.3k stars

    A desktop library for research papers that looks up the title, authors and year of a dropped document itself, and leaves the files in an ordinary folder.

  • mozilla/pdf.js54k stars

    A PDF reader written in JavaScript that renders documents inside a web page with no plugin.

  • Hack-with-Github/Awesome-Hacking123k stars

    An index of 81 curated security reading lists, with one line on each.

Install
python3 -m venv venv
source venv/bin/activate
pip install 'pyHanko[pkcs11,image-support,opentype,qr]' pyhanko-cli

Independent: reviewed for Repo Radar outside the daily editions. Every independent repository

On Stack Radar: Business Operations & Legal › Contracts & E-Signature › E-Signatures.

Get the next edition in your inbox

A dozen repositories, opened and checked. The licence read, the last release dated, and the ones that did not make it named with the reason. It is the half most lists leave out.

No tracking pixels. One click to leave. The archive stays free either way.

We use your address to send the edition and nothing else. Confirm by email, leave in one click. How we handle it.