Generating Device Fingerprint
The Zentitle2Core Library offers the option to generate a device fingerprint based on a variety of hardware identifiers. To assist with this process, this page provides detailed instructions on how to use the library functions and outlines the available options for generating device fingerprints.
Please note that the device fingerprint cannot exceed 100 characters in length.
Constants for Fingerprint Options
The library provides predefined values that can be used to specify various options for generating fingerprints. These values are known as constants. We offer two options for generating a device fingerprint.
FINGERPRINT_OPTION_DEFAULT
(Value: 1) - This option generates the device fingerprint using default settings.FINGERPRINT_OPTION_MAC_ADDRESS
(Value: 2) - This option generates the device fingerprint using default settings and includes the MAC address.
Function: generateDeviceFingerprint
generateDeviceFingerprint
This function generates a device fingerprint using a combination of hardware identifiers. You can specify additional hardware identifiers to be included in the fingerprint generation process using a parameter.
Parameters
fingerprint
(Output): A character array where the generated device fingerprint will be stored.options
(Input, Optional): Specifies the additional hardware identifiers to be used in generating the fingerprint. It can be one of the following values:FINGERPRINT_OPTION_DEFAULT
: Use precompiled options.FINGERPRINT_OPTION_MAC_ADDRESS
: Use defaults and MAC address.
Return Value
true
if the device fingerprint was generated successfully.false
otherwise.
Function: generateDefaultDeviceFingerprint
generateDefaultDeviceFingerprint
This function generates a device fingerprint using default settings.
Parameters
fingerprint
(Output): A character array where the generated device fingerprint will be stored. The maximum length of the device fingerprint is 100 characters.
Return Value
true
if the device fingerprint was generated successfully.false
otherwise.
It is possible to provide a custom library that modifies the default behavior to use the MAC address by default, making it easier for users to generate device fingerprints without specifying the option in their code.
This customization option can streamline the process of generating device fingerprints with the desired configuration.
Additionally, the library can be generated under a different name specified by the client to keep its purpose hidden.
Last updated