rfc3161-client
What it is and what it does
rfc3161-client is a Python library that implements the Time-Stamp Protocol (TSP) from RFC 3161, enabling you to create timestamp requests and verify timestamp responses from Time-Stamp Authorities (TSAs). The library is built on Rust bindings (via PyO3) for performance and correctness, wrapping ASN.1 encoding/decoding and cryptographic operations. It depends on cryptography for certificate handling.
The library provides two main workflows: building a timestamp request to send to a TSA server (which you must handle via your own HTTP client), and verifying the returned timestamp response against a set of trusted root certificates. It does not perform network activity itself—you control how requests are sent and responses are fetched. This design keeps the library focused on protocol correctness rather than network concerns.
Use it for:
- Build RFC 3161 timestamp requests to submit to a Time-Stamp Authority server for non-repudiation proof.
- Verify timestamp responses from TSAs against trusted root certificates to validate authenticity.
- Add cryptographic timestamping to document signing workflows to prove when a document existed.
- Validate the authenticity of timestamped data by verifying the TSA's signature chain.
- Integrate timestamping into compliance or audit logging systems requiring proof of time.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Implements RFC 3161 Time-Stamp Protocol to build timestamp requests and verify timestamp responses using cryptographic certificates.
Yes. The library is actively maintained, production-stable, has no known vulnerabilities, and solves a specific RFC 3161 compliance need. The permissive Apache 2.0 license and broad platform support (cp39-abi3 wheels) make adoption straightforward. Medium install friction is acceptable for a specialized cryptographic tool. Install if you need RFC 3161 timestamping; skip if you don't need protocol-compliant timestamp verification.
Install
rfc3161-client on PyPI
pip
pip install rfc3161-clientuv
uv add rfc3161-clientpoetry
poetry add rfc3161-clientInstalling rfc3161-client
Before you install
Medium install friction due to compiled Rust bindings (cp39-abi3 wheels across multiple platforms). Active maintenance with recent release 16 days old and ongoing repository activity.
License in practice
Apache 2.0 permissive license allows commercial and private use with minimal restrictions; attribution required.
Quickstart
from rfc3161_client import TimestampRequestBuilder, decode_timestamp_response
message = b"Hello, World!"
timestamp_request = TimestampRequestBuilder().data(message).build()
# Send timestamp_request.as_bytes() to TSA server via your HTTP client
# Then decode the response:
timestamp_response = decode_timestamp_response(response_content)
Requires Python 3.9+; network requests must be handled separately (library does not perform network activity).
Verify before relying
- Whether the library supports all hash algorithms or only a subset of RFC 3161 options.
- Performance characteristics when verifying timestamps against large certificate sets.
- Compatibility with non-standard or legacy TSA servers beyond RFC 3161 compliance.
Package facts
| License | not declared (permissive) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | 1 — cryptography |
| Maintenance | actively maintained — 16 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 899,290/month — #4,778 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: rfc3161_client-1.0.8-cp39-abi3-macosx_10_12_x86_64.whl; rfc3161_client-1.0.8-cp39-abi3-macosx_11_0_arm64.whl; rfc3161_client-1.0.8-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; rfc3161_client-1.0.8-cp39-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl; rfc3161_client-1.0.8-cp39-abi3-manylinux_2_17_i686.manylinux2014_i686.whl; rfc3161_client-1.0.8-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; rfc3161_client-1.0.8-cp39-abi3-musllinux_1_2_aarch64.whl; rfc3161_client-1.0.8-cp39-abi3-musllinux_1_2_armv7l.whl; rfc3161_client-1.0.8-cp39-abi3-musllinux_1_2_i686.whl; rfc3161_client-1.0.8-cp39-abi3-musllinux_1_2_x86_64.whl; rfc3161_client-1.0.8-cp39-abi3-win32.whl; rfc3161_client-1.0.8-cp39-abi3-win_amd64.whl
Tags
More Cryptography packages
Certifi provides Mozilla's curated collection…
copyleft · top 100 on PyPI
cryptographycryptography provides cryptographic recipes and…
permissive · top 100 on PyPI
rsaPure-Python RSA encryption, decryption,…
permissive · top 1,000 on PyPI
pyOpenSSLpyOpenSSL wraps OpenSSL's SSL/TLS functionality…
permissive · top 1,000 on PyPI
azure-identityProvides Microsoft Entra ID token-based…
unclear · top 1,000 on PyPI
PyNaClPyNaCl provides Python bindings to libsodium…
permissive · top 1,000 on PyPI
rfc3161ngImplements RFC3161 cryptographic timestamping,…
permissive · top 15,000 on PyPI
opentimestampsA Python library for creating and verifying…
copyleft · top 15,000 on PyPI
opentimestamps-clientCommand-line tool to create and verify…
copyleft · top 15,000 on PyPI
rfc3339Formats and parses dates according to RFC 3339,…
unclear · top 5,000 on PyPI
pyRFC3339Parses and generates RFC 3339-compliant…
permissive · top 5,000 on PyPI
uuid7-standardGenerates and parses UUIDv7 identifiers with…
permissive · top 15,000 on PyPI
asn1cryptoA pure Python library for parsing and…
permissive · top 1,000 on PyPI
uuid6Generates time-based UUID formats (versions 6,…
permissive · top 5,000 on PyPI
ocspresponderImplements an RFC 6960 compliant OCSP Responder…
permissive · top 5,000 on PyPI
requests-pkcs12Adds PKCS#12 certificate support to the…
permissive · top 5,000 on PyPI