Unit 4: Applied Cryptography
Lesson at a glance
| Item | Detail |
| --- | --- |
| Suggested length | 4 x 60 minutes |
| Objective alignment | SY0-701 1.4 (Explain the importance of using appropriate cryptographic solutions). SY0-801 equivalent: 1.3 |
| Materials | learner.md reading, worksheet.md lab, assets/ lab files (if any), quiz.md |
| Lab boundary | Local, fictional data only; no scanning or testing of real school, home, or public systems |
CompTIA and Security+ are trademarks of CompTIA, Inc. Blackbox Intelligence Group LLC is not affiliated with or endorsed by CompTIA. Objective numbers are listed for alignment only.
Topics
- Symmetric vs asymmetric
- Hashing, salting, key stretching
- Digital signatures
- PKI
- Encryption levels and tools
- Obfuscation
- Blockchain and open public ledger
Teacher lesson
Maps to: SY0-701 1.4 (Explain the importance of using appropriate cryptographic solutions). SY0-801 equivalent: 1.3. Time: 3 class periods plus lab.
1. Symmetric vs asymmetric
- Symmetric: one shared key; fast; bulk data. AES is the NIST standard (FIPS 197) [N1]. Problem: key exchange.
- Asymmetric: public/private key pair; slower; used for key exchange and signatures (RSA, ECC). ECC gives similar strength with smaller keys.
- Key exchange: Diffie-Hellman/ECDHE lets two parties agree on a key over an untrusted network. TLS 1.3 uses ephemeral (EC)DHE, giving forward secrecy [R1].
- Key length: longer keys resist brute force; follow current NIST guidance (SP 800-57) [N2].
2. Hashing, salting, key stretching
- Hash: fixed-length one-way digest (SHA-256, FIPS 180-4 [N3]). A one-bit change produces a very different digest (avalanche).
- Salt: random per-user value added before hashing so identical passwords produce different hashes and precomputed tables fail.
- Key stretching: deliberately slow KDFs (PBKDF2, bcrypt, Argon2) multiply the attacker's cost. OWASP recommends 600,000 iterations for PBKDF2-HMAC-SHA256 [O1].
3. Digital signatures
Hash the message, sign the hash with the private key; anyone verifies with the public key. Gives integrity, authentication, and non-repudiation.
4. PKI
- CA issues certificates; root of trust is the root CA cert in the trust store.
- CSR: request containing your public key and identity details.
- Wildcard (
*.example.org) vs SAN (lists multiple names). - Self-signed: not chained to a trusted CA; fine for labs, not for public sites.
- Revocation: CRL (list) and OCSP (online query; OCSP stapling lets the server attach the response).
- Key escrow: a third party holds keys for recovery.
5. Encryption levels and tools
Full-disk, partition, volume, file, database, record; transport (TLS, IPsec). Tools: TPM (chip on the board storing keys), HSM (dedicated hardened key device), KMS, secure enclave.
6. Obfuscation
Steganography (hide data in other data), tokenization (replace data with a token mapped in a vault), data masking (show ***-**-1234).
7. Blockchain and open public ledger
A distributed, append-only ledger where each block contains the hash of the previous block, making tampering evident.
Sources
- [C1] CompTIA SY0-701 1.4; SY0-801 1.3.
- [N1] NIST FIPS 197, AES. https://csrc.nist.gov/pubs/fips/197/final
- [N2] NIST SP 800-57 Part 1 Rev. 5. https://csrc.nist.gov/pubs/sp/800/57/pt1/r5/final
- [N3] NIST FIPS 180-4, Secure Hash Standard. https://csrc.nist.gov/pubs/fips/180-4/upd1/final
- [R1] RFC 8446, TLS 1.3. https://www.rfc-editor.org/rfc/rfc8446
- [O1] OWASP Password Storage Cheat Sheet. https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html