LearnViz CompSci
Home / Learn / Security & Cryptography

πŸ” Security & Cryptography

Protecting systems and secrets. 51 topics, from beginner to advanced.

Security and cryptography protect data and systems from attackers. This area covers encryption, hashing, digital signatures, authentication and common vulnerabilities such as injection and weak passwords. Each topic explains both how a protection works and how it is typically attacked, which is the basis of defensive engineering.

Who this area is for

Developers who handle user data, students of cybersecurity, and anyone responsible for keeping a system or its secrets safe.

Real-world use cases

Topics in Security & Cryptography

Beginner (17)

Intermediate (17)

Advanced (17)

How to study Security & Cryptography

Learn each attack by reading how it works and then by reproducing it on a practice system you own, such as a deliberately vulnerable training app. Then write the fix and confirm that the attack no longer works. Only test systems you have permission to test.

Frequently asked questions

Should I write my own encryption?
No. Use vetted libraries and standard protocols such as TLS and AES-GCM. Custom cryptography is very easy to get subtly wrong.
What is the difference between encryption and hashing?
Encryption is reversible with the right key, so it protects data in transit or at rest. Hashing is one-way and is used to verify data or store passwords.
How should passwords be stored?
Store only a salted hash produced by a slow, purpose-built algorithm such as bcrypt, scrypt or Argon2. Never store passwords in plain text.
Is security something I can add at the end of a project?
Not reliably. Security depends on design choices such as authentication, input handling and secret storage. Adding it late usually means rewriting those parts.
Should I roll my own encryption?
No. Use well-reviewed libraries and standard protocols. Subtle mistakes in home-made cryptography are easy to make and hard to notice.

Open the interactive Security & Cryptography area Take the Security & Cryptography quiz

Other areas