Study guide · Data Security and Cryptography
Data security and cryptography: classifying, encrypting and securely deleting data
This page shows how to classify data by its protection needs and protect it in every state. You will learn about masking and tokenization, secure retention and secure deletion. After that, it covers the tools of cryptography: symmetric and asymmetric encryption, hashes, signatures, certificates and TLS. Finally, you find out why quantum computers make a move to new algorithms necessary. The running example is once again the small online shop and its customer data.
Classifying and labeling data
Not all data is equally valuable. Classification serves to define the protection needs. Data is placed in levels such as "public", "internal", "confidential" or "strictly confidential". Each level comes with rules for storage, sharing, encryption and destruction. That way, not everything is protected the same, but appropriately.
Who sets the level? Typically the data owner. The owner knows the value and sensitivity of the data and carries the responsibility. The owner decides on the classification and the access rules. Administrators implement these requirements technically.
Labeling is the visible or technical marking of the protection level. It can be a "Confidential" notice in the document or a tag in the metadata. A label tells people and systems how to handle the information. Without labeling, a classification often has no effect.
Three states of data
Data must be protected in three states: at rest, in transit and in use. Each state has its own measures. A gap in one state undermines the protection of the others.
- Data at rest sits on hard drives, in databases or in backups. It is protected with disk encryption, for example.
- Data in transit is protected with encrypted protocols. These include TLS for web connections, SSH for remote access and a VPN between sites. Disk encryption does not help here, and a lock on the server is a physical measure.
- Data in use sits decrypted in memory. This state is protected by confidential computing. The processor provides isolated areas for it, called trusted execution environments. Even administrators or the cloud provider cannot look into the memory there.
Masking, tokenization and test data
Often someone only needs part of the data. Data masking means partially hiding real values. Customer service might only see the last four digits of a card number, with the rest replaced by asterisks.
There are two forms. Static masking creates permanently altered copies. The copy no longer contains any real values. Dynamic masking hides values when they are displayed. The data in the database stays unchanged, and depending on the role, people only see parts of it.
With tokenization, a sensitive value is replaced by a random substitute, the token. Only a protected system knows the mapping. The difference from encryption: a token cannot be mathematically reversed, not even with a key. Systems that only process tokens contain no real data. For card payments, this reduces the audit scope under the PCI DSS standard.