http-ece
Encrypted Content Encoding for HTTP
What it is and what it does
http-ece is a Python implementation of encrypted content encoding for HTTP, a standard mechanism for encrypting message bodies at the HTTP layer. It wraps the cryptography library to provide encrypt and decrypt functions that follow the HTTP Content-Encoding specification, allowing applications to protect sensitive payloads in transit.
The package is actively maintained and supports a wide range of Python versions from 2.7 through 3.12, though it remains in Beta status. It is a straightforward, single-purpose library with no exotic dependencies beyond cryptography itself, making it suitable for applications that need standards-compliant HTTP-layer encryption without additional complexity.
Use it for:
- Encrypt sensitive HTTP request bodies before transmission to ensure privacy even if HTTPS is compromised or unavailable
- Implement end-to-end encryption for web APIs where the server should not have access to plaintext payloads
- Decrypt HTTP responses that were encrypted by a peer using the same standard, for applications handling encrypted content delivery
- Add an extra layer of encryption on top of TLS for highly sensitive data in transit
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Implements encrypted content encoding for HTTP messages, allowing you to encrypt and decrypt HTTP request/response bodies using the standard HTTP Content-Encoding mechanism.
Yes, if you need standards-compliant HTTP content encryption and can tolerate the high install friction from cryptography's compiled dependencies. The package is actively maintained, has no known vulnerabilities, and carries a permissive license. It is worth installing for applications requiring end-to-end encryption at the HTTP layer, but weigh the compilation overhead against your deployment environment.
Install
http-ece on PyPI
pip
pip install http-eceuv
uv add http-ecepoetry
poetry add http-eceInstalling http-ece
Before you install
High install friction due to the cryptography runtime dependency, which requires compilation on most platforms. The package is actively maintained with a recent commit on 2026-08-03, though it remains in Beta status.
License in practice
MIT license is permissive, allowing commercial and private use with minimal restrictions—you must include the license notice but face no copyleft obligations.
Quickstart
pip install http_ece
import http_ece
encrypted = http_ece.encrypt(plaintext, salt, key)
decrypted = http_ece.decrypt(encrypted, salt, key)
cryptography dependency requires a C compiler and OpenSSL development headers on most systems; pre-built wheels may not be available for all Python versions or platforms.
Verify before relying
- Whether cryptography's compiled dependencies are pre-built for your target platform and Python version
- Whether this implements RFC 8188 or another specific encryption standard for HTTP
- Performance characteristics when encrypting/decrypting large payloads
Package facts
| License | MIT (permissive) |
| Python support | not specified |
| Install friction | high — source build required |
| Runtime dependencies | 1 — cryptography |
| Maintenance | actively maintained — 736 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 3,462,935/month — #2,614 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: http_ece-1.2.1.tar.gz
Keywords: crypto, http
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
aws-encryption-sdkEncrypts and decrypts data using AWS KMS keys…
permissive · top 5,000 on PyPI
daveyImplements the Discord Audio & Video End-to-End…
permissive · top 5,000 on PyPI
eciespyEncrypts and decrypts data using Elliptic Curve…
permissive · top 15,000 on PyPI
pyaesPure-Python implementation of AES encryption…
permissive · top 5,000 on PyPI
pywebpushEncrypts and sends web push notifications to…
copyleft · top 5,000 on PyPI
sslcryptoProvides AES, ECIES, and ECDSA cryptographic…
unclear · top 15,000 on PyPI
django-cryptography-django5Encrypts and decrypts data in Django models…
permissive · top 15,000 on PyPI
xxteaxxtea is a Python extension that implements the…
permissive · top 15,000 on PyPI
kasa-cryptProvides fast encryption and decryption…
permissive · top 15,000 on PyPI
sendsafelyIntegrates SendSafely secure file transfer and…
permissive · top 15,000 on PyPI