skillfed

chacha20poly1305-reuseable

ChaCha20Poly1305 that is reuseable for asyncio

chacha20poly1305-reuseable v0.13.2 412.1K downloads/30d#6,851 on PyPI2
Permissive license Apache-2.0 OR BSD-3-Clause Active released

What it is and what it does

This package wraps the ChaCha20Poly1305 authenticated encryption cipher from cryptography to make it reusable in asyncio contexts. ChaCha20Poly1305 is a modern AEAD (Authenticated Encryption with Associated Data) cipher combining the ChaCha20 stream cipher with the Poly1305 message authentication code, offering both confidentiality and authenticity in a single operation.

The package is designed to address a specific asyncio use case where cipher instances need to be reused across multiple encrypt/decrypt operations without the overhead or complexity of recreating the cipher for each call. It depends only on cryptography and supports Python 3.8 through 3.12. The repository is active and the package has been stable since its initial release in 2022.

Use it for:

  • Encrypt and authenticate messages in asyncio-based network protocols or services
  • Reuse a single cipher instance across multiple async tasks without recreating it each time
  • Add authenticated encryption to async I/O operations where both secrecy and integrity matter

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Provides a reusable ChaCha20Poly1305 AEAD cipher implementation optimized for asyncio applications, wrapping the cryptography library.

Yes, if you need authenticated encryption in an asyncio application and want to avoid recreating ChaCha20Poly1305 instances. The package has low install friction, permissive licensing, and no known vulnerabilities. However, note the Pre-Alpha classification and relatively small community; verify that the reusability pattern matches your specific asyncio use case before committing.

Install

chacha20poly1305-reuseable on PyPI

pip

pip install chacha20poly1305-reuseable

uv

uv add chacha20poly1305-reuseable

poetry

poetry add chacha20poly1305-reuseable

Installing chacha20poly1305-reuseable

Before you install

Low friction: pure Python wheel with a single dependency on cryptography. Repository is active with recent commits, though the package is classified as Pre-Alpha and has been stable for over 2 years without frequent updates.

License in practice

Dual-licensed under Apache-2.0 or BSD-3-Clause (permissive). You may choose either license when using or distributing this package.

Quickstart

pip install chacha20poly1305-reuseable

from chacha20poly1305_reuseable import ChaCha20Poly1305
cipher = ChaCha20Poly1305(key)

Requires Python 3.8 or later; cryptography library must be installed and functional on your system.

Verify before relying

  • Specific performance characteristics or benchmarks compared to direct cryptography usage
  • Exact reusability patterns supported for asyncio contexts
  • Whether Pre-Alpha status reflects incomplete API or just conservative versioning
  • Key size requirements and other cipher initialization parameters

Package facts

License Apache-2.0 OR BSD-3-Clause (permissive)
Python support supports the current Python release (<4.0,>=3.8)
Install friction low — pure-Python wheel
Runtime dependencies 1 — cryptography
Maintenance actively maintained — 754 days since the last release
Last repo commit
First released
Downloads 412,080/month — #6,851 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: chacha20poly1305_reuseable-0.13.2-py3-none-any.whl

Development Status :: 2 - Pre-AlphaIntended Audience :: DevelopersLicense :: Other/Proprietary LicenseNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software Development :: Libraries

Tags

chacha20poly1305 asyncioreusable aead cipherchacha20 encryption asyncpoly1305 authenticationasyncio cryptography wrapper
asyncioaead-ciphercryptography

More Libraries packages