Алгоритм:
Проблема — может получиться так, что какой-то блок будет повторяться в plain_text и это снизит надёжность шифра. Решение этой проблемы - Cipher block chaining
<aside> 💡 AES (the Advanced Encryption Standard)
One frequently used symmetric-key cryptosystem, AES (the Advanced Encryption Standard), incorporates a block cipher. It uses elaborate methods to slice and dice a plaintext block to produce ciphertext. AES uses a key size of 128, 192, or 256 bits and a block size of 128 bits.
Algorithms Unlocked - Thomas H. Cormen (2013)
</aside>