Study guide · Cryptography and PKI

Cryptography and PKI

As of November 26, 2026 · CompTIA Security+ SY0-801, Exam Objectives version 2.0, objective 1.4 · about 24 min read

This page explains the cryptographic tools that come up again and again in the Security+ exam. You learn about symmetric and asymmetric methods, hash functions and digital signatures. Then the page turns to public key infrastructure, or PKI, with certificates, certificate authorities and revocation lists. Finally, you see where keys are kept safe and which levels of data encryption exist. A mid-sized online retailer with a web shop, a warehouse and its own IT serves again as the running example.

Symmetric and asymmetric

With symmetric encryption, sender and recipient use the same secret key to encrypt and decrypt. The best-known method is AES, the Advanced Encryption Standard. AES is a block cipher: it encrypts data in blocks of 128 bits, with keys of 128, 192 or 256 bits. ChaCha20 is another symmetric method. Symmetric methods are fast and suit large amounts of data. Their problem is distributing the key securely: how does the recipient get it without anyone listening in?

Asymmetric encryption solves this problem with a key pair. Every participant has a public key, which anyone may know, and a private key, which stays secret with its owner. Whatever was encrypted with the public key can only be decrypted with the matching private key. So if the retailer wants to send a supplier a confidential message, it encrypts the message with the supplier's public key. Only the supplier can read it. Well-known asymmetric methods are RSA and ECC, elliptic curve cryptography.

Asymmetric methods are computationally expensive. For large amounts of data, symmetric methods are still used.

Key length and strength

If the algorithm itself is sound, longer keys make brute-force attacks harder, that is, simply trying every key. With symmetric methods, each extra bit doubles the number of possible keys. That is why AES-256 is considered stronger than AES-128. Longer keys cost a little more computing time.

Key lengths cannot be compared directly between symmetric and asymmetric methods, though. Asymmetric methods rest on mathematical problems. For these problems, there are attacks far more efficient than trying every key. RSA therefore needs much longer keys. RSA with 1024 bits is no longer considered adequate today; at least 2048 bits are recommended, and 3072 bits is better. For AES, on the other hand, no attack is known that is much better than brute force, and 128 bits are enough for now.

ECC gets by with much shorter keys than RSA. The reason lies in the math problem behind it, the discrete logarithm on elliptic curves. With known methods, it is harder to solve than factoring large numbers, which RSA relies on. An ECC key with 256 bits is roughly as strong as an RSA key with 3072 bits. That saves computing time and bandwidth, especially on mobile devices.

You can spot outdated methods by short keys or known weaknesses. DES uses keys with only 56 bits. Special hardware can try them all in a short time, and a long password does not change that. AES is the replacement.

Key exchange and TLS

Diffie-Hellman solves key distribution in a different way. Two parties compute a shared secret key over an insecure channel without ever sending the key itself. So Diffie-Hellman does not encrypt data; it agrees on a key.

TLS, Transport Layer Security, protects the connection between browser and web server today, that is, HTTPS. Older protocols such as FTP, Telnet and SNMP version 1 send data unencrypted. TLS combines both worlds. At the start of the connection, asymmetric methods are used to agree on a session key, and the certificate proves that the server is genuine. After that, a fast symmetric method such as AES protects the actual data. This way TLS uses the strengths of both: asymmetric for agreeing on the key, symmetric for speed.

Perfect forward secrecy means that past sessions stay protected even if the server's private key is stolen later. For this, both sides agree on a temporary key for each session using Diffie-Hellman, in TLS usually as ECDHE, and then throw it away.

Read on

You can read the introduction and the first 3 of 12 sections here for free. There are two ways to get the whole learning page:

Free with a confirmed e-mail address

Sign up with your e-mail address and confirm it. You can then unlock the learning pages of one set of your choice completely, once, in the browser or in the app.

Unlock for free

Buy the course

The course includes all its questions and the whole learning page.

View the course
These 9 sections are still missing
  1. Hash functions and passwords
  2. Digital signatures
  3. Certificates and certificate authorities
  4. Chain of trust and the root CA
  5. Revoking certificates: CRL and OCSP
  6. Keeping keys safe
  7. Encrypting data: the right level
  8. Hiding instead of encrypting
  9. Key points

Qwissit is also available as an app for iPhone and Android:

As of: November 26, 2026 (CompTIA Security+ SY0-801, Exam Objectives version 2.0, objective 1.4)

Sources:

  • CompTIA Security+ SY0-801 V8 Certification Exam Objectives, Document Version 2.0 (2026)
  • NIST SP 800-57 Part 1 Revision 5, Recommendation for Key Management (2020)
  • NIST SP 800-63B, Digital Identity Guidelines, Authentication (password storage)
  • RFC 8446, The Transport Layer Security Protocol Version 1.3 (2018)
  • RFC 5280, Internet X.509 Public Key Infrastructure Certificate and CRL Profile (2008)
  • RFC 6960, Online Certificate Status Protocol (2013)

This study guide was written with AI and compared with the sources.

Certifications & exams

Which exam comes next?

You can already practise for 60 exams, and 7 are up for a vote. See all certifications with their official information, cast your vote or suggest your exam.

See all certifications