Skip to main content

Data Representation: Why Hackers Speak in Hex

Updated 4 min readMarkdown
Part of seriesTryHackMe Room Walkthroughs: Lab Logs & Analysis
Data Representation: Why Hackers Speak in Hex

TryHackMe Room Walkthroughs · Room 07

When you look at a computer screen, you see a beautiful purple background, a readable document, or a high-definition video.

But the computer? It sees absolutely none of that.

Behind the scenes, your computer is just reading a massive, endless sequence of 1s and 0s. It’s like a light switch being flicked on and off millions of times a second.

I just completed TryHackMe’s Data Representation room. This is where the magic of computing actually happens. It’s where we learn how humans translate our complex world (colors, numbers, text) into the binary language of the machine.

If you want to work in cybersecurity, this isn't optional. When you look at a malicious file or a network packet, you will see raw Hexadecimal data. If you can't read it, you are blind.

Let’s break down how computers speak.

📁 Full lab notes and structured report: github.com/Darajat-Mohammed/thm-blue-team-investigations


Lesson 1: The Two-Finger Language (Binary)

The Core Idea: Computers have two fingers.

We use the Decimal system (Base-10) because we have ten fingers. Digits 0 through 9. Computers don't have fingers. They have electrical circuits. The current is either flowing or it isn't. High or Low. On or Off.

This is the Binary System (Base-2). It only has two digits: 0 and 1.
Every single thing you do on a computer eventually breaks down into a massive string of 1s and 0s.

The physical layer of a computer is just two states: On and Off.


Lesson 2: Painting with Light (Colors)

The Core Idea: Using binary to create millions of colors.

How do you get a color like "Purple" out of just 1s and 0s?

Your screen uses a technology called RGB (Red, Green, Blue). It combines these three colors of light to create everything else.

Mixing Red, Green, and Blue light creates every color you see on a screen.

Let’s say each color has a light switch.

  • 0 = Off
  • 1 = On

If you have three switches (one for Red, one for Green, one for Blue), how many combinations can you make?
2 x 2 x 2 = 8 colors.

But 8 colors is boring. Modern screens need 16 million colors. So, instead of just "On" and "Off," each light switch gets 256 levels of brightness.

  • 8 bits (one byte) = 256 levels.
  • 3 colors x 8 bits = 24 bits per color.

Typing 10100011 is a headache. So, we group those bits into Hexadecimal.


Lesson 3: Hexadecimal and the "Magic" of Memory

The Core Idea: Hexadecimal is the human-readable bridge to binary.

Hexadecimal (Base-16) uses 16 symbols: 0-9, and then A, B, C, D, E, F. It is the perfect middle-ground. It is easy for humans to read, and incredibly easy for computers to convert to binary. Every 4 bits become one Hex character.

Instead of typing 10100011 11101010 00101010, you just type A3EA2A. That is how every color on the internet is coded.

A Hex color converter showing how a single color code translates to Binary and Decimal.

Why does this matter for cybersecurity?

When you look at a raw file in a hex editor, you don't see the image. You see a string like 89 50 4E 47.

89 50 4E 47 is actually the hexadecimal signature of a PNG image file.

If a hacker sends you a .exe file disguised as a .jpg, a security analyst looks at the hex code. If it starts with 4D 5A (the signature for Windows executables), the analyst knows it's a malicious file, no matter what the file extension says.


Final Thoughts

I came into this room thinking it was just math class. I came out realizing it is the foundation of all hacking and defending.

You cannot defend a system if you don't understand the language it speaks. Learning binary and hexadecimal is like learning to read the Matrix. Once you see past the screen and into the raw data, you can start to understand how software truly works.

Whether you are a beginner struggling with the math or a tech founder building a new app, mastering data representation gives you a massive advantage.

📁 If you want the structured lab report behind this article, with the step-by-step breakdown of the math and the 8-color table, it's on GitHub: thm-blue-team-investigations

Join the discussion. Have you ever looked at a hex dump and felt overwhelmed? What is the hardest part of binary math for you? Let’s talk in the comments.

Next in the series: Data Encoding.

Until then, keep exploring, keep experimenting, and keep learning.

Learning platform: TryHackMe

This article is part of my TryHackMe Room Walkthroughs series.

About the author

  • I am a Technical Writer and SOC Analyst in training. My mission is simple: I bridge the gap between complex technology and the people who need to understand it. I believe tech shouldn’t be locked behind a wall of jargon. I know what it feels like to be a beginner staring at a terminal, wondering if you need a supercomputer for a brain to make it in this industry. You don't. I write for the career switchers, the self-taught learners, and the everyday users who just want to understand the tools they use. Through my writing, I make the confusing concepts click, so the next person doesn't have to struggle through the same roadblocks I did. I document my own journey into defensive security, but my broader vision is to make all technology accessible to everyone.

No comments yet. Be the first to comment.

TryHackMe Room Walkthroughs: Lab Logs & Analysis

Part 6 of 6

Practical TryHackMe room walkthroughs built on clear methodology and hands-on execution. Every post breaks down the exact commands, network behavior, and security concepts behind the challenge serving as a documented proof of work in defensive and offensive operations. https://tryhackme.com/p/DarajatMohammed?utm_campaign=social_share&utm_medium=social&utm_content=profile&cardVersion=ae1bc697010c&utm_source=copy&share_date=2026-11-15&sharerId=6af0da2554c63fd566a6315d

Start from the beginningPresecurity: Learning to Think Like Both the Attacker and the DefenderTryHackMe Room Walkthroughs · Room 01 Most people enter cybersecurity through one door. Either "I want to break things" or "I want to defend things." TryHackMe's Presecurity room opens both doors in t

More from this blog