Greetings. I understand the BlowFish algorithm. Is there an algorithm that deals with encryption, and when to use encryption modes (CRT, CBC ...)? The wiki says "a method of applying a block cipher (algorithm) that allows you to convert a sequence of blocks of open data into a sequence of blocks of encrypted data." Doesn't BlowFish do the same?

    1 answer 1

    There are algorithms (BlowFish, TwoFish, AES, DES) and so on. They encrypt one block of data. The algorithms themselves are different. But the modes of application of algorithms are like add-ins over the encryption of one block. All these CBC, CTR, OFB can work without any changes with any block ciphers. The expediency of the application of the modes depends on the task. CTR, for example, is suitable for random access to data, when it is necessary that the same blocks after encryption be different.

    • Are the modes used with the algorithm or after the operation of the algorithm, separately? - Romeon0
    • @ Romeon0 well then how to look ... For example, it’s not the data block that is encrypted, but the IV and the result of the encryption is the data itself. Is it With algorithm or AFTER? - Vladimir Martyanov