Symmetric encryption

With a shared secret key, a block cipher such as AES scrambles 128-bit blocks, and a mode such as counter mode with a fresh nonce turns it into a cipher for messages of any length, because encrypting identical blocks identically, as ECB mode does, leaks the pattern of the data.

From Computer Networks and Security.