-2

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?

Stefan
  • 45
  • 2

1 Answers1

1

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.

Thomas M. DuBuisson
  • 1,894
  • 15
  • 20