How I Built My ASCII‐to‐Bitmapped‐Font Converter¶
Date: 2025‐05‐07
Problem
I frequently need a quick way to see a hexadecimal representation of a 1‐bit image, especially when experimenting with bit‐level steganography. Manually converting ASCII to a 5×7 or 8×8 dot matrix in hex was tedious.
Solution
I wrote a Python script that:
- Takes any ASCII string
- Uses a custom 5×7 bitmapped font
- Renders each character into a binary matrix
- Concatenates rows into bytes
- Outputs a hex string (or Base64) that can be embedded in web demos
| hex_string_to_bit_matrix() | |
|---|---|
Result¶
- This is a custom bitmap font representation of the input text.
- Use this to create/decode messages for CTF like chanllenges.
- You can set the output to base64 if that is more convienient.
- Full source is on GitHub.
Thanks — Josh