A One Time Pad is a information-theoretical secure encryption function. But what does that mean?
On a high level the One Time Pad is a simple XOR function that takes the input and xor’s that with a key-stream.
Encryption and decryption are identical.
Encryption: Takes the plaintext and the key-stream and xor’s it to get the cipher text.
Decryption: Takes the cipher text and the (same) key-stream and xor’s it to get the plaintext.
#one time pad #xor