B7 · Data Literacy and Visualisation

Data Privacy and Data Security

Data privacy is about who is allowed to collect, see and use information about people, and for what purpose. Data security is about the protections that stop data from being stolen, changed or lost, such as passwords, access controls, encryption and backups. Privacy decides the rules; security enforces them.

8 min Beginner Jump to the activity

What you need: Nothing. This page starts from the beginning, with no programming and no formulas.

Definition

A school puts its attendance spreadsheet on a shared drive "for convenience". It includes every student's name, address and phone number. Anyone with the link can open it. What could go wrong?

Data privacy is about who is allowed to collect, see and use information about people, and for what purpose. Data security is about the protections that stop data from being stolen, changed or lost, such as passwords, access controls, encryption and backups. Privacy decides the rules; security enforces them.

In simple words

Think of a diary. Privacy is deciding who is allowed to read it: you, maybe your best friend, nobody else. Security is the lock on the diary and where you hide the key. A diary with a rule "nobody reads this" but no lock is not very safe; a locked diary whose key is shared with everyone is not private.

Why it matters

Every data project, from a class survey to an AI system, handles information about real people. Leaks can lead to fraud, harassment, discrimination and loss of trust. India's Digital Personal Data Protection Act now sets legal duties for anyone handling personal data.

Key terms

Personal data
Any information that identifies a person or can be linked to them.
Data minimisation
Collecting only the data you actually need.
Anonymisation
Removing or changing details so that data can no longer be linked to a person.
Access control
Rules about who can open, change or share data.
Encryption
Scrambling data so that only someone with the right key can read it.
Data breach
When data is accessed or leaked without permission.

Explained in detail

Privacy: the rules

Good privacy starts before any data is collected. Ask: what is the purpose, and what is the smallest amount of data that serves it? A class survey about favourite sports does not need names, addresses or phone numbers. People should be told clearly what will be collected and why, and asked for consent. Data should be used only for the purpose people agreed to, kept only as long as needed, and deleted afterwards. India's Digital Personal Data Protection Act of 2023 turns many of these ideas into legal duties, including special care and parental consent for the data of children.

Security: the locks

ProtectionWhat it does
Strong passwords and two-step verificationStops strangers logging in
Access controlOnly the people who need the data can open it
EncryptionStolen data is unreadable without the key
UpdatesFix weaknesses attackers could use
BackupsData can be restored if lost or locked by ransomware
Deleting old dataData that no longer exists cannot leak

Anonymising is harder than it looks

Removing names is a start, but people can often be re-identified by combining other details. In a small school, "girl, 14, plays the violin, lives near the temple" may point to exactly one person. Researchers have shown that a handful of details such as birth date, gender and pin code can identify a large share of people in a population. Good anonymisation also groups details, for example age ranges instead of exact ages and districts instead of addresses, and is careful about publishing small groups.

Back to the shared spreadsheet

The school at the top of the page broke several rules at once. It kept more data than needed for attendance, made it open to anyone with the link and probably never told parents it would be shared this way. A stranger could use the addresses and phone numbers to target children, or a scammer could pretend to be the school. The fix is simple: keep only what is needed, restrict access to named staff, turn off open links and delete old copies. Most data harm comes not from clever hackers but from careless everyday choices like this.

How it works

  1. Decide the purpose and collect only what it needs.
  2. Tell people what you collect and why, and ask for consent.
  3. Remove or group identifying details where possible.
  4. Lock it: strong passwords, limited access, no open links.
  5. Delete it when the purpose is finished.

Try it yourself

Fixing the open spreadsheet

A teacher discovers the attendance file is open to anyone with the link.

Privacy or security tool?

Match each practice to what it achieves.

  • Collect only what you need
  • Encryption
  • Access control
  • Backups
  • Asking for consent

Common mistakes

  • Collecting everything "just in case".
  • Thinking that removing names makes data anonymous.
  • Sharing files through open links that anyone can forward.

Check yourself

Question 1

1. What is the difference between privacy and security?

Question 2

2. A class survey on favourite sports asks for home addresses. Which principle is broken?

Question 3

3. Why might data with names removed still identify people?

Summary

  • Privacy is the rules about who may use data; security is the protection that enforces them.
  • Collect little, get consent, restrict access, encrypt and delete when done.
  • Removing names is not enough; most harm comes from careless sharing.

Finished reading?

Sources: Digital Personal Data Protection Act, 2023 (MeitY) · CERT-In: Indian Computer Emergency Response Team