Fork from https://github.com/damianobarbati/get-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.
html
`
$3
`js
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
* my-browser-fingerprint
* exports.getWebglID ⇒ objet ⏏
* exports.getWebglInfo ⇒ objet ⏏
* exports.get_hash ⇒ integer ⏏
$3
Function what generates your WebglIDKind: Exported constant
Returns: objet - getWeblID
| Type | Description |
| --- | --- |
| boolean | debug - optional |
Example
`js
const webgl = getWebglID(debug);
`
$3
Function what generates your getWebglInfoKind: Exported constant
Returns: objet - WebglID
| Type | Description |
| --- | --- |
| boolean | debug - optional |
Example
`js
const webglinfo = getWebglInfo(debug);
`
$3
Function what generates the final fingerprint HashKind: Exported constant
Returns: integer - returns a positive unique number
| Type | Description |
| --- | --- |
| object | key |
Example
`js
const myfingerprinthash = get_hash(debug);
``