byte
A unit of digital data made of eight bits, enough to store one of 256 values, such as a single plain-text character.
In more detail
Files, keys, hashes and network messages are all sequences of bytes, and their sizes are measured in them: a 256-bit key is 32 bytes. Byte values are often written as two hexadecimal digits, from 00 to ff. In many programming languages, text must be encoded into bytes before it can be hashed or encrypted.
Examples
KEY = bytes(range(32)) # a 32-byte demo keyorder = b"pay 1200.00 GBP to account 40300021"Related terms
- bit — The smallest unit of data: a single binary digit that is either 0 or 1.
- hexadecimal — A way of writing numbers with sixteen digits, 0 to 9 and then a to f, so each character stands for four bits.
- encoding — Turning data into a different representation so it can be stored or transmitted, following a public rule that anyone can reverse.
- bytes, kilobytes, megabytes — Units of data size: a kilobyte is about a thousand bytes, a megabyte about a million, a gigabyte about a billion.
Taught in
- Forty Terabytes Nobody Opens: Storage And Databases — CompTIA Cloud+ (CV0-004) Exam Prep
- Two Domain Controllers, One Host: Virtualisation — CompTIA Cloud+ (CV0-004) Exam Prep
- Six Systems And A Lease That Ends In March — CompTIA Cloud+ (CV0-004) Exam Prep
- Deployment Sprint: A Plan That Deletes The App Server — CompTIA Cloud+ (CV0-004) Exam Prep
- Eighteen Percent Cheaper, Abroad: Compliance And Regulation — CompTIA Cloud+ (CV0-004) Exam Prep
- An Image That Runs As Root: Security Best Practices — CompTIA Cloud+ (CV0-004) Exam Prep
- Allowed In, Lost On The Way Back: Security Controls — CompTIA Cloud+ (CV0-004) Exam Prep
- Ten Percent Off For Everyone: Source Control And Pipelines — CompTIA Cloud+ (CV0-004) Exam Prep
- Symmetric Encryption: AES-GCM & ChaCha20 — Cybersecurity Fundamentals, GRC & Cryptography
- Asymmetric Cryptography: RSA, ECC & Diffie-Hellman — Cybersecurity Fundamentals, GRC & Cryptography
- Cryptographic Hashing: SHA-256, SHA-3 & Passwords — Cybersecurity Fundamentals, GRC & Cryptography
- Post-Quantum Cryptography & Key Lifecycles — Cybersecurity Fundamentals, GRC & Cryptography
- Data Classification Schemes & Sensitivity Labeling — Cybersecurity Fundamentals, GRC & Cryptography
- Data States: Security at Rest, in Transit, and in Use — Cybersecurity Fundamentals, GRC & Cryptography
- Asset Lifecycle Management & Media Sanitization — Cybersecurity Fundamentals, GRC & Cryptography
- Data Loss Prevention & Egress Monitoring — Cybersecurity Fundamentals, GRC & Cryptography
- Backup Architectures: 3-2-1, Immutability & Air-Gaps — Cybersecurity Fundamentals, GRC & Cryptography
- Stages Versus Needs: Building The Pipeline As A Graph — GitLab Certified CI/CD Associate Exam Prep
- A Library That Traces Nothing, Safely: API, SDK And Extension — OpenTelemetry Certified Associate (OTCA) Exam Prep
- Fifty Two Spans, Four Requests: The Trace Data Model — OpenTelemetry Certified Associate (OTCA) Exam Prep
- Four Bookings Or Two: Instruments And Temporality — OpenTelemetry Certified Associate (OTCA) Exam Prep
- Fifty Five Characters: Trace Context And Baggage — OpenTelemetry Certified Associate (OTCA) Exam Prep
- Forty Four Of Sixty: The Mock And What It Tells You — OpenTelemetry Certified Associate (OTCA) Exam Prep