Keyfactor Tech Days 2027, The Trust Security Conference, is heading to San Diego!   Discover what’s coming up

Definition

Symmetric cryptography is the family of schemes in which the same secret key is used for applying and reversing the cryptographic function. This operation can be encrypting, computing a tag for integrity and authentication, or both simultaneously. That single-key design is the quiet workhorse behind everyday data protection. When you swipe a card, send a message in a secure chat app, or open an encrypted file on your laptop, symmetric cryptography is almost always doing the heavy lifting. It protects banking transactions, encrypts data stored on devices, and carries the bulk traffic inside secure browsing sessions.

Symmetric cryptography is one of two main approaches to modern cryptography. The other, asymmetric cryptography (also commonly known as public-key cryptography), uses a pair of keys instead of one; read more about it in our article on the topic. This guide focuses exclusively on the symmetric side: how it works, the algorithms that define it, where it excels, where it strains, and how it holds up against emerging quantum threats. If you want the broader foundation first, start with what cryptography is and how it protects data, then return here for the single-key deep dive

How symmetric cryptography works

Symmetric cryptography uses one key for both sides of a conversation. The sender processes the plaintext (either encrypts it or computes an authentication tag for it) using a shared secret, and the receiver evaluates the reverse function (decrypts the ciphertext or verifies the tag) using the same secret. There is no second key involved. If within a cryptosystem, the key used for encryption and decryption is the same, the system is referred to as a symmetric cryptosystem.

So how many keys does symmetric cryptography use? One. That single shared key is the whole system, and both parties must have it before any secure communication can begin.

A simple walkthrough makes it concrete. Lets start with symmetric encryption. Suppose Alice wants to send a private message to Bob. Alice and Bob first agree on a shared key. Alice runs her plaintext through the encryption algorithm with that key and produces ciphertext, which she sends across the public network. Bob receives the ciphertext, applies the same key, and recovers the original message. Anyone who intercepts the ciphertext without the key sees only scrambled output.

For authentication, the scheme used is commonly known as a Message Authentication Code (MAC). After Alice and Bob agree on a shared key, Alice uses the key and the message to compute a tag that is “unique” to the pair, and sends both the message and the tag to Bob. Then Bob can run the same algorithm to compute the tag using the shared key. The message is authenticated if both tags are the same.

Under the hood, these processes rely on permutations and other lightweight mathematical operations. In the case of symmetric encryption, the encryption function uses permutations to encrypt a message, and it also uses the same permutation, which depends on the key, to decrypt messages. A simple but crucial property of these operations is that two equal characters in the input map to different characters in the output. In other words, the same plaintext letter does not always come out the same in the encrypted message. For example, “SSS” would not encrypt to three of the same characters. That variability is deliberate: it is one of the reasons why the ciphertext difficult to decode without the key. If patterns carried straight through, an attacker could break the message by studying its structure, no key required.

Common symmetric cryptography algorithms

Symmetric cryptography spans two broad families of tools: algorithms that encrypt data for confidentiality, and keyed functions that verify a message has not been tampered with.

Symmetric encryption algorithms

The most widely used symmetric encryption algorithm today is AES (Advanced Encryption Standard). AES is the current global standard for symmetric encryption, supporting three key lengths: 128-bit, 192-bit, and 256-bit. Longer keys offer greater resistance to brute-force attacks, and AES-256 is common where the strongest protection is required.

ChaCha20 is another modern standard, valued for its speed and strong security, particularly on devices without dedicated hardware acceleration for AES. It is frequently paired with a message authentication step (particularly with a MAC scheme called Poly1305) to protect both confidentiality and integrity at once.

DES (Data Encryption Standard) is the legacy of the group. It was once the dominant symmetric algorithm. Today, however, DES is considered harmful: its short 56-bit key length is trivial to break with modern computing power. It is worth mentioning here that the variant Triple DES, which triples the key size, is also considered obsolete. Neither variant should be used in any new system.

These algorithms fall into two structural categories:

  • Block ciphers encrypt data in fixed-size chunks called blocks. AES is a block cipher. Block ciphers are the most common choice in enterprise applications and are typically run in a mode of operation that governs how successive blocks are chained together.
  • Stream ciphers encrypt data one bit or byte at a time. ChaCha20 is a well-regarded stream cipher, well suited to continuous data flows such as streaming media or live network traffic.

Message authentication codes

Encryption alone protects confidentiality, but it does not guarantee that a message arrived unaltered. That is the job of Message Authentication Codes (MACs), a form of keyed hash function. That is to say, they are functions that take a message and a key, and output a value that behaves randomly and seemingly unrelated to their input. The short output of the MAC is called a tag. In practice, this tag is unique to both the message and the key, bonding the key and the message. The receiver recomputes the tag with the same key and confirms it matches. The tag could not be computed without the key, which proves that the sender had the key, moreover, if either the key or the message has been slightly altered, the resulting tag is very different. This verifies both the integrity and the authenticity of the message.

Common examples include HMAC (hash-based message authentication code), GMAC (which pairs naturally with AES in authenticated modes), and Poly1305 (which pairs with ChaCha20). In practice, modern systems often combine encryption and authentication so that a single operation both conceals a message and proves it was not tampered with in transit. This combined method is called Authenticated Encryption with Associated Data (AEAD).

Advantages of symmetric cryptography

Symmetric cryptography earns its central role for two reasons: speed and simplicity.

Speed is the headline advantage. Symmetric cryptography is faster to run (in terms of both encryption and decryption), because the operations are much simpler than they are in asymmetric cryptography. Shorter keys and simpler mathematical operations translate directly into higher throughput, which is why symmetric algorithms are the default choice for encrypting large volumes of data.

Simplicity is the second advantage. Symmetric systems are the easiest to understand and implement. They demand less computation than asymmetric methods, which makes them well suited to resource-constrained environments such as IoT devices, embedded systems, and battery-powered hardware where processing power and energy are limited. By contrast, the slower speed of asymmetric cryptography can bog down network processes, strain memory, and drain batteries faster.

Challenges and limitations

The single strength of symmetric cryptography, one shared key, is also the source of its central weakness: key management.

Before two parties can communicate, they must both possess the same key, and that key has to be exchanged either in person or through some channel. Securing that exchange is the hard part. If the channel used to share the key gets compromised, so does the entire system. An intercepted key hands an attacker the ability to encrypt, decrypt or authenticate every message, silently.

Key management methods that precede modern cryptography (before, say, the mid 1990s) were often insecure and expensive, and themselves were subject to attack by adversaries. Historical methods such as secure post or trusted couriers were vulnerable to interception and compromise, and geography made matters worse. Two parties on different continents cannot easily establish a secure channel to exchange a key in the first place.

Two further problems compound this. First, in multi-party settings, a single compromised key can expose the entire system, and it can be difficult to even know whether a key has been compromised and by whom. Second, the number of keys required grows steeply as more parties join, which is where the model can become unmanageable without a smarter strategy. There are two practical solutions for this problem: one that leverages asymmetric cryptography, and another one that uses a centralized server in combination with symmetric cryptography, which is explained in more detail below.Managing symmetric keys from a central server

Consider the scale of the key distribution problem. Because the same secret protects both ends of a conversation, every pair of parties that wants to communicate needs its own unique key. Two parties need one key. Ten parties need 45. Twenty parties need 190. The general figure grows with the square of the population. A network of a few thousand endpoints crosses into millions of keys, each one needing to be generated, delivered, stored, rotated, and eventually destroyed. Nobody runs a flat mesh of pairwise symmetric keys at scale, because it collapses under its own weight.

Centralizing keys on a trusted server is the standard escape. Rather than setting up sessions themselves, parties rely on a trusted server to establish sessions with other parties on their behalf. Each party then needs to hold only a single key, shared with the central server, instead of maintaining a separate key with every other party. . That centralized server is called a Key Distribution Center (KDC), and it must be powerful enough to be able to handle all this workload. Kerberos, the authentication system inside Microsoft Active Directory, is the production-grade descendant of this model and still does exactly this job today.

A well-run KDC separates keys by job into a two-tier hierarchy:

  • Long-term keys sit at the top. Each client shares one master key with the server. These are also called key-encrypting keys (KEKs) because their purpose is to protect other keys, not user data. They authenticate the client and wrap short-lived keys, and they rotate infrequently because replacing one usually means re-enrolling the client.
  • Session keys sit at the bottom. These data-encrypting keys (DEKs) protect the actual traffic. The server mints a fresh one for each conversation, the parties use it once, and then discard it.

The reason to split them is exposure control: the most valuable, hardest-to-replace secret does the least work, while disposable session keys absorb the bulk of the traffic. If a session key leaks, the damage is bounded to one session. A useful way to hold the distinction is that long-term keys establish trust while session keys carry load.

When two clients who share no key with each other need to talk, the server brokers a session key between them. In the classic pattern, the server generates a new random session key and delivers it to both parties wrapped under their respective long-term keys, so no eavesdropper ever sees it in the clear. Two design details are not optional:

  1. the exchange must carry freshness (nonces or timestamps) so an attacker cannot replay an old key-setup message, and
  2. tickets must carry a bounded lifetime so they expire on their own.

Centralizing keys also concentrates risk. The KDC’s store holds a long-term key for every client, so whoever reads that database can impersonate every client and decrypt every brokered session. The defense is demanding. In order to keep raw key material away from ordinary memory or on disk, the following measures must be taken:

  • long-term keys are stored in a Hardware Security Module (HSM),
  • restrict and log every administrative path to the store, and
  • plan in advance for how you would re-key the entire population if the store were ever breached.

An HSM is trusted precisely because it is built on tested, certified hardware, runs a security-focused operating system, and actively hides and protects cryptographic material.

Where symmetric cryptography is used today

Symmetric cryptography is everywhere, sometimes working alone and often working in tandem with asymmetric cryptography. Its everyday applications include:

  • Banking and payments. Encrypting credit card information and other personally identifiable information (PII) required for transactions.
  • Data at rest. Encrypting data stored on a device when that data is not being transferred, such as files on a laptop or backups on a server.
  • Secure web sessions. Inside TLS, asymmetric cryptography is used to encrypt a single-use symmetric key, which then encrypts and decrypts the actual contents of that browsing session. The bulk data protection is symmetric.
  • Encrypted messaging. Mobile chat systems use asymmetric cryptography to verify the identity of participants at the start of a conversation, then switch to symmetric cryptography to encrypt the ongoing contents.
  • VPN tunnels. Once a secure tunnel is established, symmetric encryption carries the traffic flowing through it.

A pattern repeats in several of these examples: asymmetric cryptography handles the delicate task of establishing and authenticating a shared symmetric key, and symmetric cryptography then encrypts the bulk of the data quickly and efficiently. This mixed approach gets the best of both worlds, combining the security of public-key key exchange with the speed of single-key encryption. For a full breakdown of how the two approaches differ and complement each other, see our symmetric vs. asymmetric cryptography comparison.

Symmetric cryptography and the quantum threat

Quantum computing is widely viewed as an existential threat to asymmetric algorithms such as RSA, ECC, and Diffie-Hellman, which experts project could be broken within roughly 5 to 15 years once a cryptographically relevant quantum computer becomes available. Symmetric cryptography sits in a far more comfortable position.

Symmetric cryptographic algorithms are affected only to a lesser extent by Grover’s quantum algorithm. If the parameters are sufficiently large, they remain safe against quantum computers for now, since no efficient quantum algorithm has been developed that can solve their underlying mathematical problems efficiently. Grover’s algorithm could, in theory, at most halve the effective strength of a symmetric key, and that theoretical ceiling ignores the substantial quantum memory that such an attack would demand. In practice, this means that doubling the key size is enough to recover the theoretical security. Measuring the real impact of this attack, and establishing how much larger the keys need to be (or whether they need to grow at all), is still an active area of research.

Doubling the key allows to guarantee, without any doubt, that the encryption will remain at least as secure as it currently is. This is a very simple solution compared to having to change the algorithm altogether. Moving from AES-128 to AES-256 can be done smoothly since AES-256 is already widely deployed. This is why symmetric cryptography is considered relatively quantum-resilient, in sharp contrast to asymmetric algorithms, which have no comparable quick fix and require entirely new mathematical foundations.

This resilience is corroborated by the broader standards community. The U.S. National Institute of Standards and Technology (NIST), in its Report on Post-Quantum Cryptography (NIST IR 8105), notes that Grover’s algorithm speeds up attacks against symmetric ciphers and that larger key sizes are an effective countermeasure. Consistent with that view, NIST’s Post-Quantum Cryptography Standardization effort has focused on replacing vulnerable public-key algorithms rather than symmetric ones, reflecting the consensus that adequately sized symmetric keys remain secure. That said, resilience is not a reason for complacency. Organizations should still gain visibility into all of their cryptographic assets so they can identify weak configurations and prepare for change. Understanding post-quantum cryptography is the starting point for that preparation.

How Keyfactor can help

Symmetric cryptography never operates in isolation. It lives inside a sprawling cryptographic landscape of algorithms, keys, and libraries spread across an enterprise, and that landscape is notoriously hard to see. Compiled software hides which algorithms it uses, cryptography can reside in application executables, operating systems, CPUs, or separate hardware modules, and outdated algorithms and implementations often persist for years because nobody knows they are there.

Keyfactor helps organizations bring that landscape under control. Cryptographic discovery and inventory is the foundation: Keyfactor AgileSec is a security management tool that automatically generates an inventory of all cryptographic algorithms found in any piece of software. AgileSec is used to “hunt” for cryptography that has become antiquated and ineffective over time, surfacing weak or misconfigured implementations, such as obsolete DES or improperly handled keys, that would otherwise stay hidden. It also runs specific tests for common configuration faults, like identifying self-signed certificates that do not belong to a recognized Certificate Authority.

For teams building applications, the Bouncy Castle APIs provide well-tested libraries with symmetric-encryption support, helping developers implement cryptography correctly rather than copying fragile snippets from the open internet. By simplifying PKI, automating certificate lifecycle management, and enabling organizations to achieve crypto agility, Keyfactor makes it possible to transition algorithms smoothly when standards change. As the company describes its mission, “Keyfactor brings digital trust to the hyper-connected world by empowering organizations to build and maintain secure, trusted connections across every device, workload, and machine.”

The connective theme is cryptographic posture management: you cannot secure what you cannot see. Discovering, inventorying, and continuously managing every algorithm in use, symmetric implementations included, is what keeps encryption effective as threats and standards evolve.

Got symmetric cryptography questions? We’ve got answers.

How many keys does symmetric cryptography use?

Symmetric cryptography uses one key. The same key is used to process the data on both ends, which is why it is also called single-key or shared-key cryptography. The simpler mathematical operations behind this single-key approach make it faster than asymmetric methods but requires both parties to securely share the key in advance.

What is the difference between symmetric and asymmetric cryptography?

Symmetric cryptography uses one shared key by both the sender and the receiver , while asymmetric cryptography uses a pair of keys (one public, one private). Symmetric is faster and better for bulk data encryption and authentication; asymmetric is more suitable for key exchange and identity verification over an insecure channel. For a full breakdown, see our symmetric vs. asymmetric cryptography comparison.

What are the most common symmetric encryption algorithms?

The most widely used symmetric algorithm today is AES (Advanced Encryption Standard), which supports 128-bit, 192-bit, and 256-bit key lengths. ChaCha20 is another modern standard valued for speed. DES (Data Encryption Standard) was the earlier standard but is now considered obsolete due to its short 56-bit key length.

Is symmetric cryptography safe from quantum computers?

Symmetric cryptography is considered more quantum-resilient than asymmetric cryptography. Grover’s algorithm could theoretically reduce effective key strength by half, but this is addressed by using larger key sizes such as AES-256. No efficient quantum attack currently exists that breaks symmetric encryption with large enough parameters.

Why is key management a challenge in symmetric cryptography?

Because both parties need the same key, it must be shared through a secure channel before communication can begin, and an intercepted key compromises the entire system. This challenge grows quadratically as parties increase, since each pair needs a unique key. Two parties need one shared key, ten parties need 45, and twenty parties need 190.

Where is symmetric encryption used in everyday life?

Symmetric encryption protects communications, encrypts files stored on devices, secures web browsing sessions as part of TLS, and powers encrypted messaging apps. In most of these cases, symmetric encryption handles bulk data while asymmetric encryption manages the initial key establishment.

What is the difference between block ciphers and stream ciphers?

Block ciphers encrypt data in fixed-size chunks called blocks, while stream ciphers encrypt data one bit or byte at a time. AES is a block cipher; ChaCha20 is a stream cipher. Block ciphers are more common in enterprise applications.

Can symmetric and asymmetric cryptography work together?

Yes, and they frequently do. In a combined approach, asymmetric cryptography securely exchanges a one-time symmetric key, which then encrypts the actual data. TLS connections, VPNs, and encrypted messaging apps all use this hybrid method to balance speed and security.