If you have a TRULY random key (in binary) and you have a text (in binary) that you want to encrypt.
Can you simple XOR the key and the text?
Is that secure?
How secure?
If you have a TRULY random key (in binary) and you have a text (in binary) that you want to encrypt.
Can you simple XOR the key and the text?
Is that secure?
How secure?
XORing a key and message is called a one time pad. It is perfectly secure, providing confidentiality, when used correctly. That last part is the hard part, along with finding a situation in which you only need confidentiality.