Level 6 · Cloud Computing, DevOps and Cybersecurity · Course 6.4 Cybersecurity
Module 77: Encryption and Secrets
Goal: understand what encryption and hashing really do, use them in the right places, and look after the keys and secrets that everything else depends on: where they live, who can see them, and how to change them.
You'll need: your CRM, its env files and deploy set-up (Modules 69 to 71), and Node.js for small experiments.
Lessons
- 1Encryption in transit and at rest15–25 minutes✓
- 2Hashing vs encryption15–25 minutes✓
- 3Keys15–25 minutes✓
- 4Secrets15–25 minutes✓
- 5Rotation15–25 minutes✓
🛠️Module practice: Project D, part 5, encryption and secrets
- A map of where data is encrypted in transit and at rest, with encrypted off-site backups and an encrypted laptop.
- Correct use of hashing (Argon2id or bcrypt for passwords, hashed API keys) and no home-made cryptography.
- A key and secret inventory: location, access, recovery copy, last rotation.
- A clean gitleaks scan (with any leaked secrets rotated),
.gitignoreand push protection checked. - One timed, zero-downtime rotation and its runbook.
✅Module check
Explain in a few sentences, in your own words:
How should an application protect data with encryption, and how should its secrets be managed?
Show a good answer
A good answer mentions: encryption in transit (TLS on every hop) and at rest (disks, backups, storage, sensitive fields), knowing at-rest encryption doesn't stop someone using the live system; hashing for values only checked, with slow salted password hashes, encryption for values needed back, and no home-made cryptography; keys generated securely, kept apart from data in a KMS where possible, with recovery copies; secrets never in Git, images, frontend or logs, kept in env files with tight permissions, CI secrets or a secrets manager, guarded by scanning; leaked secrets revoked at once; and planned, zero-downtime rotation, preferring short-lived credentials.
📝Module quiz
10 questions · 10 marks each · 100 marks in all · pass mark 70% · retry as often as you like ·
