24-character passphrase cipher
Reversible passphrase obfuscation: take the first 24 UTF-8 bytes of a passphrase as an RC4 key and run the same operation again to restore the input. Input and output support UTF-8, hex and Base64. This is obfuscation, not cryptographic encryption — there is no salt, no authentication and no key stretching, so do not use it for real secrets.
Runs in your browserEvery computation happens in your browser — your data never leaves this device.
Result
Re-running with the same passphrase restores the input; this is obfuscation, not cryptographic encryption.
Enter content to see the result
Input bytes: 0 · Passphrase bytes: 0 · Result bytes: 0
What this tool does
- Add a reversible layer of obfuscation to notes, config snippets or temporary text you do not want read at a glance.
- See how a stream cipher's keystream length matches the data length.
- Wrap short internal text so it is not immediately readable (without claiming confidentiality).
Example
Input
Hello, world!
Output
f5e847e45f084f19c5e2896305
Running the same passphrase again restores the input (reversible); the underlying RC4 is verified against the published vector Key/Plaintext → bbf316e8d940af0ad3.
Frequently asked questions
How is this different from real encryption?
Three things are missing: a salt (the same passphrase always yields the same keystream, so dictionary precomputation works), authentication (a flipped byte goes unnoticed) and key stretching (the 24-byte passphrase is used as-is). Treat it as obfuscation only; use AES-GCM or ChaCha20-Poly1305 for secrets.
Why must the passphrase be 24 bytes?
That is the tool's contract: the first 24 UTF-8 bytes are used as the key. Shorter input is rejected instead of zero-padded — silent padding would make you believe a full 24-byte key is in effect while the real strength is lower. A Chinese character is usually 3 bytes, so 24 bytes is roughly 8 such characters.
Can the result be restored?
Yes. Encryption and decryption both xor with the keystream derived from the same passphrase, so running the result through again with decrypt gives the original text back. For hex input remember to set inputFormat=hex.
Is the passphrase uploaded anywhere?
No. Everything runs in the page's pure functions: neither the passphrase nor the text leaves the browser, and nothing is persisted.
Keywords:passphraseRC4