Encryption, Hashing, Masking, Anonymization, Tokenization, DLP, Keys
CCSP · Lesson 5 of 19 · 38:45
YouTube loads only after you press play. This chapter opens at its timestamp in the full course. Watch on YouTube ↗
Learning with these videos? Subscribe for new courses and exam-style questions.
Subscribe on YouTube (opens in a new tab)In this lesson
Prepare for the ISC2 CCSP exam, on the current exam outline. In this lesson: encryption and key management, hashing, data masking, anonymization, tokenization, data loss prevention, and keys, secrets, and certificates. Includes three original practice questions, with Moonvale Learning, a fictional online learning platform moving to the cloud, as the example.
Study notes
The text of this lesson, to read at your own pace. Information as of November 2026.
Card numbers and learner names
Moonvale handles card numbers for subscriptions, and learner names in every quiz result. Developers want a copy of production data to test new features, and analysts want learning statistics. Each need calls for a different data security technology.
Encryption in the cloud
Encryption protects data at rest in storage, in transit on the network with TLS, and in use with confidential computing. Symmetric encryption, like AES, is fast and protects bulk data, while asymmetric encryption, with a public and a private key, protects key exchange and signatures. Envelope encryption protects data with a data key, and protects that data key with a master key kept in a key management service. And whoever holds the master key decides who can really decrypt the data.
Hashing
Hashing turns data of any size into a fixed-length value, and it cannot be reversed. If one bit changes, the hash changes completely, so hashes prove integrity: the file you received is the file that was sent. A hash signed with a private key becomes a digital signature, which also gives non-repudiation: the signer cannot deny having signed. And passwords are stored as hashes with a salt, never encrypted, so even administrators cannot recover them.
Masking and anonymization
Data obfuscation hides real values while keeping data useful. Masking replaces values with realistic but fake ones, or hides part of them, like showing only the last four digits of a card. Static masking creates a masked copy, for example for test environments, while dynamic masking hides values on the fly, depending on who asks. Anonymization removes identifiers so that people can no longer be identified, while pseudonymization replaces them with codes that extra information can link back.
Tokenization
Tokenization replaces a sensitive value, like a card number, with a random token that has no mathematical link to it. The real value sits in a separate, protected token vault, which only a few systems can reach. Systems that only hold tokens leave the scope of strict rules, such as the card industry standard, PCI DSS. Unlike encryption, a token cannot be reversed with a key: only the vault can map it back.
Data loss prevention
Data loss prevention, or DLP, finds sensitive data and stops it from leaving where it should not. It watches data at rest in storage, data in motion on the network, and data in use on endpoints. It depends on discovery and classification, because it must recognize a card number or a learner profile to protect it. In the cloud, DLP runs inside the provider's services, in a cloud access security broker, or at email and web gateways.
Keys, secrets, and certificates
Keys, secrets, and certificates each need a managed lifecycle: generation, storage, distribution, rotation, revocation, and destruction. A key management service stores keys and logs their use, while a secrets manager stores passwords, tokens, and connection strings for applications. Certificates prove the identity of servers and services, and expired certificates are a common cause of outages. So keep an inventory of them, renew them automatically, and raise alerts before they expire.
Recap
Let's recap. Encryption protects data at rest, in transit, and in use, and whoever holds the master key controls the data. Hashing proves integrity, and a signed hash adds non-repudiation. Masking hides values, static for test copies and dynamic on the fly, while anonymization removes identifiers for good. Tokenization swaps sensitive values for tokens and shrinks the PCI DSS scope, while DLP stops sensitive data from leaving. And keys, secrets, and certificates each need a managed, monitored lifecycle.
Quick checks for this lesson
The 3 questions of this lesson, as plain text. The button above runs them with shuffled choices and the reason behind every choice.
Moonvale publishes the hash of each course package next to its download link. What does this let learners check?
- That the package is confidential
- That the package was not altered
- Who downloaded the package
- That the package has no malware
Show the answer
That the package was not altered
Comparing hashes proves integrity, that the file received is the file that was published. “That the package is confidential” is wrong, because a hash does not hide anything, so it gives no confidentiality. “Who downloaded the package” is wrong, since a hash says nothing about who downloaded the file. And “That the package has no malware” is wrong, because a matching hash only proves that the file is unchanged, even if it carried malware from the start.
Developers need realistic learner data in a test environment, without exposing real learners. What is the BEST approach?
- Static masking of a production copy
- Dynamic masking in production
- A full copy of production data
- Hashing every field of the data
Show the answer
Static masking of a production copy
Static masking creates a copy with realistic but fake values, made for test environments. “Dynamic masking in production” is wrong, because dynamic masking hides values on the fly in production, and does not create a safe copy. “A full copy of production data” is wrong, since a full copy exposes real learners in a less protected environment. And “Hashing every field of the data” is wrong, because hashing every field destroys the realistic values that tests need.
Moonvale’s payment page must accept card numbers, but most internal systems should never handle them. Which technology BEST reduces PCI DSS scope?
- Hashing with a salt
- Static data masking
- Data loss prevention
- Tokenization
Show the answer
Tokenization
Systems that hold only tokens never see card numbers, so they leave the scope of PCI DSS. “Hashing with a salt” is wrong, because a hashed card number cannot be used to charge the card again, and card numbers are easy to guess from their hashes. “Static data masking” is wrong, since masking hides card numbers on screen, while the systems still process the real numbers. And “Data loss prevention” is wrong, because data loss prevention detects card numbers leaving, but does not remove them from internal systems.