Skip to content

Overview

The CrypTagEncoder programs an NTAG424 DNA tag over a PC/SC reader. Every example assumes a connected tag and relies on auto-discovery and auto-authentication — see the connect-once model.

import { CrypTagEncoder } from 'cryptag';
const tag = new CrypTagEncoder();
await tag.connect(); // the one required step
  • Connection & Lifecycle — connect, readers, disconnect, session reset, status checks.
  • Discovery & Authentication — discover, authenticate, UID, TagTamper, key/signature checks.
  • Reading — full read, NDEF, proprietary, CC, raw file, file settings, counter.
  • Writing & Formatting — write NDEF/proprietary/CC, clear, factory reset, build NDEF.
  • SDM EncodingencodeTag (plain / encrypted / full) and disableSDM.
  • Tag Configuration — file settings, LRP, random UID, TagTamper, brute-force limit.
  • Key Management — current / target keys, diversification, change keys, export / import.

For result shapes, error codes, and the glossary, see Concepts. The encoder needs the nfc-pcsc native binding (npm install nfc-pcsc); the decoder needs none.