Question: how does ecb encryption work?
Answer: The simplest of the encryption modes is the electronic codebook (ECB) mode (named after conventional physical codebooks). The message is divided into blocks, and each block is encrypted separately. ... Because ECB encrypts identical plaintext blocks into identical ciphertext blocks, it does not hide data patterns well.