One-Time Pad XOR Tool
Enter a message and key, choose encrypt or decrypt, and XOR them together.
Result
How to use
- Enter your values in the fields above.
- Press Calculate to see your result instantly.
- Use the Share button to copy a link to your result.
About this calculator
The one-time pad, formalized by Gilbert Vernam, achieves theoretically perfect secrecy by combining each plaintext byte with a key byte of equal length using XOR — a reversible bitwise operation where applying the same key twice returns the original data (P ⊕ K = C, then C ⊕ K = P). Perfect secrecy only holds if the key is truly random, exactly as long as the message, and never reused; in practice, the same math with a short repeating key (as this tool does) produces a simple, breakable stream cipher rather than a true unbreakable pad.
This tool XORs a message against a key — repeating the key to match the message length — to encrypt text into hex or decrypt hex back into text. Cryptography students use it to see XOR-based encryption mechanics firsthand, and CTF players and security learners use it to quickly encode or decode XOR-cipher challenges by hand.
Was this helpful?
Popular calculators
Loan Calculator
Monthly payment, total interest and full amortization schedule.
Percentage Calculator
Percent change, percent of, and ratio calculations.
Discount Calculator
Calculate final price, savings, and discount amount.
BMI Calculator
Body mass index from height and weight (metric or imperial).
Age Calculator
Compute your exact age in years, months and days from a birth date.
Compound Interest Calculator
Calculate the final amount and interest earned with compounding.
All Calculators
No calculators found
Comments (0)