
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@binance/fingerprint
Advanced tools
Binance fingerprint
is a fingerprint collection SDK on the web, which is used to identify a unique user.
yarn add @binance/fingerprint
import { getInfoPromise } from '@binance/fingerprint'
const deviceInfo = await getInfoPromise()
console.log(deviceInfo) // a base64 string
Get device information, Will contain fingerprint information + device ID + associated old device ID
id
: Used to identify users,eg: userId or email, default is ''Returns Promise(base64 string)
This method is used to save the deviceId
logged in by the current user, which is distributed by the backend as part of the next device information
id
: Used to identify users,eg: userId or emaildeviceId
: This device id will be used as part of the second acquisition of device information.import { saveCurrentDeviceId } from '@binance/fingerprint'
const mockDeviceId = new Date().getTime()
// When the user logs in, mockDeviceId should be distributed by the backend
saveCurrentDeviceId('email or userId', mockDeviceId)
Get fingerprint information
const fpInfo = await getFpInfo();
// console.log(fpInfo)
{
"screen_resolution": "900,1440",
"available_screen_resolution": "877,1405",
"system_version": "Mac OS 10.14.5",
"brand_model": "unknown",
"system_lang": "en",
"timezone": "GMT+8",
"timezoneOffset": -480,
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36",
"list_plugin": "Chrome PDF Plugin,Chrome PDF Viewer,Native Client",
"canvas_code": "d98c8d8b",
"webgl_vendor": "Intel Inc.",
"webgl_renderer": "Intel(R) Iris(TM) Plus Graphics 655",
"audio": "124.04345808873768",
"platform": "MacIntel",
"web_timezone": "Asia/Shanghai",
"device_name": "Chrome V83.0.4103.116 (Mac OS)",
"fingerprint": "421ec839eeda07b409a3c51d448bd0a5"
}
FAQs
binance web fingerprint
The npm package @binance/fingerprint receives a total of 126 weekly downloads. As such, @binance/fingerprint popularity was classified as not popular.
We found that @binance/fingerprint demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.