What is Encryption?
Scrambling data with an algorithm and a key so only someone with the right key can read it. Encryption protects data at rest (disks, databases) and in transit (TLS), but only as well as the keys are protected.
Encryption serves confidentiality: a stolen encrypted laptop or intercepted message is useless without the key. Data at rest is protected by full-disk, database or file encryption; data in transit by TLS, VPNs and SSH. It does not stop an attacker who is already logged in as a user who can read the data, and it does not prove data is unaltered unless combined with integrity protection. Key management (generation, storage, rotation, access) is where most programmes succeed or fail. Regulations often treat properly encrypted lost data more leniently in breach notification, which is a strong practical reason to encrypt laptops and backups.
Source: NIST CSRC Glossary (NIST SP 800-133 Rev. 2).
Practice it in a lab
Free, hands-on labs that teach Encryption. 43 more labs also cover it.
- Encoding is not encryption: decode Base64, hex, and URL encoding (beginner, ~25 min)
- Turn on full-disk encryption (and save your recovery key) (beginner, ~30 min)
- Audit service accounts: SPNs, password age and encryption types, then migrate one to a gMSA (intermediate, ~60 min)
- Characterize a ransomware sample from its artifacts: encryption, extensions, and the ransom note (intermediate, ~50 min)
- Envelope encryption for free: run your own KMS with Vault's transit engine (intermediate, ~45 min)
- See how encryption fails: ECB leaks, IV reuse, and why you need authenticated encryption (intermediate, ~45 min)
- Encrypt data with AWS KMS envelope encryption (advanced, ~75 min)
- Encrypt Kubernetes Secrets at rest, part 3: move to a KMS provider (envelope encryption) (advanced, ~60 min)
Related terms
Related
- Encoding is not encryption: decode Base64, hex, and URL encoding
- Turn on full-disk encryption (and save your recovery key)
- Audit service accounts: SPNs, password age and encryption types, then migrate one to a gMSA
- Characterize a ransomware sample from its artifacts: encryption, extensions, and the ransom note
- Envelope encryption for free: run your own KMS with Vault's transit engine
- See how encryption fails: ECB leaks, IV reuse, and why you need authenticated encryption
- Encrypt data with AWS KMS envelope encryption
- Encrypt Kubernetes Secrets at rest, part 3: move to a KMS provider (envelope encryption)
- PowerShell
- Threat modeling
- DCSync
- Kerberoasting
- Cybersecurity glossary
- Free cyber labs