Trace SIMON32/64 key expansion, encryption, inverse and avalanche.
The focus of this experiment is to trace SIMON round rotations, AND and XOR on fixed-width words. Students then calculate selected round states and inverse recovery, and verify reference vectors and distinguish lightweight historical evaluation from deployment advice. The Concepts view explains the operation before the practical work; the Simulation view is used to examine reference and changed inputs, not to substitute for actual measurements.
Learning objectives
Trace SIMON round rotations, AND and XOR on fixed-width words.
Calculate selected round states and inverse recovery.
Verify reference vectors and distinguish lightweight historical evaluation from deployment advice.
Record the relevant inputs, intermediate states and final verification result before changing the reference configuration.
Compare the reference calculation or decision with an independent implementation or authorized observation; state any discrepancy and the applicable model boundary.
Expected learning outcomes
On completion, students can trace SIMON round rotations, AND and XOR on fixed-width words, calculate selected round states and inverse recovery, and verify reference vectors and distinguish lightweight historical evaluation from deployment advice.
Required deliverables
Submit the derivation or state trace for the named operation, the exact reference and changed configurations, the associated simulator or practical evidence, and a short validation statement addressing verify reference vectors and distinguish lightweight historical evaluation from deployment advice. Separate predicted values from observations.
Prerequisite knowledge and related learning
Review the foundational terminology in Concepts and confirm readiness using the existing setup instructions. After completion, continue to SPECK — lightweight ARX block cipher.
Environment and experimental methodology
The included teaching workstation and the listed Python/Colab or WSL implementation. Historical and small-number constructions are instructional, not deployment recommendations.
Begin with a manual prediction, record the baseline, change one independent condition at a time, and compare the resulting trace or measurements with the original prediction. Record observations and uncertainty separately from reference values. Follow the experiment’s specific procedure, safety limits, and acceptance checks.
Rotate the left word, AND and XOR the branches, mix the right word and subkey, then exchange words.
Scientific foundations and analytical reasoning
SIMON32/64 uses 16-bit words and Feistel function f(x)=(ROL1(x)&ROL8(x)) XOR ROL2(x); XOR with y and round key, then exchange.
Before operating the equipment or executing the program, derive the expected outcome using the required theoretical work in Experiment. Use the diagram to identify the variables and system boundaries.
Scientific theory · Bitwise Feistel round
SIMON32/64 uses two 16-bit words and a 64-bit key with 32 rounds. Its nonlinear function combines rotations and AND; the next left word is y XOR f(x) XOR k, and the next right word is x. A Feistel structure permits inversion using the round keys in reverse order. Rotation wraps bits within the fixed word width.
Worked example and engineering interpretation
For x=0001 hex, ROL1=0002, ROL8=0100, ROL2=0004; their AND/XOR combination is 0004. With y=0000 and k=0000 the next words are 0004 and 0001. Check against the round inspector, then compare the supplied full-round vector. This small block size is for education.
Engineering principles · additional worked teaching example
SIMON is a lightweight Feistel-family block cipher using rotations, bitwise AND and XOR; exact round/key schedule depends on variant. Feistel structure permits inverse round by reconstructing previous right from next left, then XORing round function.
From theory to experiment
Predict the reference result before operating the workbench; check the actual intermediate state, units and constraints. The existing simulation, implementation and procedure below are distinct sources of evidence.
How to investigate SIMON — lightweight Feistel block cipher
Trace SIMON32/64 key expansion, encryption, inverse and avalanche.
Analytical investigation means collecting an observation, identifying the mechanism, using a calculation or state trace to explain it, and checking your conclusion against evidence. Controlled comparison means changing one independent variable, holding the remaining relevant conditions constant, and measuring a dependent variable against a baseline. Experimental validation means comparing a predicted result to a reproducible observation or assertion; agreement inside a model does not certify hardware. Evidence-based reasoning connects a specific observation to a theoretical rule and states uncertainty, not merely an opinion. Performance characterization records a named metric and its units across conditions; sensitivity analysis changes one parameter across several values. A threat assessment links an asset, threat, consequence and evidence to a mitigation.
Experiment-specific guided practice
Objective: Trace SIMON32/64 key expansion, encryption, inverse and avalanche.
SIMON family and round equations — complete its numbered steps and record the requested evidence.
Key schedule and worked encryption — complete its numbered steps and record the requested evidence.
Avalanche, inverse and implementation cost — complete its numbered steps and record the requested evidence.
Compare observations with the reference checks and submit the required evidence.
Reference check: c69be9bb
a28aa932
32 round keys; k0 is the rightmost word.
Original plaintext recovered; distance varies by round.
Model boundary: SIMON is a lightweight block cipher family oriented toward simple hardware operations. This lab uses 32-bit blocks and a 64-bit key (four 16-bit words), z0 and 32 rounds, as in the supplied slides. The round function is f(x)=(ROL1(x) AND ROL8(x)) XOR ROL2(x); the new left is old right XOR f(left) XOR round key, and the new right is old left. The least significant master-key word is k0. Small variants are educational, not modern IoT deployment choices; raw block ciphers do not authenticate data.
Independent task and submission evidence
2. Key schedule and worked encryption — complete its numbered steps and record the requested evidence. Record the named input, prediction, actual output and one limitation; restore the original condition and repeat.
Before execution write the independent variable and its levels, dependent observation with units where applicable, baseline, controlled variables, measurement method and expected result. For a state machine use state/event/output rather than inventing a numeric metric. Record failures and repeat the baseline. A weak conclusion is “it works”; a supported conclusion names the changed setting, observed value/state, corresponding rule and one limitation.
Trial
Changed setting
Fixed settings
Predicted result
Actual observation / units
Evidence / uncertainty
A: baseline
Reference
Record
Predict
Record
Record
B: one change
Record
Same as A
Predict
Record
Record
A: repeat
Restore
Same as A
Predict
Record
Record
Completion: submit the filled table, relevant simulator screenshot or terminal/notebook output, reasoning with units/assumptions, and one limitation. Preserve the independent assessment questions; this guide does not fill their answers.
SIMON block-cipher family
SIMON uses a Feistel-like two-word structure oriented toward simple hardware logic. SIMON32/64 uses 32-bit blocks, four 16-bit master-key words and 32 rounds. This small configuration is an educational example, not a modern bulk-encryption choice.
Round datapath
For left word x, define f(x)=(ROL1(x) AND ROL8(x)) XOR ROL2(x). The new pair is (y XOR f(x) XOR k,x). Word rotations wrap bits at the fixed width. The inverse retrieves the old pair using the same round key.
Key expansion and verification
Expand four initial words with a fixed constant, a sequence bit and rotated prior words. Use the exact word-order convention of the simulator; independently check the known-answer ciphertext. Compare one-bit input and key changes separately using round-by-round Hamming distances.
Prerequisites: EC07
Algorithm structure and data flow. Use the simulation to inspect the corresponding numerical transformations.
Block and key parameter families
Block width (bits)
Supported key widths (bits)
32
64
48
72, 96
64
96, 128
96
96, 144
128
128, 192, 256
Engineering diagrams
SIMON Feistel datapath and round-key injection.
Worked engineering reasoning and boundary conditions
SIMON uses Feistel-style word operations: AND, XOR and fixed rotations. The block/key sizes and round counts depend on the named variant; word arithmetic is masked to the stated width.
Use the diagram to follow the calculation or state progression. Keep the teaching configuration separate from the independent exercise values; compare observations with the actual model and implementation.
Concept animation · operation pathway
Explore the teaching example independently of the simulator. Each step reveals an operation, data relationship or calculated state. The Simulation view has separate editable inputs.
Step 1 of 4 · Words
Words
Words
L=26, R=C1
Illustrative round
Words
L=26, R=C1
Illustrative round
F=58
XOR
Words
L=26, R=C1
Illustrative round
F=58
XOR
26 XOR 58 = 7E
Exchange
Words
L=26, R=C1
Illustrative round
F=58
XOR
26 XOR 58 = 7E
Exchange
L'=C1, R'=7E
Teaching example only; inspect live calculations or real practical evidence separately.
Interactive flashcards
Self-rated study progress is stored locally, not used for official grades.
Browse all explanationsWhich operations define SIMON?
Rotations, AND and XOR in a Feistel construction.
How many rounds in SIMON32/64?
32.
Why inspect round keys?
To verify the key schedule.
Why is a 32-bit block unsuitable for modern bulk protection?
Small blocks reach collision limits quickly.
What are SIMON32/64 word widths?
Two 16-bit data words and four 16-bit key words.
What is f(x) in SIMON?
(ROL1(x) AND ROL8(x)) XOR ROL2(x).
How is the new left word calculated?
f(x) XOR y XOR round key.
What becomes the new right word?
The old left word.
What is the model example's plaintext?
00ff00ff.
What is its master key?
0123456789abcdef.
What ciphertext does the worked example produce?
a28aa932.
What is the round key schedule's z sequence used for?
A fixed sequence of round-dependent bits.
Why inspect a one-bit plaintext change?
To quantify diffusion across rounds.
Why distinguish rotate from shift?
Rotation wraps discarded bits back into the word.
Given xᵢ=0 and yᵢ=0, what is the output of a SIMON round with key kᵢ?
f(0)=0, so \(x_{i+1}\)=\(k_{i}\) and \(y_{i+1}\)=0.
What is the effect of ROL8 on a 16-bit word 0x1234?
0x3412. Rotation wraps all bits; it is not a lossy shift.
How is the inverse Feistel step obtained?
Recover \(x_{i}\)=\(y_{i+1}\), then \(y_{i}\)=\(x_{i+1}\) XOR f(\(x_{i}\)) XOR \(k_{i}\).
Which independent values are compared in the one-bit avalanche experiment?
Encrypt the original and one-bit-modified block with the same key, then compare corresponding round states using Hamming distance.
Virtual laboratory
Change inputs independently, play or step through the calculated states, expand a workstation, and compare your observations. Browser network models do not send or capture real packets.
Independent theoretical exercises
Before the simulation or practical, solve both experiment-specific tasks. List the given inputs, show the intermediate calculation or state trace, identify the expected observation, and state a limitation. Show formulas and intermediate calculations where relevant, or draw the requested state/sequence diagram. These are independent classroom fixtures; where they differ from the reference configuration below, do not treat them as measured values. Compare your predictions with the corresponding experiment afterwards.
01 · Predict and derive using the given inputs
Using x=00ff,y=00ff,k=cdef, calculate all three rotations, AND, f(x), new left and new right in hex.
Engineering method — SIMON is a lightweight Feistel-family block cipher using rotations, bitwise AND and XOR; exact round/key schedule depends on variant. Feistel structure permits inverse round by reconstructing previous right from next left, then XORing round function. Apply this method to the assigned values independently; compare your reasoning with the relevant simulator or practical implementation.
02 · Compare or justify using evidence
Calculate 32 round-key storage bytes if stored as 16-bit words. Verify the assigned full encryption and inverse using the simulator after your derivation.
Engineering method — SIMON is a lightweight Feistel-family block cipher using rotations, bitwise AND and XOR; exact round/key schedule depends on variant. Feistel structure permits inverse round by reconstructing previous right from next left, then XORing round function. Apply this method to the assigned values independently; compare your reasoning with the relevant simulator or practical implementation.
03 · Algorithm tracing
Algorithm tracing · Independent work
For toy Feistel L=0x12,R=0x34,F(R,K)=0x56, derive next halves then invert. Why is this not a standard SIMON test vector?
Algorithm tracing — SIMON is a lightweight Feistel-family block cipher using rotations, bitwise AND and XOR; exact round/key schedule depends on variant. Feistel structure permits inverse round by reconstructing previous right from next left, then XORing round function. Apply this method to the assigned values independently; compare your reasoning with the relevant simulator or practical implementation.
Work is saved locally when browser storage is available. Export it for submission; no remote upload or automatic grade is assigned.
Expanded independent theoretical exercise bank
Progress from calculation and interpretation to diagnosis and controlled engineering design. Complete the questions without opening the simulation first; show intermediate steps.
Foundational · Apply the principle
Independent theoretical exercise · LC02-01
For an 8-bit illustration, ROTL(0x81,1) equals what?
Intermediate · Calculate or trace
Independent theoretical exercise · LC02-02
Compute 0xA6 AND 0x3C and XOR 0x12.
Intermediate · Interpret the result
Independent theoretical exercise · LC02-03
For toy Feistel L=0x26,R=0xC1,F=0x58, compute next halves.
Advanced · Analyze a condition
Independent theoretical exercise · LC02-04
Recover input halves from C1,7E with same F.
Advanced · Diagnose or compare
Independent theoretical exercise · LC02-05
Why does using an unmasked word rotation in Python break known-answer vectors?
Challenging · Engineering verification
Independent theoretical exercise · LC02-06
Design a fair lightweight-cipher comparison.
Activity sequence
Follow the setup commands, then each named activity. The detailed instructions, given values and recording fields appear below.
Compare observations with the reference checks and submit the required evidence.
Scientific experimental protocol
Research question: Trace SIMON32/64 key expansion, encryption, inverse and avalanche.
Independent variables: input message or block, key / associated data, selected bit or permutation rounds. Dependent observations: intermediate words, ciphertext, digest, tag and acceptance.
Controls: use the indicated baseline settings, vary one parameter at a time, and record actual results separately from the browser model. For timing comparisons use the same environment and report repetitions.
2. Follow these commands in sequence (Linux/WSL). For browser-only activities, open Simulation first; the code activities are independent.
BASH · Command
python3 simon_demo.py
3. Run the check before changing inputs. Record the exact Python version and any dependency error. Use Python visualizer to inspect the recorded traces; for edited code, generate and import a new trace using the instructions in that tab.
Complete the activities in order. Hold the controlled conditions fixed, record the input and actual output, and compare your observations with an independent calculation or test vector.
01
SIMON family and round equations
Open the exact workstation
Choose the relevant tab below, enter the assigned values in the activity steps, then use Step or Play to inspect intermediate calculations. Return to Experiment and record the results before changing the input.
List block sizes and allowed key sizes for the cipher family; select SIMON32/64, two 16-bit words, 32 rounds.
Write f(x)=(ROL1(x) AND ROL8(x)) XOR ROL2(x); compute next (f(x) XOR y XOR k, x). Step through rotations and word exchange in the datapath.
Evidence to record
Word-level trace and operation diagram.
Verification: Record the baseline and modified input separately, note the observed intermediate values, compare with the assigned calculation, and explain any mismatch. Do not replace observations with expected values.
02
Key schedule and worked encryption
Open the exact workstation
Choose the relevant tab below, enter the assigned values in the activity steps, then use Step or Play to inspect intermediate calculations. Return to Experiment and record the results before changing the input.
Enter master key 0123456789abcdef and plaintext 00ff00ff, using the simulator’s displayed word order.
Split the key into four 16-bit words: k0=cdef, k1=89ab, k2=4567, k3=0123. For i≥4 let t=ROR3(k[i−1]) XOR k[i−3]; compute k[i]=fffc XOR z0[(i−4) mod 62] XOR k[i−4] XOR t XOR ROR1(t). Compare the calculated round 0 output cfec:00ff and round 1 output 3a2e:cfec.
Inspect k0 through k31, the z sequence and round-key update; compare each output with the intermediate-word check values. Verify ciphertext a28aa932 and decrypt.
Independently run simon_demo.py and the published vector 1918111009080100 / 65656877 → c69be9bb.
Experimental inputs and checks
Worked example
K=0123456789abcdef; P=00ff00ff; C=a28aa932
Known-answer check
K=1918111009080100; P=65656877; C=c69be9bb
Evidence to record
Round keys, intermediate states and both known-answer checks.
Verification: Record the baseline and modified input separately, note the observed intermediate values, compare with the assigned calculation, and explain any mismatch. Do not replace observations with expected values.
03
Avalanche, inverse and implementation cost
Open the exact workstation
Choose the relevant tab below, enter the assigned values in the activity steps, then use Step or Play to inspect intermediate calculations. Return to Experiment and record the results before changing the input.
Flip one plaintext bit, hold key fixed and inspect distance by round. Repeat one key-bit change separately.
Run inverse transformation and recover input. Count AND, rotations and XOR operations; explain why the 32-bit educational block is not suitable for bulk data.
Evidence to record
Hamming-distance trace and inverse check.
Verification: Record the baseline and modified input separately, note the observed intermediate values, compare with the assigned calculation, and explain any mismatch. Do not replace observations with expected values.
Trial
Procedure
Reference check
Your observation
Reference
Use 1918111009080100 and 65656877. Play through all rounds.
c69be9bb
Enter result
Lecture example
Use 0123456789abcdef and 00ff00ff.
a28aa932
Enter result
Key schedule
Inspect k0 through k31 and change one master-key word.
32 round keys; k0 is the rightmost word.
Enter result
Avalanche
Flip one bit, compare round differences and decrypt.
Original plaintext recovered; distance varies by round.
Enter result
Analysis and reporting
Why does the Feistel network permit inverse execution? Why is a 32-bit block unsuitable for large modern data volumes?
Record environment, input values, output and deviations; retain traces or PCAP where appropriate. The table is temporary; save your own report.
Download this notebook and open Google Colab. Select File → Upload notebook and choose the downloaded .ipynb.
Read the Markdown instructions before each executable cell. Use a Python runtime, run cells from top to bottom, and resolve imports if necessary.
Perform the baseline and controlled changes. Save the notebook with actual outputs and your written interpretation.
Execution scope: SIMON is a lightweight block cipher family oriented toward simple hardware operations. This lab uses 32-bit blocks and a 64-bit key (four 16-bit words), z0 and 32 rounds, as in the supplied slides. The round function is f(x)=(ROL1(x) AND ROL8(x)) XOR ROL2(x); the new left is old right XOR f(left) XOR round key, and the new right is old left. The least significant master-key word is k0. Small variants are educational, not modern IoT deployment choices; raw block ciphers do not authenticate data. Default computational cells passed isolated local Python execution; physical equipment and live services require separate verification.
01Instructions · Markdown
# LC02 · SIMON — lightweight Feistel block cipher
**PSUT IoT Engineering Studio — Dr. Mohammad Alja’afreh**
## 1. Scientific objective
Follow the setup commands, then each named activity. The detailed instructions, given values and recording fields appear below.
Complete the analytical worksheet in the portal first. Record your predictions before running this notebook. This notebook is a bounded local computational investigation; use the portal’s separate WSL, hardware or Remix procedure for real interfaces.
02Instructions · Markdown
## Experiment-specific preparation
Trace SIMON32/64 key expansion, encryption, inverse and avalanche.
**Reference procedure (use the matching simulator/WSL tool where named, not an unrelated service):**
1. SIMON family and round equations — complete its numbered steps and record the requested evidence.
2. Key schedule and worked encryption — complete its numbered steps and record the requested evidence.
3. Avalanche, inverse and implementation cost — complete its numbered steps and record the requested evidence.
4. Compare observations with the reference checks and submit the required evidence.
5. List block sizes and allowed key sizes for the cipher family; select SIMON32/64, two 16-bit words, 32 rounds.
**Evidence:** c69be9bb
a28aa932
32 round keys; k0 is the rightmost word.
Original plaintext recovered; distance varies by round.
**Boundary:** SIMON is a lightweight block cipher family oriented toward simple hardware operations. This lab uses 32-bit blocks and a 64-bit key (four 16-bit words), z0 and 32 rounds, as in the supplied slides. The round function is f(x)=(ROL1(x) AND ROL8(x)) XOR ROL2(x); the new left is old right XOR f(left) XOR round key, and the new right is old left. The least significant master-key word is k0. Small variants are educational, not modern IoT deployment choices; raw block ciphers do not authenticate data.
03Instructions · Markdown
## 2. Reference configuration and investigation
1. SIMON family and round equations — complete its numbered steps and record the requested evidence.
2. Key schedule and worked encryption — complete its numbered steps and record the requested evidence.
3. Avalanche, inverse and implementation cost — complete its numbered steps and record the requested evidence.
4. Compare observations with the reference checks and submit the required evidence.
Run cells in order; do not substitute model results for physical measurements.
04Instructions · Markdown
## 3. Actual cipher implementation
Use the public teaching vector. This implementation is not hardened for production.
05Instructions · Markdown
### Implementation cell 1
06Python · executable cell
PYTHON · Code cell
# =====================================================================
# LC02 | Code cell 01 | SIMON — lightweight Feistel block cipher
# Purpose: Implementation cell 1
# Inputs: the explicit fixture/settings below and any preceding cell state.
# Output: inspect printed values, returned records or assertions; record evidence.
# =====================================================================
"""Educational 32/64 SIMON and SPECK. Public test vectors, not production crypto."""
# Set MASK for the next computation or reference condition.
MASK=0xffff
# Set Z for the next computation or reference condition.
Z='11111010001001010110000111001101111101000100101011000011100110'
# Define the reusable operation rol; keep its logic separate from the trial.
def rol(x,n): return ((x<<n)|(x>>(16-n)))&MASK
# =====================================================================
# LC02 | Code cell 02 | SIMON — lightweight Feistel block cipher
# Purpose: Implementation cell 2
# Inputs: the explicit fixture/settings below and any preceding cell state.
# Output: inspect printed values, returned records or assertions; record evidence.
# =====================================================================
# Define the reusable operation ror; keep its logic separate from the trial.
def ror(x,n): return rol(x,16-n)
# Define the reusable operation keys; keep its logic separate from the trial.
def keys(kind,key):
k=[int(key[i:i+4],16) for i in range(0,16,4)][::-1]
if kind=='simon':
for i in range(4,32):
t=ror(k[i-1],3)^k[i-3]
t^=ror(t,1)
k.append(0xfffc^int(Z[(i-4)%62])^k[i-4]^t)
return k
l=k[1:]; k=k[:1]
for i in range(21):
l.append(((ror(l[i],7)+k[i])&MASK)^i)
k.append(rol(k[i],2)^l[i+3])
return k
# Define the reusable operation encrypt; keep its logic separate from the trial.
def encrypt(kind,key,plain):
x,y=int(plain[:4],16),int(plain[4:],16)
for k in keys(kind,key):
if kind=='simon':
x,y=y^(rol(x,1)&rol(x,8))^rol(x,2)^k,x
else:
x=((ror(x,7)+y)&MASK)^k
y=rol(y,2)^x
return f'{x:04x}{y:04x}'
# =====================================================================
# LC02 | Code cell 03 | SIMON — lightweight Feistel block cipher
# Purpose: Implementation cell 3
# Inputs: the explicit fixture/settings below and any preceding cell state.
# Output: inspect printed values, returned records or assertions; record evidence.
# =====================================================================
# Define the reusable operation decrypt; keep its logic separate from the trial.
def decrypt(kind,key,cipher):
x,y=int(cipher[:4],16),int(cipher[4:],16)
for k in reversed(keys(kind,key)):
if kind=='simon':
x,y=y,x^(rol(y,1)&rol(y,8))^rol(y,2)^k
else:
old_y=ror(y^x,2)
x=rol(((x^k)-old_y)&MASK,7)
y=old_y
return f'{x:04x}{y:04x}'
# =====================================================================
# LC02 | Code cell 04 | SIMON — lightweight Feistel block cipher
# Purpose: 4. Reference encryption and inverse check
# Inputs: the explicit fixture/settings below and any preceding cell state.
# Output: inspect printed values, returned records or assertions; record evidence.
# =====================================================================
# Prepare key; retain only the scope required for this trial.
key='0123456789abcdef'
# Set plain for the next computation or reference condition.
plain='00ff00ff'
# Set cipher for the next computation or reference condition.
cipher=encrypt('simon',key,plain)
# Check the expected invariant so a mismatch fails visibly instead of appearing successful.
assert cipher=='a28aa932'
# Check the expected invariant so a mismatch fails visibly instead of appearing successful.
assert decrypt('simon',key,cipher)==plain
print(cipher)
# =====================================================================
# LC02 | Code cell 05 | SIMON — lightweight Feistel block cipher
# Purpose: 5. Controlled variation
# Inputs: the explicit fixture/settings below and any preceding cell state.
# Output: inspect printed values, returned records or assertions; record evidence.
# =====================================================================
# Compare one-bit input changes, using the same public test key.
changed=f"{int(plain,16)^1:08x}"
# Set other for the next computation or reference condition.
other=encrypt('simon',key,changed)
print("Changed bits:",(int(cipher,16)^int(other,16)).bit_count())
# Check the expected invariant so a mismatch fails visibly instead of appearing successful.
assert decrypt('simon',key,other)==changed
## Experimental analysis and submission
1. Record the reference input, predicted output and actual result.
2. Modify one independent variable and run the relevant cells again.
3. Explain the result using the theory and identify model limitations.
4. Save the notebook with outputs and retain the separate theoretical worksheet.
**Your derivation and conclusion:**
(Complete independently.)
16Instructions · Markdown
## Guided reasoning and evidence
A controlled comparison changes one independent input while keeping the other relevant inputs fixed; the dependent variable is the recorded output. Use this lab’s reference condition above.
**Independent task:** 2. Key schedule and worked encryption — complete its numbered steps and record the requested evidence. Record the named input, prediction, actual output and one limitation; restore the original condition and repeat.
| Trial | Input/configuration | Prediction | Observation | Evidence / limitation |
|---|---|---|---|---|
| A | Reference | | | |
| B | Changed input | | | |
| A repeat | Reference | | | |
A conclusion is supported only when it cites the recorded values or observed states and explains them with the experiment theory.
Runnable Python implementation
Public teaching inputs only; not production-hardened. Python standard library is sufficient.
Inspect code, local variables, stack and output. Import a newly generated trace after editing the local program. No arbitrary Python executes in the browser.