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

my-browser-fingerprint

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

my-browser-fingerprint

Fork from https://github.com/damianobarbati/get-browser-fingerprint

latest
npmnpm
Version
1.2.3
Version published
Maintainers
1
Created
Source

my-browser-fingerprint

Fork from https://github.com/damianobarbati/get-browser-fingerprint

With this module, you can define your own Browser Spec parameters to generate a unique fingerprint hash.

Usage Example (How to add to your browser:)

HTML page:

<script type="module" src="../js/fingerprint.js"></script>

JavaScript file:

import my_browser_fingerprint from '../node_modules/my-browser-fingerprint/src/index.js';
var fingerprint =  my_browser_fingerprint({debug:false,myspec:['appCodeName',
                                      'appName',
                                      'appVersion',
                                      'colorDepth',
                                      'cookieEnabled',
                                      'deviceMemory',
                                      'doNotTrack',
                                      'hardwareConcurrency',
                                      'language',
                                      'languages',
                                      'maxTouchPoints',
                                      'pixelDepth',
                                      'platform',
                                      'product',
                                      'productSub',
                                      'touchSupport',
                                      'userAgent',
                                      'vendor',
                                      'vendorSub',
                                      'webgl',
                                      'webglInfo']});


console.log(fingerprint);

Options available:

  • myspec (default false): leverage only hardware info about device
  • debug: log data used to generate fingerprint to console and add canvas/webgl canvas to body to see rendered image (default false)

Demo

  • run the src/index.html file on a webserver

my-browser-fingerprint

GPL licenses
A module for my-browser-fingerprint

exports.getWebglID ⇒ objet ⏏

Function what generates your WebglID

Kind: Exported constant
Returns: objet - getWeblID

TypeDescription
booleandebug - optional

Example

const webgl = getWebglID(debug);

exports.getWebglInfo ⇒ objet ⏏

Function what generates your getWebglInfo

Kind: Exported constant
Returns: objet - WebglID

TypeDescription
booleandebug - optional

Example

const webglinfo = getWebglInfo(debug);

exports.get_hash ⇒ integer ⏏

Function what generates the final fingerprint Hash

Kind: Exported constant
Returns: integer - returns a positive unique number

TypeDescription
objectkey

Example

const myfingerprinthash = get_hash(debug);

Keywords

website

FAQs

Package last updated on 11 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