KEY HELLO
AwAVBwo=
Key: KEY. Encrypt mode applies XOR and outputs Base64.
Encrypt and decrypt text using the Vernam cipher, a classical XOR-based encryption method. Generate random keys or use your own key for encryption and decryption. Encrypted data is returned in Base64 format for safe storage and transfer.
KEY HELLO
AwAVBwo=
Key: KEY. Encrypt mode applies XOR and outputs Base64.
KEY AwAVBwo=
HELLO
Key: KEY. Decrypt mode decodes Base64 and applies XOR.
SECRET Hello World
GyAvPip0BCoxPiE=
The tool supports UTF-8 text and can encrypt data from many languages and writing systems.
SECRET HELLO
GwAPHgo=
Changing the key changes every XOR operation and produces completely different encrypted output.
The Vernam cipher encrypts data by applying the XOR (exclusive OR) operation between each byte of the message and the corresponding byte of a key. Because XOR is reversible, applying the same key again restores the original text.
In this tool, encrypted binary data is automatically encoded as Base64 so it can be copied, stored, and transferred safely as text. During decryption, Base64 is decoded first and then XOR is applied using the same key.
For maximum security, the key should be random, at least as long as the message, and used only once. When a shorter key is reused, the cipher still demonstrates XOR encryption but no longer provides the security guarantees of a true One-Time Pad.
The Vernam cipher is historically important because it introduced the XOR principle that later became the foundation of many modern stream cipher designs.
The One-Time Pad (OTP) is a special case of the Vernam cipher. For perfect theoretical security, the key must be truly random, at least as long as the message, and never reused.
Most practical Vernam implementations, including educational tools, use reusable text keys. While this still demonstrates XOR-based encryption, it does not provide the unconditional security associated with a true One-Time Pad.
The warning shown by this tool helps identify situations where the key is reused or shorter than the message, which weakens security and removes the guarantees of an OTP.
The cipher is named after Gilbert Vernam, an engineer who developed XOR-based encryption techniques for teleprinter communication in the early 20th century.
His work became one of the foundations of modern cryptography and inspired later stream ciphers and secure communication systems.
Classic letter-shift cipher with custom shift values.
Classic digraph substitution cipher with keyword matrix encryption.
Classical reciprocal cipher based on a keyword.
Vigenere-style classical cipher that uses a numeric key.
Keyword-based polyalphabetic encryption and decryption.
Classical A/B encoding and text steganography with the Bacon cipher.