<aside> ℹ️ Recall XOR operation if needed
</aside>
Суть алгоритма: у нас есть plain_text и one_time_pad. XORим их и получаем cycpher_text. Обратно если XORнуть cycpher_text с one_time_pad, то получим plain_text.
<aside> 💡 Почему это работает:
$t \oplus k = c$, where t - plain_text, k - key, c - cypther_text
$(t \oplus k) \oplus k = t \oplus (k \oplus k) = t$ - we’ve got the original plain text!
</aside>
Проблемы (+ к тем, что есть у symmetric-key cryptography):