Sign In

rc4-secure

Package Overview
Dependencies
Maintainers
0
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc4-secure

Fast and secure RC4 encryption library for Python

pipPyPI
Version
1.0.0
Weekly downloads
81
Maintainers
0
Created

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.

Keywords

cipher

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts