This project has been quarantined by PyPI admins. It cannot be installed or modified until a security review is complete.
RC4 Cipher - Fast Python Encryption Library
A high-performance RC4 encryption library for Python with optimized algorithms and easy-to-use interface.
Features
- ⚡ Fast RC4 encryption/decryption
- 🔒 Secure key scheduling algorithm
- 🐍 Pure Python implementation
- 📦 Easy installation via pip
- 🔧 Simple API for quick integration
Installation
pip install rc4-cipher
Quick Start
from rc4_cipher import RC4Cipher
# Create cipher instance
cipher = RC4Cipher()
# Encrypt data
key = b"my_secret_key"
plaintext = b"Hello, World!"
encrypted = cipher.encrypt(plaintext, key)
# Decrypt data
decrypted = cipher.decrypt(encrypted, key)
print(decrypted) # b"Hello, World!"
Advanced Usage
from rc4_cipher import RC4Cipher, generate_key
# Generate random key
key = generate_key(16) # 16-byte key
# Initialize cipher
cipher = RC4Cipher()
# Encrypt with custom options
data = b"Sensitive information"
encrypted = cipher.encrypt(data, key, optimize=True)
# Decrypt
original = cipher.decrypt(encrypted, key)
Performance
This library is optimized for speed and can handle large data streams efficiently:
- Encryption speed: ~50 MB/s on modern hardware
- Memory efficient streaming support
- Minimal dependencies
Security Notice
RC4 is provided for compatibility purposes. For new applications, consider using AES or other modern ciphers.
License
MIT License - see LICENSE file for details.
Contributing
Contributions are welcome! Please see our GitHub repository for guidelines.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rc4_secure-1.0.0.tar.gz.
File metadata
- Download URL: rc4_secure-1.0.0.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1ae8210f94cba6c45d396788bf2aac902be2a73767e152baf18a51eb9bd0697d
|
|
| MD5 |
09669b75a9d410aa334b0c81ff13e4b7
|
|
| BLAKE2b-256 |
5af2266132c0e1f4042d3857d0731fa2d272e4a8e8162cdb861bc05d0d776e76
|
File details
Details for the file rc4_secure-1.0.0-py3-none-any.whl.
File metadata
- Download URL: rc4_secure-1.0.0-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8c6996cdbe7d396aae3b0b817aab708f5c13b9ea5837034210c5afe2df7ad541
|
|
| MD5 |
fe74bae050ce866d69ec996e7f0b3675
|
|
| BLAKE2b-256 |
eee0368db7c5301ace8ee05dcd66e053a324e0847d41fdeee22cd7a0221fda89
|