SeyyedKhandon / simple-browser-fingerprint

A simple synchronous tool for browser finger print which can be used as key based on user browsers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

simpleBrowserFingerPrint

This is a simbple package which can be used as browser fingerprint for those cases you want to use browser specific key at client side, like encrypting the localstorage.

Note: please Consider that thsis not a golden key to your problem, but have sth for security is better than not to have anything.

npmjs: https://www.npmjs.com/package/simple-browser-fingerprint

import simpleBrowserFingerprint from "simple-browser-fingerprint";
const fingerprint = simpleBrowserFingerprint();
/*output:  //fingerprint:
"vendorSub:,productSub:20030107,vendor:Google Inc.,maxTouchPoints:0,hardwareConcurrency:8,cookieEna..."
*/

I should note, for specific task you can also get the value as an array if you pass true to the function:

import simpleBrowserFingerprint from "simple-browser-fingerprint";
const fingerprint = simpleBrowserFingerprint(true);
/*output:  //fingerprint:
(52) ["vendorSub:", "productSub:20030107", "vendor:Google Inc.", "maxTouchPoints:0", "hardwareConcurrency:8", "cookieEnabled:true", "appCodeName:Mozilla", "appName:Netscape", "appVersion:5...]
*/

About

A simple synchronous tool for browser finger print which can be used as key based on user browsers

License:MIT License


Languages

Language:TypeScript 100.0%