SY0-701Chapter 5 of 212Objective 1.4

Symmetric vs Asymmetric Encryption

This chapter covers the fundamental differences between symmetric and asymmetric encryption, why both are needed, and how they work together in modern cryptography. For SY0-701, this maps to Objective 1.4 (General Security Concepts) and is tested in about 3-5 questions on the exam. Understanding the mechanisms, key strengths, weaknesses, and use cases for each is critical for both the security concepts domain and the implementation domain.

25 min read
Intermediate
Updated May 31, 2026

Symmetric vs Asymmetric Encryption: The Vault and the Postcard

Think of symmetric encryption as a single key to a vault. You and your friend each have an identical copy of the same key. You lock the vault (encrypt) with your key, send it, and your friend unlocks (decrypts) with the same key. The danger? If someone intercepts the key during delivery, they can open every vault you send. This is the key distribution problem. Asymmetric encryption is like a postcard with a padlock. You have a public padlock (public key) that anyone can use to lock a message, but only you have the private key to unlock it. If Alice wants to send you a secret, she grabs your public padlock, locks her message, and mails it. Even if the postman steals it, he can't open it without your private key. But asymmetric is slow—imagine locking every postcard with a heavy padlock. In practice, we use asymmetric to securely exchange a temporary symmetric key (like handing over the vault key inside a locked postcard), then use fast symmetric encryption for the bulk data. That's hybrid encryption, used in TLS/SSL. The exam loves this hybrid model.

How It Actually Works

What is Encryption and Why Two Types?

Encryption transforms readable plaintext into unreadable ciphertext using an algorithm and a key. The core threat is unauthorized access during transmission or storage. Symmetric encryption uses the same key for encryption and decryption (shared secret). Asymmetric encryption uses a pair of keys: a public key (freely shared) and a private key (kept secret). The exam expects you to know when each is appropriate and the trade-offs.

Symmetric Encryption: How It Works Mechanically

Symmetric algorithms (e.g., AES, 3DES, ChaCha20) take a block or stream of plaintext and a secret key (e.g., 128, 192, or 256 bits for AES) and produce ciphertext. The same key is used in reverse to decrypt. The process involves substitution, permutation, and XOR operations across multiple rounds (10 for AES-128, 12 for AES-192, 14 for AES-256). The key must be shared securely between parties before communication—this is the key distribution problem. If an attacker intercepts the key, they can decrypt all past and future messages. Symmetric is fast (hardware-accelerated) and suitable for bulk data encryption.

Asymmetric Encryption: How It Works Mechanically

Asymmetric algorithms (e.g., RSA, ECC, Diffie-Hellman) rely on mathematical one-way functions. RSA uses the difficulty of factoring the product of two large primes. ECC uses the elliptic curve discrete logarithm problem. To encrypt, the sender obtains the recipient's public key (e.g., from a certificate) and performs a mathematical operation on the plaintext to produce ciphertext. Only the recipient's private key can reverse it. Asymmetric is slower (100-1000x slower than symmetric) and used for small data like keys or digital signatures. Key distribution is solved: the public key can be posted online; the private key never leaves the owner.

Key Components, Variants, and Standards

Symmetric algorithms: AES (FIPS 197), 3DES (deprecated), ChaCha20 (RFC 8439), Blowfish/Twofish (less common). AES is the gold standard for SY0-701.

Asymmetric algorithms: RSA (RFC 8017), ECDSA (FIPS 186-4), Diffie-Hellman (RFC 2631), ElGamal. ECC is increasingly preferred for its smaller key sizes (e.g., 256-bit ECC ≈ 3072-bit RSA).

Key exchange: Diffie-Hellman (DH) and ECDH allow two parties to agree on a symmetric key over an insecure channel without pre-sharing a secret.

Digital signatures: Use asymmetric encryption in reverse—sign with private key, verify with public key. Provides non-repudiation and integrity.

Hybrid encryption: Used in TLS 1.3 (RFC 8446)—asymmetric key exchange (e.g., ECDHE) to derive a session key, then symmetric encryption (AES-GCM) for data.

How Attackers Exploit or Defenders Deploy

Attackers target weaknesses:

- Symmetric: brute-force (if key too short), side-channel attacks (timing, power), key compromise (via phishing or malware). - Asymmetric: mathematical attacks (e.g., factoring RSA keys if primes are weak), man-in-the-middle (MITM) during key exchange if public key authenticity is not verified. Defenders deploy:

Use strong algorithms (AES-256, RSA-2048+, ECC-256+).

Use perfect forward secrecy (PFS) in key exchange (e.g., ECDHE) so that compromise of long-term keys doesn't expose past sessions.

Implement certificate pinning or public key infrastructure (PKI) to prevent MITM.

Real Command/Tool Examples

Generating an RSA key pair with OpenSSL:

openssl genpkey -algorithm RSA -out private_key.pem -pkeyopt rsa_keygen_bits:2048
openssl rsa -pubout -in private_key.pem -out public_key.pem

Encrypting a file with AES-256-CBC using OpenSSL:

openssl enc -aes-256-cbc -salt -in plaintext.txt -out ciphertext.enc -pass pass:yourpassword

Note: The exam does not test OpenSSL syntax but expects you to recognize algorithm names and key lengths.

Comparison Table (Exam-Relevant)

| Feature | Symmetric | Asymmetric | |---------|-----------|------------| | Key count | 1 shared key | 2 keys (public/private) | | Speed | Fast (hardware accel.) | Slow (100-1000x) | | Key distribution | Problem (needs secure channel) | Easy (public key can be shared) | | Uses | Bulk encryption, data at rest | Key exchange, digital signatures | | Examples | AES, 3DES, ChaCha20 | RSA, ECC, DH | | Key size (strength) | 128-bit = 128-bit security | 3072-bit RSA ≈ 128-bit security |

Hybrid Encryption in Detail

TLS 1.3 handshake example: 1. Client sends supported cipher suites (e.g., TLS_AES_128_GCM_SHA256). 2. Server sends its certificate (contains public key). 3. Client generates ephemeral key pair for ECDHE, sends public key to server. 4. Both compute shared secret (symmetric key) using ECDH. 5. All subsequent data encrypted with AES-GCM using that session key. This gives forward secrecy: if the server's long-term private key is later stolen, past sessions remain secure because the session key was ephemeral.

Why Both Are Needed

Symmetric is fast but has key distribution problem. Asymmetric solves key distribution but is slow. Hybrid encryption combines them: use asymmetric to securely exchange a symmetric key, then use symmetric for bulk data. This is the standard for HTTPS, SSH, and VPNs.

Walk-Through

1

Step 1: Generate Key Pair

Alice generates an RSA 2048-bit key pair using a tool like OpenSSL or through her application. The private key is stored securely, encrypted at rest (e.g., with AES-256). The public key is exported to a file or certificate. In a PKI, the public key is signed by a Certificate Authority (CA) to bind it to Alice's identity. The exam expects you to know that private keys must never be shared, and public keys can be freely distributed. A common mistake is thinking the public key must be kept secret—it does not.

2

Step 2: Distribute Public Key

Alice sends her public key to Bob via email, a key server, or embedded in a certificate. Bob receives it and verifies its integrity—if it's a certificate, he checks the CA signature. If the public key is tampered with (MITM), Bob might encrypt a message that an attacker can decrypt. This is why certificate validation is critical. Tools like `openssl verify -CAfile ca.crt cert.pem` check the certificate chain. The exam emphasizes that without verification, asymmetric encryption is vulnerable to MITM.

3

Step 3: Encrypt Symmetric Key with Public Key

Bob generates a random symmetric key (e.g., 256-bit AES key) using a cryptographically secure random number generator. He then encrypts this symmetric key using Alice's public key (RSA or ECC). The output is a ciphertext that only Alice's private key can decrypt. This is the core of hybrid encryption: the symmetric key is the 'session key' used for bulk data encryption. Bob can now send this encrypted symmetric key to Alice over an insecure channel. The exam tests that asymmetric encryption is used for small data (like keys) due to performance constraints.

4

Step 4: Decrypt Symmetric Key with Private Key

Alice receives the encrypted symmetric key and decrypts it using her private key. Now both Alice and Bob share the same symmetric key. This step assumes Alice's private key has not been compromised. Logs from a TLS handshake would show the cipher suite negotiated (e.g., TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) and the key exchange details. A common mistake is to think the symmetric key is sent in plaintext—it is always encrypted with the public key.

5

Step 5: Encrypt Bulk Data with Symmetric Key

Now that both parties have the symmetric key, they encrypt the actual message data using a symmetric algorithm like AES-GCM. This provides confidentiality and integrity (GCM mode includes authentication). The encryption is fast and efficient. Each message may use a unique nonce or initialization vector (IV) to prevent replay attacks. In a SOC scenario, an analyst might see encrypted traffic on the wire but cannot read it without the session key. The exam tests that bulk encryption always uses symmetric algorithms after key exchange.

What This Looks Like on the Job

Scenario 1: TLS Handshake in a Web Browser When you visit https://bank.com, your browser performs a TLS handshake. The server sends its certificate containing its public key (RSA-2048). Your browser generates a random 256-bit symmetric key, encrypts it with the server's public key, and sends it. The server decrypts with its private key. Then all subsequent HTTP requests use AES-256-GCM symmetric encryption. A SOC analyst monitoring network traffic would see the TLS handshake (ClientHello, ServerHello, Certificate, etc.) using Wireshark. A common mistake is to think the entire session is encrypted asymmetrically—only the key exchange uses asymmetric. Correct response: ensure the certificate is valid (not expired, trusted CA, correct hostname). If the certificate is self-signed or invalid, the browser warns the user.

Scenario 2: PGP Email Encryption Alice wants to send an encrypted email to Bob. She uses PGP (Pretty Good Privacy). PGP uses hybrid encryption: Alice generates a random session key, encrypts the email body with AES-256 (symmetric), then encrypts the session key with Bob's RSA public key. She sends both the encrypted email and encrypted session key. Bob decrypts the session key with his private key, then decrypts the email. In a corporate environment, a DLP analyst might see encrypted emails and need to ensure they comply with policy. A common mistake: users may think PGP encrypts the entire email including subject line—PGP typically only encrypts the body. Correct response: use email encryption gateways that can decrypt and inspect content if needed.

Scenario 3: SSH Key-Based Authentication An administrator connects to a server via SSH using key pairs. The client generates a key pair (e.g., Ed25519) and copies the public key to the server's ~/.ssh/authorized_keys. During authentication, the server sends a challenge encrypted with the client's public key; the client must decrypt it with its private key to prove identity. A common mistake: administrators may accidentally expose their private key (e.g., in a backup or version control). Correct response: always encrypt private keys with a passphrase and never store them in plaintext. Tools like ssh-keygen -t ed25519 -a 100 generate strong keys. The exam tests that SSH uses asymmetric encryption for authentication and key exchange, then symmetric for session encryption.

How SY0-701 Actually Tests This

What SY0-701 Tests on This Objective Objective 1.4 expects you to compare and contrast symmetric and asymmetric encryption. Specific sub-objectives include:

Identify the characteristics: key count, speed, key distribution, use cases.

Know which algorithms are symmetric (AES, 3DES, ChaCha20) and which are asymmetric (RSA, ECC, Diffie-Hellman).

Understand hybrid encryption: asymmetric for key exchange, symmetric for bulk data.

Recognize that symmetric encryption provides confidentiality, but not non-repudiation (that requires digital signatures, which use asymmetric).

Know that key length impacts security: AES-128 is sufficient for most uses; RSA-2048 is minimum recommended.

Common Wrong Answers and Why Candidates Choose Them 1. 'Symmetric encryption is more secure than asymmetric because the key is shorter.' Wrong—security depends on algorithm and key length; symmetric and asymmetric can be equally secure at appropriate key sizes (e.g., AES-256 vs RSA-2048). Candidates confuse key length with security strength. 2. 'Asymmetric encryption is faster than symmetric.' Wrong—asymmetric is much slower. Candidates may think 'more complex = faster' incorrectly. 3. 'Digital signatures use symmetric encryption.' Wrong—digital signatures use asymmetric (private key to sign, public key to verify). Candidates confuse encryption with signing. 4. 'Public keys must be kept secret.' Wrong—public keys are designed to be shared. Candidates may overgeneralize from the need to protect private keys.

Specific Terms, Values, and Acronyms - AES (Advanced Encryption Standard): key sizes 128, 192, 256 bits. - RSA (Rivest-Shamir-Adleman): key sizes 1024 (deprecated), 2048, 4096 bits. - ECC (Elliptic Curve Cryptography): key sizes 256, 384, 521 bits. - Diffie-Hellman (DH): used for key exchange, not encryption. - 3DES: deprecated, not recommended. - Perfect Forward Secrecy (PFS): ensures session keys are not compromised if long-term keys are stolen. - Hybrid encryption: the combination used in TLS, PGP, etc.

Trick Questions - 'Which encryption type uses a single key?' Answer: symmetric. But the question may say 'shared key' or 'secret key'—same thing. - 'Which encryption type provides non-repudiation?' Answer: asymmetric (digital signatures). Symmetric cannot because both parties have the same key. - 'Which is used for bulk encryption?' Answer: symmetric.

Decision Rule for Eliminating Wrong Answers On scenario questions, ask: Is the goal to securely exchange a key? → asymmetric/DH. Is the goal to encrypt large amounts of data? → symmetric. Is the goal to prove identity or integrity? → asymmetric (signatures). If the scenario mentions speed or performance, symmetric is the answer. If it mentions key distribution problem, symmetric is the issue.

Key Takeaways

Symmetric encryption uses one key for both encryption and decryption; asymmetric uses a key pair.

AES is the standard symmetric algorithm with key sizes 128, 192, or 256 bits.

RSA and ECC are common asymmetric algorithms; RSA-2048 and ECC-256 are minimum for security.

Hybrid encryption combines asymmetric key exchange with symmetric bulk encryption (used in TLS).

Diffie-Hellman is a key exchange protocol, not an encryption algorithm.

Digital signatures use asymmetric encryption to provide non-repudiation.

Perfect Forward Secrecy (PFS) ensures past sessions remain secure even if long-term keys are compromised.

Symmetric encryption is fast and suitable for data at rest and in transit; asymmetric is slow and used for key exchange and signatures.

Easy to Mix Up

These come up on the exam all the time. Here's how to tell them apart.

Symmetric Encryption

Uses one shared key for both encryption and decryption

Fast and efficient for bulk data

Key distribution is a challenge

Provides confidentiality only

Examples: AES, 3DES, ChaCha20

Asymmetric Encryption

Uses a pair of keys (public and private)

Slow and limited to small data

Key distribution is easy (public key shared)

Provides confidentiality, integrity, and non-repudiation (via signatures)

Examples: RSA, ECC, Diffie-Hellman

Watch Out for These

Mistake

Symmetric encryption is always weaker than asymmetric encryption.

Correct

Security strength depends on key length and algorithm. AES-256 (symmetric) is considered equivalent to RSA-15360 (asymmetric). Both can be secure; the choice depends on use case.

Mistake

Asymmetric encryption can encrypt any amount of data efficiently.

Correct

Asymmetric encryption is computationally expensive and limited in data size (e.g., RSA can encrypt only up to key length minus padding overhead). It is used only for small data like keys or hashes.

Mistake

Public keys need to be kept secret to maintain security.

Correct

Public keys are designed to be shared openly. Only private keys must be kept secret. The security of asymmetric encryption relies on the private key remaining confidential.

Mistake

Diffie-Hellman is an encryption algorithm.

Correct

Diffie-Hellman is a key exchange protocol, not an encryption algorithm. It allows two parties to agree on a shared secret over an insecure channel.

Mistake

Digital signatures use symmetric encryption.

Correct

Digital signatures use asymmetric encryption: the signer encrypts a hash with their private key, and the verifier decrypts with the public key. Symmetric encryption cannot provide non-repudiation.

Frequently Asked Questions

What is the main advantage of asymmetric encryption over symmetric encryption?

The main advantage is solving the key distribution problem. In asymmetric encryption, the public key can be freely shared, so two parties can communicate securely without having pre-shared a secret key. Symmetric encryption requires a secure channel to exchange the key, which is often impractical. However, asymmetric is much slower, so it is typically used only to exchange a symmetric session key (hybrid encryption).

Why is symmetric encryption used for bulk data instead of asymmetric?

Symmetric encryption is hundreds to thousands of times faster than asymmetric encryption due to simpler mathematical operations (XOR, substitution, permutation) that are easily hardware-accelerated. Asymmetric encryption involves complex modular exponentiation or elliptic curve point multiplication, making it impractical for large data. In hybrid systems, asymmetric encrypts only the small session key, then symmetric encrypts the bulk data.

What is perfect forward secrecy (PFS) and how does it relate to encryption?

Perfect Forward Secrecy (PFS) ensures that if a long-term private key is compromised, past session keys remain secure. This is achieved by using ephemeral key exchange (e.g., DHE or ECDHE) where a temporary key pair is generated for each session and then discarded. The session key is derived from the ephemeral keys, not the long-term key. Without PFS, an attacker who steals the server's private key can decrypt all past recorded sessions.

Can symmetric encryption provide non-repudiation?

No. Non-repudiation requires that the sender cannot deny having sent a message. With symmetric encryption, both parties share the same key, so either could have created the ciphertext. Asymmetric encryption (digital signatures) allows the sender to sign with their private key, which only they possess, providing proof of origin. The exam tests this distinction.

What is the difference between encryption and hashing?

Encryption is reversible (decryption with a key) and provides confidentiality. Hashing is a one-way function that produces a fixed-size digest; it is not reversible and provides integrity verification. Encryption uses algorithms like AES and RSA; hashing uses SHA-256, MD5 (broken), etc. The exam often contrasts them: encryption protects data secrecy; hashing detects tampering.

What key size is recommended for RSA and ECC?

For RSA, a minimum of 2048 bits is recommended; 1024 bits is deprecated. For ECC, a minimum of 256 bits (e.g., secp256r1) is recommended, which provides equivalent security to RSA-3072. The exam may ask which is stronger for a given key length: ECC offers more security per bit.

How does a TLS handshake use symmetric and asymmetric encryption?

In TLS, the handshake starts with asymmetric encryption: the server sends its certificate (public key), and the client encrypts a pre-master secret with that public key (or uses Diffie-Hellman key exchange). Both parties then derive a symmetric session key. All subsequent data is encrypted with symmetric encryption (e.g., AES-GCM). This hybrid approach combines the security of asymmetric key exchange with the speed of symmetric encryption.

Terms Worth Knowing

Ready to put this to the test?

You've just covered Symmetric vs Asymmetric Encryption — now see how well it sticks with free SY0-701 practice questions. Full explanations included, no account needed.

Done with this chapter?