Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@maurosala/use-fingerprint

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@maurosala/use-fingerprint - npm Package Compare versions

Comparing version 1.0.4 to 1.1.0

5

index.js
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 @@

13

package.json
{
"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
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc