🔒 Security · Security Fundamentals
Encryption
Protect data using cryptography in transit and, where required, at rest.
Sensitive data should not travel as readable plain text.
HTTPS protects data between browser and server.
💡 Like sending a letter in a locked box instead of a postcard: anyone handling it along the way cannot read what's inside.
💡 Why it matters
Data moves across networks and sits on disks that others may reach. Without encryption, a wiretap or a stolen drive hands over everything in readable form. Encryption keeps intercepted or stolen data useless to whoever grabs it.
🛠️ How to achieve it
⚠️ Signs of trouble
- •Login or sensitive pages are served over plain HTTP.
- •Certificates are expired or mismatched.
- •Sensitive fields sit in the database as readable text.
- •A home-grown cipher is used instead of a standard one.
🎯 Quick check
Score: 0/3Three questions to test the idea.
1. What does 'encryption in transit' protect against?
Answer: Someone reading data as it crosses the network
In-transit encryption, such as HTTPS, keeps data unreadable to anyone intercepting it on the network.
2. Why avoid writing your own encryption algorithm?
Answer: Home-grown ciphers are usually weak and easy to break
Proven, peer-reviewed cryptography is far safer than a custom scheme that has never been tested by experts.
3. Where should encryption keys be kept?
Answer: In a key manager, separate from the data they unlock
Keys stored with the data give an attacker both at once; a separate key manager keeps them apart.
