Git Product home page Git Product logo

ntag424-js's Introduction

NTAG424 Node.js Utilities

About

ntag424-js is currently under development. This library is designed to make it easy for developers to interact with NXP's NTAG 424 DNA products and to simplify the process personalizing tags and verifying/decrypting SUN data.

Why use this library?

  • Useful for creating a backend web server for NXP's NTAG 424 DNA.
  • Useful for a tag personalization utility (setting encryption keys, NDEF mirroring, etc).
  • Provides functions for parsing NDEF messages into PICCData and CMAC, etc.
  • Decrypts PICCData into UID and NFC Counter.
  • Verifies CMAC against a known private AES key.

Library Overview

Key Features

  • NTAG424 Communication/APDU Abstraction: Provide your own NFC interface, and this library will construct commands, parse responses, check for errors and parameter validation.
  • NDEF Message Parsing: Parse NDEF messages and extract the relevant data, such as PICCData and CMAC.
  • PICCData Decryption: Decrypt PICCData to obtain UID and NFC Counter.
  • CMAC Verification: Verify the CMAC using a known private AES key.
  • (Future TODO) Tag Tamper Status: Decrypt tag tamper status.

Commands to Implement

  • File Management
    • ChangeFileSettings
    • GetFileCounters
    • GetFileSettings
  • Memory and Configuration
    • SetConfiguration
    • [!] GetCardUID
    • ReadSig
  • Data Management
    • ReadData
    • WriteData
  • Key Management
    • ChangeKey
    • GetKeyVersion
  • Authentication
    • AuthenticatePart1First
    • AuthenticatePart2
    • AuthenticatePart1NonFirst
    • LRP
  • ISO
    • ISOReadBinary
    • ISOUpdateBinary
    • ISOSelectFile
  • Misc
    • GetVersion

Example Usage

const ntag424js = require('ntag424-js');

// ...

Other Similar Libraries

Below is a list of other similar libraries for working with NXP's NTAG 424 DNA:

  1. node-sdm: Simple library that includes CMAC verification and PICC decryption.

  2. ntag424-tt-dna-node: Comprehensive typescript library for SDM and SSM. No documentation or source. Empty page on author's git: https://github.com/0xCold/ntag424-dna-tt-node

libnfc-js Notes

Current status of libnfc-js

NDEF Data type prefix notes

Some notes about byte prefixes I've seen associated with different NDEF data types

URL (SUN) 00 49 d1 01

URL 00 19 d1 01

Plain Text 00 11 d1 01 02 65 6E 79 6F - yo 02 65 6E E2 9D A4 EF B8 8F - ❤️ 02 65 6E F0 9F A5 BA - 🥺

SMS 00 26 d1 01 // sms:5555555555?body=message test

Launch app 00 1d d4 0f

wifi 00 54 da 17

libnfc Notes

libnfc config?

--- /etc/nfc/libnfc.conf 2023-03-31 14:34:37.731175399 -0700 +++ /etc/nfc/libnfc.conf.dpkg-new 2020-08-16 03:11:21.000000000 -0700 @@ -18,12 +18,3 @@

Note: if autoscan is enabled, default device will be the first device available in device list.

#device.name = "microBuilder.eu" #device.connstring = "pn532_uart:/dev/ttyUSB0" -#

-allow_autoscan = true -allow_intrusive_scan = false -log_level = 1 -#device.name = "ACR122" -#device.connstring = "acr122_usb:001:011" # Use the bus number (001) and device address (011) from your lsusb output

acr122_usb:001:013

ntag424-js's People

Contributors

mxashup avatar

Stargazers

Mario Uher avatar Martin Hocquel-Hans avatar Anne Thorpe avatar Denis avatar  avatar  avatar Chris YAO avatar Zen Li avatar Rodrigo Lorca avatar

Watchers

 avatar Martin Hocquel-Hans avatar

ntag424-js's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.