Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hw-fingerprint

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hw-fingerprint

Hardware-based fingerprint for Node and Electron

  • 2.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
92
increased by33.33%
Maintainers
1
Weekly downloads
 
Created
Source

hw-fingerprint

Hardware-based fingerprint for Node and Electron

About

This library provides a getFingerprint() function that produces a 512-bit signature based on the host machine's hardware information, suitable for use in Electron or Node client apps that require authentication against a server. To get the information used to generate the fingerprint, use getFingerprintingInfo()

It uses information provided by Node's OS module and systeminformation library and has no other dependencies.

Usage

getFingerprint() is always asynchronous and returns a Node Buffer. The returned promise is internally cached, so the actual implementation gets called just once.

  const { getFingerprint } = require('hw-fingerprint')

  // with async/await
  async function(){
    const fingerprint = await getFingerprint()
    // do something
  }

  // with promises
  function(){
    getFingerprint.then(function(fingerprint){
      // do something
    })
  }

FAQs

Package last updated on 01 Nov 2021

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc