RC4 Encryption & Decryption
Encrypt or decrypt text and files locally with a Hex key for legacy compatibility.
How to use
To reproduce the known vector, encrypt Plaintext as UTF-8 with Hex key 4b6579 and select Hex output. The result is bbf316e8d940af0ad3. To reverse it, choose Decrypt, paste that result as Hex and select UTF-8 output.
FAQ
Does decrypting RC4 send the key or ciphertext to a server?
Your browser uses the supplied Hex key with the pasted ciphertext or selected file. The key and data stay local, including when you download the decrypted bytes.
What is supported?
Enter a 1–256 byte Hex key. Text input and output support UTF-8, Hex and Base64. The file limit is 8 MiB. Download saves raw bytes. Standard RC4 uses no IV, nonce or padding. RFC 7465 prohibits RC4 in TLS. Use this page for legacy data and test vectors.
What if the decrypted result is binary?
Choose Hex or Base64 output before running the tool, then download the raw bytes if needed. The wrong key can still return bytes because RC4 does not authenticate the data.
Other Languages
References
How we make sure
We check this tool with the automated test suites linked below. Example checks are shown in their original language.
- Verification method
- Compare Key/Plaintext with the published RC4 ciphertext bbf316e8d940af0ad3.
- Comparison reference
- Fixed RC4 Key/Plaintext example; no second implementation runs in this test.
- Verification scope
- Covers standard RC4 encryption for one fixed key and plaintext. It does not cover the full key-length range or the RC4-drop variant.
Test source and cases (select a file to read it)
-
completion-tools.test.js
- rc4-cipher: Key Plaintext published vector
- Secret fields start empty and fixed vectors are confined to the explicit example action
These checks cover the listed examples and boundaries, not every possible input. Round trips and checks using the same library are not independent verification.