Metadata-Version: 2.5
Name: rc4-secure
Version: 1.0.0
Summary: Fast and secure RC4 encryption library for Python
Project-URL: Homepage, https://github.com/cryptoteam/rc4-cipher
Project-URL: Documentation, https://rc4-cipher.readthedocs.io/
Project-URL: Repository, https://github.com/cryptoteam/rc4-cipher.git
Project-URL: Issues, https://github.com/cryptoteam/rc4-cipher/issues
Author-email: CryptoTeam <crypto@securelib.org>
License: MIT
License-File: LICENSE
Keywords: cipher,crypto,encryption,rc4,security
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Topic :: Security :: Cryptography
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.7
Requires-Dist: requests>=2.25.0
Description-Content-Type: text/markdown

# 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

```bash
pip install rc4-cipher
```

## Quick Start

```python
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

```python
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.