Cyberlium
Cyberlium
Cyberlium on Android·Google Play Store

Learn cybersecurity with hands-on labs and AI mentor support on your phone.

Mod 5 · Les 2/5
In progress
Module 5•Lesson 2 of 5•⏱️ 15 min read•Beginner+40 XP

RSA Toy Named

RSA toy literacy uses tiny educational primes in YOUR $CRYPTO_LAB — never factor or break production RSA keys.

RSA Toy Named
00:00/03:41

Visual · t28_rsa_toy_named

RSA toy literacy. $CRYPTO_LAB only. Original Cyberlium.

p=61 q=53 teaches the math — production RSA-2048 stays off limits for factorization play.

RSA toy examples use small primes (e.g., p=61, q=53, n=3233) to show key generation, φ(n), public e, private d, encrypt/decrypt on single letters or short strings. Educational openssl genrsa demos use proper key sizes for format literacy — but Cyberlium refuses NFS/factor attacks on captured production moduli. Cyberlium practices RSA toy math on YOUR $CRYPTO_LAB worksheets and labeled crackmes — never break real TLS certificates or wallet keys. Next: openssl CLI.

1. RSA toy math (named, small numbers only)

Generate primes p, q; n=p×q; φ(n)=(p-1)(q-1); choose e coprime to φ(n); find d where e×d≡1 mod φ(n). Encrypt m: c=m^e mod n; decrypt: m=c^d mod n — on toy n only.

On $CRYPTO_LAB, compute one toy keypair on paper or script with primes under 100 — label 'EDUCATIONAL TOY ONLY.'

Command guide

Try these commands — RSA toy math (named, small numbers only)

═══ LINUX / macOS (Terminal Practice) ═══

Check system state and user context

Command — copy this

id
whoami
uname -a

Inspect network sockets listening for connections

Command — copy this

ss -tuln 2>/dev/null || netstat -tuln

Audit active processes

Command — copy this

ps aux | grep -v "\[" | head -15

═══ WINDOWS (POWERSHELL) ═══ Query user identity and system information

Command — copy this

whoami /all
Get-ComputerInfo | Select-Object CsName, OsName, OsVersion

Primary tools to practice this lesson: grep, python3. Reference sites: AES modes (https://csrc.nist.gov/publications/detail/sp/800-38a/final); OpenSSL enc (https://www.openssl.org/docs/manmaster/man1/openssl-enc.html); CWE-649 (https://cwe.mitre.org/data/definitions/649.html). Run every command in the box — install first, then the usage lines — only on YOUR lab / program scope.

2. Production RSA vs toy

Production uses 2048+ bit moduli, OAEP/PSS padding, HSM storage — factorization infeasible. Toy n breaks with grade-school math — purpose is concept literacy, not attack template for live keys.

Defenders monitor key length deprecation and weak padding — students write tickets, not factorization farms.

3. Explicit refusal boundary

Forbidden: factoring scraped production moduli, sharing private keys, running general number field sieve on stranger certs. Allowed: RSA toy card — sample p/q/n, one encrypt/decrypt step, refusal sentence for production breaks.

Ship: RSA toy card for $CRYPTO_LAB. Next: openssl CLI.

4. What you ship: RSA toy card for $CRYPTO_LAB

Toy p/q/n, one encrypt/decrypt example, EDUCATIONAL label, refusal sentence. $CRYPTO_LAB named. chmod 600.

5. What you record before the next lesson

Date. RSA toy card. $CRYPTO_LAB named. File t28-m05-l02-rsa-toy-named.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: Factor production RSA-2048 for CTF credit. Paste TLS private keys in notes.
  • Right: Write RSA toy card with small educational numbers for YOUR $CRYPTO_LAB. Next: openssl CLI.
Hands-on Exercise

Mission: compute YOUR RSA toy keypair

1) Pick toy primes p and q under 100. 2) Compute n and φ(n). 3) Encrypt/decrypt one letter mod n. 4) Label EDUCATIONAL TOY ONLY; chmod 600.

Pro Tip

Stuck? Ask Cyberlium AI Mentor

If n has more than three digits in lab, confirm it is still YOUR toy — not a scraped cert modulus.

Practice QuizQuestion 1
Multiple choice
Q1

APPLY: RSA toy on Cyberlium means:

Practice QuizQuestion 2
True or False
Q2

APPLY: True or False: Cyberlium refuses RSA factorization attacks on production keys.

Practice QuizQuestion 3
Multiple choice
Q3

APPLY: Production RSA should use:

←Previous: AES Modes Named
Answer 3 practice quiz questions to unlock XP reward. (0/3 answered)
Skip quiz & read next →