hexadecimal
A way of writing numbers with sixteen digits, 0 to 9 and then a to f, so each character stands for four bits.
In more detail
One hexadecimal digit represents exactly four bits, so two digits make a byte. Hash digests and memory addresses are usually shown in hexadecimal because it is compact and maps cleanly onto bits.
Examples
A full SHA-1 Git object ID is 40 hexadecimal characters; git log --oneline shows the first seven or so.Hashes, byte patterns, memory addresses and file offsets are all shown in hexadecimal.Related terms
- hexdigest — A hash result written as a string of hexadecimal characters, returned by the hexdigest() method of a hashlib object.
- bit — The smallest unit of data: a single binary digit that is either 0 or 1.
- bytes, kilobytes, megabytes — Units of data size: a kilobyte is about a thousand bytes, a megabyte about a million, a gigabyte about a billion.
- object ID — The hash that names a Git object, such as a commit, and that you type to refer to it.
- SHA-1 — An older hash function producing a 160-bit value, now considered broken for security because collisions can be created on purpose.
- Base64 — A way to write any bytes using only 64 safe text characters, so binary data can travel in places that expect text.
- character encoding — The rule for turning text characters into bytes and back, such as UTF-8.
- hash — A short fixed-length fingerprint calculated from data, which changes completely if even one byte of the data changes.
- hex string — A YARA pattern written as hexadecimal bytes in braces, which can include wildcards and jumps for bytes that vary.
Taught in
- What A Hash Function Promises — Algorithms & Data Structures for Working Engineers
- Public Key Infrastructure: X.509 Certificates & CAs — Cybersecurity Fundamentals, GRC & Cryptography
- Why Version Control, And Why Git Won — Advanced Git Internals & Distributed Workflows
- What A Commit Really Is — Advanced Git Internals & Distributed Workflows
- A Branch Is A Moving Pointer — Advanced Git Internals & Distributed Workflows
- Buffer Encodings: UTF-8, Hex, Base64 & Slicing — Node.js Internals & Backend Services
- Binary Data Manipulation: TypedArrays & Endianness — Node.js Internals & Backend Services
- Cryptographic Primitives: node:crypto & Ciphers — Node.js Internals & Backend Services
- Windows Event Logs, Sysmon & Linux Auditd Telemetry — Security Operations & Threat Hunting (SOC)
- YARA Rule Authoring & File Signature Matching — Security Operations & Threat Hunting (SOC)
- Indicator of Compromise Extraction & Threat Hunting Feeds — Security Operations & Threat Hunting (SOC)
- Forensics Principles, Custody & Imaging — Security Operations & Threat Hunting (SOC)
- Disk Forensics: MFT, UsnJrnl & Prefetch — Security Operations & Threat Hunting (SOC)
- Malware Triage: Hashes, Strings & Sandboxing — Security Operations & Threat Hunting (SOC)
- Characters As Numbers — PCAP Certified Associate in Python Programming (PCAP-31-03) Exam Prep
- Special Methods: __str__, __eq__ And Friends — PCAP Certified Associate in Python Programming (PCAP-31-03) Exam Prep