Foundations · Unit 15 · Lesson 2 of 2
Encryption, keys, and trust
Follow the decisions behind private communication and recoverable encrypted data.
Helpful before thisCryptography
After this lesson you can
- Distinguish confidentiality, authenticated encryption, and identity checks.
- Explain the separate roles of public-key authentication and symmetric traffic keys in typical TLS.
- Connect encryption with a maintained key lifecycle and tested recovery.
A fictional clinic keeps an archive of invented appointment records. It also sends patients messages through a website. Both uses need confidentiality, but they have different key lifetimes, recipients, and recovery requirements. “It is encrypted” begins the explanation; it does not finish it.
Protect the content and check its integrity
Encryption transforms plaintext into ciphertext using a key and an algorithm. The intended recipient needs the appropriate decryption capability. Symmetric schemes use a shared secret; public-key encryption uses a recipient’s public key and a corresponding private key. A digital signature is a different public-key operation, not a general synonym for encryption.
Confidentiality alone does not necessarily detect altered ciphertext. An authenticated-encryption scheme combines confidentiality with an integrity check under its assumptions. Associated data can be authenticated without being encrypted: a protocol might protect the integrity of a record identifier while leaving it readable. The scheme does not automatically decide whether the authenticated record is current or appropriate for the request.
Use maintained implementations and their documented requirements. Keys, nonces, message limits, and error handling are part of correctness. A nonce is not necessarily secret, but reuse restrictions depend on the selected scheme. Inventing an algorithm or changing parameters casually is not a way to improve the guarantee.
A public key still needs the right identity
Encrypting to a public key does not identify its owner by itself. If the clinic receives an unfamiliar key, it needs a trustworthy way to connect that key to the intended recipient. Certificates are one mechanism for conveying an issuer’s signed binding, subject to validation rules and a trust decision.
For a typical certificate-based TLS 1.3 connection, certificate validation and proof using the server’s signing key help authenticate the server. The handshake establishes shared key material; derived symmetric traffic keys protect application data. The certificate key does not simply encrypt every byte of the conversation. TLS also supports other arrangements, including pre-shared keys and resumption, so this description is a common pattern rather than every possible handshake.
A valid HTTPS connection authenticates the chosen endpoint according to those checks. It does not certify that every statement on the page is honest or that the application handles the decrypted information responsibly.
Keys have a lifecycle
The clinic must decide how archive keys are created, stored, used, replaced, and retired. Access to a decryption key is an important authority: it may expose information even if the ciphertext itself is stored safely. Separating key access from routine storage access can help, but the actual roles and implementation determine the boundary.
PredictThe clinic has an intact encrypted archive, but the only usable decryption key was on a broken device. Is the archive a working backup?
Not yet. Confidentiality may remain intact while recovery fails. The plan needs usable key recovery, supported software, and a tested way to restore the intended records.
Replacing a key for new records does not automatically re-encrypt every older copy or make retired keys unnecessary. Retention, recovery access, and compromise response need coordinated decisions. Test with fictional data before relying on the process. The useful result is private information that authorized people can still use when it matters.
Check yourself
No timer. No penalties. Read the explanation and try again whenever you like.
This lesson’s questions have changed. Your reading progress is saved; review the updated questions.
-
An encrypted archive is intact, but its only decryption key is lost. What is the main unresolved property?
Show the answer
Correct answer: Availability to the authorized owner. Recoverability needs usable keys as well as stored ciphertext.
-
A protocol uses authenticated associated data. Which statement is accurate?
Show the answer
Correct answer: That data can be integrity-protected while remaining readable. Associated data is authenticated but not encrypted by the AEAD operation.
-
In a typical certificate-based TLS 1.3 connection, what protects application traffic?
Show the answer
Correct answer: Symmetric traffic keys derived through the handshake. The handshake and key schedule establish keys for authenticated traffic protection.
-
A storage team rotates its key for new archives. What must it still plan?
Show the answer
Correct answer: How retained older copies remain recoverable under the intended policy. Existing ciphertext may still require its original key until appropriately migrated or retired.
Try it
- WriteDraw a fictional clinic archive using invented records. Mark the encrypted copy, its key, the people allowed to recover it, and an independent recovery location. Remove one item at a time on paper and describe whether confidentiality, availability, or both change. Do not use real records or encryption keys.