RFID & NFC: A Technical Guide

A comprehensive guide to contactless communication — from fundamentals to hands-on tag programming.

About This Book

This book takes you from the physical principles of radio-frequency identification all the way to writing Python code that reads and writes NFC tags. It focuses specifically on the 13.56 MHz band where most modern NFC applications live, with deep coverage of MIFARE Classic, MIFARE Ultralight, NTAG chips, and the NDEF application format that ties them together.

Who This Book Is For

What You’ll Learn

Book Structure

The book is organized in three parts:

Part 1 — Foundations (Chapters 0–2): RFID physics, frequency bands, ISO standards, and the NFC operating modes. Sets up vocabulary and mental models used throughout the rest of the book.

Part 2 — Tag Deep Dives (Chapters 3–6): MIFARE Classic, MIFARE Ultralight/NTAG, the NDEF format, and a brief look at high-security tags (DESFire). Each chapter covers the memory model, the protocol, and the practical consequences for developers.

Part 3 — Hands-On (Chapters 7–10): Hardware readers, software libraries, complete Python examples, and an action plan for your own projects.

Author Notes

All code examples are written in Python 3. Larger scripts live in the code/ subfolder and are referenced from the chapters. Inline snippets are kept to 20 lines or fewer.

The security-related sections (MIFARE Classic vulnerabilities, DESFire) are presented in an educational context to help developers understand risks and make informed design choices — not to facilitate unauthorized access.

Table of Contents