🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis
Socket
Book a DemoInstallSign in
Socket

@arx-research/libhalo

Package Overview
Dependencies
Maintainers
2
Versions
126
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@arx-research/libhalo

LibHaLo - Programmatically interact with HaLo tags from the web browser, mobile application or the desktop.

npmnpm
Version
1.0.8
Version published
Weekly downloads
160
-45.95%
Maintainers
2
Weekly downloads
 
Created
Source

LibHaLo

Programmatically interact with HaLo tags from the web browser, mobile application or the desktop.

Installation

npm install --save @arx-research/libhalo

Available APIs

The library exposes the following API functions:

(Web browser) execHaloCmdWeb

async function execHaloCmdWeb(command, options)

For web browser applications: scan the HaLo tag presented to the smartphone, execute the HaLo command and return the result. Supporting Chrome (Android), Safari (iOS) and other browsers. Installation of additional software is not required on the user's side.

Guides:

  • Using libhalo as a standalone library in a classic HTML web application
  • Using libhalo within a React.js web application
  • Documentation of the execHaloCmdWeb API

(React Native) initNFCManagerHalo, execHaloCmd

async function initNFCManagerHalo(nfcManager)
async function execHaloCmd(command, options)

For React Native mobile applications (Android/iOS) based on react-native-nfc-manager library: scan the HaLo tag presented to the smartphone, execute the HaLo command and return the result.

Guides:

(Desktop) execHaloCmdPCSC

async function execHaloCmdPCSC(command, reader)

For desktop applications based on nfc-pcsc library: scan the HaLo tag present at the specified reader, execute the HaLo command and return the result.

Guides:

Supported HaLo commands

This library supports the following HaLo tag commands:

  • sign - sign arbitrary data using ECDSA private key on the NFC tag;
  • sign_random - sign a sequential counter with random pad using ECDSA private key on the NFC tag;
  • write_latch - write one-time programmable memory slot on the NFC tag;
  • cfg_ndef - configure the parameters returned in the dynamic URL when the NFC tag is scanned;
  • gen_key - request generation of the key #3 on the NFC tag;
  • gen_key_confirm - confirm the generated public key of key slot #3;

Full articles:

FAQs

Package last updated on 02 Mar 2023

Did you know?

Socket

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