A more refined fingerprinting module based on Fingerprint2.js
Builds on top of Fingerprint2 adding several additional features to further
narrow the browser down. Some of these new features were implemented on the content provided by Browserspy
and other various similar articles that I found on the Internet.
As a recognition to the original author of the library and in order to provide simple compatibility with users
of Fingerprint2js, we left the external library interface intact.
bower install https://github.com/Cleafy/refingerprint.git
new Refingerprint().get(function (result, components) {
// An hash, representing your device fingerprint: notice that this is twice the size
// of Fingerprint2 hash, the first 32 bytes being exactly the latter, and the last 32
// bytes being an hash produced solely based on added features
console.log(result);
// An array of FP components
console.log(components);
});
You can pass an object with options (all of which are optional):
var options = {
swfPath: '/assets/FontList.swf',
imagesPath: '/assets/images/test'
excludeWindowDump: true
};
new Refingerprint(options).get(function (result) {
console.log(result);
});
Available options include all those exposed by Fingerprint2, plus the following: excludeLiteralColors
,excludeActivexObjects
, excludeMsComponents
, excludeNavigatorDump
, excludeToolbarDump
, excludeCryptoDump
,excludeWindowDump
, excludeDocumentDump
, excludeStyleDump
, excludeErrorMessages
, excludeImagesFormats
.