skillfed

http-ece

Encrypted Content Encoding for HTTP

http-ece v1.2.1 3.5M downloads/30d#2,614 on PyPI33
Permissive license MIT Active released

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-ece

uv

uv add http-ece

poetry

poetry add http-ece

Installing 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

Development Status :: 4 - BetaLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 2.7Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9

Tags

HTTP content encryptionencrypted content encodingHTTP message encryptioncontent-encoding cryptoencrypted HTTP payloadsHTTP encryption standardcryptographic content encoding
http-encryptionstandards-based

More Cryptography packages