Krypteringsmoduserna
Krypteringsmoduserna, also known as encryption modes, are specific procedures or algorithms that dictate how a block cipher is applied to encrypt data. A block cipher encrypts data in fixed-size blocks, but most data is larger than these blocks. Encryption modes specify how to handle multiple blocks and maintain security across them. Without proper modes, even a strong block cipher could be vulnerable to certain attacks, such as repeating patterns in the plaintext becoming visible in the ciphertext.
Several modes exist, each with different properties and use cases. Electronic Codebook (ECB) is the simplest
Cipher Feedback (CFB) and Output Feedback (OFB) modes turn a block cipher into a stream cipher. CFB