ChaCha20 Utils
A simple ChaCha20 encryption/decryption utility for Python.
Features
✔ Simple API for encryption and decryption
✔ Uses ChaCha20 for fast, secure encryption
✔ Automatic nonce handling (prepended to ciphertext)
✔ Requires a 32-byte key for security
Installation
Install the package using pip:
pip install chacha20-utils
Usage
from chacha20_utils import ChaCha20Cipher
# Use a 32-byte secret key
key = b'your_32_byte_secret_key_________________'
cipher = ChaCha20Cipher(key)
# Encrypt
plaintext = b"Hello, ChaCha20!"
encrypted = cipher.encrypt(plaintext)
print("Encrypted:", encrypted)
# Decrypt
decrypted = cipher.decrypt(encrypted)
print("Decrypted:", decrypted)
Notes
- The key must be exactly 32 bytes (256 bits).
- The nonce is randomly generated and prepended to the ciphertext for decryption.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Author
Developed by Sakib Salim
GitHub: sakib-salim
Metadata
Release files for chacha20-utils 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| chacha20_utils-0.1.1.tar.gz | 3.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| chacha20_utils-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.0 kB
Release files / chacha20_utils-0.1.1.tar.gz
| Download URL | chacha20_utils-0.1.1.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
25e4c3d492284254942cde5a9fec1a62eea9ff3f114ac9ace4dd1fde9dcedac4
|
|
BLAKE2b-256 checksum How to use checksums |
2d2cada20b39e2b5f2d9c6110b1e23e397f6f4f5e3fd511e53cda3ef31a97a88
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / chacha20_utils-0.1.1-py3-none-any.whl
| Download URL | chacha20_utils-0.1.1-py3-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
87dcd0598a8b4f5fea6fb14f2defe662f5cccf812adf6c88dc5367f8680944d9
|
|
BLAKE2b-256 checksum How to use checksums |
5026ab17072ed8e17e377a1f7cb03ad026e8bae1107c71215e174ca4da596861
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Security for chacha20-utils 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.