wdalmut/rc4-support
Lightweight RC4 stream cipher implementation for PHP. Instantiate RC4 with a secret key, then encrypt/decrypt strings via __invoke() or rc4() method. Includes PHPUnit tests for verification.
openssl_encrypt() with stronger algorithms.mcrypt (deprecated) or openssl_encrypt() with RC4 cipher (also deprecated). Prefer these over a third-party package unless you need exact RC4 behavior.For Executives: "This package provides a lightweight, MIT-licensed RC4 implementation for PHP, enabling us to [decrypt legacy data/obfuscate non-sensitive strings] without reinventing the wheel. It’s a temporary solution to support [specific legacy system/API], while we roadmap a migration to modern encryption (e.g., AES). The risk is low—it’s a single file, but we’ll treat it as a stopgap, not a long-term dependency."
For Engineering:
*"We’re adding this package to handle RC4 decryption for [specific use case], where alternatives like openssl_encrypt() don’t match the exact behavior. Key trade-offs:
For Security Teams: "This package is not recommended for new cryptographic operations. It’s being used solely to [decrypt legacy data/obfuscate non-sensitive strings] as part of our phased migration away from RC4. We’ll remove it once [specific milestone] is complete. Please flag any new RC4 usage in PRs."
How can I help you explore Laravel packages today?