Cyberlium

Advanced › Module 2 › Lesson 4

BeginnerModule 2Lesson 4/5

Lab — Primitives

Pack symmetric, asymmetric, and hash/MAC literacy — primitives file from $CRYPTO_LAB only.

25 min+40 XP3 quiz
Module progress4 of 5

Visual · t28_primitives_lab

Lab: primitives pack. $CRYPTO_LAB only. Original Cyberlium.

Opening

Primitives pack ties symmetric to asymmetric to integrity — paperwork before attack-classes module.

Lessons 2-1–2-3 named symmetric algorithms, asymmetric roles, and hashes/MACs. This lab merges symmetric card, asymmetric card, and hash/MAC matrix into one $CRYPTO_LAB primitives artifact. No production key or ciphertext work — classification paperwork only. Next: Quiz — Primitives Literacy.

1. Lab contract: primitives pack

Create $HOME/cyberlium-lab/t28-m02-l04-primitives-lab.txt merging symmetric, asymmetric, and hash/MAC sections with $CRYPTO_LAB demo key source and M1 ethics cross-reference.

Optional: paste redacted openssl dgst output for one string YOU wrote — no production secrets.

Command guide

Try these commands — Lab contract: primitives pack

═══ TOOLS & WEBSITES ═══ Browse / read these (authorized learning only — stay in YOUR lab / program scope)

Optional command

OpenSSL dgst — https://www.openssl.org/docs/manmaster/man1/openssl-dgst.html

NIST SP 800-57 — https://csrc.nist.gov/publications/detail/sp/800-57-part-1/rev-5/final Let's Encrypt — https://letsencrypt.org/docs/

═══ INSTALL ═══

Linux (Debian/Ubuntu):

Command — copy this

sudo apt install openssl

macOS: Built-in

Windows:

Command — copy this

choco install openssl

═══ LINUX / macOS ═══

Command — copy this

export CRYPTO_LAB=${CRYPTO_LAB:-$HOME/cyberlium-lab/t28-crypto}
sha256sum "$CRYPTO_LAB/data/demo.txt" "$CRYPTO_LAB/data/demo.dec"
openssl dgst -sha256 "$CRYPTO_LAB/data/demo.txt"
grep NEVER "$CRYPTO_LAB/notes/no-live-attacks.txt"

═══ WINDOWS ═══

YOUR lab Windows VM — hash YOUR demo file

Command — copy this

Get-FileHash $HOME/cyberlium-lab/t28-crypto/data/demo.txt -Algorithm SHA256
openssl dgst -sha256 $HOME/cyberlium-lab/t28-crypto/data/demo.txt

Primary tools to practice this lesson: sha256sum, openssl. Reference sites: OpenSSL dgst (https://www.openssl.org/docs/manmaster/man1/openssl-dgst.html); NIST SP 800-57 (https://csrc.nist.gov/publications/detail/sp/800-57-part-1/rev-5/final); Let's Encrypt (https://letsencrypt.org/docs/). Run every command in the box — install first, then the usage lines — only on YOUR lab / program scope.

2. Cross-check refusal boundaries

Grep pack for live private keys, production ciphertext, oracle script names — redact or delete. Primitives pack stays documentary.

Update pack if you rotate lab demo keys — note new generation date.

3. Lock the proof

chmod 600 on the pack. Quiz next — then Padding Oracle Named.

Primitives literacy feeds attack-class lessons in M3.

4. What you ship: primitives pack for $CRYPTO_LAB

Merged symmetric, asymmetric, hash sections. $CRYPTO_LAB named. NO production keys. chmod 600.

5. What you record before the next lesson

Date. Primitives pack path. $CRYPTO_LAB named. File t28-m02-l04-primitives-lab.txt chmod 600.

6. Wrong vs right: prod crypto oracles vs CTF toys

Worked failure — same MSF word, opposite target. Right never needs a café Wi-Fi or classmate laptop.

  • Wrong

    Include production TLS private key in pack. Skip hash/MAC matrix.

  • Right

    Write YOUR primitives pack for $CRYPTO_LAB. chmod 600. Next: Quiz — Primitives Literacy.

Mission: freeze YOUR primitives pack

1) Merge M2 literacy sections. 2) Confirm zero production key refs. 3) Link M1 ethics cross-ref. 4) chmod 600.

Stuck? Ask Cyberlium AI Mentor

One primitives page beats ten unauthorized key dumps.

Knowledge Check

1

APPLY: This lab requires:

Multiple choice

Knowledge Check

2

APPLY: True or False: Primitives pack should reference $CRYPTO_LAB demo key source.

True or False

Knowledge Check

3

APPLY: Primitives pack should include:

Multiple choice

← Previous

Answer all 3 knowledge checks to continue. (0/3 answered)