Socket
Socket
Sign inDemoInstall

nfc-desfire-card-service

Package Overview
Dependencies
30
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    nfc-desfire-card-service

NFC DESFire card scanner service


Version published
Weekly downloads
6
decreased by-73.91%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Welcome to nfc-desfire-card-service 👋

Version License: ISC

NFC DESFire card scanner service

🏠 Homepage

Install

sudo npm_config_user=root npm install -g nfc-desfire-card-service

Install as a systemd service:

Create the file /etc/nfc-desfire-card-service/desfire-credentials.json prior to running this.

sudo nfc-desfire-card-service --systemd=install

This will also create a new nfc-desfire-card Linux group, and add the current user to it.

Uninstall systemd service:

sudo nfc-desfire-card-service --systemd=uninstall

This will also remove the nfc-desfire-card Linux group, and remove the current user from it.

Usage

nfc-desfire-card-service [--cache] [--enabled] [--poll] [--device="devicename"] [--socket="socketname"] [--credentials="filename"]

NFC_DESFIRE_CARD_SERVICE_CONFIG="path" nfc-desfire-card-service

To connect to systemd service and preview scans

nfc-desfire-card-service --preview

Options (cli / nfc-desfire-card-service.json)

--cache / { "service": { "useCache": true } }

Enabled internal UID/data caching. This saves the tag having to be opened and read for previously seen tags, but means that changes to the card data will not be considered.

--enabled / { "service": { "startEnabled": true } }

Starts the service in scanning mode immediately rather than waiting for a client to instruct the service to start scanning.

--poll / { "nfc": { "pollForDevices": true } }

Causes the service to wait for devices to become available rather than exiting if a device is not present.

The service also waits for further devices when the present device is lost, however in actuality the underlying LibNFC/Freefare process generally segfaults and aborts the service.

--device="devicename" / { "nfc": { "device": "devicename" } }

Specifies the name of the device to use. Other available devices are ignored.

--credentials="filename"

The path and filename of the credentials file in JSON format. If this is not specified, the file desfire-credentials.json in the config directory is used.

Author

👤 Pete Morris

Show your support

Give a ⭐️ if this project helped you!


This README was generated with ❤️ by readme-md-generator

FAQs

Last updated on 31 Jul 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc