When we teach computer science, we often focus on building things: apps, games, websites, robots. Cybersecurity asks a different question. How do we protect what we build and the people who use it?

From ransomware attacks on hospitals to phishing scams targeting everyday users, cybersecurity is no longer optional. It is foundational digital literacy. If we truly believe in computer science for all, then security must be part of that foundation.

In this post, I outline the learning goals of a cybersecurity unit, the steps I take when teaching it, the benefits of including it in a CS curriculum, the barriers we should anticipate, and how cybersecurity connects to broader justice-centered and interdisciplinary conversations.


Learning Goals: What Are We Trying to Teach?

A strong cybersecurity unit should help students understand four major areas.

First, personal digital responsibility. Students should know how to create strong passwords, why password length matters more than simple symbol substitution, how multi-factor authentication works, and how to identify phishing attempts. They should be able to evaluate URLs carefully and recognize deceptive domain structures.

Second, core security concepts. This includes the CIA triad: confidentiality, integrity, and availability. Students learn about malware types such as viruses, worms, Trojan horses, and botnets. They examine distributed denial-of-service attacks and discuss how and why systems fail.

Third, cryptography foundations. Students explore symmetric and asymmetric encryption, public and private keys, hashing, salting, and why one-way functions are powerful. They connect these ideas to HTTPS and Transport Layer Security.

Fourth, ethical and justice dimensions. Students consider the difference between white-hat and black-hat hackers, the role of surveillance, and who is most affected when systems fail. As discussed in Introduction to the Special Section on Justice-Centered Computing Education, computing education must grapple with power, history, and systemic impact. Cybersecurity provides a natural entry point into those conversations.


My Step-by-Step Teaching Approach

I begin with the real world.

Students examine current events involving data breaches, ransomware attacks, and identity theft. We discuss what went wrong, who was harmed, and whether the incident could have been prevented. This immediately reframes cybersecurity as a human issue, not just a technical one.

Next, students conduct a personal security audit. They reflect on password length, password reuse, and whether they use multi-factor authentication. We examine phishing examples and compare legitimate domains with deceptive ones. Students quickly realize how easy it is to be misled.

After that, we move into classical encryption. Students encrypt and decrypt messages using the Caesar cipher, substitution ciphers, and the Vigenère cipher. They discover how patterns can be exploited and why key length matters. This historical progression makes modern encryption easier to understand.

From there, we explore hashing and password storage. Students compare plaintext passwords with hashed values and see how even small changes produce dramatically different outputs. We discuss why simple hash functions such as SHA-256 are not ideal for password storage and why algorithms like bcrypt are preferred. Salting becomes a concrete solution to rainbow table attacks rather than an abstract concept.

We then simulate public key encryption. Using physical analogies such as padlocks, students model symmetric and asymmetric systems. They understand why sharing a secret key across long distances is risky and how public key systems solve that problem. This leads naturally into discussions of Diffie-Hellman, RSA, digital certificates, and TLS.

Finally, we connect everything back to larger questions. Who controls encryption standards? Why do governments debate encryption policy? How does surveillance intersect with civil liberties? Justice-centered computing emphasizes examining systemic implications. Cybersecurity gives students the vocabulary to participate in those debates.


Benefits of Teaching Cybersecurity

Cybersecurity builds critical thinkers. Students learn to question links, attachments, data requests, and authority.

It builds digital agency. Students move from passive users to informed participants who understand how systems protect or fail them.

It strengthens mathematical reasoning. Concepts such as modular arithmetic, exponential growth, and computational hardness become meaningful when tied to encryption.

It is immediately relevant. Every student has online accounts and a digital identity. Security education protects all of it.

It deepens ethical awareness. Students see that technology is never neutral. Security failures often disproportionately harm vulnerable communities. Justice-centered computing reminds us that participation alone is not enough. We must also examine how systems distribute risk and protection.


Barriers We Should Anticipate

One barrier is the perception that encryption is too advanced. Words like RSA and Diffie-Hellman can intimidate students. The solution is to start with analogies, physical simulations, and classical ciphers before introducing formal terminology.

Another barrier is fear-based framing. If cybersecurity is presented only as a series of threats, students may feel overwhelmed. Instead, the emphasis should be on empowerment. Students leave knowing what they can control.

Accessibility is another concern. Cryptographic ideas can be cognitively demanding. Applying principles from Universal Design for Learning, as described in Increasing Access, Participation, and Inclusion within K–12 CS Education through Universal Design for Learning and High Leverage Practices, helps ensure instruction is flexible, multimodal, and inclusive. Security education should be accessible to all learners, not reserved for a technical elite.


Interdisciplinary Connections

Cybersecurity does not belong solely in computer science.

In mathematics, students explore modular arithmetic, prime factorization, and exponential functions.

In history, they study Alan Turing and the Enigma machine.

In civics, they debate privacy versus national security.

In psychology, they examine why phishing and social engineering are effective.

In social justice discussions, they analyze how surveillance and data collection can disproportionately affect marginalized communities.

Justice-centered computing education encourages us to situate technical knowledge within larger historical and political contexts. Cybersecurity offers a powerful opportunity to do exactly that.


What Matters Most

Cybersecurity is often described as a cat-and-mouse game between attackers and defenders. In the classroom, however, the goal is not to train professional penetration testers.

The goal is to develop digitally literate citizens, ethical technologists, critical thinkers, and empowered users.

If computer science teaches students how to build, cybersecurity teaches them how to protect and question.

In today’s world, both are essential.


Kevin Hare

Kevin Hare teaches computer science and has more than 20-years experience teaching at the high school level and has offered such courses as AP Computer Science A, AP Computer Science Principles, Web Design, Mobile App Development, Video Design, and TV Broadcasting. He spent the bulk of his career at Gonzaga College High School in Washington, DC. In his free time, he co-founded the technology company BoxJump. He holds a bachelor’s degree in computer science, a master’s degree in secondary education, and a master’s degree in computer science from Georgia Tech where he was a research assistant in the Design and Intelligence Lab working with the Errol project. He is currently pursuing an Ed.D. in Curriculum and Instruction with an emphasis in computer science from the University of Florida. He is also a Certified Apple Learning Coach.

0 Comments

Leave a Reply