Generate Unique Identifiers From Device Fingerprints – TracePrint.js

Category: Javascript | August 28, 2023
Author:Clevis22
Views Total:252 views
Official Page:Go to website
Last Update:August 28, 2023
License:MIT

Preview:

Generate Unique Identifiers From Device Fingerprints – TracePrint.js

Description:

TracePrint.js is a JavaScript library that provides a lightweight and fast fingerprinting algorithm to generate a unique identifier from device fingerprints.

It works by gathering various device and browser data (like screen size, time zone, installed fonts, browser plugins, WebGL data, and more) and hashing collected data to generate a unique identifier.

Keep in mind that fingerprints have limitations in accuracy and uniqueness. The hash should not be treated as an absolute ID due to changing browser configs, privacy measures, and inconsistencies across devices. It is more probabilistic than certain.

How to use it:

1. Download and load the TracePrint.js in your project.

<script src="/src/traceprint.js"></script>

2. Call traceprint() which returns a Promise:

traceprint().then(fingerprint => {
  console.log('Fingerprint:', fingerprint);
}).catch(error => {
  console.error('Error:', error);
});

3. Modify the browser and device data to be collected in traceprint.js.

screenWidth,
screenHeight,
availableScreenWidth,
availableScreenHeight,
pixelRatio,
colorDepth,
pixelDepth,
userLanguage,
userLanguages,
useragent,
userTimeZone,
formattedNumber,
fixedFormattedDate,
formattedCurrency,
prefersDarkUI,
dtype,
plugs,
localStorageQuota,
localStorageSize,
networkType,
screenOrientation,
platform,
maxTouchPoints,
audioFingerprint,
webGPU,
ReducedMotion,
colorGamut,
webDriver,
pluginSpoof,
clientRects,
webRTCInfo,
emojis,
windowProperties

You Might Be Interested In:


Leave a Reply