Skip to content

One-Time Pad Generator

Generate cryptographically random one-time pads and encrypt or decrypt messages with modular or XOR cipher modes entirely in your browser.

Updated

What is the One-Time Pad Generator?

How it works

Examples

Classic letter pad encryption

Plaintext: ATTACK AT DAWN
Key: XMCKL ZQWER TYUIO PASDF
Ciphertext: XFECK ATNWRN

Generate a 50-character A–Z pad

Length: 50
Charset: A–Z letters
Grouping: 5-character blocks
KXQZM PLRVB NHTWF JAYCS DGUEO IKMNX ZLQWP ARBHT VYCFS
Entropy ≈ 235 bits

XOR byte encryption of Unicode text

Message: Hello 世界
Key (hex): a1b2c3d4e5f60718293a4b5c6d7e8f90
Result (hex): c9d7afb88092e0a4... (base64 also provided)

Frequently asked questions