Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing the value of the alpha channel used in getCanvasFp #161

Merged
merged 1 commit into from
Jun 12, 2016

Conversation

eisman
Copy link

@eisman eisman commented Jun 2, 2016

This change tries to fix the problem of the random generation of two different fingerprint hashes for a same device. This seems to be happening in Firefox and iPhone 4. The problem is related to the getCanvasFp function (the result of the call to the canvas.toDataURL) and, in paticular, to the value used for the alpha channel of the ctx.fillStyle. After testing the library on many different devices (Firefox, Chrome, and Explorer -desktop-, iPhone4, iPhone 6+, iPad Mini, Samsung Galaxy S4, Samsung Galaxy S6), it seems that changing this vale from 0.7 to 0.2 makes the hash stable.

@Valve Valve merged commit 92dc4ee into fingerprintjs:master Jun 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants