An OTP is an encryption method that is impossible to decipher when employed correctly. It uses a random data string called the pad, which has the same length as the initial message.

The message is encrypted by integrating it with the pad using a modular addition or bitwise XOR techniques. Every separate character or bit of the plaintext is mixed with the corresponding character or bit from the pad.

History of the One-time Pad