Week 10 · lesson
Bits, Bytes, and Binary: How Computers Represent Data
Computers store and process information using physical states that can be represented as two values.
We write those values as:
0 and 1
A single binary digit is a bit.
Eight bits are commonly grouped into a byte.
The important idea is not that computers "think in ones and zeros." The important idea is that text, images, instructions, network traffic, and files all need a representation that a computing system can store and manipulate.
Binary is a place-value system
Decimal uses powers of ten:
352 = 3×100 + 5×10 + 2×1
Binary uses powers of two.
For an 8-bit value, the positions are:
| Bit position | 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 |
|---|
Consider:
00101101
The active positions are 32, 8, 4, and 1.
32 + 8 + 4 + 1 = 45
So:
00101101₂ = 45₁₀
Convert decimal to binary
Convert decimal 13.
Find powers of two that add to 13:
8 + 4 + 1 = 13
Using the 8, 4, 2, 1 positions:
1101
The 2 position is zero because it is not needed.
Why defenders care
Binary appears underneath many later topics:
- IP addressing
- subnet masks
- file formats
- permissions and flags
- packet fields
- encoded data
- cryptographic operations
You do not need to become a human calculator. You do need to recognize that the numbers shown by security tools are representations of underlying data.
Bit boundaries change the possible values
With one bit, you can represent two states:
0, 1
With two bits:
00, 01, 10, 11
That gives four possible patterns.
With eight bits, there are 256 possible patterns, from:
00000000
to:
11111111
If treated as an unsigned integer, that range is 0 through 255.
This number will appear again when you study IPv4 addressing.
Binary conversion lab
Convert these decimal values to 8-bit binary:
- 5
- 12
- 42
- 64
- 127
- 200
Then convert these binary values to decimal:
0000101000011111010000000110010011111111
For every answer, show the place values you used.
Find the changed bit
Compare:
00101101
00101111
Only one bit changed.
Determine:
- which place value changed
- the decimal value before
- the decimal value after
- how much the number changed
This exercise matters because flags and fields in real systems often change through individual bits.
Data is not meaning by itself
Consider the byte:
01000001
As an unsigned number, it can represent decimal 65.
Under one text encoding, the same byte pattern can represent the character A.
The bits did not change. The interpretation changed.
That distinction is foundational:
Data becomes meaningful only when the system knows how to interpret the representation.
Build a representation ladder
Create a diagram:
real-world idea → data representation → bits/bytes → stored or transmitted value → software interpretation
Choose one example:
- letter
- color
- temperature reading
- network address component
- file character
Explain each stage.
Evidence for Lesson 1
Submit:
- decimal-to-binary conversion table
- binary-to-decimal conversion table
- changed-bit analysis
- representation ladder
Finish with:
Binary matters in cybersecurity because ________.
The point is not memorizing strings of zeros and ones. It is learning to see the representation underneath the interface.
decision flow
Threat Patterns in Isolated Models: Defensive Evidence Flow
Authorize
Confirm the classroom boundary and permitted evidence.
Observe
Inspect a provided artifact or isolated system state.
Assess
Connect evidence to risk, limitation, and control.
Defend
Document a safeguard and how it would be safely verified.
Read this concept flow as plain text
- Authorize. Confirm the classroom boundary and permitted evidence.
- Observe. Inspect a provided artifact or isolated system state.
- Assess. Connect evidence to risk, limitation, and control.
- Defend. Document a safeguard and how it would be safely verified.