Symmetric Encryption Algorithms: The Method Behind the Secret
A symmetric encryption algorithm is a set of mathematical steps that uses the same secret key to encrypt and decrypt data. The algorithm defines the procedure. The key supplies a value that changes its result, so knowing the procedure isn't the same as knowing the secret.
AES, short for Advanced Encryption Standard, makes that distinction concrete. Its instructions are published. People using it don't need to hide those instructions; they need to protect the keys their software uses.
But “uses AES” describes only part of a system. To understand the rest, start with the small, precisely defined job AES performs.
One Shared Key or a Matched Pair?
What AES does to a block
AES is a block cipher: it transforms fixed-size chunks of data using a key. A bit is a single one or zero, the basic unit of digital information. AES works on blocks of 128 bits.
Its keys can have three lengths: 128, 192 or 256 bits. Those numbers describe the secret input, not three different block sizes. AES-256 still operates on 128-bit blocks.
That detail is set out in the AES standard. A longer key changes the set of possible keys; it doesn't make each chunk of a document longer.
The readable input is called plaintext. The encrypted result is ciphertext. The matching decryption operation uses the key to recover the original data. The full AES explanation explores that transformation in more detail.
A whole document can be much larger than one block. Software needs a plan for applying the cipher to all of it.
A mode turns the building block into a method for messages
A mode of operation supplies rules for applying a block cipher to messages. Some modes also check for unauthorized changes to the data.
Authenticated encryption combines those two protections. It produces encrypted data and an authentication value that the receiver can check. That check matters because the mere fact that something is encrypted doesn't prove it arrived unchanged.
AES-GCM is an example. GCM, or Galois/Counter Mode, uses a block cipher such as AES to provide authenticated encryption. The mode also has rules for additional inputs and their use.
One of those inputs is an initialization value, often called a nonce. In GCM, it must not repeat with the same key. Reusing it can badly undermine the protection, even though the underlying AES calculations are still being performed. The National Institute of Standards and Technology explains that requirement in its GCM specification.
- Carry sensitive files on a drive that stays locked without your PIN.
- Unlock it on any computer, with no software to install.
- Lose it without losing sleep: the contents are encrypted in hardware.
A protocol arranges the conversation
TLS, or Transport Layer Security, is another name that appears beside encryption. It belongs to a different category: a protocol, meaning rules for communication between programs.
TLS 1.3 starts with an exchange called a handshake, in which the programs establish shared secret values and agree on settings for protection. They then use authenticated encryption to protect the data they send, with a separate key for each direction, as described in the TLS 1.3 standard.
AES and TLS therefore aren't competing names for the same kind of thing. AES defines a mathematical operation. A mode puts that operation to work. A protocol arranges how communicating programs establish and use protection.
The secret key remains a separate responsibility throughout. If software exposes a key or reveals the readable data after decryption, choosing a respected algorithm doesn't undo that exposure.
AES Explained: The Secret Is in the Key

Block Ciphers: Why Strong Encryption Needs More Than AES

Encryption Keys: The Small Secrets Your Files Depend On

QUOTE:
"Amateurs hack systems, professionals hack people."
