Welcome to the One-Time Pad (OTP) Cipher Tool!
The One-Time Pad is an unbreakable cipher that requires a random key as long as the message. Each character is combined with a key character to produce the ciphertext.
To Encrypt a Message:
- Enter Plaintext: Type the message you want to encrypt in the "Text" field.
- Enter Key: Provide a key that is at least as long as the plaintext. You can also generate a random key.
- Select Mode: Choose "Encrypt".
- Click Submit: The encrypted message will appear in the output box.
To Decrypt a Message:
- Enter Ciphertext: Paste the encrypted text into the "Text" field.
- Use the Original Key: Enter the exact same key that was used for encryption.
- Select Mode: Choose "Decrypt".
- Click Submit: The original message will be revealed.
Security Note: A key should never be reused. For true one-time pad security, the key must be random, used only once, and kept secret.