Find a course
Age level: University students (18–25)IntermediateSafety & Security

Cryptography Basics

Encryption, hashing, public keys and HTTPS explained with real numbers

⏱ 2 h 45 min5 modules · 11 lessons66 practice questionsFinal exam: 20 questions
Included with this course

Your certificate for this course

Finish the 11 lessons (about 2 h 45 min) and pass the 20-question final exam. Your Certificate of Completion is ready the moment you pass.

  • Your name and this course titlePrinted in classic diploma typography
  • Grade: Pass, Merit or DistinctionOn the gold seal, with your final score
  • Unique ID and QR codeAnyone can verify it in seconds
  • Score report PDFModule-by-module results and exam score
  1. Lessons11 lessons
  2. Final exam20 questions · 70% to pass
  3. CertificatePDF + score report

What you will learn

  • Distinguish confidentiality, integrity, authenticity and non-repudiation, and encoding from encryption and hashing
  • Break classical ciphers with brute force and frequency analysis and explain the one-time pad's conditions
  • Calculate brute-force effort from key length and choose appropriate symmetric algorithms and modes
  • Explain hash function properties, the birthday bound and why MD5 and SHA-1 are deprecated
  • Describe secure password storage with salts and slow hashes, and use HMAC for message authentication
  • Work through Diffie-Hellman and toy RSA by hand and explain hybrid encryption
  • Explain digital signatures, certificates, the chain of trust and a TLS 1.3 handshake
  • Recognize common cryptographic mistakes and the impact of quantum computing

About this course

Every secure website, messaging app, card payment and software update depends on cryptography. This free course explains how it works, from the ciphers of ancient Rome to the post-quantum algorithms being deployed now, using small worked examples instead of heavy math.

You'll begin with the goals of cryptography (confidentiality, integrity, authenticity and non-repudiation), the difference between encoding, encryption and hashing, and Kerckhoffs's principle. Then you'll encrypt with classical ciphers and break them with brute force and frequency analysis, and see why the one-time pad is perfect but impractical.

Next comes symmetric encryption: why key length defeats brute force, how AES and ChaCha20 work, why ECB mode leaks patterns, and why authenticated encryption such as AES-GCM is today's default. In the hashing module, you'll learn what makes SHA-256 secure, why MD5 and SHA-1 are broken, how the birthday bound works, how to store passwords with salts and Argon2 or bcrypt, and how HMAC protects messages.

The public-key module walks through Diffie-Hellman key exchange and a tiny RSA key by hand, then shows how digital signatures and certificate authorities let your browser trust a site it has never visited. Finally, you'll follow a TLS 1.3 handshake, compare transport and end-to-end encryption, learn the classic implementation mistakes, and see what quantum computers mean for today's algorithms.

The course is for computer science and IT students, developers and anyone heading into cybersecurity. Comfort with basic algebra helps; modular arithmetic is explained from scratch. Each lesson mixes explanation with calculators, scenarios and practice questions, and passing the final exam earns a free certificate of completion.

Syllabus

  1. Foundations of Cryptography

    Learn what cryptography protects, the vocabulary and threat models it uses, and why the classical ciphers of history all fell.

    1. What Cryptography Protects14 min
    2. Classical Ciphers and How They Broke15 min
  2. Symmetric Encryption

    Understand modern shared-key ciphers, how key length defeats brute force, and how modes of operation and authenticated encryption are used correctly.

    1. Keys, Brute Force and AES15 min
    2. Modes of Operation and Authenticated Encryption15 min
  3. Hashing, Passwords and Integrity

    Learn what makes a cryptographic hash secure, how to store passwords properly, and how MACs prove a message hasn't been altered.

    1. Cryptographic Hash Functions15 min
    2. Password Storage and Message Authentication15 min
  4. Public-Key Cryptography

    Solve the key distribution problem with Diffie-Hellman, see how RSA works with small numbers, and learn how signatures and certificates build trust.

    1. The Key Distribution Problem and Diffie-Hellman15 min
    2. RSA and Asymmetric Encryption16 min
    3. Digital Signatures and Certificates15 min
  5. Cryptography in Practice

    See how HTTPS and end-to-end encrypted messaging combine every tool in the course, then learn the classic mistakes and what quantum computing changes.

    1. HTTPS, TLS and End-to-End Encryption15 min
    2. Common Mistakes, Randomness and Post-Quantum Cryptography15 min
  6. Final exam and certificate

    20 questions drawn from a pool of 32. Score 70% or more to pass; retakes get a fresh set of questions.

Try a sample question

According to Kerckhoffs's principle, a well-designed cipher remains secure even if attackers know exactly how the algorithm works.

True or false?

Show the answer

Answer: True

The principle says only the key should need to be secret. Algorithms inevitably leak, and public algorithms benefit from years of expert analysis. A cipher that becomes insecure once its design is known was never strong in the first place.

Plaintext
The original, readable data before encryption.
Ciphertext
The scrambled output of encryption, unreadable without the key.
Key
A secret value that controls how a cipher transforms data.
Kerckhoffs's principle
A cryptosystem should stay secure even if everything except the key is public.
Encoding
Changing the format of data, such as Base64, with no key and no security.
Frequency analysis
Breaking substitution ciphers by matching letter frequencies to those of the language.

Frequently asked questions

Do I need advanced math for this course?

No. You need basic algebra and exponents. The only special tool is modular arithmetic, remainders after division, which is explained from scratch with small numbers you can work by hand.

What's the difference between encryption and hashing?

Encryption is reversible with the right key and protects confidentiality. Hashing is a one-way fingerprint with no key and no way to reverse it; it's used to detect changes, store passwords safely and support signatures.

Is AES-128 still secure?

Yes. A 128-bit key has about 3.4 × 1038 possibilities, far beyond any brute-force search with classical computers. AES-256 is often chosen for a larger margin, including against future quantum attacks.

Does the padlock in my browser mean a site is safe?

It means your connection is encrypted and authenticated to the domain shown in the address bar. It doesn't mean the site is honest; phishing sites often have valid certificates for look-alike domains, so always check the domain name.

Will quantum computers break all encryption?

A large quantum computer would break RSA and elliptic curve cryptography, but symmetric ciphers like AES-256 and modern hashes remain strong. New post-quantum standards such as ML-KEM and ML-DSA were published by NIST in 2024 and are already being deployed.

Can I use what I learn here to build my own encryption system?

Use it to understand and evaluate systems, not to invent your own. Real security comes from well-reviewed protocols and libraries with safe defaults; homemade schemes almost always contain subtle flaws.

Is the certificate an accredited qualification?

No. It's a certificate of completion showing you finished the course and passed the final exam. It shows initiative and knowledge but isn't an academic or professional credential.

Sources and further reading

Related courses

University studentsIntermediate

Introduction to Ethical Hacking

Penetration testing methods, common vulnerabilities and the rules that keep it legal

Safety & Security
2 h 40 min10 lessonsCertificate
University studentsBeginner

Cybersecurity Fundamentals

Threats, passwords, networks, encryption and incident response from the ground up

Safety & Security
2 h 35 min12 lessonsCertificate
Adults & professionalsBeginner

Cybersecurity Awareness

Spot phishing, secure your accounts and devices, and protect data at work and home

Safety & Security
2 h 10 min12 lessonsCertificate
Adults & professionalsBeginner

Passwords and Account Security

Strong passphrases, password managers, two-factor authentication and passkeys

Safety & Security
2 h 10 min11 lessonsCertificate
TeensBeginner

Cybersecurity for Teens

Think like a hacker, lock down your accounts and beat the scams aimed at you

Safety & Security
1 h 55 min8 lessonsCertificate
Adults & professionalsBeginner

Online Privacy

Control who tracks you, what they collect and how your accounts stay yours

Safety & Security
2 h 10 min11 lessonsCertificate