Cryptography and PKI

Learn how cryptography protects information at work and online. Use symmetric encryption such as AES to protect stored and transmitted data, and public and private key pairs to agree on keys and sign data. Check integrity with hash functions, store passwords with salting and key stretching, and read digital certificates and the chain of trust behind them. Follow a TLS connection step by step, troubleshoot common certificate errors, manage keys from creation to destruction, and see why organizations are moving to post-quantum cryptography.

BeginnerLesson 4 of 8 in Cybersecurity Fundamentals Course

What you will learn

  1. Use the core vocabulary of cryptography, explain how one shared secret key encrypts and decrypts data, and choose where encryption protects data at rest, in transit and in use.
    • Describe what cryptography protects and how keys work
      Name the security goals that cryptography supports, use its basic terms correctly, and explain why the key, not the algorithm, must stay secret.
    • Encrypt data with symmetric ciphers
      Explain how symmetric algorithms such as AES and ChaCha20 use one shared key, how modes, nonces and authentication tags work, and why sharing the key is the main difficulty.
    • Choose encryption for data at rest, in transit and in use
      Match encryption to the state of the data and to the level where it is applied, from a whole disk to a single database field, and tell encryption apart from masking, tokenization and steganography.
  2. Explain how public and private key pairs work, how two parties agree on a shared key over an open network, and why real systems combine asymmetric and symmetric encryption.
    • Explain public and private key pairs
      Describe what each key in a pair is used for, compare RSA with elliptic-curve cryptography, and decide which key to use for encrypting and which for signing.
    • Agree on keys and combine asymmetric and symmetric encryption
      Explain how Diffie–Hellman key exchange creates a shared secret over an open network, why ephemeral keys give forward secrecy, and how hybrid encryption protects real messages and files.
  3. Use hash functions to detect changes, store passwords safely with salting and key stretching, and explain how digital signatures show who signed data and that it has not changed.
    • Check integrity with hash functions
      Describe the properties of cryptographic hash functions, tell current algorithms from broken ones, and use a published hash to check a file.
    • Store passwords with salting and key stretching
      Explain how systems store passwords as salted, deliberately slow hashes, and why this defeats lookup tables and slows down guessing after a breach.
    • Sign data and verify digital signatures
      Explain how a digital signature is created and verified, what it proves and what it does not, and how it differs from a message authentication code.
  4. Read a digital certificate, follow the chain of trust from a website up to a root certificate authority, and manage certificates through issuance, renewal and revocation.
    • Read a digital certificate
      Identify the fields of an X.509 certificate, check which names and uses it covers, and tell validation levels and self-signed certificates apart.
    • Follow the chain of trust and the issuance process
      Explain how root and intermediate certificate authorities form a chain of trust, how a certificate is requested with a CSR and issued, and what keeps certificate authorities honest.
    • Manage certificate revocation and lifetimes
      Explain how CRLs, OCSP and short certificate lifetimes deal with compromised certificates, and keep certificates renewed so they do not expire unexpectedly.
  5. Follow a TLS 1.3 connection from the first message to encrypted data, read cipher suites, and diagnose the certificate and configuration problems seen in everyday practice.
    • Explain how a TLS connection is set up
      Describe what TLS protects, follow the steps of the TLS 1.3 handshake and what each step provides, and read a cipher suite name.
    • Verify and troubleshoot TLS in practice
      Check what a browser verifies before it trusts a site, interpret common certificate errors, and recognize practical features and risks such as HSTS, mutual TLS and TLS inspection.
  6. Protect keys throughout their life with the right tools, and explain why quantum computers threaten today's public-key cryptography and how organizations move to post-quantum algorithms.
    • Manage cryptographic keys through their lifecycle
      Generate, store, use, rotate, back up and destroy keys safely, and choose between hardware security modules, TPMs, secure enclaves and key management services.
    • Explain the quantum threat and post-quantum cryptography
      Explain which algorithms a large quantum computer would break, why encrypted data is already at risk, which post-quantum standards replace them, and how organizations plan the migration.

Cryptography and PKI study guide

6 chapters

1

Protect data with symmetric encryption

Encryption protects a stolen drive and an intercepted message in different ways. Start with the key, the secret value that makes protected data readable, then connect the choice of cipher to the place where protection is needed. Comparing disks, database fields and network connections makes it easier to see what each layer stops, and what access remains after someone signs in or a server receives the data.

1.1 Keys, readable data and security goals

Cryptography protects information with mathematical methods. The useful starting question is what protection a situation needs: keeping a message private, detecting a change, identifying its origin or showing that someone signed it.

Match the protection to the goal
GoalMeaningCryptographic support
ConfidentialityOnly authorized parties can read the data.Encryption
IntegrityChanges can be detected.A trusted hash comparison, MAC or signature
AuthenticationA party or message origin is confirmed.MACs and signatures with trusted keys
Non-repudiationA signer cannot credibly deny signing.Digital signatures with controlled private keys

Encryption alone does not identify the sender or reliably detect changes. A plain hash does not identify a sender either: anyone can calculate one. Its expected value must be trusted before a comparison is useful against an attacker.

Follow the data through a cipher

Plaintext is the readable input. A cipher is the encryption algorithm; its key controls the transformation. Encryption produces ciphertext, and decryption with the correct key restores the plaintext. Good encryption hides the message's content, although its length and other surrounding information may still be visible.

The algorithm can be public. Kerckhoffs's principle says security should survive disclosure of everything except the key. AES is published so researchers can examine it. A secret, homemade cipher lacks that sustained scrutiny; keeping its instructions hidden gives no reliable measure of its strength.

Understand what key length buys

A bit has two possible values, so each extra key bit doubles the number of possible keys. Trying possible keys until one works is a brute-force attack.

The old DES cipher has a 56-bit key: about 7.2×1016 possibilities. At a trillion guesses per second, an exhaustive search takes about 20 hours. A 128-bit key has about 3.4×1038 possibilities; at that rate, the full search takes about 1019 years. An attacker may find a key before the full search finishes, but the difference in scale remains enormous.

Key length and security strength are different measures. Security strength describes the approximate work needed by the best relevant attack. AES-128 offers about 128 bits of classical security; RSA needs about 3,072 key bits to reach similar strength. Comparing their raw key lengths would give the wrong ranking. The 112-bit level is a current minimum in NIST guidance; 128 bits is a common target for new systems.

Separate encryption from rewriting data

Base64 and hexadecimal are encodings: public ways to represent data. For example, YWRtaW46c2VjcmV0 decodes to "admin:secret" without any key. A hash is a one-way fingerprint; there is no decryption operation that restores its input.

Strong encryption also needs protected keys and endpoints. Malware in an unlocked user session can read files as the operating system decrypts them. A key exposed in a configuration file can be stolen without searching the cipher's enormous key space.

Key Takeaways

  • Encryption provides confidentiality; MACs and signatures also detect changes and authenticate origin.
  • Keep the key secret; use public, examined algorithms.
  • Key length is comparable within an algorithm family; security strength compares attack effort.
  • Encoding is reversible without a key, while hashing has no decryption operation.

1.2 Shared keys, ciphers and authenticated encryption

Symmetric encryption uses the same secret key to encrypt and decrypt. It is fast enough for large files, disks and network traffic. Everyone who receives the key must protect it, because anyone holding it can decrypt the data.

Choose a current cipher

AES is a block cipher. It processes 128-bit blocks, equal to 16 bytes, whether its key is 128, 192 or 256 bits long. The names AES-128 and AES-256 describe the key, not the block size. ChaCha20 is a stream cipher with a 256-bit key. It generates a keystream that is combined with the plaintext and works well on processors without AES acceleration.

DES's 56-bit key is too short. Triple DES, or 3DES, has a small 64-bit block and is slow; NIST disallowed it for new encryption after 2023. RC4 has statistical weaknesses and is prohibited in TLS. These names in a configuration are reasons to update it.

A mode controls how blocks are processed
ModeHow it handles dataMain issue or benefit
ECBEncrypts each block independently.Repeated blocks reveal patterns.
CBCMixes each block with the preceding ciphertext block.Needs an unpredictable IV and separate authentication.
GCMBuilds a keystream from AES and produces an authentication tag.Protects secrecy and integrity together.

With ECB, identical plaintext blocks under one key produce identical ciphertext blocks. Even an encrypted picture can retain visible outlines. CBC hides those repetitions, but CBC encryption by itself does not reliably detect deliberate changes.

Authenticated encryption with associated data, or AEAD, protects confidentiality and integrity together. AES-GCM and ChaCha20-Poly1305 are common choices. The receiver checks an authentication tag and rejects data that fails verification. Associated data, such as a visible header, can be authenticated without being encrypted. TLS 1.3 uses AEAD ciphers.

Keep each nonce unique for its key

A nonce is a non-secret value sent or stored with the ciphertext. In GCM and ChaCha20-Poly1305, never reuse it with the same key. Reuse can expose relationships between plaintexts and undermine authentication. Calling a nonce public does not make its uniqueness optional. CBC instead requires an unpredictable initialization vector, or IV.

Work through a message's size

Take a 100-byte message. AES-CBC with PKCS#7 padding fills seven 16-byte blocks: 112 ciphertext bytes. The padding adds 12 bytes, and the 16-byte IV is extra, making 128 bytes before any separate authentication.

AES-GCM needs no block padding. With a 12-byte nonce and 16-byte tag, it stores 100 ciphertext bytes plus 28 bytes of overhead: 128 bytes total. Equal final sizes here do not mean equal protection: the GCM tag detects tampering.

Sharing the key is the scaling problem

If every pair in a group needs its own secret, the number of keys is n(n−1)/2. Ten people need 45 keys; 100 need 4,950. Public-key methods help establish these secrets without delivering each one through a preexisting private channel.

AES-256 has twice the key length of AES-128, but far more than twice the possible keys. It offers additional long-term margin; it cannot repair nonce reuse or an exposed key.

Key Takeaways

  • Symmetric ciphers use one shared secret and efficiently encrypt bulk data.
  • AES always has a 128-bit block; its key can have 128, 192 or 256 bits.
  • Prefer AEAD protection such as AES-GCM or ChaCha20-Poly1305.
  • Never reuse a GCM or ChaCha20-Poly1305 nonce with the same key.
  • Pairwise shared secrets scale as n(n − 1)/2.

1.3 Where encryption protects data

Encryption must sit where it can stop the attacker you are concerned about. A stolen storage device, a database query and an intercepted network packet expose data at different places.

Follow the three data states

Data at rest is stored in files, databases and backups. Data in transit moves between systems. Data in use is being processed in memory. Storage encryption protects the first state; transport encryption such as TLS protects the second. Hardware-isolated processing areas and confidential computing can protect data in use within a defined protected boundary.

Compare storage layers
LayerWhat it encryptsImportant boundary
Full-disk encryptionAn entire drive, including temporary files and swap.Protects a powered-off stolen device; the running user session can read files.
Partition or volume encryptionA selected storage area or container.Other volumes may remain unencrypted.
File-level encryptionIndividual files or folders.Protection can travel with an encrypted file when copied.
Transparent data encryptionDatabase files and backups on disk.Accepted database queries still return plaintext.
Application-side field encryptionSelected values before database storage.Protects them from query users who lack keys and decryption access.

BitLocker, FileVault and LUKS are full-disk encryption systems. An encrypted archive is a file-level example. With transparent data encryption, or TDE, the application does not change because the database encrypts its underlying files. A database administrator who can query those files through the engine may still read the records.

Field-level encryption can place a stronger boundary around selected values. The application encrypts them before storage, and key access stays outside the database administrator's control. An authorized application can still decrypt. The location of the keys and the permissions to use them determine who is excluded.

Protect the connection and identify its ends

TLS protects websites, APIs and email connections; SSH protects remote administration; IPsec and TLS-based tunnels protect VPN traffic; WPA3 protects the Wi-Fi link. Each protects traffic between its own endpoints. A service that terminates a TLS connection reads the request after decryption.

With end-to-end encryption, the communicating users' devices hold the keys, while relay servers handle ciphertext. A messaging service using this design cannot read message contents simply by receiving them. TLS to a service does not by itself provide that same boundary.

Build layers for a clinic

First, full-disk encryption protects a staff laptop left on a train while powered off. Next, TDE protects database files and backups copied from storage. Application-side encryption protects selected patient fields from query users without decryption access. Finally, TLS protects requests between the clinic app and server. The layers address different exposures; database encryption alone does not stop SQL injection that causes an accepted query to return readable data.

Recognize other ways to hide information

Masking limits what is displayed, such as "•••• •••• •••• 4821". Tokenization replaces a sensitive value with a token and holds the original in a protected vault. Steganography hides a message's presence inside another file, such as an image. None of these terms means the data has been encrypted; a hidden message can still be readable once found.

Key Takeaways

  • Choose encryption by the data state and the attacker it stops.
  • Full-disk encryption and TDE protect stored files, while accepted sessions and queries can expose plaintext.
  • Application-side field encryption needs keys and decryption access outside the excluded users’ control.
  • End-to-end encryption keeps message keys on the communicating users’ devices.
  • Masking, tokenization and steganography serve different purposes from encryption.
  • Protect storage and transport separately.
2

Use asymmetric cryptography and key exchange

A public key can be shared openly while its partner stays private. That change makes secure communication practical between people who have never exchanged a secret. Learn which key encrypts or signs, then follow how a key agreement produces a temporary shared secret. Real systems combine these public-key operations with fast symmetric encryption, so trust in a public key matters as much as the mathematics linking the pair.

2.1 Public keys, private keys and their jobs

A public-key system gives each owner two mathematically linked keys. The public key is shared; the private key remains under the owner's control. With secure algorithms and suitable key sizes, computing the private key from the public one is infeasible.

Choose the key by the task
TaskKey used firstKey used by the receiver or verifier
Encrypt a secret to BobBob's public encryption keyBob's private decryption key
Sign data as AliceAlice's private signing keyAlice's public verification key

For confidentiality, aim at the recipient: only that recipient should decrypt. For signing, identify the sender: only that signer should create the signature. Not every public-key algorithm supports both operations; use keys and algorithms intended for the job.

Alice wants to send Bob a confidential, signed contract. First she signs with her own private signing key. She then protects the signed material for Bob using his public encryption key, normally through hybrid encryption. Bob decrypts with his private key and verifies with Alice's public key. Alice never needs Bob's private key.

Encrypting to Alice's own public key would let Alice decrypt, not Bob. Encryption to Bob also says nothing about the sender, because everyone can obtain Bob's public key. Sharing a signing private key among several people weakens evidence about which person signed.

Compare algorithm families fairly

RSA relies on the difficulty of factoring a very large product of primes. RSA-2048 offers about 112 bits of classical security; RSA-3072 offers about 128. RSA supports signature schemes and can encrypt small secrets with an appropriate encryption scheme.

Elliptic-curve cryptography, or ECC, achieves comparable strength with smaller keys. P-256 and Curve25519-based methods provide roughly 128-bit classical security. ECDSA and EdDSA, including Ed25519, produce signatures; ECDH and X25519 establish shared secrets. The smaller values reduce storage and transmission costs and help small devices.

A 256-bit elliptic-curve key and a 256-bit AES key do not have the same security strength. The mathematical problem and best attack matter, so compare published security strengths instead of counting key bits across families.

Keep bulk data out of RSA operations

Public-key operations are slower than symmetric encryption. They also have format limits. An RSA-2048 key occupies 256 bytes, but RSA-OAEP with SHA-256 can encrypt at most 190 bytes at once because padding consumes space. It cannot directly encrypt a large video in one operation. Public-key systems protect or establish a small symmetric key; that key handles the file.

Open distribution creates a trust question

One hundred people can each publish a public key and protect one private key: 100 pairs instead of 4,950 pairwise shared secrets. But a key labeled "Bob" could have been substituted by an attacker. A certificate provides a signed identity-to-key binding that a receiver can validate.

RSA and elliptic-curve methods face a future threat from sufficiently powerful quantum computers running Shor's algorithm. Post-quantum replacements address that public-key problem; publishing the public key was never the mistake.

Key Takeaways

  • Encrypt for the recipient with the recipient’s public encryption key.
  • Sign with the signer’s private key; verify with the signer’s public key.
  • RSA-3072 and a 256-bit elliptic-curve key provide roughly 128-bit classical security.
  • Public-key cryptography establishes keys and signs; symmetric encryption handles bulk data.

2.2 Agreeing on a secret and using it efficiently

Two systems can establish a shared secret across an open network without sending that secret as readable data. The public messages support a mathematical exchange; the private values remain at the endpoints.

Follow Diffie–Hellman key agreement

Each side generates a private value and a related public value. They exchange public values. Alice combines her private value with Bob's public value; Bob combines his private value with Alice's public value. Both calculations produce the same secret. An eavesdropper with only the public values cannot feasibly reproduce it.

A paint analogy shows the pattern: begin with public yellow, mix in private red or blue, exchange the mixtures, then add the private color again. Both sides finish with yellow, red and blue. The useful feature is easy mixing and difficult reversal; actual key agreement uses mathematics, not colors.

Diffie–Hellman is often shortened to DH; its elliptic-curve form is ECDH. A key derivation function, or KDF, takes the resulting secret and produces usable session keys, including different keys for each traffic direction.

Add authentication to stop substitution

Bare DH does not tell Alice who supplied the public value. An on-path attacker can establish one secret with Alice and another with Bob, then relay altered traffic between them. Authentication binds the exchange to the intended party. In a certificate-authenticated TLS connection, the server signs the handshake with the private key corresponding to its certificate.

Make the exchange temporary

Ephemeral means used for one session. DHE and ECDHE generate fresh exchange keys and discard their private values after use. This supports forward secrecy: stealing the server's long-term signing key later does not reveal past session keys from recorded traffic, provided the temporary secrets have been erased.

Older RSA key transport protected a session secret directly with the server's long-term RSA key. A later theft of that private key could unlock recorded exchanges. TLS 1.3 removed RSA key transport. An RSA certificate can still authenticate a TLS 1.3 handshake; the certificate's algorithm does not dictate the exchange method.

Establish a key through encapsulation

A key encapsulation mechanism, or KEM, creates a shared secret and an encapsulation ciphertext using the recipient's public key. The recipient uses the matching private key to recover the same secret. ML-KEM is a post-quantum example. Key establishment is the overall task; agreement and encapsulation are different ways to perform it.

Work through hybrid encryption

An OpenPGP message contains a 50 MB video for three recipients:

  1. Generate one random 256-bit symmetric session key, equal to 32 bytes.
  2. Encrypt the video once with that key.
  3. Protect the session key separately for each recipient with that recipient's public key.
  4. Send one encrypted video and three small protected-key entries.

Each recipient opens their own key entry and uses the recovered session key on the same ciphertext. TLS, encrypted email and file-encryption tools combine public-key operations with symmetric encryption in this way. This meaning of hybrid encryption differs from a hybrid post-quantum exchange, which combines two key-establishment algorithms.

Key Takeaways

  • Key agreement produces a shared secret without sending that secret in plaintext.
  • A KDF turns the shared secret into usable session keys.
  • Authenticate the exchange to prevent an on-path attacker from substituting keys.
  • Fresh, erased ephemeral secrets support forward secrecy.
  • Hybrid encryption protects bulk data once and establishes or protects its symmetric key separately.
3

Verify integrity with hashing and digital signatures

A file can stay readable while still carrying evidence of a change or of who signed it. Hashes, password-hashing functions and digital signatures make different promises. Start by checking a file against a trusted digest, then see why password storage needs unique salts and costly guesses. Finally, connect a signature to the private key that created it and distinguish that evidence from a shared-key authentication code.

3.1 File fingerprints and trusted comparisons

A cryptographic hash function takes input of any size and produces a fixed-size digest, or fingerprint. The same bytes always give the same digest. SHA-256 produces 256 bits, normally written as 64 hexadecimal characters, for a single letter or a 4 GB file.

Understand the three resistance properties
PropertyWhat must be hard to find
Preimage resistanceAn input matching a given digest.
Second-preimage resistanceA different input matching one particular input's digest.
Collision resistanceAny two different inputs with the same digest.

These are different search tasks. Collision resistance does not mean collisions are mathematically impossible. Infinitely many inputs map into a finite set of digests; security means finding a useful collision is infeasible.

The avalanche effect makes a small input change alter the output dramatically. The SHA-256 digest of "Meet at 10:00" begins 05b7dd87a866; "Meet at 10:01" begins 568c89f30171. Similar-looking messages do not need similar-looking digests. These prefixes illustrate the change; an integrity check compares the complete digest.

Separate guessing from decryption

There is no hash decryption key. An attacker who recovers a weak password from its digest usually guesses candidate passwords, hashes them and looks for a match. The hash function has not reversed itself. Predictable inputs make guessing practical even when a general preimage attack is infeasible.

SHA-2, including SHA-256, SHA-384 and SHA-512, and SHA-3 are current hash families. MD5 and SHA-1 have practical collision attacks and must not secure signatures, certificates or integrity checks against deliberate attackers. CRC32 is a non-cryptographic checksum intended to catch accidental damage; an attacker can deliberately preserve it while changing a file.

Why output length matters

A birthday comparison asks whether any pair matches, not whether someone matches one chosen birthday. In a group of 23 people, the chance of a shared birthday is about 51%. The same counting effect makes a generic collision search against an n-bit hash take about 2n/2 attempts.

SHA-256 therefore offers about 128 bits of collision resistance. A 128-bit digest would offer at most 64 bits even without a special weakness. Its output length cannot be read directly as its collision security strength.

Check a downloaded installer

First obtain the publisher's expected SHA-256 digest through a trusted channel. Then compute the downloaded file's digest, for example with sha256sum installer.iso on Linux or Get-FileHash .\installer.iso -Algorithm SHA256 in PowerShell. Compare every character of the full result.

A mismatch means the file differs, through damage or alteration. A match against an authentic expected digest gives strong evidence that the file is the publisher's version. If an attacker controls both the file and the displayed digest, they can publish a matching replacement pair. A verified publisher signature or a separately trusted digest is needed to establish the reference.

Key Takeaways

  • A hash is deterministic and fixed in size; it has no decryption operation.
  • Preimage, second-preimage and collision resistance describe different search tasks.
  • SHA-256 offers about 128 bits of generic collision resistance.
  • Compare the full digest against an authentic expected value.
  • Use SHA-2 or SHA-3 for cryptographic hashing; MD5, SHA-1 and CRC32 do not provide suitable protection against deliberate alteration.

3.2 Password storage that makes guessing expensive

A service needs to check a password at login without keeping a recoverable copy. It stores the output of a password-hashing function, together with the salt and the settings needed to repeat the calculation. At login, it applies the same process to the entered password and compares the result.

What happens after a database theft

With stolen password hashes, attackers can guess offline without triggering the service's login limits. Dictionary attacks try common words and leaked passwords; brute force tries combinations. Precomputed lookup tables, including rainbow tables, can recover many unsalted passwords cheaply. Identical unsalted inputs also reveal which accounts share a password.

A salt is a fresh random value generated separately for each password, commonly 16 bytes. It is combined with the password and stored openly beside the result. Two people using the same password then have different stored values, and an attacker cannot reuse one precomputed table for all accounts.

For illustration, combining "Sunflower42" with salt a91f3c07 gives a SHA-256 digest beginning ae5af2e9a0fa; salt 5be20d94 gives 8905614528a4. A production password system uses a slow password-hashing function, not a single SHA-256 pass. The example isolates what the salt changes.

Add a work cost to every guess

A salt prevents shared lookup work; it does not make one guess expensive. An attacker knows the salt and can test a candidate against it. Key stretching adds a tunable time cost, and memory-hard functions also require memory for each guess.

Argon2id is OWASP's preferred choice. One minimum configuration uses 19 MiB of memory, two iterations and parallelism of one. Other options include scrypt, bcrypt for legacy systems, and PBKDF2. Where the relevant compliance requirements call for it, OWASP specifies PBKDF2-HMAC-SHA256 with at least 600,000 iterations. Benchmark the chosen settings so legitimate logins remain usable while each guess costs meaningful resources.

A simplified calculation shows the scale. Suppose a fast hash allows 10 billion guesses per second and a password function costs 600,000 times as much. The rate becomes about 16,700 guesses per second. A billion-candidate list takes about 16.7 hours instead of 0.1 seconds. This is an illustrative cost ratio, not a hardware benchmark or a guarantee that every PBKDF2 iteration equals one SHA-256 operation.

Keep a pepper separate

A pepper is an extra secret shared across a password system and kept outside the password database, such as in a secrets vault or HSM. It helps if the database alone is stolen. Unlike a salt, the pepper must remain secret. It supplements unique salts and key stretching.

ValueSecret?Role
SaltNoMakes stored results unique and prevents reusable lookup tables.
PepperYesAdds a secret outside the stolen database.
Work and memory settingsNoSet the resource cost of each password guess.

The same kind of slow derivation can turn an archive passphrase into an encryption key. Neither use rescues an extremely weak password: "123456" is cheap to find because it appears near the start of guessing lists. Reversible password encryption also creates a recovery key that an attacker could steal.

Key Takeaways

  • Store passwords with a dedicated password-hashing function, not plaintext or reversible encryption.
  • Generate a different random salt for each password; the salt is public.
  • Key stretching raises the cost of each guess; salting blocks reusable lookup work.
  • Keep a pepper outside the password database.
  • Slow storage still needs strong passwords.
  • A stored password record needs the algorithm settings and salt so login verification can repeat the calculation.

3.3 Digital signatures and shared-key authentication

A digital signature binds data to a private signing key. Anyone with the matching, trusted public key can verify it. The data can stay completely readable: a signature provides integrity and origin evidence, not confidentiality.

Follow signing and verification

For RSA-PSS and ECDSA, a useful conceptual sequence is:

  1. Hash the data.
  2. Use the private key and the signature algorithm to produce a signature over that digest.
  3. Send the data and signature together.
  4. The receiver hashes the received data and checks the signature with the public key.

Ed25519 instead takes the message and performs its specified hashing internally. Do not substitute an improvised "hash first" procedure for an algorithm's defined interface. A changed message or signature will fail verification except with negligible probability under secure use.

A software publisher signs an installer. The operating system checks the signature with the publisher's public key. If someone modifies the signed file, the check fails. A valid check shows that the signed bytes match what that private key signed; it does not establish that the program is harmless.

Common signature schemes include RSA-PSS, older RSA PKCS#1 v1.5 signatures, ECDSA and EdDSA such as Ed25519. ML-DSA and SLH-DSA are post-quantum signature algorithms.

Compare a signature with an HMAC

A message authentication code, or MAC, uses a shared secret. HMAC combines that secret with a hash function and authenticates the message. The receiver can detect alteration and know that someone holding the shared key created the code.

FeatureHMACDigital signature
Creation keyShared secretSigner's private key
Verification keySame shared secretSigner's public key
Independent verificationA verifier with the secret can also create codes.A verifier can check without being able to sign.
Non-repudiation supportNo: either holder could create the code.Yes, when control of the signing key is reliable.

Non-repudiation depends on key control. If a signing key is stolen or shared, a valid signature cannot reliably identify the individual who performed the operation. Hardware protection and prompt revocation help preserve that evidence. A scanned handwritten signature offers no cryptographic check on changes to the document.

Recognize signatures in everyday systems

A CA signs a certificate. A TLS server signs a handshake. Publishers sign updates; S/MIME and OpenPGP sign email; DKIM signatures let mail servers check domain authorization of a message. Each needs trust in the verification key and a clear understanding of what was signed.

A blockchain links blocks by placing the previous block's hash in the next block. Altering an old block breaks the later hash links unless they are rebuilt. Public ledgers also use distributed copies and consensus rules to make rewriting accepted history difficult. Transaction signatures authorize actions under their keys. Hash links alone neither establish consensus nor make every recorded claim true, and transaction-signing rules depend on the ledger's design.

Key Takeaways

  • Sign with a private key and verify with the matching, trusted public key.
  • A signature protects integrity and origin evidence while leaving the message readable.
  • HMAC holders share a secret, so an HMAC cannot distinguish which holder created it.
  • Non-repudiation relies on exclusive control of the private signing key.
  • A valid signature does not certify that signed content is true or safe.
  • Blockchain hash links reveal changes; distributed validation governs which history is accepted.
4

Trust public keys with certificates and PKI

A public key needs an identity you can trust. Certificates supply signed bindings, and PKI supplies the people, systems and procedures that issue and withdraw them. Read the names and limits in a certificate, then trace its signatures to a trusted root. Issuance, installation, renewal and revocation belong to the same working system: a correctly issued certificate can still cause an outage if its chain is incomplete or its replacement arrives late.

4.1 Names, purposes and dates in a certificate

A digital certificate is a signed binding between an identity and a public key. A certificate authority, or CA, signs it. Most use the X.509 version 3 format. The certificate is public information and contains the public key, never the private key.

Read the fields before trusting the name

The subject identifies the holder; the issuer identifies the signing CA. A serial number distinguishes this certificate within that issuer's certificates and supports revocation. Not Before and Not After bound its validity. The certificate also contains the subject's public key, extensions, and the CA's signature and signature algorithm.

For website names, read Subject Alternative Name, or SAN. A browser compares the hostname in the address with the SAN entries. The older Common Name field alone is not enough for modern public website validation.

Certificate entryCovered nameName not covered by this entry
shop.example.comshop.example.comwww.shop.example.com
*.example.comshop.example.com or mail.example.comexample.com or eu.shop.example.com

A wildcard covers one subdomain level. Add the bare domain separately if it is needed. Deploying the same wildcard certificate and private key across many servers broadens the impact if one of those key copies is stolen.

Check the permitted use

Key Usage lists operations such as signing or key encipherment. Extended Key Usage, or EKU, lists purposes such as server authentication, client authentication, code signing or email protection. Basic Constraints indicates whether the holder is a CA. A certificate that proves a device's identity for client authentication is not automatically suitable for signing software.

Compare identity checks, not encryption strength

DV certificates establish domain control. OV also checks the organization's legal existence; EV applies stricter identity checks. These validation levels do not change the encryption strength, and current browsers do not prominently highlight EV identity in the address bar.

A self-signed certificate has a signature made with its own private key. That signature does not supply an independent identity check. A browser needs explicit trust configuration to accept it. Public sites normally use a publicly trusted third-party CA. Internal services can use a private CA whose root is installed on managed devices.

Work through a date and name check

A certificate lists shop.example.com and www.shop.example.com in SAN and permits server authentication. Its validity runs from April 10 to October 26, 2026. On November 2, the names still match but the certificate has expired. Before expiry it still cannot authenticate checkout.example.com: an acceptable date cannot add a missing name.

Recognize the container

PEM stores a certificate as Base64 text between -----BEGIN CERTIFICATE----- and -----END CERTIFICATE-----. DER stores the certificate in binary. A PKCS#12 bundle, commonly .p12 or .pfx, can include a private key as well as certificates, so protect it with a strong password and controlled access. A certificate fingerprint is a hash identifying the exact certificate; it is different from the CA's signature on it.

Key Takeaways

  • A certificate binds an identity to a public key and never contains the private key.
  • Match website hostnames against SAN entries, including wildcard depth.
  • Check the validity period and allowed purpose separately.
  • DV, OV and EV differ in identity validation, not encryption strength.
  • A PKCS#12 bundle may contain a private key even though a certificate itself does not.

4.2 Trust chains and certificate issuance

Public key infrastructure, or PKI, includes certificate authorities, identity checks, trust stores, revocation services, policies and operational procedures. A registration authority checks the requester's identity before the CA issues a certificate; the roles can be part of the same organization.

Trace a chain back to a trusted root

A website usually presents a leaf certificate signed by an intermediate CA. The intermediate's certificate is signed by a root CA. The client uses each issuer's public key to check the signature below it and builds a path to a root already trusted in its trust store.

The root's self-signature does not create that trust. Operating systems, browsers or an organization's administrators decide which roots to install. Trust starts with that decision and flows down through validated signatures and certificate constraints.

The server sends its leaf and the necessary intermediate certificates. It normally need not send the root already in the client's store. A missing intermediate can produce "unable to get local issuer certificate" even when the leaf is correctly issued. One browser may have a cached intermediate while another client does not.

Root private keys are usually kept offline in HSMs and used sparingly. Intermediate CAs handle routine issuing. If an intermediate is compromised, it can be withdrawn and replaced without replacing the root on every device.

Request a certificate without sending the private key
  1. Generate the key pair where the private key will be protected.
  2. Create a certificate signing request, or CSR, containing the public key and requested names. Its signature proves possession of the private key.
  3. Send the CSR to the CA.
  4. Complete domain-control checks and any organization checks required for OV or EV.
  5. Receive the CA-signed certificate.
  6. Install it with its matching private key and intermediate chain.

The private key stays with its owner. This command creates an RSA-3072 key and a request for two hostnames:

openssl req -new -newkey rsa:3072 -noenc -keyout shop.key -out shop.csr -subj "/CN=shop.example.com" -addext "subjectAltName=DNS:shop.example.com,DNS:www.shop.example.com"

Only shop.csr goes to the CA. The -noenc option leaves shop.key unencrypted, so restrict its file permissions and access. The names requested in a CSR still need CA validation; the CSR alone is not a trusted certificate.

Automate issuance and watch for mistakes

ACME automates domain validation, issuance and renewal. An HTTP-01 challenge serves a token at the website; DNS-01 publishes a DNS TXT record. An ACME client such as Certbot performs the workflow and installs renewed certificates.

Certificate Transparency, or CT, records public TLS certificates in public append-only logs. Domain owners monitor the logs for unexpected issuance. A DNS CAA record names the CAs authorized to issue for a domain. Root programs can remove a CA from trust stores after serious failures, as happened with DigiNotar after its 2011 breach.

A private PKI issues certificates for internal devices, Wi-Fi, VPNs and users. Its root is distributed to managed clients.

Key Takeaways

  • Trust starts at an installed root and follows valid signatures through intermediates to a leaf.
  • Servers must provide the intermediates needed by their clients.
  • Send the CSR to the CA and keep the private key protected.
  • ACME automates validation, issuance and renewal.
  • CT logs expose unexpected public issuance; CAA records restrict authorized issuers.
  • Private PKI requires distributing its root to the intended clients.

4.3 Revocation, expiry and reliable renewal

Expiry is a planned end date. Revocation withdraws trust earlier because of a problem such as key theft, incorrect identity information or misissuance. The CA records the affected certificate's serial number and reason. Revocation does not remove the certificate from the server; clients need current status information.

Compare status mechanisms
MechanismWhat happensPractical trade-off
CRLA client downloads a signed list of revoked serial numbers.Lists need regular updates.
OCSPA responder returns signed status for a particular certificate.Adds requests, delay and privacy concerns.
OCSP staplingThe server sends a recently obtained signed OCSP response.Avoids a separate client-to-responder request.

A certificate revocation list, or CRL, is published at distribution points identified in the certificate. Public TLS CA rules require CRLs; OCSP service is optional. An OCSP answer can be "good", "revoked" or "unknown". Unknown is not good, and an unavailable responder does not establish that a certificate is safe.

Some clients continue when a live status request fails, known as a soft fail. Browsers also use compact revocation information downloaded in the background. These mechanisms have different coverage and freshness, so browser acceptance is not a guarantee of complete real-time revocation knowledge. Let's Encrypt ended its OCSP service in 2025 and uses CRLs.

Read the lifetime schedule by issuance date

Short lifetimes limit how long an already issued certificate can remain usable, but they do not remove the need to respond to key theft. For publicly trusted TLS server certificates, the maximum lifetime is:

Issued on or afterIssued beforeMaximum validity
March 15, 2026March 15, 2027200 days
March 15, 2027March 15, 2029100 days
March 15, 2029No later boundary in this schedule47 days

The applicable limit follows the issuance date. A certificate issued on November 1, 2026 can run for at most 200 days, to May 20, 2027. It does not become a 100-day certificate merely because March 15, 2027 arrives during its lifetime. Private CA certificates are outside these public TLS limits. Domain-validation reuse also shrinks, reaching 10 days in 2029.

With 47-day certificates, even renewal at the last moment requires about 7.8 renewals per year. Renewing earlier increases that frequency. ACME automation, successful-installation checks and expiry alerts prevent manual work from becoming a source of outages.

Respond to compromise and maintain an inventory

On suspected private-key compromise, revoke the affected certificate, generate a fresh key pair, obtain and install a certificate for that new key, and investigate the leak. Reissuing against the stolen key leaves the attacker holding a usable credential.

Record each certificate's owner, service, installation location, issuer and expiry. Monitor renewal and deployment, not just the request to the CA. Alerts well before expiry give time to fix failures. If many certificates appear expired on just one device, check its clock as well as the certificates' dates.

Key Takeaways

  • Revocation withdraws trust early; expiry ends a certificate’s stated validity.
  • CRLs and OCSP provide signed status information, with client-specific freshness and availability limits.
  • Public TLS lifetime limits depend on issuance date: 200, then 100, then 47 days.
  • A compromised private key needs replacement as well as certificate revocation.
  • Inventory, automated renewal and deployment checks prevent avoidable outages.
5

Secure connections with TLS

An HTTPS connection brings the earlier pieces together: keys, signatures, certificates and authenticated encryption. Follow the TLS 1.3 handshake to see when each piece is used, then diagnose failures by the specific check that failed. The same model explains why an encrypted connection can still reach a phishing site, why a redirect cannot repair a bad certificate, and how a company proxy can inspect traffic from a managed device.

5.1 From the first hello to encrypted application data

Transport Layer Security, or TLS, protects data between a client and a server. It supplies confidentiality, integrity and server authentication; client authentication is optional. HTTPS is HTTP over TLS, normally using port 443. The name "SSL certificate" persists, but SSL is an insecure predecessor, not the protocol to enable.

Follow a certificate-authenticated TLS 1.3 handshake
  1. The client sends ClientHello, listing supported versions, cipher suites and public key shares. It also supplies a random value and usually the requested server name through SNI.
  2. The server sends ServerHello with its choices and key share. Both endpoints compute shared secrets and derive handshake keys.
  3. Under those handshake keys, the server sends its certificate chain, CertificateVerify, and Finished. CertificateVerify is a signature binding the server's private key to the handshake transcript. Finished is a keyed check over that transcript.
  4. The client validates the certificate and signature, checks Finished and sends its own Finished. Application traffic uses separately derived application keys.

A normal full TLS 1.3 handshake needs one round trip before the client sends application data. The exchange establishes secrets; the certificate and signature authenticate the server; Finished detects changes to the negotiation; AEAD protects the application records. A certificate alone would not prove that this connected server holds its private key.

Read the cipher suite at the right version
VersionExampleWhat the name states
TLS 1.2TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256ECDHE exchange, RSA authentication, AES-128-GCM data protection, SHA-256 key derivation.
TLS 1.3TLS_AES_128_GCM_SHA256AES-128-GCM and SHA-256; exchange and signature are negotiated separately.

Other common TLS 1.3 suites are TLS_AES_256_GCM_SHA384 and TLS_CHACHA20_POLY1305_SHA256. An RSA certificate does not imply old RSA key transport. A TLS 1.2 suite starting TLS_RSA_WITH_ does use that older transport and lacks forward secrecy.

Offer TLS 1.3 and strong TLS 1.2 configurations. TLS 1.0 and 1.1 were deprecated in 2021; SSL 2.0 and 3.0 are prohibited. RC4, 3DES, NULL, EXPORT and anonymous suites are warning signs. Disable obsolete choices so an attacker cannot negotiate them. TLS 1.3 also authenticates the negotiation and uses downgrade markers to detect certain attempts to force an older version.

Treat early data as replayable

A returning client can resume using a pre-shared key. Optional 0-RTT early data arrives before the handshake completes and can be replayed by an attacker. Accept it only for application operations designed to remain safe when repeated. A payment or account-changing action must not rely on early data being delivered just once.

TLS does not hide IP addresses, traffic size or timing. DNS and SNI can also remain visible unless separately protected. It ends at the connection endpoints, so it does not encrypt the server's stored files or protect plaintext from malware already running on an endpoint.

Key Takeaways

  • The handshake establishes secrets and authenticates the peer before normal application traffic.
  • CertificateVerify proves private-key possession over the handshake; Finished checks the transcript.
  • TLS 1.3 cipher suite names omit the separately negotiated exchange and signature algorithms.
  • Disable obsolete protocols and weak suites.
  • 0-RTT data is replayable and needs application-specific restrictions.
  • TLS protects the connection, with metadata and endpoint limits.

5.2 Checking certificates and fixing TLS failures

A successful TLS connection depends on several independent checks. Read a warning as a clue about one of those checks, then fix its cause.

Check the identity and the trust path

The client builds a chain to a trusted root and validates its signatures and constraints. It checks dates, matches the requested hostname to SAN, checks the permitted use and consults available revocation information. It also verifies the server's handshake signature. A known revocation is grounds for rejection; client status mechanisms differ in coverage and freshness.

Common Chrome errorLikely check to investigate
NET::ERR_CERT_DATE_INVALIDCertificate dates and device clock.
NET::ERR_CERT_COMMON_NAME_INVALIDRequested hostname against SAN.
NET::ERR_CERT_AUTHORITY_INVALIDTrusted root, missing intermediate or private/self-signed issuer.
NET::ERR_CERT_REVOKEDReported certificate revocation.

For https://example.org, a certificate listing only www.example.org fails name matching. Reissue with both names. A redirect to the www address is received only after TLS validation, so the redirecting HTTPS address needs its own valid name coverage too.

If a browser succeeds but an app reports "unable to get local issuer certificate", inspect the chain sent by the server. A browser may have cached an intermediate the app lacks. Serve the leaf with its intermediate chain. The browser certificate viewer and openssl s_client -connect example.org:443 -servername example.org help reveal what the server presents.

Separate a protected connection from a trustworthy business

A secure-connection indicator means the connection is encrypted and the server demonstrated the relevant certificate key for the validated hostname. A phishing operator can obtain a DV certificate for a look-alike domain they control. Check the actual address and the request being made, not just the connection indicator.

Keep HTTP from becoming a weak first step

HSTS, HTTP Strict Transport Security, tells browsers to use HTTPS for a domain. For example, Strict-Transport-Security: max-age=31536000; includeSubDomains sets a 365-day policy including subdomains. A browser that knows the policy upgrades HTTP requests and blocks click-through on certificate errors.

A learned policy starts only after the browser receives it over a valid HTTPS connection. Preloading supplies the rule before a first visit, closing the initial plain-HTTP opportunity used in SSL stripping. Deploy HSTS only when the included hostnames can consistently serve valid HTTPS.

Recognize mutual TLS and inspection

Mutual TLS, or mTLS, also requires a client certificate and proof of its private key. It authenticates both sides and is useful for service APIs and managed devices. Client certificates need issuance, rotation and revocation just like server certificates.

A TLS inspection proxy creates two connections: device to proxy, then proxy to server. A company root installed on managed devices lets the proxy issue replacement certificates, decrypt requests for inspection and encrypt them again. That root's signing key is sensitive; inspection can conflict with certificate pinning and expose private content.

For a service, enable strong TLS versions and AEAD suites, install correct SAN coverage and the full chain, automate renewal, configure HTTPS redirects and HSTS, and restrict access to the private key.

Key Takeaways

  • Diagnose the failed check: date, name, trust path, purpose or revocation.
  • An HTTPS redirect needs valid TLS at the redirecting hostname.
  • HSTS protects requests once learned; preloading establishes it before a first visit.
  • mTLS authenticates clients as well as servers.
  • An inspection proxy terminates TLS and opens a second connection.
6

Manage keys and prepare for post-quantum cryptography

Cryptography remains dependable only while its keys are protected, recoverable when needed and retired at the right time. Compare the tools that hold keys, then follow a stored file through envelope encryption and rotation. Long-term planning adds another task: locating public-key methods that quantum computers could threaten. A migration plan starts with the data’s required secrecy lifetime and the systems that will still be running years from now.

6.1 Protecting keys from creation to destruction

A strong algorithm is only one part of a working system. Key management follows keys through generation, distribution, storage, use, rotation, backup, recovery, revocation, archiving and destruction.

Generate unpredictably and limit access

Use a cryptographically secure random generator. A key derived from the time of day or a guessable password has less effective protection than its nominal length suggests. Suitable examples include AES-256, RSA-3072 and P-256 keys. Generate private keys where they will be protected so fewer copies need to move between systems.

Apply least privilege and separation of duties. A database administrator should not automatically administer its encryption keys. Critical operations can require M of N control, such as any three of five custodians acting together. That is different from giving all five people an independent copy of the signing key.

Choose the tool by its job
ToolMain role
Hardware security module, HSMHolds keys and performs cryptographic operations within a protected device.
Trusted Platform Module, TPMProtects device-bound keys and supports checks on boot measurements.
Secure enclaveIsolates sensitive processing and key operations from the main operating system.
Key management service, KMSCentrally controls key access, operations, rotation and audit records.
Secrets managerSupplies passwords, API credentials and other application secrets at run time.

An HSM can keep a CA's signing key from leaving in plaintext. A TPM can help BitLocker release a disk key when measured boot conditions match. Secure enclaves protect selected operations within a hardware-defined boundary. A KMS often uses HSMs behind its service, but its access policy still determines who can request decryption.

Work through envelope encryption

A storage service generates a separate data encryption key, or DEK, for a file and encrypts the file with AES-256. It then wraps that DEK using a key encryption key, or KEK, controlled by a KMS. The encrypted file and wrapped DEK can be stored together; the usable KEK stays separately protected.

To read, the application requests a KMS unwrap operation. The KMS checks permissions and logs use; the returned DEK decrypts the file. Rotating the KEK can mean rewrapping the small DEKs while leaving the large file ciphertexts unchanged. Rotating a DEK instead requires re-encrypting its data.

Disabling a KEK blocks new unwrap operations. Previously decrypted copies or cached plaintext DEKs require their own controls; disabling a key cannot erase plaintext already released.

Plan recovery and retirement

A cryptoperiod is the authorized use period. Rotate according to policy and respond immediately to suspected compromise. Keep old decryption keys available for data that still needs them. A lost key can mean permanent loss of otherwise intact files.

Escrow places a recovery copy with a separate trusted function. Protect that copy with strict permissions, logging and dual control. Signing keys are usually replaced when lost instead of escrowed: extra signing copies weaken individual accountability.

Cryptographic erasure, or crypto-shredding, destroys every usable key copy, including backups and escrow, so remaining ciphertext cannot be decrypted. It depends on eliminating alternate recovery paths and usable key copies. Keep inventories, remove hard-coded secrets from code, and avoid using one key for unrelated purposes.

Key Takeaways

  • Generate keys securely and limit who can request their use.
  • HSMs protect key operations; TPMs bind protection to a device; KMS controls managed key access.
  • Envelope encryption wraps a file’s DEK with a separately protected KEK.
  • KEK rotation can rewrap DEKs without re-encrypting the files.
  • Recoverable data needs recoverable decryption keys; escrow itself needs protection.
  • Cryptographic erasure requires destroying every usable key copy.

6.2 Planning for post-quantum public-key cryptography

A cryptographically relevant quantum computer would be large and reliable enough to break widely used public-key algorithms. No such machine is publicly known to exist. Its possible arrival still matters for data that must remain secret for many years.

Identify which mathematics is threatened

Shor's algorithm would break the factoring and discrete-logarithm problems behind RSA, DH, ECDH, ECDSA and EdDSA. Enlarging an RSA key is not a post-quantum replacement.

Symmetric ciphers and hash functions face a different effect. Grover's algorithm offers a theoretical quadratic search speed-up, but quantum operations are costly and difficult to parallelize. AES-128 remains considered secure; AES-256 provides extra margin. SHA-384 and SHA-512 offer larger hash outputs. A quantum threat to RSA does not mean all encryption suddenly fails.

Account for data sent during migration

Harvest now, decrypt later means storing encrypted traffic today to attack its key establishment with a future quantum computer. Forward secrecy against theft of a long-term signing key does not stop that future mathematical attack on recorded classical exchange values.

Let x be the required secrecy lifetime, y the migration time and z the time until a relevant quantum computer. Mosca's planning rule flags risk when x+y>z. If secrecy must last 15 years and migration takes five, vulnerable records sent near the end of migration need protection until roughly 20 years from now. Today's records require 15 years, not 20; the extra horizon comes from records still being sent during the transition.

Signature risk also matters for long-lived firmware and root keys. Forgery requires the quantum capability when a forgery is made, so its timing differs from storing ciphertext now for later decryption.

Know the standards and their jobs
StandardAlgorithmJob
FIPS 203ML-KEMEstablish a shared secret through encapsulation.
FIPS 204ML-DSACreate digital signatures.
FIPS 205SLH-DSACreate stateless hash-based signatures.

These first standards were published in August 2024. ML-KEM derives from Kyber, ML-DSA from Dilithium and SLH-DSA from SPHINCS+. Falcon-derived FN-DSA is being standardized; HQC was selected in March 2025 as an additional KEM using different mathematics.

Post-quantum algorithms run on ordinary computers. They differ from quantum key distribution, which needs special hardware and quantum links. Their larger messages affect deployment: ML-KEM-768 has a 1,184-byte public key and a 1,088-byte encapsulation ciphertext; each X25519 public value is 32 bytes. An ML-DSA-65 signature is 3,309 bytes, compared with 64 for Ed25519.

Migrate systems in a workable order

Inventory algorithms, libraries, certificates, HSMs and vendor products. Prioritize long-lived sensitive data and systems that will remain deployed for years. Ask vendors about support and test interoperability and performance.

A hybrid post-quantum exchange, such as X25519MLKEM768, combines classical and post-quantum contributions so that a sound combiner retains protection if either component remains secure. It is already deployed in major browsers and services; certificates and signature migration are less mature. Build crypto agility so algorithms can be changed without redesigning the application. NIST's draft transition plan proposes removing quantum-vulnerable public-key algorithms by 2035, with earlier steps for weaker and higher-risk uses; it is a transition proposal, not a predicted quantum-computer arrival date.

Key Takeaways

  • Shor’s algorithm threatens RSA and elliptic-curve public-key systems; symmetric encryption is affected differently.
  • Long-lived secrets face harvest-now, decrypt-later risk before a capable quantum computer exists.
  • Mosca’s rule compares secrecy lifetime plus migration time with the quantum threat horizon.
  • ML-KEM establishes keys; ML-DSA and SLH-DSA create signatures.
  • Inventory, prioritization, vendor testing and crypto agility support migration.
  • Post-quantum cryptography runs on ordinary computers; QKD needs special physical equipment.
  • Hybrid post-quantum exchange and hybrid bulk encryption describe different combinations.

Cryptography and PKI examples

6 Walkthroughs

1

Choose protection for a research report

13 steps
Follow one report through encryption, storage and a network connection, and decide which exposures each layer prevents.
  1. 1
    IntroductionFollow a report through three places

    A research report begins as a readable file, crosses a network and becomes part of a database. Each place exposes it to a different observer.

    Encryption can hide the report’s content, but the cipher, its key and the point where decryption happens all matter. Follow the report to decide whether protection belongs on a device, in the application or on the connection.

  2. 2
    ExplanationName the input, output and control

    The report is plaintext before encryption. A cipher applies a secret key and produces ciphertext. Decryption with the right key restores the readable report.

    The cipher can be published and examined. Security should depend on protecting the key, not hiding the design. Base64 would only rewrite the report into another reversible representation; anyone could decode it without a secret.

  3. 3
    ExampleChoose the security goal

    The research team wants outsiders to be unable to read the report and reviewers to detect unauthorized changes. These are confidentiality and integrity, two different goals.

    Encryption supplies confidentiality. A trusted digest can support comparison, and a MAC or signature can authenticate the data. A plain hash supplied by the same unknown sender does not identify that sender.

  4. 4
    ChallengeWould hiding the cipher solve key theft?

    The team uses an examined cipher, but its secret key is exposed in a shared configuration file. Would hiding the cipher’s instructions repair that exposure?

    ---reveal---

    No. Someone with the key can use the standard decryption process. Replace and protect the exposed key, and address how it leaked. The algorithm’s public design is compatible with security; the key’s uncontrolled disclosure is not.

  5. 5
    ExplanationUse one shared key for bulk data

    A symmetric cipher uses one secret key for encryption and decryption. It efficiently protects a large report. AES processes 16-byte blocks, whether its key is 128, 192 or 256 bits; ChaCha20 produces a keystream with a 256-bit key.

    The recipients must receive the shared key securely. Every person holding it gains the ability to read the report, so key access is part of the protection plan.

  6. 6
    Key InsightRequire a tag as well as ciphertext

    Choose AEAD, such as AES-GCM or ChaCha20-Poly1305, so the receiver can reject altered data. The authentication tag is checked during decryption.

    ECB exposes repeated patterns, and CBC alone does not authenticate the ciphertext. Changing from one AES key length to another does not add the authentication that a design is missing.

  7. 7
    ExampleAccount for the protected message

    Suppose a report fragment contains 80 bytes. With AES-GCM, a 12-byte nonce and a 16-byte tag, its protected representation contains:

    • 80 ciphertext bytes.
    • 12 nonce bytes.
    • 16 tag bytes.

    The total is 108 bytes. The nonce travels openly with the ciphertext. Its job requires uniqueness with this key, not secrecy.

  8. 8
    ChallengeCan the next fragment reuse the nonce?

    A sender encrypts a different 80-byte fragment with the same AES-GCM key. It plans to reuse the previous nonce because the plaintext changed. Is that safe?

    ---reveal---

    No. A different plaintext does not permit nonce reuse under the same key. Reuse can expose message relationships and undermine authentication. The sender needs a nonce scheme that stays unique throughout that key’s use.

  9. 9
    ExplanationPlace storage encryption at the boundary

    Full-disk encryption protects a locked, powered-off laptop containing the report. Once the laptop is unlocked, the operating system reads the report for the user.

    TDE protects database files on disk, but accepted queries return plaintext. Application-side field encryption can exclude a query user only when that user lacks the keys and permission to decrypt the selected values.

  10. 10
    ExampleFollow the network leg

    The author uploads the report over TLS. A network observer cannot read its protected contents, but the service terminates TLS and receives readable data. TDE then encrypts the stored database files.

    If the provider must be unable to read content, those two layers do not establish that boundary. User-device encryption with keys unavailable to the provider changes where plaintext appears.

  11. 11
    ChallengeIdentify the remaining read path

    A report is stored in a TDE-protected database. An administrator has ordinary permission to query its table. Can the administrator read the report, and which stronger field boundary would exclude that access?

    ---reveal---

    The accepted query returns plaintext. Encrypt the selected content in the application and keep its keys and decryption access outside that administrator’s control. TDE alone protects copied files, not this query path.

  12. 12
    ConnectionDo not confuse display controls with secrecy

    A screen may mask a value as "•••• 7164"; that limits what the screen reveals. Tokenization can substitute a token backed by a protected vault. Steganography can hide a message inside an image.

    These techniques solve different problems. A masked screen may still use a plaintext database value, and finding a hidden message can reveal its content unless that content was also encrypted.

  13. 13
    RecapMatch mechanism and boundary

    For a protected report, identify the required goal and the place where an attacker could read or change it. Use a current cipher with authentication, protect its key and follow its nonce rules.

    Then trace where decryption occurs: an unlocked device, a database query or a TLS endpoint can expose readable data. Layers help when each addresses a distinct exposure.

2

Deliver one encrypted file to several recipients

11 steps
Use a signed file delivery to connect public-key roles, hybrid encryption, authenticated exchange and forward secrecy.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionMake a file both private and attributable
  2. 2
    ExplanationAssign the public and private roles
  3. 3
    ExamplePrepare the signed content
  4. 4
    ChallengeCheck the proposed key choice
  5. 5
    ExampleEncrypt the large file once
  6. 6
    ExampleAdd four ways to recover the key
  7. 7
    AnalogyAgree on a secret through public messages
  8. 8
    Key InsightAuthenticate the public exchange
  9. 9
    ChallengeCombine confidentiality and verification
  10. 10
    ConnectionSeparate two meanings of hybrid
  11. 11
    RecapKeep each key’s task distinct
3

Check an update and protect account passwords

13 steps
Follow trusted digests, signature verification and password storage to see why each needs a different kind of evidence.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionReadable information can still be checked
  2. 2
    ExplanationStart with the exact bytes
  3. 3
    ExampleCompare with an authentic reference
  4. 4
    ChallengeWhich check survives page replacement?
  5. 5
    ExplanationStore a verifier instead of the password
  6. 6
    ExampleMake equal passwords look different
  7. 7
    ExplanationCharge a cost for every guess
  8. 8
    ChallengeWhy are unique salts insufficient here?
  9. 9
    ExplanationAdd a signing key to the update
  10. 10
    ExampleFollow successful verification to its limit
  11. 11
    ChallengeWould HMAC give independent attribution?
  12. 12
    ConnectionCheck the evidence before the conclusion
  13. 13
    RecapKeep the three jobs separate
4

Issue a certificate and recover from a key leak

13 steps
Read certificate limits, build a trust chain, then replace a compromised service credential without carrying the stolen key forward.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionMake a public key usable for a service
  2. 2
    ExplanationRead names and permissions separately
  3. 3
    ExamplePlan the names the service will answer
  4. 4
    ChallengeCan organization checks repair name coverage?
  5. 5
    ExampleCreate the request without exporting the secret
  6. 6
    ExplanationInstall the leaf and its intermediates
  7. 7
    ChallengeWhy do two clients disagree?
  8. 8
    ConnectionAutomate and observe issuance
  9. 9
    ExampleRespond when the private key leaks
  10. 10
    ExplanationPublish and obtain revocation information
  11. 11
    ExampleRead the rule from the issuance window
  12. 12
    ChallengeDid renewal remove the attacker’s credential?
  13. 13
    RecapKeep trust and operation connected
5

Follow a TLS connection and diagnose its failure

12 steps
Trace one TLS 1.3 connection, then use failed identity checks to choose the correct repair.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionConnect the pieces in one handshake
  2. 2
    ExampleStart with ClientHello
  3. 3
    ExampleDerive handshake keys after ServerHello
  4. 4
    ExplanationAuthenticate this specific exchange
  5. 5
    ChallengeAssess the effect of a later key theft
  6. 6
    TipRead the suite without adding missing choices
  7. 7
    ExampleFind the failed name check
  8. 8
    ChallengeRepair the redirect’s starting point
  9. 9
    Key InsightSeparate secure transport from honest content
  10. 10
    ConnectionKnow when a browser already requires HTTPS
  11. 11
    ChallengeIntegrate authentication and early data
  12. 12
    RecapUse the sequence to locate the failure
6

Rotate stored-data keys and plan the quantum transition

13 steps
Follow envelope encryption through rotation and recovery, then assess which long-lived systems need post-quantum migration first.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionManage both today’s keys and tomorrow’s algorithms
  2. 2
    ExplanationPut keys behind controlled operations
  3. 3
    ExampleEncrypt a file and wrap its key
  4. 4
    ExampleRotate the wrapping layer
  5. 5
    ChallengeCan disabling the KEK revoke cached plaintext?
  6. 6
    TipKeep recovery and erasure consistent
  7. 7
    ExplanationLocate the quantum-vulnerable layer
  8. 8
    ExampleAdd the required secrecy and transition times
  9. 9
    Key InsightExplain why recording starts early
  10. 10
    ExplanationChoose replacements by function
  11. 11
    ChallengeSet the migration priority
  12. 12
    ConnectionTurn the inventory into an upgrade path
  13. 13
    RecapCheck the whole recovery and migration path

Cryptography and PKI practice questions

50 Practice Questions in 5 sets

Set 1: Apply keys, certificates and storage controls10 Practice Questions

Question 1 of 10

A certificate’s only SAN entry is *.example.net. What hostname does it cover?
  1. example.net
  2. files.example.net
  3. eu.files.example.net
  4. files.example.org
Show answerHide answer
Answer: B
The wildcard covers exactly one subdomain level under example.net, so files.example.net matches. It does not cover the bare example.net name or a deeper name such as eu.files.example.net. The domain suffix must also match.

Question 2 of 10

Eight employees need a different shared secret for every private pairwise channel. How many keys are required?
  1. 16
  2. 28
  3. 32
  4. 56
Show answerHide answer
Answer: B
Each of eight people has seven partners, giving 56 ordered links, but that counts every pair twice. Dividing by two gives 28 distinct shared secrets. Using 56 mistakes the two directions of one private channel for separate pairwise keys.

Question 3 of 10

A database team must maintain query access but must not read one sensitive column. Which arrangement can enforce that encryption boundary?
  1. TDE with the same administrators controlling database access.
  2. Full-disk encryption with the database running for queries.
  3. TLS with the database team retaining normal column access.
  4. Application-side encryption with separately controlled keys.
Show answerHide answer
Answer: D
Encrypt the column before database storage and keep decryption keys and permissions outside the team’s control. TDE protects stored files but decrypts data for accepted queries. TLS protects traffic and does not remove the administrators’ ability to read query results.

Question 4 of 10

What feature gives a key exchange forward secrecy against later theft of a server’s long-term authentication key?
  1. Fresh ephemeral secrets that are erased after use.
  2. A permanent exchange secret reused for every session.
  3. A public certificate containing a longer validity period.
  4. A session secret encrypted by the permanent RSA key.
Show answerHide answer
Answer: A
Fresh ephemeral exchange secrets keep past session keys independent of the server’s long-term authentication key, provided those temporary secrets are erased. Old RSA key transport instead exposes recorded sessions if its private key is later stolen. A certificate’s validity period does not create forward secrecy.

Question 5 of 10

A stolen password database already has unique salts, but its single-pass SHA-256 hashes allow rapid offline guessing. What change addresses that remaining weakness?
  1. Keep the same hashes but conceal the public salt values.
  2. Replace random salts with longer account usernames.
  3. Use a tuned password-hashing function such as Argon2id.
  4. Encrypt the digest using a key stored in the same database.
Show answerHide answer
Answer: C
Argon2id adds tunable work and memory costs to each guess. Unique salts already prevent reusable lookup work, but an attacker can still calculate fast guesses for one account. Hiding salts is not a substitute for making each password test expensive.

Question 6 of 10

Two services share one HMAC key. Why can an auditor not attribute a valid HMAC to just one service?
  1. The hash output reveals the shared secret key.
  2. Only the receiving service can verify the code.
  3. A valid code guarantees the message is unreadable.
  4. Either service could have generated the code.
Show answerHide answer
Answer: D
Both services know the secret needed to create an HMAC, so either could generate the same kind of valid evidence. HMAC detects changes and authenticates possession of that shared key. It does not give independent attribution between the key holders, and it does not encrypt the message.

Question 7 of 10

A valid certificate lists portal.example.com in SAN but permits only client authentication in EKU. Why should a client reject it as a server credential?
  1. Its SAN must contain a wildcard for server authentication.
  2. Its permitted purpose does not include server authentication.
  3. Its public key must be hidden before server authentication.
  4. Its issuer must publish the server’s private authentication key.
Show answerHide answer
Answer: B
A matching hostname does not override the certificate’s allowed purpose. Client-authentication EKU does not authorize use as a TLS server credential. Adding wildcard coverage would change the names covered, not supply the missing server-authentication permission.

Question 8 of 10

A public TLS certificate was issued on February 20, 2027 for 180 days. Does the March 15, 2027 shift to 100-day maximum validity itself shorten that existing certificate?
  1. No; the issuance date selects its lifetime limit.
  2. Yes; it expires 100 days after its original issuance.
  3. Yes; it becomes invalid on March 15 regardless of dates.
  4. No; only private CA certificates use issuance dates.
Show answerHide answer
Answer: A
February 20 falls in the 200-day issuance window, so 180 days fits that phase. The March 15 change applies to new issuances and does not rewrite existing validity dates. Counting 100 days from the old issuance applies the later phase to the wrong certificate.

Question 9 of 10

Users visiting https://example.net get a name warning, while https://www.example.net works. SAN lists only the www name, and the bare address already sends a redirect after TLS. What fixes the whole path?
  1. Keep the certificate and add a permanent redirect.
  2. Keep the certificate and add HSTS to the www hostname.
  3. Cover both names with valid TLS and keep the redirect.
  4. Keep the SAN list and add the bare name to Common Name.
Show answerHide answer
Answer: C
The browser validates TLS at example.net before it can read that address’s redirect. Reissuing with both hostnames fixes the initial identity check, after which the redirect can work. An HTTP response cannot move ahead of the TLS validation on an HTTPS connection.

Question 10 of 10

An archive uses AES-256 for files and RSA to wrap each stored DEK. It needs long-term secrecy against a future quantum attacker who can copy the archive. What migration addresses the vulnerable part?
  1. Keep the RSA wraps and rotate only the file-level DEKs.
  2. Keep the RSA wraps and move archive copies offline.
  3. Keep the wrapped DEKs and upgrade only download transport.
  4. Replace vulnerable public-key protection of the DEKs.
Show answerHide answer
Answer: D
A future Shor attack targets RSA and could expose the wrapped DEKs, which then unlock the AES-encrypted files. AES-256 does not repair that key-protection layer. The migration must address public-key establishment or wrapping as well as preserving appropriate bulk encryption.
Set 2: Choose the right cryptographic protection10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

A backup service rotates its KEK while keeping each file’s DEK unchanged. What data must it transform for that rotation?
  1. The file ciphertext.
  2. All certificates.
  3. The wrapped DEKs.
  4. The file names.
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

An administrator puts API credentials in Base64 before saving them in a shared document. What protection does Base64 provide?
  1. Confidential storage using a shared secret key.
  2. An integrity check that exposes later changes.
  3. A reversible representation with no secret key.
  4. A one-way result that hides the original input.
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

A service must encrypt uploaded files and reject altered ciphertext. What type of construction meets both needs?
  1. An AEAD cipher such as AES-GCM.
  2. AES-CBC with no integrity check.
  3. AES-ECB with Base64 encoding.
  4. A SHA-256 hash of readable files.
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

Mira needs to send an RSA-encrypted secret that only Dev can decrypt. Whose key should Mira use?
  1. Mira’s public key.
  2. Mira’s private key.
  3. Dev’s private key.
  4. Dev’s public key.
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

A downloaded tool matches the SHA-256 digest displayed beside it. An attacker controls both that page and the download. What additional evidence would establish the publisher’s signed version?
  1. A second SHA-256 calculation on the same download.
  2. A valid signature under a trusted publisher key.
  3. A shorter digest copied from the same page.
  4. A matching CRC32 value supplied by the attacker.
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

Two accounts choose the same password. What stored value should be different for each account to prevent shared precomputed lookups?
  1. A freshly generated random salt.
  2. A site-wide pepper kept in a vault.
  3. A standard hashing algorithm name.
  4. A shared key for all accounts.
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

A CA wants signing operations to happen without exporting its root private key in plaintext. What tool serves that role?
  1. A CT log.
  2. A CAA record.
  3. An HSM.
  4. A CSR file.
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

A server presents a valid leaf certificate. Some clients report a missing issuer, while others succeed using a cached intermediate. What should the operator change?
  1. Send the leaf’s private key with the certificate.
  2. Send the needed intermediate with the leaf.
  3. Remove the SAN entries from the leaf certificate.
  4. Replace all client roots with the leaf certificate.
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

In TLS 1.3, what does TLS_AES_256_GCM_SHA384 identify?
  1. The key exchange method.
  2. The server name and issuer.
  3. The signature and root CA.
  4. The AEAD cipher and hash.
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

A laboratory keeps new designs secret for 12 years and needs four years to migrate its classical key exchanges. It is planning for a relevant quantum computer in 14 years. How should it assess records still sent near migration’s end?
  1. Their secrecy horizon extends beyond the assumed quantum arrival.
  2. Only records sent today are exposed; later records have shorter secrecy needs.
  3. Completing migration in year four protects all earlier recorded traffic.
  4. Only the eight-year gap after migration matters for these records.
Show answerHide answer

Save this lesson to see this answer.

Set 3: Diagnose failures across a protected system10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

An attacker runs a query through a vulnerable application and receives readable customer records from a TDE-protected database. Why did TDE not stop that read?
  1. The transport certificate expires before each query.
  2. TDE encrypts only the names of the database tables.
  3. Symmetric encryption cannot protect database files.
  4. The database decrypts data for queries it accepts.
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

A procurement team needs a confidential quote from Inez that it can independently verify as signed by her key. Which key roles are correct?
  1. Inez signs publicly; the team decrypts privately.
  2. Inez signs privately; the team decrypts privately.
  3. Inez signs privately; the team decrypts publicly.
  4. Inez signs publicly; the team decrypts publicly.
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

Two devices exchange unauthenticated DH values. An intermediary replaces both values and establishes a separate secret with each device. The devices then add AEAD to their traffic. What change prevents this identity substitution?
  1. Trust DH value hashes sent by the intermediary.
  2. Use separate traffic keys for each direction.
  3. Authenticate each exchange to the intended peer.
  4. Sign only the cipher-suite name, not the DH values.
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

A designer selects an ideal 192-bit hash output and claims 192 bits of generic collision resistance. What approximate collision strength should be used?
  1. 96 bits.
  2. 48 bits.
  3. 192 bits.
  4. 384 bits.
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

A signed update verifies under a trusted publisher certificate, but investigators establish that the private key was stolen before that update was signed. What conclusion is justified?
  1. The bytes verify under the key; certificate trust proves publisher approval.
  2. The bytes verify under the key; publisher authorship remains uncertain.
  3. The bytes verify under the key; revoking it would establish the original signer.
  4. The bytes verify under the key; renewing it unchanged would restore attribution.
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

An operator prepares a CSR to request a certificate for api.example.org. Which key material should be sent to the CA?
  1. The private key inside the signed CSR.
  2. Both keys inside the server’s trust store.
  3. The private key instead of the CSR signature.
  4. The public key inside the signed CSR.
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

A service’s TLS private key is exposed. Its operator revokes the old certificate and obtains a new certificate for the same key. What exposure remains, and what change is needed?
  1. The stolen key matches the replacement; generate a fresh pair.
  2. The new serial isolates the revocation; keep the same pair.
  3. The replacement restores trust; deploy it and keep the old pair.
  4. The new leaf inherits the revocation; change only its intermediate.
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

A TLS 1.3 connection uses an RSA certificate with an ECDHE exchange. Does the RSA certificate mean it lacks forward secrecy?
  1. Yes; every RSA certificate requires RSA key transport.
  2. Yes; ECDHE is used only after the session key is sent.
  3. No; a longer certificate lifetime supplies forward secrecy.
  4. No; the ephemeral exchange determines that property.
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

A browser has never visited a site and has no HSTS policy or preload entry for it. An attacker controls the initial plain-HTTP hop. Does a server’s HTTPS redirect by itself close that first-hop exposure?
  1. Yes; the redirect authenticates the earlier plain-HTTP reply.
  2. Yes; a later HSTS header covers the earlier HTTP request.
  3. No; the attacker can interfere before HTTPS is established.
  4. No; learned HSTS also remains ineffective on every later visit.
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

A storage app caches plaintext DEKs after KMS unwraps. The operator disables the KEK. Why might a running app still read some files, and what must containment consider?
  1. Only new files stay readable; old ciphertext needs the KEK directly.
  2. Cached DEKs still decrypt; released keys and plaintext need control.
  3. All reads stop at once; disabling the KEK invalidates plaintext DEKs.
  4. New unwraps still work; only the cached DEKs are blocked by the disable.
Show answerHide answer

Save this lesson to see this answer.

Set 4: Evaluate design and operating choices10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

A proposal chooses RSA-2048 over AES-128 because 2,048 is greater than 128. What comparison corrects that reasoning?
  1. Compare security strength, not raw key length across families.
  2. Compare ciphertext length, not the intended attack model.
  3. Compare key length after converting both values to bytes.
  4. Compare algorithm age, not how its keys are generated.
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

A file uploader restarts its GCM nonce counter at zero after every reboot and keeps the same AES key. It proposes moving from AES-128 to AES-256 without changing this behavior. What design change addresses the actual failure?
  1. Switch to AES-256 but still reset the counter on reboot.
  2. Hide repeated nonces and keep the same key and counter.
  3. Prevent nonce repetition across uses of any one key.
  4. Authenticate the reboot counter and reuse key-nonce pairs.
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

A small device needs an elliptic-curve method for signatures, not key agreement. What algorithm serves that job?
  1. X25519.
  2. Ed25519.
  3. ECDH.
  4. ML-KEM.
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

A supplier encrypts a design package once with a random session key and wraps that key for each authorized recipient. One recipient’s private key is stolen along with that package. What can the attacker recover from this package?
  1. Only that recipient’s key entry, not the file contents.
  2. The file contents and every other recipient’s private key.
  3. Only the file segment protected by that recipient’s wrap.
  4. The shared session key and the design package’s contents.
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

An attacker is given one signed document and tries to create a different document with its same digest. Which hash property addresses this specific task?
  1. General collision resistance.
  2. Reversibility of the digest.
  3. Second-preimage resistance.
  4. Avalanche behavior of outputs.
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

A password service has unique salts and tuned Argon2id. Only its database is stolen; an extra site-wide pepper remains in a separate vault. What extra barrier does that pepper provide?
  1. Candidate verification also needs the separate secret.
  2. Unique salts become unnecessary once a pepper is added.
  3. The pepper slows each Argon2id run even when it is known.
  4. A pepper stored in each row gives the same barrier.
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

A buyer proposes replacing a DV certificate with EV solely to strengthen the site’s AES encryption. What should the team explain?
  1. EV changes AES block size from 128 bits to 256 bits.
  2. EV replaces the server’s private key with a public secret.
  3. EV removes the need for matching hostname SAN entries.
  4. EV changes identity checks, not the encryption strength.
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

A managed device trusts a company root. Its browser accepts a proxy-issued certificate for an external service, while a pinned app rejects it. The proxy opens its own valid TLS connection to that service. What best explains both results?
  1. The proxy never decrypts; pinning fails only on missing intermediates.
  2. Inspection uses two connections; pinning rejects the substituted key.
  3. The proxy relays one untouched handshake; company trust overrides pins.
  4. Pinning detects server revocation; browser trust confirms renewal.
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

A records service destroys its active DEK but keeps a usable escrow copy. Has it completed cryptographic erasure for those records?
  1. No; the escrow copy still permits decryption.
  2. Yes; escrow keys only verify the ciphertext.
  3. Yes; destroying one copy voids every other copy.
  4. No; it also requires physically overwriting disks.
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

A hybrid exchange combines X25519 and ML-KEM with a sound combiner. Later analysis breaks the classical component but not ML-KEM. Does that break alone reveal the combined secret?
  1. Yes; breaking either contribution reveals the combined secret.
  2. No; the exchange also upgrades the certificate signature.
  3. No; the secure post-quantum contribution still protects it.
  4. Yes; breaking X25519 also exposes ML-KEM’s private key.
Show answerHide answer

Save this lesson to see this answer.

Set 5: Resolve connected cryptographic problems10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

A team uses published AES-GCM with a securely generated key. A reviewer objects only because the algorithm’s design is public. What principle supports the team’s choice?
  1. Security requires every nonce to be a secret from the receiver.
  2. Security depends mainly on hiding the number of key bits used.
  3. Security should depend on the secret key, not a hidden algorithm.
  4. Security improves when the cipher has never been publicly examined.
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

A web service terminates users’ TLS connections and decrypts their uploads before storing them with TDE. A designer claims the provider cannot read uploads because encryption exists in transit and at rest. What boundary change is needed for that privacy claim?
  1. Keep server-side TDE and rotate its keys more often without changing decryption access.
  2. Keep TLS termination and give the provider a separate field-encryption key.
  3. Add TLS between internal services while preserving provider access to each endpoint.
  4. Encrypt on user devices with content keys unavailable to the provider.
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

A service uses authenticated ECDHE and erases session secrets. Its records must remain confidential for 25 years. A planner argues that forward secrecy makes recording the traffic harmless even if quantum attacks later break ECDH. What is missing from that argument?
  1. Forward secrecy fails only when the certificate itself uses the same elliptic curve.
  2. Forward secrecy does not stop future cryptanalysis of recorded exchange values.
  3. Erased ephemeral values protect records if the classical public exchange remains available.
  4. Authenticated ECDHE postpones secrecy needs until the long-term signing key expires.
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

A team changes one old block in a private copy of a public ledger and recalculates every later hash link. It claims that intact links alone make this the accepted history. What else governs acceptance?
  1. The network’s validation and consensus rules.
  2. Consensus checks on the first block only.
  3. Local transaction signatures in the edited copy.
  4. The latest block’s digest, regardless of history.
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

A colleague sends a file ending in .pfx and says it needs no access controls because certificates are public. What risk should be checked?
  1. The certificate may show a serial number.
  2. The certificate may name its issuer.
  3. The bundle may show its validity dates.
  4. The bundle may include a private key.
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

A server sends a leaf and an intermediate that both have valid signatures and dates, but the chain ends at an unfamiliar self-signed root absent from the client’s trust store. No other trusted path exists. Why must the client reject that chain?
  1. Self-signed roots are invalid even when trusted.
  2. No accepted trust anchor authorizes the chain.
  3. Current validity dates alone authorize the root.
  4. The server can establish trust by sending the root.
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

An OCSP responder is unavailable. A client soft-fails and continues a TLS connection after its other checks pass. An operator records the certificate as "confirmed good in real time." What should the record say instead?
  1. Status was confirmed good; all non-revocation checks passed.
  2. Status was confirmed revoked; the live responder was unavailable.
  3. Status was unavailable; client policy allowed the connection.
  4. Status was confirmed good; an unavailable reply equals stapling.
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

A TLS 1.3 service resumes a client’s session at two independent sites. It accepts quota-changing requests before handshake completion. A captured request with valid tags causes an increment at both sites. What design addresses that risk without weakening authentication?
  1. Keep quota-changing requests out of early data unless repetition is made safe.
  2. Accept the request once per site because separate sites make the effects independent.
  3. Use a longer AEAD key while keeping the same early-data acceptance rules.
  4. Require a trusted server certificate but leave the quota-changing requests unchanged.
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

Only one workstation reports many unrelated sites as expired or not yet valid. The certificates’ displayed dates include today. What local setting should be checked first?
  1. The SAN lists of the failing sites.
  2. The issuers’ RSA private keys.
  3. The workstation’s system clock.
  4. The DNS CAA record of each site.
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

A device maker must choose a migration plan for firmware verified for 18 years and a new network service carrying short-lived public data. What should it prioritize and test?
  1. Only bulk AES upgrades, since firmware lifetime affects secrecy, not signatures.
  2. Only transport migration, assuming today’s signatures stay safe indefinitely.
  3. Only public-data service certificates, as if all quantum risks share one deadline.
  4. Long-lived firmware verification, including post-quantum signature support.
Show answerHide answer

Save this lesson to see this answer.

Stuck on your own question? Homework Help

Key Terms

108 Key Terms, each with its definition

A

ACME
ACME is a protocol that automates certificate validation, issuance and renewal through domain-control challenges.
A renewal client updates a DNS challenge and installs a new certificate before the existing one expires.
AEAD
AEAD is authenticated encryption with associated data, combining confidentiality and integrity while allowing authenticated visible data.
A receiver checks a GCM tag before accepting the protected message and its authenticated header.
AES
AES is a symmetric block cipher with 128-bit blocks and a choice of 128-, 192- or 256-bit keys, used with a suitable mode of operation.
A file-encryption service combines AES with GCM to protect content and detect unauthorized changes.
Argon2id
Argon2id is a tunable, memory-hard password-hashing function that increases both the computing and memory resources needed for guessing.
A service chooses Argon2id settings after measuring login performance on its own hardware.
Authentication tag
An authentication tag is a keyed check value that lets a receiver detect unauthorized changes to protected data.
Changing a ciphertext byte makes tag verification fail, so the receiver rejects the message.
Avalanche effect
The avalanche effect is the large, unpredictable-looking output change caused by a small change to a hash function’s input.
Changing one character of a message changes its digest throughout, not just in one position.

B

Birthday attack
A birthday attack searches for any matching pair of digests, requiring roughly 2n/2 attempts against an ideal n-bit output.
SHA-256 offers about 128 bits of generic collision resistance because its digest has 256 bits.
Block cipher
A block cipher transforms fixed-size groups of bits under a key; a mode defines how it handles longer messages.
AES processes 16-byte blocks even when its key is 32 bytes long.
Blockchain
A blockchain is a ledger whose blocks reference previous block hashes, with validation rules determining the accepted sequence.
Altering an old block disrupts later hash links, while consensus governs whether a new history is accepted.
Brute-force attack
A brute-force attack tries possible keys or candidate inputs until it finds one that works, with cost rising as the search space grows.
Adding one key bit doubles the possible keys an exhaustive search would need to consider.

C

CAA record
A CAA record is a DNS policy naming certificate authorities authorized to issue certificates for a domain.
A domain administrator lists its chosen public CA to restrict which issuers should accept requests.
CBC
CBC is a block-cipher mode that mixes each plaintext block with the preceding ciphertext block and requires an unpredictable IV.
An AES-CBC design needs a separate authentication check because CBC alone does not detect tampering.
Certificate authority
A certificate authority is an issuer that validates identity claims and signs certificates binding those identities to public keys.
A CA checks domain control before issuing a public TLS certificate for the requested hostname.
Certificate fingerprint
A certificate fingerprint is a hash of the complete encoded certificate, used to identify that exact certificate reliably.
An operator compares SHA-256 fingerprints when checking whether two devices present the same certificate.
Certificate lifecycle
The certificate lifecycle runs from request and issuance through installation, monitoring and renewal to expiry or revocation.
An inventory links every certificate to an owner so failed renewal can be fixed before an outage.
Certificate pinning
Certificate pinning restricts a client to an expected certificate or key, narrowing acceptance beyond general trust-store validation.
An app with pinning may reject an inspection proxy’s certificate even when its root is installed.
Certificate revocation
Certificate revocation withdraws trust in an issued certificate before expiry, commonly after key compromise or incorrect issuance.
An organization asks the CA to revoke a server certificate after its private key is exposed.
Certificate revocation list
A certificate revocation list is a CA-signed publication of revoked certificate serial numbers, updated for clients to consult.
A client checks the downloaded CRL for the certificate’s issuer and serial number.
Certificate signing request
A certificate signing request contains a public key and requested identity data, signed with the private key to prove possession.
An operator sends a CSR to the CA and keeps the matching private key on the protected server.
Certificate Transparency
Certificate Transparency records public TLS issuance in append-only logs so certificates can be audited and unexpected issuance detected.
A domain owner watches the logs for a certificate requested by someone outside the organization.
CertificateVerify
CertificateVerify is the TLS handshake signature that demonstrates possession of the certificate’s private key over the transcript.
The client verifies CertificateVerify using the server’s certificate public key.
ChaCha20
ChaCha20 is a symmetric stream cipher with a 256-bit key, commonly combined with Poly1305 to provide authenticated encryption.
A mobile client without AES acceleration can use ChaCha20-Poly1305 for efficient protected traffic.
Cipher
A cipher is a key-controlled algorithm that encrypts plaintext into ciphertext and supports recovery with the appropriate decryption key.
A service chooses an examined cipher instead of inventing a secret method for scrambling its files.
Cipher suite
A cipher suite identifies selected connection-protection algorithms; TLS 1.3 names only the AEAD cipher and hash in the suite.
TLS_AES_128_GCM_SHA256 does not by itself identify the key-exchange group used by the connection.
Ciphertext
Ciphertext is the encrypted output produced from plaintext with a cipher and a key, intended to conceal the original content.
A storage thief obtains ciphertext but lacks the key needed to recover the customer records.
Collision resistance
Collision resistance means it is infeasible to find any two different inputs that produce the same cryptographic digest.
A signature scheme needs collision resistance so an attacker cannot prepare matching substitute documents.
Crypto agility
Crypto agility is the ability to change cryptographic algorithms and related choices without redesigning the surrounding system.
An inventory and configurable libraries help a service replace vulnerable algorithms across its deployments.
Cryptographic erasure
Cryptographic erasure makes ciphertext unreadable by destroying every usable decryption-key copy, including backup and escrow copies.
A cloud service removes all recovery paths for a retired key before treating its encrypted records as erased.
Cryptography
Cryptography uses mathematical methods to protect information, including its confidentiality, integrity and authenticated origin.
A service combines encryption and signatures to protect both a document’s privacy and its origin.
Cryptoperiod
A cryptoperiod is the time a key is authorized for a particular use, set to limit exposure and support planned retirement.
A service rotates its wrapping key when its policy-defined cryptoperiod ends.

D

Data at rest
Data at rest is information held in storage, including files, databases and backups that are not currently moving across a network.
An encrypted backup protects stored records if someone steals the backup drive.
Data encryption key
A data encryption key directly encrypts application data and can itself be wrapped by a separately protected key encryption key.
A stored file has its own DEK, with only a wrapped copy saved alongside its ciphertext.
Data in transit
Data in transit is information moving between systems or across a link, where connection encryption can protect its contents.
TLS protects a browser’s request while it crosses the network to the service.
Data in use
Data in use is information being processed, where plaintext may be exposed unless an appropriate isolated boundary protects it.
A confidential-computing service processes selected data inside a hardware-protected area.
Data masking
Data masking limits the visible portion of a sensitive value without necessarily encrypting the value stored underneath.
A billing screen displays only a card number’s last four digits to its support staff.
Diffie–Hellman
Diffie–Hellman is a key-agreement method that combines private and exchanged public values to produce the same shared secret at both ends.
Two endpoints derive a shared secret while a network observer sees only their public exchange.
Digest
A digest is the fixed-size output of a hash function, used as a fingerprint of the exact input bytes that were hashed.
The received file’s full digest differs from the trusted digest, so the download is rejected.
Digital certificate
A digital certificate is an issuer-signed binding between an identity and a public key, with dates and constraints limiting its use.
A browser reads a server certificate to connect its hostname with the key used for authentication.
Digital signature
A digital signature is a private-key result verified with a public key to check signed data’s integrity and origin under that key.
A customer verifies an update’s signature before trusting that it matches the publisher’s signed bytes.
Downgrade attack
A downgrade attack tries to make peers use an older protocol or weaker protection than they could otherwise negotiate.
A server disables obsolete TLS versions to remove weak choices an attacker might try to force.

E

ECB
ECB is a block-cipher mode that encrypts each block independently, causing identical plaintext blocks under one key to produce identical ciphertext.
An ECB-encrypted image can retain visible outlines because repeated blocks remain recognizable.
Ed25519
Ed25519 is an elliptic-curve digital-signature algorithm that processes messages using its specified internal hashing procedure.
An update tool verifies an Ed25519 signature using the publisher’s matching public key.
Elliptic-curve cryptography
Elliptic-curve cryptography uses curve-based mathematical problems to support signatures and key agreement with compact keys.
A device uses a 256-bit elliptic-curve key for roughly 128-bit classical security.
Encoding
Encoding rewrites data using a public representation rule that can be reversed without a secret key.
A Base64 string can be decoded by anyone, so an encoded password still needs confidential transport.
End-to-end encryption
End-to-end encryption keeps content keys on the communicating users’ devices, excluding relay servers from readable message content.
A messaging server forwards an encrypted message while only the recipient’s device can read it.
Ephemeral key
An ephemeral key is a temporary key generated for a session and discarded afterward to limit exposure of other sessions.
A server erases its exchange secret after deriving the keys needed for the connection.
Extended Key Usage
Extended Key Usage is a certificate extension identifying permitted purposes such as server authentication or code signing.
A client checks for the server-authentication purpose when evaluating a TLS server certificate.

F

Field-level encryption
Field-level encryption protects selected values, with application-side encryption able to separate database access from decryption access.
A database operator sees encrypted ID values because the application’s keys are controlled separately.
Finished
Finished is a TLS handshake message carrying a keyed transcript check, used to detect alteration of the negotiated exchange.
A client checks the server’s Finished value in addition to its certificate and CertificateVerify signature.
Forward secrecy
Forward secrecy protects past session keys against later compromise of a long-term authentication key when ephemeral secrets are erased.
A stolen server signing key does not unlock earlier recorded ECDHE sessions.
Full-disk encryption
Full-disk encryption protects an entire drive’s stored contents, including system and temporary files, while it is locked.
A powered-off stolen laptop does not reveal its files without the disk-unlocking material.

G

GCM
GCM is an authenticated block-cipher mode that produces ciphertext and a tag, with nonce uniqueness required for each key.
A receiver uses the AES-GCM tag to reject a protected record whose ciphertext was altered.

H

Handshake transcript
A handshake transcript is the ordered negotiation data that TLS authenticates to bind the connection to the exchanged messages.
Changing a negotiated parameter causes transcript authentication to fail at the endpoints.
Hardware security module
A hardware security module protects cryptographic keys and performs operations internally so protected keys need not leave in plaintext.
A CA keeps its root signing key in an offline HSM and authorizes its use under controlled procedures.
Harvest now, decrypt later
Harvest now, decrypt later is the collection of encrypted traffic today for decryption after future attacks can break its key establishment.
A long-lived research secret needs protection against someone recording its classical exchange now.
Hash function
A cryptographic hash function deterministically converts input of any size into a fixed-size digest with resistance to useful reversal and collisions.
A software distributor publishes a SHA-256 digest to support checks on a downloaded installer.
HMAC
HMAC is a message authentication code that combines a cryptographic hash with a shared secret key to authenticate message data.
An API verifies an HMAC to check that a request came from a party holding the shared secret.
HSTS
HSTS is a browser policy requiring HTTPS for a domain for a set time and blocking certificate-error bypasses while that policy applies.
A browser with an HSTS policy upgrades a typed HTTP address before sending a network request.
Hybrid encryption
Hybrid encryption combines symmetric encryption of bulk data with public-key establishment or protection of its small symmetric key.
An encrypted email carries one file ciphertext and a separate protected session key for each recipient.

I

Intermediate CA
An intermediate CA is a certificate authority below a root that signs other certificates while limiting routine use of the root key.
A server sends its intermediate certificate so clients can build a path from its leaf to a trusted root.

K

Key
A cryptographic key is a value that controls an operation such as encryption, decryption, signing or verification.
An encryption service protects its secret key separately from the encrypted backup files.
Key derivation function
A key derivation function produces usable cryptographic keys from input material, often separating purposes and traffic directions.
TLS derives different traffic keys from the agreed secret instead of reusing one raw value.
Key encapsulation mechanism
A key encapsulation mechanism establishes a shared secret using a recipient’s public key and a ciphertext opened with its private key.
ML-KEM gives both parties the same secret through an encapsulation and decapsulation process.
Key encryption key
A key encryption key protects other keys by wrapping them, allowing their storage outside the KEK’s protected boundary.
Rotating a KEK rewraps small DEKs while leaving their large encrypted files unchanged.
Key escrow
Key escrow holds a recovery copy of a key with a separate trusted function, requiring strict control of that extra decryption path.
A recovery team retrieves a disk key under dual control after the device’s normal unlock method fails.
Key management service
A key management service centrally controls key creation, access, operations and rotation, with records of authorized use.
An application requests a logged key-unwrapping operation instead of reading a master key from code.
Key stretching
Key stretching applies a tunable work cost to password processing, making each attempted password guess more expensive.
An attacker must repeat the expensive derivation for every candidate tested against an account.

M

Message authentication code
A message authentication code is a shared-secret check of message integrity and origin from someone holding that secret.
Either endpoint with the shared key can create a valid code, so it cannot establish which one sent it.
ML-DSA
ML-DSA is the module-lattice digital-signature algorithm standardized in FIPS 204 for post-quantum signing and verification.
A vendor evaluates ML-DSA for updates whose signatures will need verification far into the future.
ML-KEM
ML-KEM is the standardized module-lattice key encapsulation mechanism in FIPS 203, used to establish a shared secret.
A hybrid TLS group combines ML-KEM-768 with X25519 to contribute secrets from both methods.
Mode of operation
A mode of operation defines how a block cipher processes messages beyond one block and affects its security properties.
ECB reveals repeated blocks, while GCM adds authenticated protection to AES encryption.
Mutual TLS
Mutual TLS authenticates a client through its certificate and private-key proof as well as authenticating the server.
Two internal services use mTLS so each checks the other’s certificate before exchanging data.

N

Non-repudiation
Non-repudiation is evidence that supports holding a signer accountable for signing, relying on reliable control of the private key.
Sharing a signing key between employees weakens evidence about which employee signed a document.
Nonce
A nonce is a non-secret per-operation value; AES-GCM and ChaCha20-Poly1305 require that it never repeat under the same key.
A sender stores the fresh GCM nonce beside the ciphertext so the receiver can decrypt it.

O

OCSP
OCSP is a protocol that returns signed status for an individual certificate, including good, revoked or unknown responses.
A client contacts an OCSP responder to ask about the status of the server’s certificate.
OCSP stapling
OCSP stapling lets a TLS server send a recent signed status response so the client need not contact the responder directly.
A server includes the CA’s signed response without gaining power to change that response’s status.

P

Password hashing
Password hashing stores a deliberately costly verification result so a login can be checked without keeping a recoverable password.
At login, a service applies the stored salt and settings to the entered password and compares results.
PBKDF2
PBKDF2 is a password-based key derivation function with a tunable iteration count that increases the work needed for each guess.
A password-protected archive derives its encryption key from a passphrase using a costly function.
Pepper
A pepper is an additional password-storage secret kept outside the password database to help when that database alone is stolen.
The service loads its pepper from a vault that is separate from the account records.
PKCS#12
PKCS#12 is a container format that can bundle certificates and private keys, commonly stored in files ending in .p12 or .pfx.
An administrator protects a PKCS#12 export because it includes the service’s private key.
Plaintext
Plaintext is readable data before encryption or after decryption, including text, images and other digital information.
An app displays the decrypted report as plaintext after its user unlocks the protected file.
Post-quantum cryptography
Post-quantum cryptography uses algorithms on ordinary computers designed to resist both classical and quantum attacks.
A service tests a post-quantum key-establishment method without installing a quantum communication link.
Preimage resistance
Preimage resistance means it is infeasible to find an input that produces a particular digest supplied as the attack target.
A long random input cannot feasibly be recovered simply by searching for its specified SHA-256 digest.
Private key
A private key is the controlled member of a public-key pair, used for signing, decryption or a key-establishment operation.
A server keeps its signing key protected while distributing its certificate openly.
Public key
A public key is the shareable member of a cryptographic pair, used for an algorithm’s verification, encryption or establishment task.
A publisher distributes its verification key so customers can check signed updates.
Public key infrastructure
Public key infrastructure is the system of roles, policies and services that issues, distributes, validates and revokes certificates.
An organization’s PKI handles certificate requests, trusted roots, renewals and compromise response.

Q

Quantum key distribution
Quantum key distribution uses quantum effects and specialized communication equipment to distribute keys over physical links.
A QKD installation needs specialized links, unlike software-based post-quantum cryptography.

R

Rainbow table
A rainbow table is a precomputed aid for finding inputs that match password hashes, undermined by unique random salts.
A unique salt stops an attacker from applying one reusable table to every stolen account hash.
RSA
RSA is a public-key algorithm family whose security relies on the difficulty of factoring a sufficiently large product of primes.
A service uses RSA-PSS signatures to prove private-key possession during authentication.

S

Salt
A salt is a fresh random value combined with each password and stored publicly to prevent shared hashes and reusable precomputed tables.
Two accounts using the same password have different stored results because their salts differ.
Second-preimage resistance
Second-preimage resistance means it is infeasible to find a different input with the same digest as one given input.
An attacker cannot feasibly replace a chosen legitimate file while preserving its SHA-256 digest.
Secure enclave
A secure enclave is an isolated processing area that protects selected sensitive operations from the main operating environment.
A device performs protected biometric-key operations inside its hardware-isolated security area.
Security strength
Security strength measures approximate attack effort in bits; n bits of strength corresponds to roughly 2ⁿ operations.
RSA-3072 and AES-128 have different key lengths but roughly comparable classical security strength.
Self-signed certificate
A self-signed certificate has a signature made using its own private key and needs an explicit trust decision from the verifier.
A laboratory device’s self-signed certificate triggers a warning until trust is configured.
SHA-256
SHA-256 is a SHA-2 cryptographic hash function with a 256-bit output and about 128 bits of generic collision resistance.
An operator compares all 64 hexadecimal characters of an installer’s SHA-256 digest with a trusted value.
SLH-DSA
SLH-DSA is the stateless hash-based digital-signature family standardized in FIPS 205 as a post-quantum signature option.
A team compares SLH-DSA with lattice-based signatures when planning algorithm diversity.
Steganography
Steganography conceals a message’s existence inside another file or medium; discovery can expose it unless it is also encrypted.
A hidden message inside an image needs separate encryption if its contents must stay secret.
Stream cipher
A stream cipher generates a key-dependent keystream that is combined with plaintext to protect a sequence of data.
ChaCha20 produces a keystream and is paired with Poly1305 for authenticated encryption.
Subject Alternative Name
Subject Alternative Name is the certificate extension listing the identities, including DNS names, for which a certificate is valid.
A certificate with only www.example.net in SAN does not cover the bare example.net hostname.
Symmetric encryption
Symmetric encryption protects data with the same shared secret key for encryption and decryption, allowing efficient bulk processing.
Two endpoints use a shared session key to encrypt and decrypt their application traffic.

T

TLS
TLS is a protocol that protects a client-server connection with encryption, integrity checks and peer authentication.
A browser uses TLS before sending an HTTPS request containing account information.
TLS inspection
TLS inspection terminates a client connection at a proxy and creates another connection so the proxy can examine readable traffic.
A managed device trusts the company root used by its inspection proxy to issue replacement certificates.
Tokenization
Tokenization replaces a sensitive value with a substitute token and keeps the original in a separately protected mapping or vault.
A checkout service stores a payment token while the vault holds the actual card number.
Transparent data encryption
Transparent data encryption encrypts database files and backups without changing how applications query the database.
TDE protects copied database files but still allows authorized queries to return readable records.
Trust store
A trust store is a client-managed collection of trusted root certificates used as starting points for certificate path validation.
A managed laptop accepts internal service certificates after the company root enters its trust store.
Trusted Platform Module
A Trusted Platform Module is device-bound hardware that protects keys and supports measured-boot checks on a computer.
A laptop’s TPM releases disk-unlocking material when its measured startup conditions match policy.

W

Wildcard certificate
A wildcard certificate uses a name pattern to cover one subdomain level while excluding the bare domain and deeper levels.
The pattern *.example.net covers mail.example.net but not eu.mail.example.net.

#

0-RTT early data
0-RTT early data is TLS 1.3 application data sent before handshake completion, with a replay risk the application must address.
A service keeps account-changing operations out of early data because repetition could duplicate an action.

About this lesson

By StudeliReport a mistake

Make your own Study Materials

Turn your notes, slides and documents into Study Guides, Practice Questions, Flashcards and 6 more tools.

Get Started