Encryption fundamentals and applications

Encryption fundamentals and applications

Published September 28, 2026

Encryption fundamentals and applications

On this page

Protecting exposed sensitive data

Sensitive data can be read when a storage device, file, message, or network connection is exposed. Encryption changes readable data into protected data that requires the proper key to recover. Short scenarios often ask whether encryption protects data at rest, data in transit, or a related service such as key exchange or authentication.

Confidentiality, privacy and breach impact connects this control to unauthorized disclosure. Encryption does not replace access controls, safe key management, or privacy controls. Obfuscation, tokenization and data loss prevention distinguishes other ways to protect sensitive data, while Protecting regulated data end to end places encryption within the full data life cycle.

The structure separates the basic transformation from the techniques and applications that use it.

Plaintext, ciphertext, techniques and applications

Plaintext is changed into ciphertext when an algorithm operates with a key. Decryption uses the proper key and algorithm to recover plaintext. The three branches are fundamentals, techniques, and applications.

Loading diagram…

The diagram is a taxonomy, not a process or decision tree.

NIST CSRC defines encryption as “The process of changing plaintext into ciphertext for the purpose of security or privacy.” NIST CSRC defines decryption as “The process of changing ciphertext into plaintext.”

NIST FIPS 197 covers AES. NIST FIPS 180-4 covers approved hash functions. NIST FIPS 186-5 covers digital signatures. NIST SP 800-38D covers authenticated encryption with GCM. RFC 8446 covers TLS.

The diagram gives every scenario a place. First identify the basic object or operation, then the cryptographic technique, then the use.

Algorithms, keys and cryptographic methods

An algorithm is the method, while a key controls the particular operation. Keeping the algorithm public does not protect data if a secret or private key is exposed.

Symmetric encryption uses one shared secret key and is efficient for bulk data. The parties must protect and distribute that shared key.

Asymmetric encryption uses a related public and private key pair. The public key may be shared, while the private key must be protected.

Public-key methods support key establishment and digital signatures. Symmetric methods commonly protect the resulting session data.

Hashing maps input to a fixed-length digest and is designed to be one-way. A hash is not decrypted and does not provide confidentiality by itself.

NIST SP 800-57 Part 1 Revision 5 explains key-management concepts.

BranchPartWhat it coversClue words in a scenario
FundamentalsPlaintext and ciphertextPlaintext is original readable data; ciphertext is transformed protected data.readable, original, encrypted, scrambled, ciphertext
FundamentalsAlgorithmThe defined cryptographic method transforms data according to a key.algorithm, cipher, AES, cryptographic method
FundamentalsKey and key managementA key controls the operation; management covers its full life cycle.secret key, public key, private key, rotate, revoke, store
FundamentalsEncrypt and decryptEncryption creates ciphertext; decryption recovers plaintext.encrypt, decrypt, recover, unlock, readable again
TechniquesSymmetric encryptionThe same shared secret key performs encryption and decryption.same key, shared secret, bulk data, session key
TechniquesAsymmetric encryptionA related public and private key pair supports key establishment, encryption, signing, and verification.public key, private key, key pair, sign, verify
TechniquesHashingA one-way function creates a fixed-length digest without decryption.digest, one-way, fixed-length, cannot decrypt, password verifier
ApplicationsData at restEncryption protects files, databases, backups, disks, and other stored data.database, disk, backup, stored file, media
ApplicationsData in transitEncryption protects data moving across a network or communication link.network, message, browser, server, TLS, intercepted
ApplicationsKey exchangeKey-agreement methods help parties establish a shared session secret.handshake, establish a session key, shared secret, open network
ApplicationsIntegrity, authentication and nonrepudiationHashes and MACs detect changes or authenticate messages; signatures support verification and may support nonrepudiation.changed, tampered, verify, signature, MAC, origin

Encryption at rest protects stored files, databases, backups, disks, and other media. Encryption in transit protects messages moving across networks. TLS combines public-key operations for authentication or key establishment with symmetric protection for session data.

Key exchange establishes a shared session secret over an open network. Integrity and authentication can use a MAC or authenticated encryption. Digital signatures use a private key to sign and a public key to verify. Signatures can support nonrepudiation when identity and key control are reliable.

Encryption does not protect plaintext after an authorized system decrypts it. It also does not fix exposed keys or poor access control.

These distinctions move from what encryption manipulates to how it operates and where it is used.

Identifying encryption concepts from clues

Each scenario uses words that identify one part of the structure. A shared secret points to symmetric encryption, stored records point to data at rest, a session secret points to key exchange, and a one-way digest points to hashing.

Practice

A company encrypts a file before sending it to a partner. Both parties received the same secret key through a protected channel, and that key is used to encrypt and decrypt the file. Which part of the structure does this describe?

A database stores customer records in encrypted form on its disks. The records are changed back to readable form only when an authorized application has the key. Which application is shown?

A browser verifies a server signature with the server public key, and the handshake establishes a shared session key before the session data is sent. Which application of the structure is shown by the public-key step?

A system stores a password verifier as a fixed-length one-way digest and does not decrypt it to check a login. This scenario belongs to hashing.

The final distinctions are fundamentals first, techniques second, and applications third.

Encryption, key management and security services

  • Plaintext is readable input; ciphertext is transformed output.
  • An algorithm is the method; a key selects its specific operation.
  • Protect keys through their life cycle because exposed keys defeat confidentiality.
  • Encryption creates ciphertext; decryption recovers plaintext with the proper key.
  • Symmetric encryption uses one shared secret and suits bulk data.
  • Asymmetric encryption uses a public/private pair for key exchange and signatures.
  • Hashing makes a fixed-length one-way digest; it is not reversible encryption.
  • At-rest encryption protects stored data.
  • In-transit encryption protects data moving across networks.
  • Key exchange helps parties establish a shared session secret.
  • Integrity and authentication can use MACs; digital signatures can also support nonrepudiation, so encryption alone does not provide every security service.

Unlock the full lesson and continue reading

Signup to continue reading this lesson and unlimited access questions, flashcards, AI notes, and more

Scan to download app

Scan to download
UNLOCK FREE ACCESS

Practice Questions: Encryption fundamentals and applications

  1. 1. Before deploying a system in 2026, an EU employer plans to use facial recognition to control building access and continuously analyze employees' movements. The processing will be systematic, involve biometric identifiers, and likely create a high risk to employees' rights. Which action should the employer take before beginning the processing?

    • A. Deploy the system and perform a penetration test within 30 days
    • B. Complete a data protection impact assessment and address identified risks
    • C. Encrypt the biometric templates and document that no assessment is required
    • D. Obtain employee consent and treat the consent as replacing the risk assessment
    Show answer

    Answer: B. Complete a data protection impact assessment and address identified risks

    Complete a data protection impact assessment and address identified risks - Under the GDPR, systematic monitoring using biometric identifiers that is likely to create a high risk to employees’ rights calls for a data protection impact assessment before processing begins. - The employer should assess the risks and planned safeguards before deploying the facial-recognition access and movement-monitoring system. Deploy the system and perform a penetration test within 30 days - A penetration test checks technical weaknesses, but it does not replace a preprocessing assessment of risks to employees’ rights. - Performing that test after deployment would leave the high-risk biometric monitoring unassessed when processing begins. Encrypt the biometric templates and document that no assessment is required - Encryption can reduce risks to biometric templates, but it does not remove the need to assess the planned high-risk monitoring. - Documenting that no assessment is required would not address the system’s systematic analysis of employees’ movements. Obtain employee consent and treat the consent as replacing the risk assessment - Consent does not replace a data protection impact assessment for processing likely to create a high risk. - Employee consent may also be difficult to treat as freely given because of the employer–employee power imbalance.

  2. 2. An authenticated consumer asks a financial services company to correct an outdated home address in the company's active customer profile. The company must retain prior addresses in closed transaction records for seven years under an applicable record-retention requirement. Which action best satisfies both requirements?

    • A. Correct the active profile and restrict the prior addresses to retained historical records.
    • B. Delete the prior addresses from every system and retain only the corrected address.
    • C. Deny the correction request because some records are subject to mandatory retention.
    • D. Add the corrected address to the profile without changing the outdated active address.
    Show answer

    Answer: A. Correct the active profile and restrict the prior addresses to retained historical records.

    Correct the active profile and restrict the prior addresses to retained historical records. - Updating the active customer profile corrects the outdated address used for current customer information. - Keeping prior addresses only in closed transaction records satisfies the seven-year retention requirement without treating them as the current address. Delete the prior addresses from every system and retain only the corrected address. - Deleting prior addresses from closed transaction records would violate the stated seven-year retention requirement. - The correction request concerns the active profile; it does not override the obligation to preserve required historical records. Deny the correction request because some records are subject to mandatory retention. - Mandatory retention of prior addresses in closed transaction records does not prevent correcting the active customer profile. - Denial would leave the authenticated consumer’s outdated address in the profile despite the ability to preserve the historical records separately. Add the corrected address to the profile without changing the outdated active address. - Adding an address without changing the outdated active address does not correct the inaccurate current profile. - The company can designate the corrected address as current while retaining prior addresses in closed transaction records.

  3. 3. A nightly interface uses a service account to transfer confidential customer records between two internal applications. The account's password is embedded in a script, has not changed in three years, and is known to several developers. Which change would best reduce the risk of unauthorized use while allowing the interface to operate?

    • A. Encrypt the transferred records and retain the embedded password
    • B. Store the credential in a managed vault and rotate it automatically
    • C. Review interface transaction logs at the end of each quarter
    • D. Require developers to acknowledge the acceptable-use policy annually
    Show answer

    Answer: B. Store the credential in a managed vault and rotate it automatically

    Store the credential in a managed vault and rotate it automatically - A managed vault removes the service account password from the nightly interface script and restricts access to the credential. - Automatic rotation reduces the risk from a password unchanged for three years while allowing the interface to keep operating. Encrypt the transferred records and retain the embedded password - Encryption protects the confidential customer records during transfer, not the credential used to run the interface. - Retaining the embedded password leaves it available to developers who can access the script. Review interface transaction logs at the end of each quarter - Log review may reveal suspicious interface activity, but it is a detective control rather than a way to restrict credential use. - A quarterly review leaves unauthorized use of the shared password undetected until after it occurs. Require developers to acknowledge the acceptable-use policy annually - Annual acknowledgment may remind developers of their responsibilities but does not limit access to the service account. - It neither removes the password from the script nor rotates the credential known to several developers.

  4. 4. Employees report repeated unsolicited multifactor authentication push notifications. Authentication logs show that one employee eventually approved a notification, after which a remote login from an unfamiliar device succeeded. Which threat most directly explains these facts?

    • A. Credential stuffing using passwords obtained from another service
    • B. MFA prompt bombing intended to induce approval through fatigue
    • C. Pass-the-hash authentication using a captured password hash
    • D. Session fixation using an identifier selected before authentication
    Show answer

    Answer: B. MFA prompt bombing intended to induce approval through fatigue

    MFA prompt bombing intended to induce approval through fatigue - The repeated unsolicited MFA push notifications are consistent with an attacker trying to wear down an employee until one request is approved. - The employee’s eventual approval followed by a successful remote login from an unfamiliar device fits that sequence. Credential stuffing using passwords obtained from another service - Credential stuffing tests reused username-password combinations against a login service. - It does not most directly explain why the employee received repeated MFA pushes and then approved one. Pass-the-hash authentication using a captured password hash - Pass-the-hash uses a captured password hash to authenticate without obtaining the plaintext password. - The decisive event in these logs is the employee’s approval of an MFA notification, not evidence of a captured hash. Session fixation using an identifier selected before authentication - Session fixation relies on a predetermined session identifier that remains in use after authentication. - The logs describe repeated MFA requests and an approved push, not a session identifier selected before login.

  5. 5. Developers accidentally committed database passwords to a private source-code repository on three occasions. The passwords were removed after security personnel detected them during monthly reviews. Which control would most directly prevent or promptly block recurrence before the code is accepted into the repository?

    • A. Increasing the frequency of database backups
    • B. Installing a web application firewall before production
    • C. Implementing pre-commit secret scanning and retrieving credentials from a managed vault
    • D. Encrypting the development workstations' storage drives
    Show answer

    Answer: C. Implementing pre-commit secret scanning and retrieving credentials from a managed vault

    Implementing pre-commit secret scanning and retrieving credentials from a managed vault - Pre-commit secret scanning can detect and block database passwords before code is accepted into the private repository, rather than relying on monthly reviews. - A managed vault lets developers retrieve credentials without embedding them in source code, addressing the repeated cause of exposure. Increasing the frequency of database backups - Backups support recovery if data is lost, but they do not inspect commits or prevent passwords from entering the repository. - More frequent backups would leave the three accidental commits possible and still depend on later detection and removal. Installing a web application firewall before production - A web application firewall filters application traffic; it does not scan source code as developers commit it. - Installing one before production would not block database passwords from being accepted into the private repository. Encrypting the development workstations' storage drives - Drive encryption protects data on a lost or stolen workstation, not the contents of an authenticated developer’s commit. - Developers could still commit database passwords from encrypted workstations, leaving monthly reviews to detect them afterward.

  6. 6. Monitoring indicates that a financial-reporting server is actively communicating with an unauthorized external address. Management may pursue legal action and requires preservation of evidence concerning the intrusion. Which incident-response action would best contain the threat while maintaining the integrity of digital evidence?

    • A. Leave the server connected until legal counsel completes an investigation, and retain the existing system logs
    • B. Isolate the server, capture volatile data, create a forensic image, and document hashes and custody transfers
    • C. Reformat the server immediately, restore the latest backup, and document the applications placed back into service
    • D. Allow the system administrator to inspect and delete suspicious files, and preserve copies of the remaining directories
    Show answer

    Answer: B. Isolate the server, capture volatile data, create a forensic image, and document hashes and custody transfers

    Isolate the server, capture volatile data, create a forensic image, and document hashes and custody transfers - Isolating the server stops its active communication with the unauthorized external address without immediately erasing evidence. - Capturing volatile data before it is lost, then creating a forensic image and documenting hashes and custody transfers, preserves evidence for potential legal action. Leave the server connected until legal counsel completes an investigation, and retain the existing system logs - Leaving the server connected permits the unauthorized communication and possible compromise to continue while counsel investigates. - Existing logs alone may not capture volatile data or provide a complete, verifiable record of the server’s contents. Reformat the server immediately, restore the latest backup, and document the applications placed back into service - Reformatting destroys or overwrites evidence of the intrusion before investigators can capture it. - Restoring a backup may resume service, but documenting restored applications does not establish the integrity or custody of the original evidence. Allow the system administrator to inspect and delete suspicious files, and preserve copies of the remaining directories - Deleting suspicious files alters the evidence that may be needed to investigate the intrusion or support legal action. - Copies of the remaining directories omit deleted material and, without forensic imaging, hashes, and custody records, do not establish evidentiary integrity.

  7. 7. On April 14, 2026, North Valley Processing, Inc., a service organization that processes customer billing files, detected ransomware activity. The incident-response coordinator must determine the affected scope, preserve evidence, contain the incident, recover processing, and document whether contractual notification is required. Use Exhibits 1 through 4 to complete the incident-response workpaper.

    Flashcards: Encryption fundamentals and applications

    1. 1. What does a limit check do in data validation?

      Show answer

      A limit check ensures that numeric values do not exceed predefined limits, such as verifying that age does not exceed 110 years.

    2. 2. What are key objectives of internal controls?

      Show answer

      Internal controls aim to ensure reliable financial reporting and compliance with applicable laws and regulations; they also enhance the effectiveness and efficiency of operations and safeguard assets.

    3. 3. What purpose does a validity check serve?

      Show answer

      It confirms that data entries match predefined set criteria. For example, it ensures that numeric fields contain no alphabetic characters.

    Everything you need for CPA prep

    Get full Oncourse access with lessons, practice questions, flashcards and AI study tools.

    GET STARTED FOR FREE
    75% OFFLimited time offer
    GET 75% OFF