New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eight

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eight

A browser fingerprinting library

  • 2.0.10
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-93.75%
Maintainers
1
Weekly downloads
 
Created
Source

Fast browser and server library for fingerprinting with no dependencies. Uses SHA512 and is developer in Europe.

Installation

NPM npm install fingerprintjs
CND //cdn.jsdelivr.net/npm/eight@<VERSION>/eight.js

TLDR usage

console.info(eight()()) // E9D0C22416262B2F51A4402318060A206620BED2

Detailed Usage

import eight from 'eight'

const fingerprint = eight({
  hash: "ripe160", // sha512, sha256, ripe160
  resolution: true,
  flash: true,
  plugins: true,
  strong: false
})

console.info(fingerprint()) 
// E9D0C22416262B2F51A4402318060A206620BED2

console.info(fingerprint({ ip: "187.30.93.12" })) 
// 2416262B2F51A4402318060A206620BED2E9D0C2

console.info(fingerprint({ ip: "39.120.93.2" })) 
// 4402318060A206620BED2E9D0C22416262B2F51A

Pass whatever needed to consider

It's possible to customize fingerprinting with own parameters which are passed as params. This way anything (like cookies, ip adress or username) can be considered.

fingerprint({ ip: "187.30.93.12" })
// 2416262B2F51A4402318060A206620BED2E9D0C2

fingerprint({ cookies: JSON.stringify(cookies) })
// 20BED2E9D0C22416262B2F51A4402318060A2066

fingerprint({ whatever: "ABCDEF" })
// F51A4402318060A206620BED2E9D0C22416262B2

Licence

The whole library is semi-private. Can be used for fingerprinting under MIT, but as a protection (security through obscurity in mind) is obfuscated. This way no one can see what's fingerprinted and developing protection is harder.

Keywords

FAQs

Package last updated on 01 May 2018

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