@maurosala/use-fingerprint
Advanced tools
Comparing version 1.0.4 to 1.1.0
import { useState, useEffect } from 'react' | ||
import jsSHA from 'jssha' | ||
@@ -31,3 +32,5 @@ import init, { fingerprint } from './pkg/fingerprint' | ||
return btoa(browserFingerprint) | ||
return new jsSHA('SHA-256', 'TEXT', { encoding: 'UTF8' }) | ||
.update(browserFingerprint) | ||
.getHash('HEX') | ||
} | ||
@@ -34,0 +37,0 @@ |
{ | ||
"name": "@maurosala/use-fingerprint", | ||
"version": "1.0.4", | ||
"version": "1.1.0", | ||
"description": "Get canvas fingerprint and browser signature", | ||
@@ -14,3 +14,12 @@ "main": "use-fingerprint.js", | ||
"license": "MIT", | ||
"homepage": "https://github.com/maurosala/use-fingerprint" | ||
"homepage": "https://github.com/maurosala/use-fingerprint", | ||
"dependencies": { | ||
"jssha": "^3.3.1" | ||
}, | ||
"tags": [ | ||
"fingerprint", | ||
"browser", | ||
"signature", | ||
"canvas" | ||
] | ||
} |
@@ -24,3 +24,3 @@ # React useFingerprint hook | ||
{ | ||
"browser": "TW96aWxsYS81LjAgKGlQaG9uZTsgQ1BVIGlQaG9uZSBPUyAxNl82IGxpa2UgTWFjIE9TIFgpIEFwcGxlV2ViS2l0LzYwNS4xLjE1IChLSFRNTCwgbGlrZSBHZWNrbykgVmVyc2lvbi8xNi42IE1vYmlsZS8xNUUxNDggU2FmYXJpLzYwNC4xfGVuLUdCfDh8dHJ1ZXwzOTB8ODQ0fDI0fDM5MHw4NDR8W29iamVjdCBTY3JlZW5PcmllbnRhdGlvbl18MjQ=", | ||
"browser": "dd5b420791fe9a7dc9ebd8deb648692f76d68b839b3d04cae30702f76c31bc14", | ||
"id": "B48D36C2", | ||
@@ -30,1 +30,5 @@ "ms": 20.4 | ||
``` | ||
- `browser`: browser signature | ||
- `id`: canvas fingerprint | ||
- `ms`: time in milliseconds to get the fingerprint |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
100553
449
33
1
+ Addedjssha@^3.3.1
+ Addedjssha@3.3.1(transitive)