This tool is designed to perform encryption and decryption using the RC4 algorithm. The tool can encrypt or decrypt files using a provided key.
-
Clone the repository:
git clone https://github.com/sp4r1ng/rc4_tool.git cd rc4_tool -
Install the required packages:
pip install -r requirements.txt
Encrypt a file using the RC4 algorithm.
python main.py your_key input_file output_file --encryptDecrypt a file using the RC4 algorithm.
python main.py your_key input_file output_file --decryptTo encrypt a file named plaintext.txt with the key mysecretkey and save the result to ciphertext.txt:
python main.py mysecretkey plaintext.txt ciphertext.txt --encryptTo decrypt the file ciphertext.txt with the same key and save the result to decrypted.txt:
python main.py mysecretkey ciphertext.txt decrypted.txt --decrypt