Device fingerprint generation method, device, equipment and storage medium
By receiving the fingerprint generation request, calling the preset plug-in to scan and compare device component groups, and determining the strategy to generate device fingerprints, the problem of too long device fingerprint generation time in the existing technology is solved, and the effect of real-time device fingerprint generation is achieved.
Patent Information
- Application Number
- CN202210372180.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-11
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2042-04-11
AI Technical Summary
When the existing technology generates device fingerprints, when the database data accumulates to a certain level, the time for generating fingerprints exceeds the time threshold perceived by the user, making it impossible to achieve real-time generation and affecting the user experience.
By receiving the fingerprint generation request, the preset plug-in is called to scan the target device, obtain the device component group, compare it with the preset component group, determine the strategy and generate the device fingerprint based on the comparison result, and adopt full matching, merging and null value processing strategies to Quickly lock fingerprint generation strategy.
It realizes the real-time generation of device fingerprints on non-sandbox devices, reduces the amount of data and calculation steps, increases the generation speed, and meets the needs of real-time generation.
Smart Images

Figure CN114710278B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence, and in particular to a method, apparatus, device and storage medium for generating device fingerprints. Background Art
[0002] As the unique identifier of an operating device, device fingerprint is the basic information for risk control management and plays an important role in financial activities. The single device information usually used as device fingerprint is the device identity document (ID) or universally unique identifier (UUID).
[0003] With the improvement of risk control management requirements, combining and calculating multiple device information as device fingerprints has become the mainstream method. The existing implementation scheme is to compare and calculate the similarity of the collected device information with the device information stored in the database, and implement the fingerprint generation strategy according to the calculation results. When the data in the database accumulates to a certain level, the time to generate fingerprints will exceed the time threshold perceived by users, and the purpose of real-time device fingerprint generation cannot be achieved, which affects the user experience. Summary of the invention
[0004] The main purpose of the present invention is to provide a method for generating a device fingerprint, so as to achieve the purpose of generating a device fingerprint in real time.
[0005] A first aspect of the present invention provides a device fingerprint generation method, comprising: receiving a fingerprint generation request, the fingerprint generation request carrying a target identifier, the target identifier being used to indicate a target device; calling a preset plug-in to scan the target device to obtain a scan result, and judging whether the target device is a sandbox according to the scan result; if the target device is not a sandbox, obtaining the device components of the target device to obtain a target device component group, the target device component group including an account, a device identifier, a universal unique identifier UUID, a startup time, device hardware and environmental information; comparing the target device component group with a preset component group to obtain a comparison result, the comparison result being used to indicate that the target device component group is the same as the device component in the preset component group; determining a target policy from a preset policy set according to the comparison result, and generating a target device fingerprint according to the target policy.
[0006] Optionally, in a first implementation method of the first aspect of the present invention, determining the target policy from a preset policy set based on the comparison result, and generating a target device fingerprint based on the target policy, includes: determining the target policy from a preset policy set based on the comparison result; generating a target device fingerprint based on a preset algorithm corresponding to the target policy and the target device component group.
[0007] Optionally, in a second implementation method of the first aspect of the present invention, determining the target policy from a preset policy set based on the comparison result includes: judging whether the comparison result satisfies a full match condition, the full match condition being that the account, device identification, UUID, startup time, device hardware, and environmental information are the same; if the comparison result satisfies the full match condition, determining the full match policy as the target policy; if the comparison result does not satisfy the full match condition, judging whether the comparison result satisfies a first merging condition, the first merging condition being that the startup time, device hardware, and environmental information are the same; if the comparison result satisfies the first merging condition, determining the first merging policy as the target policy; if the comparison result does not satisfy the first merging condition, judging whether the comparison result satisfies a second merging condition, the first merging condition being that the startup time, device hardware, and environmental information are the same. The second merge condition is that the account, startup time and device hardware are the same; if the comparison result meets the second merge condition, the second merge policy is determined as the target policy; if the comparison result does not meet the second merge condition, it is determined whether the comparison result meets the third merge condition, and the third merge condition is that the UUID and device hardware are the same; if the comparison result meets the third merge condition, the third merge policy is determined as the target policy; if the comparison result does not meet the third merge condition, it is determined whether the comparison result meets the fourth merge condition, and the fourth merge condition is that the device identifier and device hardware are the same; if the comparison result meets the fourth merge condition, the fourth merge policy is determined as the target policy; if the comparison result does not meet the fourth merge condition, the null value processing policy is determined as the target policy.
[0008] Optionally, in a third implementation manner of the first aspect of the present invention, generating a target device fingerprint according to a preset algorithm corresponding to the target policy and the target device component group includes: when the target policy is a full match policy, generating a target string according to the account, device identification, UUID, startup time, device hardware and environmental information in the target device component group, and generating a target device fingerprint according to the preset algorithm corresponding to the full match policy and the target string; when the target policy is a first merge policy, generating a target string according to the startup time, device hardware and environmental information in the target device component group, and generating a target device fingerprint according to the preset algorithm corresponding to the first merge policy and the target string; when the target policy is a second merge policy, generating a target device fingerprint according to the startup time, device hardware and environmental information in the target device component group, and generating a target device fingerprint according to the preset algorithm corresponding to the first merge policy and the target string; The target string is generated according to the account, startup time and device hardware in the backup component group, and the target device fingerprint is generated according to the preset algorithm corresponding to the second merge strategy and the target string; when the target policy is the third merge strategy, the target string is generated according to the UUID and device hardware in the target device component group, and the target device fingerprint is generated according to the preset algorithm corresponding to the third merge strategy and the target string; when the target policy is the fourth merge strategy, the target string is generated according to the device ID and device hardware in the target device component group, and the target device fingerprint is generated according to the preset algorithm corresponding to the fourth merge strategy and the target string; when the target policy is the null value processing strategy, the device identifier or UUID or the generated random string is determined as the target device fingerprint.
[0009] Optionally, in a fourth implementation manner of the first aspect of the present invention, when the target policy is a null value processing policy, the device identifier or UUID or a generated random string is determined as the target device fingerprint, including: judging whether the device identifier is null; if the device identifier is not null, determining the device identifier as the target device fingerprint; if the device identifier is null, judging whether the UUID is null; if the UUID is not null, determining the UUID as the target device fingerprint; if the UUID is null, generating a random string and determining the random string as the target device fingerprint.
[0010] Optionally, in a fifth implementation manner of the first aspect of the present invention, after determining the target policy from the preset policy set according to the comparison result and generating the target device fingerprint according to the target policy, it also includes: generating a reference string according to the target device component group and the preset policy set, and associating a key string in the reference string to the target device fingerprint.
[0011] Optionally, in a sixth implementation manner of the first aspect of the present invention, after determining whether the target device is a sandbox according to the target identifier, it also includes: if the target device is a sandbox, determining whether the device identifier is empty; if the device identifier is not empty, determining the device identifier as the target device fingerprint; if the device identifier is empty, determining whether the UUID is empty; if the UUID is not empty, determining the UUID as the target device fingerprint, and if the UUID is empty, generating a random string and determining the random string as the target device fingerprint.
[0012] The second aspect of the present invention provides a device fingerprint generation apparatus, comprising: a receiving module, used to receive a fingerprint generation request, the fingerprint generation request carries a target identifier, and the target identifier is used to indicate the generation of a target device fingerprint; a judgment module, used to judge whether the target device is a sandbox according to the target identifier; an acquisition module, used to obtain the device components of the target device if the target device is not a sandbox, and obtain a target device component group, wherein the target device component group includes an account, a device identifier, a universal unique identifier UUID, a startup time, device hardware and environmental information; a comparison module, used to compare the target device component group with a preset component group to obtain a comparison result, and the comparison result is used to indicate that the target device component group is the same as the device component in the preset component group; a generation module, used to determine a target policy from a preset policy set according to the comparison result, and generate a target device fingerprint according to the target policy.
[0013] Optionally, in a first implementation method of the second aspect of the present invention, the generation module includes: a determination submodule, used to determine the target strategy from a preset strategy set based on the comparison result; and a generation submodule, used to generate a target device fingerprint based on a preset algorithm corresponding to the target strategy and the target device component group.
[0014] Optionally, in a second implementation manner of the second aspect of the present invention, the determination submodule is specifically used to: determine whether the comparison result satisfies a full match condition, and the full match condition is that the account, device identification, UUID, startup time, device hardware and environmental information are the same; if the comparison result satisfies the full match condition, the full match policy is determined as the target policy; if the comparison result does not meet the full match condition, determine whether the comparison result meets a first merging condition, and the first merging condition is that the startup time, device hardware and environmental information are the same; if the comparison result meets the first merging condition, determine the first merging policy as the target policy; if the comparison result does not meet the first merging condition, determine whether the comparison result meets a second merging condition, and the second merging condition is that the account , the startup time and the device hardware are the same; if the comparison result meets the second merging condition, the second merging policy is determined as the target policy; if the comparison result does not meet the second merging condition, it is determined whether the comparison result meets the third merging condition, and the third merging condition is that the UUID and the device hardware are the same; if the comparison result meets the third merging condition, the third merging policy is determined as the target policy; if the comparison result does not meet the third merging condition, it is determined whether the comparison result meets the fourth merging condition, and the fourth merging condition is that the device identification and the device hardware are the same; if the comparison result meets the fourth merging condition, the fourth merging policy is determined as the target policy; if the comparison result does not meet the fourth merging condition, the null value processing policy is determined as the target policy.
[0015] Optionally, in a third implementation manner of the second aspect of the present invention, the generation submodule includes: a first generation unit, which is used to generate a target string according to the account, device identification, UUID, startup time, device hardware and environmental information in the target device component group when the target policy is a full match policy, and generate a target device fingerprint according to a preset algorithm corresponding to the full match policy and the target string; a second generation unit, which is used to generate a target string according to the startup time, device hardware and environmental information in the target device component group when the target policy is a first merge policy, and generate a target device fingerprint according to the preset algorithm corresponding to the first merge policy and the target string; a third generation unit, which is used to generate a target string according to the account, startup time and device hardware in the target device component group when the target policy is a second merge policy. The fourth generating unit is used for generating a target string according to the UUID and the device hardware in the target device component group when the target policy is the third merging policy, and generating a target device fingerprint according to the preset algorithm corresponding to the third merging policy and the target string; the fifth generating unit is used for generating a target string according to the device ID and the device hardware in the target device component group when the target policy is the fourth merging policy, and generating a target device fingerprint according to the preset algorithm corresponding to the fourth merging policy and the target string; the sixth generating unit is used for determining the device identifier or UUID or the generated random string as the target device fingerprint when the target policy is the null value processing policy.
[0016] Optionally, in a fourth implementation method of the second aspect of the present invention, the sixth generation unit is specifically used to: determine whether the device identifier is empty; if the device identifier is not empty, determine the device identifier as the target device fingerprint; if the device identifier is empty, determine whether the UUID is empty; if the UUID is not empty, determine the UUID as the target device fingerprint; if the UUID is empty, generate a random string and determine the random string as the target device fingerprint.
[0017] Optionally, in a fifth implementation of the second aspect of the present invention, after the generation module, it also includes: an association module, which is used to generate a reference string according to the target device component group and the preset policy set, and associate the key string in the reference string with the target device fingerprint.
[0018] Optionally, in a sixth implementation manner of the second aspect of the present invention, a judgment generation module is also included after the judgment module, and the judgment generation module is specifically used to: if the target device is a sandbox, determine whether the device identifier is empty; if the device identifier is not empty, determine the device identifier as the target device fingerprint; if the device identifier is empty, determine whether the UUID is empty; if the UUID is not empty, determine the UUID as the target device fingerprint, if the UUID is empty, generate a random string, and determine the random string as the target device fingerprint.
[0019] A third aspect of the present invention provides a device fingerprint generation device, comprising: a memory and at least one processor, wherein the memory stores instructions; the at least one processor calls the instructions in the memory so that the device fingerprint generation device executes the above-mentioned device fingerprint generation method.
[0020] A fourth aspect of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, which, when executed on a computer, enable the computer to execute the above-mentioned device fingerprint generation method.
[0021] In the technical solution provided by the present invention, a fingerprint generation request is received, the fingerprint generation request carries a target identifier, and the target identifier is used to indicate a target device; a preset plug-in is called to scan the target device to obtain a scanning result, and whether the target device is a sandbox is determined according to the scanning result; if the target device is not a sandbox, the device component of the target device is obtained to obtain a target device component group, and the target device component group includes an account, a device identifier, a universal unique identifier UUID, a startup time, device hardware and environmental information; the target device component group is compared with the preset component group to obtain a comparison result, and the comparison result is used to indicate that the target device component group is the same as the device component in the preset component group; the target policy is determined from the preset policy set according to the comparison result, and the target device fingerprint is generated according to the target policy. In an embodiment of the present invention, a target device component group is obtained for a non-sandbox target device, the target device component group is compared with the preset component group, the fingerprint generation policy is quickly locked according to the comparison result, and then the target device fingerprint is quickly generated according to the fingerprint generation policy, so as to achieve the purpose of generating device fingerprints in real time. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 A schematic diagram of an embodiment of a method for generating a device fingerprint in an embodiment of the present invention;
[0023] Figure 2 A schematic diagram of another embodiment of a method for generating a device fingerprint in an embodiment of the present invention;
[0024] Figure 3Schematic diagram of the process of generating a device fingerprint in an embodiment of the present invention;
[0025] Figure 4 A schematic diagram of an embodiment of a device fingerprint generating apparatus in an embodiment of the present invention;
[0026] Figure 5 It is a schematic diagram of another embodiment of the device fingerprint generating apparatus in the embodiment of the present invention;
[0027] Figure 6 The figure is a schematic diagram of an embodiment of a device fingerprint generating device in an embodiment of the present invention. DETAILED DESCRIPTION
[0028] The embodiments of the present invention provide a device fingerprint generation method, apparatus, device and storage medium for quickly generating device fingerprints to achieve the purpose of generating device fingerprints in real time.
[0029] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" or "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0030] For ease of understanding, the specific process of the embodiment of the present invention is described below. It can be understood that the execution subject of the present invention can be a device fingerprint generation device or a terminal, which is not limited here. The embodiment of the present invention is described by taking the terminal as the execution subject as an example.
[0031] See also Figure 1 , an embodiment of the device fingerprint generation method in the embodiment of the present invention includes:
[0032] 101. Receive a fingerprint generation request, where the fingerprint generation request carries a target identifier, and the target identifier is used to indicate a target device;
[0033] The terminal receives a fingerprint generation request, identifies a target identifier carried in the fingerprint generation request, and determines a target device for which a device fingerprint needs to be generated.
[0034] 102. Call the preset plug-in to scan the target device, obtain the scan result, and determine whether the target device is a sandbox according to the scan result;
[0035] Among them, the preset plug-in can use the sparta plug-in. The sparta plug-in automatically calls the port scanning tool nmap to scan the network connection end of the target device. The terminal determines the service operating environment and determines whether the target device is a sandbox based on the service operating environment.
[0036] 103. If the target device is not a sandbox, obtain the device components of the target device to obtain a target device component group, where the target device component group includes an account, a device identifier, a universal unique identifier UUID, a startup time, and device hardware and environment information;
[0037] Among them, the terminal obtains 6 device components of the target device, which are account, device identification, universal unique identifier UUID, startup time, device hardware and environmental information. Among them, the device identification is also commonly called device ID (Identity document); the device hardware component is obtained by merging multiple information of the target device hardware layer. When one information in the target device hardware layer is empty, the device hardware component is empty; the environmental information component includes the Global Positioning System (GPS) and the Internet Protocol (IP).
[0038] After the terminal obtains the 6 device components of the target device, it calculates the 6 device components using the MD5 algorithm to obtain 6 MD5 values corresponding to the 6 device components, intercepts the character string from the 8th to the 18th bit in each MD5 value, and uses the character string as the component summary of the device component. The 6 component summaries are merged into the target device component group.
[0039] In addition, if the target device is a sandbox, the terminal queries the device identification of the target device and determines whether the device identification is empty. If the device identification is not empty, the device identification is determined as the target device fingerprint; if the device identification is empty, the UUID of the target device is queried and determines whether the UUID is empty; if the UUID is not empty, the UUID is determined as the target device fingerprint. If the UUID is empty, a random string is generated and the random string is determined as the target device fingerprint.
[0040] 104. Compare the target device component group with the preset component group to obtain a comparison result, where the comparison result is used to indicate the same device components in the target device component group and the preset component group;
[0041] Among them, the preset component group also includes six components: account, device identification, universal unique identification code UUID, startup time, device hardware and environmental information.
[0042] The terminal determines whether the target device component group and the preset component group meet the full match condition, the full match condition is that the target device component group and the preset component group have the same account, device identification, UUID, startup time, device hardware and environmental information. If so, the comparison result is that the target device component group and the preset component group have the same account, device identification, UUID, startup time, device hardware and environmental information; if not, it is determined whether the target device component group and the preset component group meet the first merging condition, the first merging condition is that the startup time, device hardware and environmental information of the target device component group and the preset component group are the same. If so, the comparison result is that the startup time, device hardware and environmental information of the target device component group and the preset component group are the same; if not, it is determined whether the target device component group and the preset component group meet the second merging condition, the second merging condition is Whether the account, startup time and device hardware of the target device component group are the same as those of the preset component group. If so, the comparison result is that the account, startup time and device hardware of the target device component group are the same as those of the preset component group; if not, determine whether the target device component group and the preset component group meet the third merging condition, the third merging condition is that the UUID and device hardware of the target device component group and the preset component group are the same. If so, the comparison result is that the UUID and device hardware of the target device component group and the preset component group are the same; if not, determine whether the target device component group and the preset component group meet the fourth merging condition, the fourth merging condition is that the device identification and device hardware of the target device component group and the preset component group are the same. If so, the comparison result is that the device identification and device hardware of the target device component group and the preset component group are the same, otherwise the comparison result is empty.
[0043] For example, the preset component group is "account A0, device identification B0, universal unique identifier UUID C0, startup time D0, device hardware E0, environmental information F0", and the target device component group is "account A0, device identification B0, universal unique identifier UUIDC0, startup time D1, device hardware E0, environmental information F0". The terminal first determines whether the target device component group and the preset component group meet the full match condition, and the judgment result is not satisfied; then determines whether the target device component group and the preset component group meet the first merging condition, and the judgment result is still not satisfied; then determines whether the target device component group and the preset component group meet the second merging condition, and the judgment result is still not satisfied; next determines whether the target device component group and the preset component group meet the third merging condition, and the judgment result is satisfied, so the comparison result obtained is that the UUID and device hardware of the target device component group and the preset component group are the same.
[0044] To give another example, the preset component group is "account A0, device identification B0, universal unique identifier UUID C0, startup time D0, device hardware E0, environmental information F0", and the target device component group is "account A0, device identification B0, universal unique identifier UUID C0, startup time D1, device hardware E1, environmental information F0". The terminal first determines whether the target device component group and the preset component group meet the full match condition, and the judgment result is not satisfied; then determines whether the target device component group and the preset component group meet the first merging condition, and the judgment result is still not satisfied; then determines whether the target device component group and the preset component group meet the second merging condition, and the judgment result is still not satisfied; next determines whether the target device component group and the preset component group meet the third merging condition, and the judgment result is still not satisfied, and continues to determine whether the target device component group and the preset component group meet the fourth merging condition, and the judgment result is not satisfied, so the comparison result obtained is empty.
[0045] 105. Determine a target policy from a preset policy set according to the comparison result, and generate a target device fingerprint according to the target policy.
[0046] The terminal first determines the target policy from the preset policy set according to the comparison result, and then generates the target device fingerprint according to the preset algorithm and the target device component group corresponding to the target policy.
[0047] First, the process of determining the target strategy is explained:
[0048] The preset strategy set includes a full match strategy, a first merge strategy, a second merge strategy, a third merge strategy, a fourth merge strategy, and a null value processing strategy.
[0049] If the comparison result is that all 6 components in the target device component group and the preset component group are the same, the terminal determines the full match policy as the target policy; if the comparison result is that the startup time, device hardware and environmental information in the target device component group and the preset component group are the same, the terminal determines the first merge policy as the target policy; if the comparison result is that the account, startup time and device hardware in the target device component group and the preset component group are the same, the terminal determines the second merge policy as the target policy; if the comparison result is that the UUID and device hardware in the target device component group and the preset component group are the same, the terminal determines the third merge policy as the target policy; if the comparison result is that the device identifier and device hardware in the target device component group and the preset component group are the same, the terminal determines the fourth merge policy as the target policy; if the comparison result is empty, the terminal determines the null value processing strategy as the target policy.
[0050] Therefore, when the comparison result generated in step 104 is that the UUID and the device hardware are the same, the target policy is the third merge policy; when the comparison result generated in step 104 is null, the target policy is the null value processing policy.
[0051] Next, the process of generating the target device fingerprint is described:
[0052] When the target policy is a full match policy, the terminal generates a target string according to the account, device ID, UUID, startup time, device hardware and environmental information in the target device component group, and generates a target device fingerprint according to the preset algorithm and target string corresponding to the full match policy; when the target policy is a first merge policy, the terminal generates a target string according to the startup time, device hardware and environmental information in the target device component group, and generates a target device fingerprint according to the preset algorithm and target string corresponding to the first merge policy; when the target policy is a second merge policy, the terminal generates a target string according to the account, startup time and device hardware in the target device component group, and generates a target device fingerprint according to the preset algorithm and target string corresponding to the first merge policy. The preset algorithm and target string corresponding to the second merge strategy generate the target device fingerprint; when the target policy is the third merge strategy, the terminal generates the target string according to the UUID and device hardware in the target device component group, and generates the target device fingerprint according to the preset algorithm and target string corresponding to the third merge strategy; when the target policy is the fourth merge strategy, the terminal generates the target string according to the device ID and device hardware in the target device component group, and generates the target device fingerprint according to the preset algorithm and target string corresponding to the fourth merge strategy; when the target policy is the null value processing strategy, the terminal determines the device identifier or UUID or the generated random string as the target device fingerprint.
[0053] The strategies constructed in the preset strategy set are as follows:
[0054] Full match strategy, code P111111, String key = FA1_1_P1+P2+P3+P4+P5+P6
[0055] First merge strategy, code P000111, String key = FA1_2_P4+P5+P6
[0056] Second merge strategy, code P100110, String key = FA1_3_P1+P4+P5
[0057] The third merge strategy, code P001010, String key = FA1_4_P3+P5
[0058] Fourth merge strategy, code P010010, String key = FA1_5_P2+P5
[0059] Null value processing strategy, code P000000, String key = FA1_6_P2 / P3 / Randomstring
[0060] Among them, P1 represents the account, P2 represents the device ID, P3 represents the UUID, P4 represents the startup time, P5 represents the device hardware and P6 represents the environmental information. FA1_X indicates the priority of the comparison condition corresponding to the policy in the solution, and FA1_1 represents a priority of 1. The 6-digit number in the code represents the 6 components of the target device component group P1, P2, P3, P4, P5, and P6 from left to right. When the number is "1", it means that the target device component group is the same as the corresponding component in the preset component group. When the number is "0", it means that the target device component group is different from the corresponding component in the preset component group. Randomstring represents the generated random string.
[0061] For example, when the target strategy is the third merge strategy, String key = FA1_4_P3 + P5, the terminal reads the UUID component summary and the device hardware component summary in the target device component group, connects and combines them, generates a target string, and generates a target device fingerprint from the target string according to the preset algorithm corresponding to the third merge strategy; wherein the preset algorithm can be implemented using the MD5 algorithm, but is not limited to the MD5 algorithm. For strings of any length, MD5 first groups them, then repeatedly processes these string groups, and finally generates a 128-bit hash value, from which a fixed-length string is selected as the target device fingerprint.
[0062] The implementation methods of the full match strategy, the first merge strategy, the second merge strategy, and the fourth merge strategy are the same as in this example and will not be described in detail here. It should be noted that when the target policy is determined to be a null value processing strategy, the terminal queries the device identification of the target device and determines whether the device identification is null. If the device identification is not null, the device identification is determined as the target device fingerprint; if the device identification is null, the UUID of the target device is queried and the UUID is determined to be null; if the UUID is not null, the UUID is determined as the target device fingerprint. If the UUID is null, a random string is generated and the random string is determined as the target device fingerprint.
[0063] In an embodiment of the present invention, a summary calculation is performed on the target component to obtain a target device component group with a reduced data volume. The target device component group is then compared with a preset component group. The fingerprint generation strategy is quickly locked based on the comparison result. Data calculation is performed based on the fingerprint generation strategy and the target device component group with a reduced data volume to more quickly generate the target device fingerprint, thereby achieving the purpose of generating device fingerprints in real time.
[0064] See also Figure 2 Another embodiment of the device fingerprint generation method in the embodiment of the present invention includes:
[0065] 201. Receive a fingerprint generation request, where the fingerprint generation request carries a target identifier, and the target identifier is used to indicate a target device;
[0066] The terminal receives a fingerprint generation request, identifies a target identifier carried in the fingerprint generation request, and determines a target device for which a device fingerprint needs to be generated.
[0067] 202. Call a preset plug-in to scan the target device, obtain a scan result, and determine whether the target device is a sandbox according to the scan result;
[0068] Among them, the preset plug-in can use the sparta plug-in. The sparta plug-in automatically calls the port scanning tool nmap to scan the network connection end of the target device. The terminal determines the service operating environment and determines whether the target device is a sandbox based on the service operating environment.
[0069] 203. If the target device is not a sandbox, obtain the device components of the target device to obtain a target device component group, where the target device component group includes an account, a device identifier, a universal unique identifier UUID, a startup time, and device hardware and environment information;
[0070] Among them, the terminal obtains 6 device components of the target device, which are account, device identification, universal unique identifier UUID, startup time, device hardware and environmental information. Among them, the device identification is also commonly referred to as the device ID (Identity document); the device hardware component is obtained by merging multiple information of the target device hardware layer. When one information in the target device hardware layer is empty, the device hardware component is empty. The environmental information component includes the Global Positioning System (GPS) and the Internet Protocol (IP).
[0071] After the terminal obtains the 6 device components of the target device, it calculates the 6 device components using the MD5 algorithm to obtain 6 MD5 values corresponding to the 6 device components, intercepts the character string from the 8th to the 18th bit in each MD5 value, and uses the character string as the component summary of the corresponding device component. The 6 component summaries are merged into the target device component group.
[0072] In addition, if the target device is a sandbox, the terminal queries the device identification of the target device and determines whether the device identification is empty. If the device identification is not empty, the device identification is determined as the target device fingerprint; if the device identification is empty, the UUID of the target device is queried and determines whether the UUID is empty; if the UUID is not empty, the UUID is determined as the target device fingerprint. If the UUID is empty, a random string is generated and the random string is determined as the target device fingerprint.
[0073] 204. Compare the target device component group with the preset component group to obtain a comparison result, where the comparison result is used to indicate the same device components in the target device component group and the preset component group;
[0074] Among them, the preset component group also includes six components: account, device identification, universal unique identification code UUID, startup time, device hardware and environmental information.
[0075] The terminal determines whether the target device component group and the preset component group meet the full match condition, the full match condition is that the target device component group and the preset component group have the same account, device identification, UUID, startup time, device hardware and environmental information. If so, the comparison result is that the target device component group and the preset component group have the same account, device identification, UUID, startup time, device hardware and environmental information; if not, it is determined whether the target device component group and the preset component group meet the first merging condition, the first merging condition is that the startup time, device hardware and environmental information of the target device component group and the preset component group are the same. If so, the comparison result is that the startup time, device hardware and environmental information of the target device component group and the preset component group are the same; if not, it is determined whether the target device component group and the preset component group meet the second merging condition, the second merging condition is Whether the account, startup time and device hardware of the target device component group are the same as those of the preset component group. If so, the comparison result is that the account, startup time and device hardware of the target device component group are the same as those of the preset component group; if not, determine whether the target device component group and the preset component group meet the third merging condition, the third merging condition is that the UUID and device hardware of the target device component group and the preset component group are the same. If so, the comparison result is that the UUID and device hardware of the target device component group and the preset component group are the same; if not, determine whether the target device component group and the preset component group meet the fourth merging condition, the fourth merging condition is that the device identification and device hardware of the target device component group and the preset component group are the same. If so, the comparison result is that the device identification and device hardware of the target device component group and the preset component group are the same, otherwise the comparison result is empty.
[0076] For example, the preset component group is "account A0, device identification B0, universal unique identifier UUID C0, startup time D0, device hardware E0, environmental information F0", and the target device component group is "account A0, device identification B0, universal unique identifier UUIDC0, startup time D1, device hardware E0, environmental information F0". The terminal first determines whether the target device component group and the preset component group meet the full match condition, and the judgment result is not satisfied; then determines whether the target device component group and the preset component group meet the first merging condition, and the judgment result is still not satisfied; then determines whether the target device component group and the preset component group meet the second merging condition, and the judgment result is still not satisfied; next determines whether the target device component group and the preset component group meet the third merging condition, and the judgment result is satisfied, so the comparison result obtained is that the UUID and device hardware of the target device component group and the preset component group are the same.
[0077] To give another example, the preset component group is "account A0, device identification B0, universal unique identifier UUID C0, startup time D0, device hardware E0, environmental information F0", and the target device component group is "account A0, device identification B0, universal unique identifier UUID C0, startup time D1, device hardware E1, environmental information F0". The terminal first determines whether the target device component group and the preset component group meet the full match condition, and the judgment result is not satisfied; then determines whether the target device component group and the preset component group meet the first merging condition, and the judgment result is still not satisfied; then determines whether the target device component group and the preset component group meet the second merging condition, and the judgment result is still not satisfied; next determines whether the target device component group and the preset component group meet the third merging condition, and the judgment result is still not satisfied, and continues to determine whether the target device component group and the preset component group meet the fourth merging condition, and the judgment result is not satisfied, so the comparison result obtained is empty.
[0078] 205. Determine a target strategy from a preset strategy set according to the comparison result;
[0079] The preset strategy set includes a full match strategy, a first merge strategy, a second merge strategy, a third merge strategy, a fourth merge strategy and a null value processing strategy.
[0080] If the comparison result is that all 6 components in the target device component group and the preset component group are the same, the terminal determines the full match policy as the target policy; if the comparison result is that the startup time, device hardware and environmental information in the target device component group and the preset component group are the same, the terminal determines the first merge policy as the target policy; if the comparison result is that the account, startup time and device hardware in the target device component group and the preset component group are the same, the terminal determines the second merge policy as the target policy; if the comparison result is that the UUID and device hardware in the target device component group and the preset component group are the same, the terminal determines the third merge policy as the target policy; if the comparison result is that the device identifier and device hardware in the target device component group and the preset component group are the same, the terminal determines the fourth merge policy as the target policy; if the comparison result is empty, the terminal determines the null value processing strategy as the target policy.
[0081] Therefore, when the comparison result generated in step 204 is that the UUID and the device hardware are the same, the target policy is the third merge policy; when the comparison result generated in step 204 is null, the target policy is the null value processing policy.
[0082] 206. Generate a target device fingerprint according to a preset algorithm corresponding to the target policy and a target device component group;
[0083] When the target policy is a full match policy, the terminal generates a target string according to the account, device ID, UUID, startup time, device hardware and environmental information in the target device component group, and generates a target device fingerprint according to the preset algorithm and target string corresponding to the full match policy; when the target policy is a first merge policy, the terminal generates a target string according to the startup time, device hardware and environmental information in the target device component group, and generates a target device fingerprint according to the preset algorithm and target string corresponding to the first merge policy; when the target policy is a second merge policy, the terminal generates a target string according to the account, startup time and device hardware in the target device component group, and generates a target device fingerprint according to the preset algorithm and target string corresponding to the first merge policy. The preset algorithm and target string corresponding to the second merge strategy generate the target device fingerprint; when the target policy is the third merge strategy, the terminal generates the target string according to the UUID and device hardware in the target device component group, and generates the target device fingerprint according to the preset algorithm and target string corresponding to the third merge strategy; when the target policy is the fourth merge strategy, the terminal generates the target string according to the device ID and device hardware in the target device component group, and generates the target device fingerprint according to the preset algorithm and target string corresponding to the fourth merge strategy; when the target policy is the null value processing strategy, the terminal determines the device identifier or UUID or the generated random string as the target device fingerprint.
[0084] The strategies constructed in the preset strategy set are as follows:
[0085] Full match strategy, code P111111, String key = FA1_1_P1+P2+P3+P4+P5+P6
[0086] First merge strategy, code P000111, String key = FA1_2_P4+P5+P6
[0087] Second merge strategy, code P100110, String key = FA1_3_P1+P4+P5
[0088] The third merge strategy, code P001010, String key = FA1_4_P3+P5
[0089] Fourth merge strategy, code P010010, String key = FA1_5_P2+P5
[0090] Null value processing strategy, code P000000, String key = FA1_6_P2 / P3 / Randomstring
[0091] Among them, P1 represents the account, P2 represents the device ID, P3 represents the UUID, P4 represents the startup time, P5 represents the device hardware and P6 represents the environment information. FA1_X indicates the priority of the comparison condition corresponding to the policy in the solution, and FA1_1 represents the priority of 1. The 6 digits in the code represent the 6 components of the target device component group P1, P2, P3, P4, P5, and P6 from left to right. When the number is "1", it means that the target device component group is the same as the corresponding component in the preset component group. When the number is "0", it means that the target device component group is different from the corresponding component in the preset component group. Randomstring represents the generated random string. Please refer to Figure 3 , Figure 3 The process of device fingerprint generation method is intuitively demonstrated.
[0092] For example, when the target strategy is the third merge strategy, String key = FA1_4_P3 + P5, the terminal reads the UUID component summary and the device hardware component summary in the target device component group, connects and combines them, generates a target string, and generates a target device fingerprint from the target string according to the preset algorithm corresponding to the third merge strategy; wherein the preset algorithm can be implemented using the MD5 algorithm, but is not limited to the MD5 algorithm. For strings of any length, MD5 first groups them, then repeatedly processes these string groups, and finally generates a 128-bit hash value, from which a fixed-length string is selected as the target device fingerprint.
[0093] The implementation methods of the full match strategy, the first merge strategy, the second merge strategy, and the fourth merge strategy are the same as in this example and will not be described in detail here. It should be noted that when the target policy is determined to be a null value processing strategy, the terminal queries the device identification of the target device and determines whether the device identification is null. If the device identification is not null, the device identification is determined as the target device fingerprint; if the device identification is null, the UUID of the target device is queried and the UUID is determined to be null; if the UUID is not null, the UUID is determined as the target device fingerprint. If the UUID is null, a random string is generated and the random string is determined as the target device fingerprint.
[0094] 207. Generate a reference string set according to the target device component group and the preset policy set, and associate the key string in the reference string set with the target device fingerprint.
[0095] The terminal uses the target device component group as the input of the preset policy set, executes all policies in the preset policy set, generates a reference string set, each reference string in the reference string set corresponds to a policy in the preset policy set, removes the string corresponding to the null value processing policy from the reference string set, and the remaining reference string is the key string, associates the key string with the target device fingerprint, and stores the device component, the corresponding relationship between the device component and the key string, and the association relationship between the reference string and the target device fingerprint. When the target device component group obtains the key string according to other policies, a unique device fingerprint can be obtained according to the association relationship between the key string and the target device fingerprint.
[0096] For example, the terminal has obtained the target device fingerprint according to the third merging strategy. When the application environment changes, the target device component group obtained by the terminal is the same as the device identifier and device hardware in the preset component group. At this time, the reference string is obtained according to the fourth merging strategy. By querying the association between the reference string and the target device fingerprint, the existing target device fingerprint is used as the device fingerprint of the device.
[0097] In the embodiment of the present invention, by comparing the device component group with the preset component group, the target policy is quickly locked, and the target policy is executed to generate the target device fingerprint, thereby achieving the purpose of generating the device fingerprint in real time; in addition, the key string generated by other device components according to the preset policy set is associated with the target device fingerprint, thereby ensuring the uniqueness of the device fingerprint.
[0098] The above describes the device fingerprint generation method in the embodiment of the present invention. The following describes the device fingerprint generation apparatus in the embodiment of the present invention. Figure 4 In one embodiment of the present invention, a device fingerprint generating apparatus comprises:
[0099] The receiving module 401 is used to receive a fingerprint generation request, the fingerprint generation request carries a target identifier, and the target identifier is used to indicate the generation of a target device fingerprint;
[0100] A determination module 402 is used to determine whether the target device is a sandbox according to the target identifier;
[0101] The acquisition module 403 is used to acquire the device components of the target device if the target device is not a sandbox, and obtain a target device component group, where the target device component group includes an account, a device identifier, a universal unique identifier UUID, a startup time, and device hardware and environment information;
[0102] A comparison module 404 is used to compare the target device component group with the preset component group to obtain a comparison result, wherein the comparison result is used to indicate the same device components in the target device component group and the preset component group;
[0103] The generating module 405 is used to determine a target policy from a preset policy set according to the comparison result, and generate a target device fingerprint according to the target policy.
[0104] In the embodiment of the present invention, the device component group is compared with the preset component group, the target policy is quickly locked according to the comparison result, and the target policy is executed to generate the target device fingerprint, so as to achieve the purpose of generating the device fingerprint in real time.
[0105] See also Figure 5 Another embodiment of the device fingerprint generation apparatus in the embodiment of the present invention includes:
[0106] The receiving module 401 is used to receive a fingerprint generation request, the fingerprint generation request carries a target identifier, and the target identifier is used to indicate the generation of a target device fingerprint;
[0107] A determination module 402 is used to determine whether the target device is a sandbox according to the target identifier;
[0108] The acquisition module 403 is used to acquire the device components of the target device if the target device is not a sandbox, and obtain a target device component group, where the target device component group includes an account, a device identifier, a universal unique identifier UUID, a startup time, and device hardware and environment information;
[0109] A comparison module 404 is used to compare the target device component group with the preset component group to obtain a comparison result, wherein the comparison result is used to indicate the same device components in the target device component group and the preset component group;
[0110] The generating module 405 is used to determine a target policy from a preset policy set according to the comparison result, and generate a target device fingerprint according to the target policy.
[0111] The association module 406 is used to generate a reference string according to the target device component group and the preset policy set, and associate the key string in the reference string with the target device fingerprint.
[0112] The judgment generation module 407 is used to judge whether the device identification is empty if the target device is a sandbox; if the device identification is not empty, the device identification is determined as the target device fingerprint; if the device identification is empty, it is judged whether the UUID is empty; if the UUID is not empty, the UUID is determined as the target device fingerprint; if the UUID is empty, a random string is generated and the random string is determined as the target device fingerprint.
[0113] Optionally, the generating module 405 includes:
[0114] A determination unit 4051 is used to determine a target strategy from a preset strategy set according to the comparison result;
[0115] The generating unit 4052 is configured to generate a target device fingerprint according to a preset algorithm corresponding to the target policy and a target device component group.
[0116] Optionally, the determining unit 4051 may also be specifically configured to:
[0117] Determine whether the comparison result meets the full match condition, which is that the account, device ID, UUID, startup time, device hardware and environment information are the same; if the comparison result meets the full match condition, the full match policy is determined as the target policy; if the comparison result does not meet the full match condition, determine whether the comparison result meets the first merge condition, which is that the startup time, device hardware and environment information are the same; if the comparison result meets the first merge condition, determine the first merge policy as the target policy; if the comparison result does not meet the first merge condition, determine whether the comparison result meets the second merge condition, which is that the account, startup time and device hardware are the same; if If the comparison result satisfies the second merge condition, the second merge policy is determined as the target policy; if the comparison result does not meet the second merge condition, it is determined whether the comparison result meets the third merge condition, and the third merge condition is that the UUID and the device hardware are the same; if the comparison result meets the third merge condition, the third merge policy is determined as the target policy; if the comparison result does not meet the third merge condition, it is determined whether the comparison result meets the fourth merge condition, and the fourth merge condition is that the device identifier and the device hardware are the same; if the comparison result meets the fourth merge condition, the fourth merge policy is determined as the target policy; if the comparison result does not meet the fourth merge condition, the null value processing policy is determined as the target policy.
[0118] Optionally, the generating unit 4052 may also be specifically configured to:
[0119] When the target policy is a full match policy, a target string is generated according to the account, device ID, UUID, startup time, device hardware and environmental information in the target device component group, and a target device fingerprint is generated according to the preset algorithm and target string corresponding to the full match policy; when the target policy is a first merge policy, a target string is generated according to the startup time, device hardware and environmental information in the target device component group, and a target device fingerprint is generated according to the preset algorithm and target string corresponding to the first merge policy; when the target policy is a second merge policy, a target string is generated according to the account, startup time and device hardware in the target device component group, and a target device fingerprint is generated according to the preset algorithm and target string corresponding to the second merge policy; when the target policy is a third merge policy, a target string is generated according to The UUID and device hardware in the target device component group generate a target string, and the target device fingerprint is generated according to the preset algorithm and target string corresponding to the third merge strategy; when the target strategy is the fourth merge strategy, the target string is generated according to the device ID and device hardware in the target device component group, and the target device fingerprint is generated according to the preset algorithm and target string corresponding to the fourth merge strategy; when the target strategy is the null value processing strategy, it is determined whether the device identifier is null, if the device identifier is not null, the device identifier is determined as the target device fingerprint, if the device identifier is null, it is determined whether the UUID is null; if the UUID is not null, the UUID is determined as the target device fingerprint, if the UUID is null, a random string is generated, and the random string is determined as the target device fingerprint.
[0120] In the embodiment of the present invention, by comparing the device component group with the preset component group, the target policy is quickly locked, and the target policy is executed to generate the target device fingerprint, thereby achieving the purpose of generating the device fingerprint in real time. In addition, the key string generated by other device components according to the preset policy set is associated with the target device fingerprint, thereby ensuring the uniqueness of the device fingerprint.
[0121] above Figure 4 and Figure 5 The device fingerprint generating apparatus in the embodiment of the present invention is described in detail from the perspective of modular functional entities. The device fingerprint generating device in the embodiment of the present invention is described in detail from the perspective of hardware processing.
[0122] Figure 66 is a schematic diagram of the structure of a device fingerprint generation device provided by an embodiment of the present invention. The device fingerprint generation device 600 may have relatively large differences due to different configurations or performances, and may include one or more processors (central processing units, CPU) 610 (for example, one or more processors) and a memory 620, and one or more storage media 630 (for example, one or more mass storage devices) storing application programs 633 or data 632. Among them, the memory 620 and the storage medium 630 can be short-term storage or persistent storage. The program stored in the storage medium 630 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the device fingerprint generation device 600. Furthermore, the processor 610 can be configured to communicate with the storage medium 630 to execute a series of instruction operations in the storage medium 630 on the device fingerprint generation device 600.
[0123] The device fingerprint generating device 600 may also include one or more power supplies 640, one or more wired or wireless network interfaces 650, one or more input and output interfaces 660, and / or one or more operating systems 6631, such as Windows Serve, Mac OS X, Unix, Linux, FreeBSD, etc. It will be appreciated by those skilled in the art that Figure 6 The device fingerprint generating device structure shown does not constitute a limitation on the device fingerprint generating device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0124] The present invention also provides a device fingerprint generation device, the computer device includes a memory and a processor, the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the processor executes the steps of the device fingerprint generation method in the above embodiments.
[0125] The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. Instructions are stored in the computer-readable storage medium. When the instructions are executed on a computer, the computer executes the steps of the device fingerprint generation method.
[0126] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0127] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program codes.
[0128] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for generating a device fingerprint, It is characterized in that include: receiving a fingerprint generation request, wherein the fingerprint generation request carries a target identifier, and the target identifier is used to indicate a target device; Calling a preset plug-in to scan the target device to obtain a scan result, and determining whether the target device is a sandbox according to the scan result; If the target device is not a sandbox, obtain the device components of the target device to obtain a target device component group, wherein the target device component group includes an account, a device identifier, a universal unique identifier UUID, a startup time, and device hardware and environment information; Comparing the target device component group with a preset component group to obtain a comparison result, wherein the comparison result is used to indicate the same device components in the target device component group and the preset component group; The comparison result is matched with the same device component condition corresponding to each policy in the preset policy set to obtain a target policy, and a target character string is generated according to the target policy and the target device component group corresponding to the target policy, and a target device fingerprint is generated by a preset algorithm corresponding to the target policy and the target character string.
2. The device fingerprint generation method according to claim 1, It is characterized in that The step of matching the comparison result with the same device component condition corresponding to each policy in the preset policy set to obtain the target policy includes: Determine whether the comparison result satisfies a full match condition, where the full match condition is that the account, device identifier, UUID, startup time, device hardware, and environment information are the same; If the comparison result satisfies the full match condition, the full match strategy is determined as the target strategy; if the comparison result does not satisfy the full match condition, it is determined whether the comparison result satisfies the first merging condition, and the first merging condition is that the startup time, device hardware and environment information are the same; If the comparison result satisfies the first merging condition, the first merging strategy is determined as the target strategy; if the comparison result does not satisfy the first merging condition, it is determined whether the comparison result satisfies the second merging condition, where the second merging condition is that the account, startup time and device hardware are the same; If the comparison result satisfies the second merging condition, the second merging strategy is determined as the target strategy; if the comparison result does not satisfy the second merging condition, it is determined whether the comparison result satisfies the third merging condition, and the third merging condition is that the UUID and the device hardware are the same; If the comparison result satisfies the third merging condition, the third merging strategy is determined as the target strategy; if the comparison result does not satisfy the third merging condition, it is determined whether the comparison result satisfies the fourth merging condition, and the fourth merging condition is that the device identifier and the device hardware are the same; If the comparison result satisfies the fourth merging condition, the fourth merging strategy is determined as the target strategy; if the comparison result does not satisfy the fourth merging condition, the null value processing strategy is determined as the target strategy.
3. The device fingerprint generation method according to claim 1, It is characterized in that The step of generating a target character string according to the target policy and a target device component group corresponding to the target policy, and generating a target device fingerprint by using a preset algorithm corresponding to the target policy and the target character string includes: When the target policy is a full match policy, a target string is generated according to the account, device identifier, UUID, startup time, device hardware and environment information in the target device component group, and a target device fingerprint is generated according to a preset algorithm corresponding to the full match policy and the target string; When the target strategy is the first merge strategy, a target character string is generated according to the startup time, device hardware and environment information in the target device component group, and a target device fingerprint is generated according to a preset algorithm corresponding to the first merge strategy and the target character string; When the target policy is the second merge policy, a target character string is generated according to the account, startup time and device hardware in the target device component group, and a target device fingerprint is generated according to a preset algorithm corresponding to the second merge policy and the target character string; When the target strategy is the third merge strategy, a target character string is generated according to the UUID and device hardware in the target device component group, and a target device fingerprint is generated according to a preset algorithm corresponding to the third merge strategy and the target character string; When the target strategy is the fourth merge strategy, a target character string is generated according to the device ID and the device hardware in the target device component group, and a target device fingerprint is generated according to a preset algorithm corresponding to the fourth merge strategy and the target character string; When the target policy is a null value processing policy, the device identifier or UUID or a generated random string is determined as the target device fingerprint.
4. The device fingerprint generation method according to claim 3, It is characterized in that When the target policy is a null value processing policy, determining the device identifier or UUID or a generated random string as the target device fingerprint includes: Determine whether the device identification is empty. If the device identification is not empty, determine the device identification as the target device fingerprint. If the device identification is empty, determine whether the UUID is empty. If the UUID is not empty, the UUID is determined as the target device fingerprint; if the UUID is empty, a random string is generated and the random string is determined as the target device fingerprint.
5. The device fingerprint generation method according to claim 1, It is characterized in that After determining a target policy from a preset policy set according to the comparison result and generating a target device fingerprint according to the target policy, the method further includes: A reference string set is generated according to the target device component group and the preset policy set, and a key string in the reference string set is associated with the target device fingerprint.
6. The device fingerprint generation method according to any one of claims 1 to 5, It is characterized in that After determining whether the target device is a sandbox according to the target identifier, the method further includes: If the target device is a sandbox, determine whether the device identifier is empty; If the device identifier is not empty, the device identifier is determined as the target device fingerprint; if the device identifier is empty, whether the UUID is empty is determined; If the UUID is not empty, the UUID is determined as the target device fingerprint; if the UUID is empty, a random string is generated and the random string is determined as the target device fingerprint.
7. A device fingerprint generating device, It is characterized in that The device fingerprint generation device executes the device fingerprint generation method according to any one of claims 1 to 4, and the device fingerprint generation device includes: A receiving module, used for receiving a fingerprint generation request, wherein the fingerprint generation request carries a target identifier, and the target identifier is used for indicating generation of a target device fingerprint; A determination module, configured to determine whether the target device is a sandbox according to the target identifier; an acquisition module, configured to acquire device components of the target device if the target device is not a sandbox, and obtain a target device component group, wherein the target device component group includes an account, a device identifier, a universal unique identifier UUID, a startup time, and device hardware and environment information; A comparison module, used for comparing the target device component group with a preset component group to obtain a comparison result, wherein the comparison result is used for indicating the same device components in the target device component group and the preset component group; A generating module is used to determine a target policy from a preset policy set according to the comparison result, and generate a target device fingerprint according to the target policy.
8. The device fingerprint generating apparatus according to claim 7, It is characterized in that After the generation module, it also includes: The association module is used to generate a reference string according to the target device component group and the preset policy set, and associate a key string in the reference string with the target device fingerprint.
9. A device fingerprint generating device, It is characterized in that The device fingerprint generation device comprises: a memory and at least one processor, wherein instructions are stored in the memory; The at least one processor calls the instruction in the memory to enable the device fingerprint generation device to execute the device fingerprint generation method according to any one of claims 1 to 6.
10. A computer-readable storage medium having instructions stored thereon, It is characterized in that When the instructions are executed by the processor, the device fingerprint generation method as described in any one of claims 1 to 6 is implemented.
