A device identity processing method, device and equipment based on privacy protection
By detecting and processing the device identity information of terminal devices in a trusted execution environment, the problem of reduced accuracy in device fingerprint acquisition is solved, high-accuracy and secure device identity management is achieved, and data privacy leaks and collection failures are avoided.
Patent Information
- Application Number
- CN202011255452.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-11
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2040-11-11
AI Technical Summary
In the existing technology, the accuracy of device fingerprint acquisition decreases, mainly due to the enhanced protection of data privacy by operating system manufacturers, which makes it difficult to obtain non-resettable device identifiers, and tampering or refreshing system parameters can generate multiple fake fingerprints, which reduces Difficulty in collecting characteristic attributes of terminal equipment.
Using a device identity processing method based on privacy protection, the device identity information is detected in a trusted execution environment. If it does not exist, a creation request is sent to the server. The server generates verification information, and the terminal device verifies and stores the device identity information to ensure that the device Security and uniqueness of identity information.
It improves the accuracy of device fingerprint acquisition of terminal devices, avoids operating system upgrades and data collection failures, prevents data privacy leaks, and prevents the deletion of device identity information in application uninstallation or flashing scenarios.
Smart Images

Figure CN112199661B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method, apparatus and device for processing device identity based on privacy protection. Background Art
[0002] Device fingerprints are mainly generated by collecting characteristic attributes of terminal devices and combining them with specific algorithms to generate a unique identifier for each terminal device. However, as operating system manufacturers strengthen the protection of data privacy, the non-resettable device identifiers (MAC addresses, IMEI, Device ID, etc.) that device fingerprints rely on are difficult to obtain, and the randomization of device identifier acquisition makes it more difficult to collect characteristic attributes of terminal devices. Since the execution of the processing processes such as generating device fingerprints and obtaining the device identifier of the terminal device required to generate device fingerprints are all completed in the REE environment, new device fingerprints can be continuously generated on the same terminal device by tampering with the device identifier of the terminal device, modifying the IP address, or refreshing the system parameters of the terminal device, resulting in a decrease in the accuracy of obtaining the device fingerprint of the terminal device. Based on this, it is necessary to provide a technical solution for obtaining the device fingerprint of a terminal device with higher accuracy. Summary of the invention
[0003] The purpose of the embodiments of this specification is to provide a technical solution for obtaining the device fingerprint of a terminal device with higher accuracy.
[0004] In order to implement the above technical solution, the embodiments of this specification are implemented as follows:
[0005] A device identity processing method based on privacy protection provided in an embodiment of this specification is applied to a terminal device provided with a trusted execution environment, and the method comprises: detecting whether the trusted execution environment of the terminal device contains the device identity information of the terminal device. If the device identity information of the terminal device is not contained in the trusted execution environment, a request for creating the device identity information of the terminal device is sent to a server, so that the server generates first verification information for the terminal device based on the creation request. Upon receiving the first verification information of the terminal device sent by the server, the verification information of the terminal device is obtained, and the verification information of the terminal device is sent to the server, so that the server verifies the verification information, and after the verification passes, generates the device identity information for the terminal device. The device identity information sent by the server is received, and the device identity information is stored in the trusted execution environment.
[0006] The embodiment of this specification provides a device identity processing method based on privacy protection, which is applied to a server, and the method includes: receiving a creation request for device identity information sent by a terminal device, the creation request is sent by the terminal device when it detects that the device identity information of the terminal device is not included in the trusted execution environment of the terminal device. Based on the creation request, first verification information for the terminal device is generated, and the first verification information is sent to the terminal device; receiving verification information sent by the terminal device, and verifying the verification information, if the verification passes, the device identity information is generated for the terminal device; sending the device identity information to the terminal device, so that the terminal device stores the device identity information in the trusted execution environment.
[0007] A device identity processing method based on privacy protection provided in an embodiment of the present specification is applied to a terminal device provided with a trusted execution environment, the method comprising: detecting whether the trusted execution environment of the terminal device contains the device identity information of the terminal device; if the device identity information of the terminal device is not contained in the trusted execution environment, sending a creation request for the device identity information of the terminal device to a server, so that the server generates the device identity information for the terminal device based on the creation request, wherein the device identity information is information that uniquely identifies the terminal device and is generated by the server based on a preset algorithm, and the data used to generate the device identity information does not contain the device attribute information of the terminal device and the personal information of the user of the terminal device; receiving the device identity information sent by the server, and storing the device identity information in the trusted execution environment.
[0008] A device identity processing method based on privacy protection provided in an embodiment of the present specification is applied to a server, and the method includes: receiving a request for creating device identity information sent by a terminal device, the creation request is sent by the terminal device when it detects that the device identity information of the terminal device is not included in the trusted execution environment of the terminal device; based on the creation request, generating the device identity information for the terminal device by a preset algorithm, wherein the data used to generate the device identity information does not include the device attribute information of the terminal device and the personal information of the user of the terminal device; sending the device identity information to the terminal device so that the terminal device stores the device identity information in the trusted execution environment.
[0009] The embodiment of this specification provides a device identity processing device based on privacy protection, wherein a trusted execution environment is provided in the device, and the device comprises: an information detection module, which detects whether the trusted execution environment of the device contains the device identity information of the device. A creation request module, which sends a creation request for the device identity information of the device to a server if the trusted execution environment does not contain the device identity information of the device, so that the server generates first verification information for the device based on the creation request. A verification information acquisition module, which, upon receiving the first verification information of the device sent by the server, obtains the verification information of the device, and sends the verification information of the device to the server, so that the server verifies the verification information and generates the device identity information for the device after the verification passes. A device identity acquisition module, which receives the device identity information sent by the server and stores the device identity information in the trusted execution environment.
[0010] An embodiment of the present specification provides a device identity processing apparatus based on privacy protection, the apparatus comprising: a creation request receiving module, receiving a creation request for device identity information sent by a terminal device, the creation request being sent by the terminal device when it detects that the device identity information of the terminal device is not contained in the trusted execution environment of the terminal device. A first information generating module, generating first verification information for the terminal device based on the creation request, and sending the first verification information to the terminal device. A first verification module, receiving the verification information sent by the terminal device, and verifying the verification information, and generating the device identity information for the terminal device if the verification passes. A device identity sending module, sending the device identity information to the terminal device, so that the terminal device stores the device identity information in the trusted execution environment.
[0011] An embodiment of this specification provides a device identity processing device based on privacy protection, wherein a trusted execution environment is provided in the device, and the device comprises: a detection module, which detects whether the trusted execution environment of the device contains the device identity information of the device. A device identity request module, which sends a creation request for the device identity information of the device to a server if the trusted execution environment does not contain the device identity information of the device, so that the server generates the device identity information for the device based on the creation request, wherein the device identity information is information that uniquely identifies the device and is generated by the server based on a preset algorithm, and the data used to generate the device identity information does not contain the device attribute information of the device and the personal information of the user of the device. A device identity receiving module, which receives the device identity information sent by the server and stores the device identity information in the trusted execution environment.
[0012] An embodiment of this specification provides a device identity processing apparatus based on privacy protection, the apparatus comprising: a creation request receiving module, receiving a creation request for device identity information sent by a terminal device, the creation request being sent by the terminal device when it detects that the device identity information of the terminal device is not included in the trusted execution environment of the terminal device. A device identity generating module, based on the creation request, generates the device identity information for the terminal device by a preset algorithm, wherein the data used to generate the device identity information does not include the device attribute information of the terminal device and the personal information of the user of the terminal device. A device identity sending module, sending the device identity information to the terminal device so that the terminal device stores the device identity information in the trusted execution environment.
[0013] The embodiment of this specification provides a device identity processing device based on privacy protection, and the device identity processing device based on privacy protection is provided with a trusted execution environment, including: a processor; and a memory arranged to store computer executable instructions, and when the executable instructions are executed, the processor: detects whether the trusted execution environment of the device contains the device identity information of the device. If the trusted execution environment does not contain the device identity information of the device, a request for creating the device identity information of the device is sent to a server, so that the server generates first verification information for the device based on the creation request. When receiving the first verification information of the device sent by the server, the verification information of the device is obtained, and the verification information of the device is sent to the server, so that the server verifies the verification information, and after the verification passes, the device identity information is generated for the device. The device identity information sent by the server is received, and the device identity information is stored in the trusted execution environment.
[0014] An embodiment of the present specification provides a device identity processing device based on privacy protection, the device identity processing device based on privacy protection includes: a processor; and a memory arranged to store computer executable instructions, the executable instructions, when executed, cause the processor to: receive a request for creating device identity information sent by a terminal device, the creation request is sent when the terminal device detects that the device identity information of the terminal device is not included in the trusted execution environment of the terminal device. Generate first verification information for the terminal device based on the creation request, and send the first verification information to the terminal device. Receive verification information sent by the terminal device, and verify the verification information. If the verification passes, generate the device identity information for the terminal device. Send the device identity information to the terminal device so that the terminal device stores the device identity information in the trusted execution environment.
[0015] The embodiment of this specification provides a device identity processing device based on privacy protection, and the device identity processing device based on privacy protection is provided with a trusted execution environment, including: a processor; and a memory arranged to store computer executable instructions, and when the executable instructions are executed, the processor: detects whether the trusted execution environment of the device contains the device identity information of the device. If the trusted execution environment does not contain the device identity information of the device, a request for creating the device identity information of the device is sent to a server, so that the server generates the device identity information for the device based on the creation request, wherein the device identity information is information that uniquely identifies the device generated by the server based on a preset algorithm, and the data used to generate the device identity information does not contain the device attribute information of the device and the personal information of the user of the device. The device identity information sent by the server is received, and the device identity information is stored in the trusted execution environment.
[0016] An embodiment of the present specification provides a device identity processing device based on privacy protection, the device identity processing device based on privacy protection includes: a processor; and a memory arranged to store computer executable instructions, the executable instructions, when executed, cause the processor to: receive a request for creating device identity information sent by a terminal device, the creation request is sent by the terminal device when it detects that the device identity information of the terminal device is not included in the trusted execution environment of the terminal device. Based on the creation request, the device identity information is generated for the terminal device by a preset algorithm, wherein the data used to generate the device identity information does not include the device attribute information of the terminal device and the personal information of the user of the terminal device. The device identity information is sent to the terminal device so that the terminal device stores the device identity information in the trusted execution environment.
[0017] The embodiments of this specification also provide a storage medium, wherein the storage medium is used to store computer executable instructions, and the executable instructions implement the following process when executed: Detect whether the trusted execution environment of the terminal device contains the device identity information of the terminal device. If the trusted execution environment does not contain the device identity information of the terminal device, send a creation request for the device identity information of the terminal device to the server, so that the server generates first verification information for the terminal device based on the creation request. Upon receiving the first verification information of the terminal device sent by the server, obtain the verification information of the terminal device, and send the verification information of the terminal device to the server, so that the server verifies the verification information, and after the verification passes, generates the device identity information for the terminal device. Receive the device identity information sent by the server, and store the device identity information in the trusted execution environment.
[0018] The embodiments of this specification also provide a storage medium, wherein the storage medium is used to store computer executable instructions, and the executable instructions implement the following process when being executed: receiving a request for creating device identity information sent by a terminal device, wherein the creation request is sent by the terminal device when the terminal device detects that the device identity information of the terminal device is not included in the trusted execution environment of the terminal device. Based on the creation request, first verification information for the terminal device is generated, and the first verification information is sent to the terminal device. Verification information sent by the terminal device is received, and the verification information is verified. If the verification passes, the device identity information is generated for the terminal device. The device identity information is sent to the terminal device so that the terminal device stores the device identity information in the trusted execution environment.
[0019] The embodiments of this specification also provide a storage medium, wherein the storage medium is used to store computer executable instructions, and the executable instructions implement the following process when executed: Detect whether the trusted execution environment of the terminal device contains the device identity information of the terminal device. If the trusted execution environment does not contain the device identity information of the terminal device, send a creation request for the device identity information of the terminal device to the server, so that the server generates the device identity information for the terminal device based on the creation request, wherein the device identity information is information that uniquely identifies the terminal device generated by the server based on a preset algorithm, and the data used to generate the device identity information does not contain the device attribute information of the terminal device and the personal information of the user of the terminal device. Receive the device identity information sent by the server, and store the device identity information in the trusted execution environment.
[0020] The embodiments of this specification also provide a storage medium, wherein the storage medium is used to store computer executable instructions, and the executable instructions implement the following process when executed: receiving a request for creating device identity information sent by a terminal device, wherein the creation request is sent by the terminal device when it detects that the device identity information of the terminal device is not included in the trusted execution environment of the terminal device. Based on the creation request, the device identity information is generated for the terminal device through a preset algorithm, wherein the data used to generate the device identity information does not include the device attribute information of the terminal device and the personal information of the user of the terminal device. The device identity information is sent to the terminal device so that the terminal device stores the device identity information in the trusted execution environment. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the embodiments of this specification or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0022] Figure 1A This is an embodiment of a device identity processing method based on privacy protection in this specification;
[0023] Figure 1B This is a schematic diagram of a device identity processing process based on privacy protection in this manual;
[0024] Figure 2 This is a schematic diagram of the structure of a system for device identity processing based on privacy protection in this specification;
[0025] Figure 3 This is a schematic diagram of another device identity processing process based on privacy protection in this manual;
[0026] Figure 4A This is another embodiment of a device identity processing method based on privacy protection in this specification;
[0027] Figure 4B This is a schematic diagram of another device identity processing process based on privacy protection in this manual;
[0028] Figure 5 This is a schematic diagram of another device identity processing process based on privacy protection in this manual;
[0029] Figure 6 This is a schematic diagram of another device identity processing process based on privacy protection in this manual;
[0030] Fig. 7A This is another embodiment of a device identity processing method based on privacy protection in this specification;
[0031] Figure 7B This is a schematic diagram of another device identity processing process based on privacy protection in this manual;
[0032] Fig. 8A This is another embodiment of a device identity processing method based on privacy protection in this specification;
[0033] Figure 8B This is a schematic diagram of another device identity processing process based on privacy protection in this manual;
[0034] Fig. 9 This is an embodiment of a device identity processing device based on privacy protection in this specification;
[0035] Fig.10 This is another embodiment of a device identity processing apparatus based on privacy protection in this specification;
[0036] Fig.11 This is another embodiment of a device identity processing apparatus based on privacy protection in this specification;
[0037] Fig.12 This is another embodiment of a device identity processing apparatus based on privacy protection in this specification;
[0038] Fig.13 This is an embodiment of a device identity processing device based on privacy protection in this specification. DETAILED DESCRIPTION
[0039] The embodiments of this specification provide a device identity processing method, apparatus and device based on privacy protection.
[0040] In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this specification.
[0041] Embodiment 1
[0042] like Figure 1A and Figure 1BAs shown, the embodiment of this specification provides a device identity processing method based on privacy protection, and the execution subject of the method can be a terminal device, wherein the terminal device can be a computer device such as a laptop or desktop computer, and can also be a mobile terminal device such as a mobile phone or tablet computer. A trusted execution environment can be set in the terminal device, and the trusted execution environment can be a TEE (Trusted Execution Environment). The trusted execution environment can be implemented by a program written in a predetermined programming language (that is, it can be implemented in the form of software), or it can be implemented in the form of software and hardware. The trusted execution environment can be a secure operating environment for data processing. The method can specifically include the following steps:
[0043] In step S102, it is detected whether the trusted execution environment of the terminal device contains the device identity information of the terminal device.
[0044] Among them, the trusted execution environment can be TEE, which can be implemented by a program written in a predetermined programming language (that is, it can be implemented in the form of software) or in the form of software + hardware. The trusted execution environment of TEE can be a data processing environment that is secure and isolated from other environments, that is, the processing performed in the trusted execution environment and the data generated during the data processing cannot be accessed by other execution environments or applications outside the executable environment. The trusted execution environment of TEE can be implemented by creating a small operating system that can run independently in a trusted area (such as TrustZone, etc.), and TEE can directly provide services in the form of system calls (such as directly processed by the TrustZone kernel). The terminal device may include REE (Rich Execution Environment) and TEE. The operating system installed on the terminal device can be run under REE, such as Android operating system, iOS operating system, Windows operating system, Linux operating system, etc. The characteristics of REE include strong functions, good openness and scalability, and can provide all the functions of the terminal device for the upper-level application, such as camera function, touch function, etc. However, there are many security risks in REE. For example, the operating system can obtain all the data of a certain application, but it is difficult to verify whether the operating system or the application has been tampered with. If it has been tampered with, the user's information will have great security risks. For this, TEE in the terminal device is required to handle it. TEE has its own execution space, that is, there is also an operating system under TEE. TEE has a higher security level than REE. The software and hardware resources in the terminal device that TEE can access are separated from REE, but TEE can directly obtain REE information, while REE cannot obtain TEE information. TEE can perform verification and other processing through the provided interface, thereby ensuring that user information (such as payment information, user privacy information, etc.) will not be tampered with, passwords will not be hijacked, and fingerprints or facial information will not be stolen. The device identity information may be information that can uniquely identify a terminal device. The device identity information may be a device fingerprint. The device identity information in this embodiment is not constructed based on information such as the device attributes of the terminal device (such as the IMEI, Device ID, MAC address, IP address, etc. of the terminal device).
[0045] In implementation, device fingerprints are mainly generated by collecting characteristic attributes of terminal devices and combining them with specific algorithms to generate a unique identifier for each terminal device. However, as operating system manufacturers strengthen the protection of data privacy, the non-resettable device identifiers (MAC addresses, IMEIs, Device IDs, etc.) that device fingerprints rely on are difficult to obtain, and the randomization of device identifier acquisition makes it more difficult to collect characteristic attributes of terminal devices. Since the execution of the processing processes such as generating device fingerprints and obtaining the device identifier of the terminal device required to generate device fingerprints are all completed in the REE environment, new device fingerprints can be continuously generated on the same terminal device by tampering with the device identifier of the terminal device, modifying the IP address, or refreshing the system parameters of the terminal device, resulting in a decrease in the accuracy of obtaining the device fingerprint of the terminal device. Based on this, it is necessary to provide a technical solution for obtaining the device fingerprint of a terminal device with higher accuracy. The embodiments of this specification provide an optional processing solution, which may specifically include the following contents:
[0046] When a user needs to execute a certain service, if the device identity information (or device fingerprint) of the terminal device used by the user is required during the execution of the service, it is possible to first detect whether the device identity information of the terminal device is stored in the trusted execution environment of the terminal device used by the user. In this embodiment, in order to ensure the security of the device identity information of the terminal device and prevent it from being tampered with or leaked, the above-mentioned device identity information can be stored in the trusted execution environment (i.e., TEE) of the terminal device. Since the trusted execution environment and REE are separated from each other, the device identity information stored in the trusted execution environment is more secure than the device identity information stored in the REE, and can be prevented from being tampered with or leaked. Based on the above content, when a user needs to execute a certain service, the corresponding application in the terminal device can be started, and the execution of the above-mentioned service can be triggered by the application. Since the device identity information is required during the execution of the service, the terminal device can detect whether the trusted execution environment contains the device identity information of the terminal device. If the trusted execution environment contains the device identity information of the terminal device, the device identity information of the terminal device can be extracted from the trusted execution environment, and the processing process of the above-mentioned service can be continued based on the device identity information. If the information execution environment does not contain the device identity information of the terminal device, it indicates that the terminal device has not yet created the device identity information. At this time, the following step S104 can be executed.
[0047] In step S104, if the trusted execution environment does not include the device identity information of the terminal device, a creation request for the device identity information of the terminal device is sent to the server, so that the server generates first verification information for the terminal device based on the creation request.
[0048] Among them, the first verification information can be verification information created by the server for a terminal device that needs to create device identity information, and can serve as permission or notification for the creation of device identity information of the terminal device. The first verification information can be implemented in a variety of ways. For example, the first verification information can be implemented in the form of a challenge code or a random number, and the first verification information can be composed of one or more of numbers, texts, and symbols.
[0049] In implementation, Figure 2 As shown, if it is detected that the device identity information of the terminal device is stored in the trusted execution environment, it indicates that the terminal device has not yet created the device identity information. At this time, a request to create the device identity information of the terminal device can be sent to the server to request the server to create the device identity information for the terminal device. After receiving the creation request, the server can determine whether the device identity information can be created for the terminal device. For example, it can determine whether the terminal device is a terminal device in a preset blacklist. If not, the device identity information can be created for the terminal device. If yes, the device identity information can be refused to be created for the terminal device, etc. The specific settings can also be made according to actual conditions. If it is determined that the device identity information can be created for the terminal device, the first verification information for the terminal device can be generated based on the creation request, thereby indicating that the server allows the terminal device to create the device identity information. Then, the first verification information can be sent to the terminal device.
[0050] In step S106, when the first verification information of the terminal device sent by the server is received, the verification information of the terminal device is obtained and sent to the server so that the server verifies the verification information and generates device identity information for the terminal device after the verification passes.
[0051] Among them, the verification information of the terminal device may be relevant information for verifying the identity of the terminal device. The verification information may include multiple types, for example, it may include the above-mentioned first verification information, a verification key pre-agreed between the server and the terminal device (such as the public key and private key on the server side, and the public key and private key on the terminal device side, etc., or, it may be a digital certificate pre-agreed between the server and the terminal device, etc., which can be set according to actual conditions), and other relevant information, etc., which can be set according to actual conditions, and the embodiments of this specification do not limit this.
[0052] In implementation, if the terminal device can receive the first verification information of the terminal device sent by the server, it indicates that the server allows the terminal device to create device identity information. At this time, the terminal device can perform corresponding processing based on the execution process of creating device identity information pre-agreed with the server. Specifically, the terminal device can obtain the verification information of the terminal device. In order to ensure the security of the information, the information in the verification information can be stored in a trusted execution environment, such as the verification key pre-agreed by the server and the terminal device, which can be stored in the trusted execution environment. Based on this, the terminal device can extract relevant information from the storage device, and can extract relevant information from the trusted execution environment, and can use the extracted information as verification information. Then, the terminal device can send the verification information of the terminal device to the server.
[0053] After the server receives the verification information of the terminal device, it can verify the verification information based on a pre-set algorithm. For example, the key contained in the verification information can be verified by encryption and / or decryption. For the verification information contained in the verification information, the authenticity of the verification information can be verified by searching whether the verification information is recorded in the server or by a predetermined information verification mechanism. For random numbers and other information contained in the verification information, the authenticity of the random numbers can be verified by a predetermined random number verification mechanism to determine whether they are generated by the terminal device. Based on the above methods, the verification information can be verified to obtain the corresponding verification results. It should be noted that the above-mentioned processing of verifying the verification information is only some optional processing methods provided. In actual applications, the verification information can also include other types of information, and the corresponding information verification processing can also be implemented in other ways. The specific settings can be based on actual conditions, and the embodiments of this specification do not limit this.
[0054] If the server's verification result for the terminal device's verification information is passed or successful, the server can generate device identity information for the terminal device, wherein the information used in the process of generating device identity information for the terminal device does not include information on the device attributes of the terminal device (such as the terminal device's IMEI, Device ID, MAC address, IP address, etc.), nor does it include personal information of the user of the terminal device (such as the user's ID number, mobile phone number, etc.). The specific processing of the server generating device identity information for the terminal device can be varied. For example, the server can obtain the current time (or date), the identifier of the application for business processing, the order of generating device identity information, the verification code of the device identity information, and other information, and can generate device identity information based on the obtained information, and can send the generated device identity information to the terminal device.
[0055] In step S108, the device identity information sent by the server is received, and the device identity information is stored in the trusted execution environment.
[0056] In implementation, the terminal device can receive the device identity information sent by the server. A verification algorithm can be set in the terminal device, and the authenticity of the device identity information can be verified by the verification algorithm. If the verification passes, it indicates that the device identity information is authentic and valid. At this time, the device identity information can be stored in a trusted execution environment.
[0057] The embodiments of this specification provide a device identity processing method based on privacy protection, which is applied to a terminal device provided with a trusted execution environment, and detects whether the trusted execution environment of the terminal device contains the device identity information of the terminal device. If not, a creation request for the device identity information of the terminal device is sent to a server, and the server generates first verification information for the terminal device based on the creation request. When receiving the first verification information of the terminal device sent by the server, the server obtains the verification information of the terminal device, and sends the verification information of the terminal device to the server. The server verifies the verification information, and after the verification passes, generates device identity information for the terminal device, receives the device identity information sent by the server, and stores the device identity information in the trusted execution environment. In this way, there is no need to collect personal information of the terminal device and the user, and there will be no data collection failure and randomization problems caused by operating system upgrades, and there will be no problems such as user data privacy leakage. Moreover, the device identity information is stored in the trusted execution environment, which can prevent the user from unconsciously deleting the device identity information in the scenario of application uninstallation or flashing, thereby improving the accuracy of the device fingerprint of the terminal device.
[0058] Embodiment 2
[0059] like Figure 3 As shown, the embodiment of this specification provides a device identity processing method based on privacy protection, and the execution subject of the method can be a terminal device, wherein the terminal device can be a computer device such as a laptop or desktop computer, and can also be a mobile terminal device such as a mobile phone or tablet computer. A trusted execution environment can be set in the terminal device, and the trusted execution environment can be a TEE (Trusted Execution Environment). The trusted execution environment can be implemented by a program written in a predetermined programming language (that is, it can be implemented in the form of software), or it can be implemented in the form of software and hardware. The trusted execution environment can be a secure operating environment for data processing. The method can specifically include the following steps:
[0060] In step S302, it is detected whether the trusted execution environment of the terminal device contains the device identity information of the terminal device.
[0061] The specific processing process of the above step S302 can refer to the relevant content in the above embodiment 1, which will not be repeated here.
[0062] In step S304, if the trusted execution environment does not include the device identity information of the terminal device, a creation request for the device identity information of the terminal device is sent to the server, so that the server generates first verification information for the terminal device based on the creation request.
[0063] In step S306, upon receiving the first verification information of the terminal device sent by the server, the verification information of the terminal device is obtained.
[0064] The verification information of the terminal device may include the first verification information, the first device key corresponding to the terminal device, and the random number, wherein the first device key may be a key for the terminal device pre-agreed by the terminal device and the server, and the first device key may be a public key of the terminal device or a private key of the terminal device, which may be set according to actual conditions, and the embodiments of this specification do not limit this. The random number may be a number or character generated by a preset random processing mechanism, and the random number may be composed of one or more numbers, one or more characters, or one or more numbers and one or more characters.
[0065] In implementation, in the case where the verification information of the terminal device includes the first verification information, the first device key corresponding to the terminal device, and the random number, the first device key corresponding to the terminal device can be stored in the trusted execution environment of the terminal device, thereby ensuring the security of the first device key. In addition, the random number can also be stored in the trusted execution environment of the terminal device, and a random number generation mechanism can also be set in the trusted execution environment. In this way, the random number can be generated by the above-mentioned random number generation mechanism in the trusted execution environment, thereby ensuring the security of the random number or the random number generation mechanism. Based on the above processing, the terminal device can also obtain the first device key and the random number from the trusted execution environment, and can use the received first verification information, the first device key and the random number in the trusted execution environment as the verification information of the terminal device.
[0066] In step S308, the verification information is encrypted using the first service key corresponding to the server to obtain encrypted verification information.
[0067] The first service key may be a key for the server agreed upon in advance by the terminal device and the server, and may be a public key of the server or a private key of the server, which may be set according to actual conditions and is not limited in this embodiment of the specification. The first service key may be stored in a trusted execution environment of the terminal device.
[0068] In implementation, in this embodiment, the first service key takes the public key of the server as an example, and the terminal device can transmit the above verification information to the trusted execution environment of the terminal device. In the trusted execution environment, the verification information can be encrypted using the first service key corresponding to the server to obtain the encrypted verification information. The encryption algorithm used may include multiple algorithms, such as full-state encryption algorithm, homomorphic encryption algorithm, partially homomorphic encryption algorithm or other encryption algorithms, which can be set according to actual conditions, and this specification embodiment does not limit this.
[0069] In step S310, the encrypted verification information is signed by the second device key corresponding to the terminal device to obtain the encrypted and signed verification information, and the encrypted and signed verification information is sent to the server so that the server verifies the verification information and generates the device identity information for the terminal device after the verification passes.
[0070] Among them, the second device key can be a key for the terminal device pre-agreed by the terminal device and the server, the second device key can be a public key of the terminal device, or a private key of the terminal device, in addition, the first device key can be a public key of the terminal device, the second device key can be a private key of the terminal device, or the first device key can be a private key of the terminal device, the second device key can be a public key of the terminal device, and the specific setting can be based on actual conditions, and this specification embodiment does not limit this. The second device key can be stored in the trusted execution environment of the terminal device.
[0071] In implementation, the terminal device can transmit the above verification information to the trusted execution environment of the terminal device. In the trusted execution environment, the encrypted verification information can be signed using the second device key corresponding to the terminal device to obtain the encrypted verification information, and the encrypted verification information can be sent to the server. After receiving the encrypted verification information, the server can verify the verification information. Specifically, for the case where the verification information of the terminal device includes the first verification information, the first device key corresponding to the terminal device, and the random number, the terminal device can decrypt the encrypted verification information. If the decryption process is successful, the verification information is verified based on the first device key corresponding to the decrypted terminal device. If it is determined that the above verification process is successful, the server can verify the authenticity of the first verification information and the authenticity of the random number. If the authenticity of the first verification information and the authenticity of the random number are verified, the server can generate the device identity information for the terminal device, wherein the device identity information can be information that uniquely identifies the terminal device generated by the server based on a preset algorithm, and the data used to generate the device identity information does not include the device attribute information of the terminal device and the personal information of the user of the terminal device.
[0072] In step S312, the device identity information sent by the server is received.
[0073] In step S314, first verification information of the terminal device sent by the server is received.
[0074] In step S316, the first verification information is transmitted to the trusted execution environment through a first trusted application for performing data security processing on the terminal device.
[0075] Among them, the first trusted application can be a pre-specified trusted application that can be used to perform data security processing, such as a financial payment application, an instant messaging application or a pre-developed application, etc. The first trusted application can be an application that needs to be installed in the terminal device, or a code program pre-implanted in a hardware device of the terminal device, or a program that runs in the background of the operating system of the terminal device in the form of a plug-in, etc., which can be set according to actual conditions. Alternatively, the first trusted application can be an application built based on a trusted program in the trusted execution environment of the terminal device. The trusted execution environment TEE also provides a secure execution environment for authorized secure applications (or can be called a trusted program, i.e., TrustApp, TA), while also protecting the confidentiality, integrity and access rights of the resources and data of the trusted program. Cryptography technology can be used to ensure that different trusted programs are isolated, and any trusted program will not arbitrarily read and operate the data of other trusted programs. Therefore, in addition to the independence of TEE and REE in the terminal device, each trusted program in TEE also needs to be authorized and run independently of each other. In addition, the trusted program needs to be verified for integrity before execution to ensure that the trusted program has not been tampered with. Trusted programs can interact directly with peripherals such as touch screens, cameras, and fingerprint sensors without the need for interfaces provided by the REE of the terminal device, thereby ensuring data security. The first trusted application can include a client program and a trusted end program. The trusted end program can be a corresponding trusted program in the TEE. The first trusted application can trigger the corresponding trusted program in the TEE to run, so that the first trusted application and the corresponding trusted program in the TEE can perform secure data transmission with each other.
[0076] In step S318, the authenticity of the first verification information is verified in the trusted execution environment.
[0077] In step S320, if the first verification information passes the authenticity verification, the device identity information is transmitted to the trusted execution environment through the first trusted application on the terminal device, and the device identity information is stored in the trusted execution environment.
[0078] Among them, the device identity information can be encrypted by the server using the first device key corresponding to the terminal device, and signed using the second service key corresponding to the server. For the above situation, it can also be processed through the following steps A2 to A6.
[0079] In step A2, the device identity information is transmitted to the trusted execution environment through a first trusted application for executing data security processing on the terminal device.
[0080] In step A4, in the trusted execution environment, the device identity information is decrypted by the second device key corresponding to the terminal device to obtain the decrypted device identity information, and the device identity information is verified by the first service key corresponding to the server.
[0081] In step A6, if the decryption and signature verification of the device identity information are successful, the decrypted device identity information is stored in the trusted execution environment.
[0082] In addition, in addition to the above-mentioned processing method, the following steps B2 to B6 can also be used for processing.
[0083] In step B2, the second verification information of the terminal device sent by the server is received. The second verification information is the first verification information encrypted by the first device key corresponding to the terminal device and signed by the second service key corresponding to the server.
[0084] In step B4, the second verification information is transmitted to the trusted execution environment through the first trusted application on the terminal device.
[0085] In step B6, in the trusted execution environment, the second verification information is decrypted by the second device key corresponding to the terminal device to obtain the first verification information, the authenticity of the first verification information is verified, and the second verification information is signed by the first service key corresponding to the server.
[0086] Based on the above content, the processing of the above step A6 may include: if the decryption and signature verification of the device identity information and the second verification information are successful and the first verification information passes the authenticity verification, the decrypted device identity information is stored in the trusted execution environment.
[0087] After the device identity information of the terminal device is set in the trusted execution environment of the terminal device in the above manner, the terminal device can perform corresponding business processing based on the device identity information. For details, please refer to the processing of the following steps S322 to S328.
[0088] In step S322, it is determined whether the trusted execution environment of the terminal device contains the device identity information of the terminal device.
[0089] In step S324, if the trusted execution environment includes the device identity information, a request for using the device identity information is sent to the server.
[0090] In step S326, when the third verification information corresponding to the usage request sent by the server is received, the device identity information is obtained from the trusted execution environment, and the device identity information and the third verification information are sent to the server, so that the server verifies the device identity information and the third verification information, and after the verification is passed, sends a usage notification of the device identity information to the terminal device.
[0091] It should be noted that there may be various specific processing methods for sending the device identity information and the third verification information to the server in the above step S326. An optional processing method is provided below. For details, please refer to the following steps C2 and C4.
[0092] In step C2, in the trusted execution environment, the device identity information, the third verification information, and the first device key corresponding to the terminal device are encrypted by the first service key corresponding to the server to obtain encrypted information, and the encrypted information is signed by the second device key corresponding to the terminal device to obtain encrypted and signed information;
[0093] In step C4, the encrypted and signed information is sent to the server.
[0094] In step S328, when the usage notification sent by the server is received, corresponding business processing is performed based on the device identity information.
[0095] The embodiments of this specification provide a device identity processing method based on privacy protection, which is applied to a terminal device provided with a trusted execution environment, and detects whether the trusted execution environment of the terminal device contains the device identity information of the terminal device. If not, a creation request for the device identity information of the terminal device is sent to a server, and the server generates first verification information for the terminal device based on the creation request. When receiving the first verification information of the terminal device sent by the server, the server obtains the verification information of the terminal device, and sends the verification information of the terminal device to the server. The server verifies the verification information, and after the verification passes, generates device identity information for the terminal device, receives the device identity information sent by the server, and stores the device identity information in the trusted execution environment. In this way, there is no need to collect personal information of the terminal device and the user, and there will be no data collection failure and randomization problems caused by operating system upgrades, and there will be no problems such as user data privacy leakage. Moreover, the device identity information is stored in the trusted execution environment, which can prevent the user from unconsciously deleting the device identity information in the scenario of application uninstallation or flashing, thereby improving the accuracy of the device fingerprint of the terminal device.
[0096] Embodiment 3
[0097] like Figure 4A and Figure 4B As shown, the embodiment of this specification provides a device identity processing method based on privacy protection. The execution subject of the method can be a server, wherein the server can be a background server for a certain business (such as a business for conducting transactions or a financial business, etc.) or providing access to a certain object. Specifically, the server can be a payment service server, or a server for services related to finance or instant messaging, etc. The corresponding device identity processing system based on privacy protection can be as follows Figure 2 The method may specifically include the following steps:
[0098] In step S402, a request for creating device identity information sent by a terminal device is received. The request for creating device identity information is sent by the terminal device when the terminal device detects that the trusted execution environment of the terminal device does not contain the device identity information of the terminal device.
[0099] The specific processing process of the above step S402 can refer to the relevant content in the above embodiment 1, which will not be repeated here.
[0100] In step S404, first verification information for the terminal device is generated based on the creation request, and the first verification information is sent to the terminal device.
[0101] The specific processing process of the above step S404 can refer to the relevant content in the above embodiment 1 or embodiment 2, and will not be repeated here.
[0102] In step S406, the verification information sent by the terminal device is received and verified. If the verification passes, device identity information is generated for the terminal device.
[0103] In step S408, the device identity information is sent to the terminal device, so that the terminal device stores the device identity information in the trusted execution environment.
[0104] The embodiments of this specification provide a device identity processing method based on privacy protection, which is applied to a terminal device provided with a trusted execution environment, and detects whether the trusted execution environment of the terminal device contains the device identity information of the terminal device. If not, a creation request for the device identity information of the terminal device is sent to a server, and the server generates first verification information for the terminal device based on the creation request. When receiving the first verification information of the terminal device sent by the server, the server obtains the verification information of the terminal device, and sends the verification information of the terminal device to the server. The server verifies the verification information, and after the verification passes, generates device identity information for the terminal device, receives the device identity information sent by the server, and stores the device identity information in the trusted execution environment. In this way, there is no need to collect personal information of the terminal device and the user, and there will be no data collection failure and randomization problems caused by operating system upgrades, and there will be no problems such as user data privacy leakage. Moreover, the device identity information is stored in the trusted execution environment, which can prevent the user from unconsciously deleting the device identity information in the scenario of application uninstallation or flashing, thereby improving the accuracy of the device fingerprint of the terminal device.
[0105] Embodiment 4
[0106] like Figure 5 As shown, the embodiment of this specification provides a device identity processing method based on privacy protection. The execution subject of the method can be a server, wherein the server can be a background server for a certain business (such as a business for conducting transactions or a financial business, etc.) or providing access to a certain object. Specifically, the server can be a payment service server, or a server for services related to finance or instant messaging, etc. The corresponding device identity processing system based on privacy protection can be as follows Figure 2 The method may specifically include the following steps:
[0107] In step S502, a request for creating device identity information sent by a terminal device is received. The request for creating device identity information is sent by the terminal device when the terminal device detects that the trusted execution environment of the terminal device does not contain the device identity information of the terminal device.
[0108] In step S504, first verification information for the terminal device is generated based on the creation request, and the first verification information is sent to the terminal device.
[0109] In step S506, verification information sent by the terminal device is received.
[0110] The verification information may include the first verification information, a first device key corresponding to the terminal device, and a random number.
[0111] In step S508, the verification information is decrypted using the second service key corresponding to the server to obtain the first verification information, the first device key corresponding to the terminal device, and a random number.
[0112] In step S510, the authenticity of the first verification information and the random number is verified, and the verification information is signed using the first device key corresponding to the terminal device.
[0113] In step S512, if the signature verification of the verification information is successful and the first verification information and the random number pass the authenticity verification, device identity information is generated for the terminal device.
[0114] It should be noted that if the verification passes, device identity information that can uniquely identify the terminal device can be generated based on a preset algorithm, wherein the data used to generate the device identity information does not include the device attribute information of the terminal device and the personal information of the user of the terminal device.
[0115] In step S514, the device identity information is encrypted using the first device key corresponding to the terminal device to obtain encrypted device identity information.
[0116] In step S516, the encrypted device identity information is signed by the second device key corresponding to the server to obtain the encrypted and signed device identity information, and the encrypted and signed device identity information is sent to the terminal device so that the terminal device stores the device identity information in a trusted execution environment.
[0117] In step S518, a request for using the device identity information sent by the terminal device is received.
[0118] In step S520, third verification information corresponding to the use request is generated based on the use request, and the third verification information is sent to the terminal device so that the terminal device obtains device identity information from the trusted execution environment, and sends the device identity information and the third verification information to the server.
[0119] The third verification information may be verification information created by the server for a terminal device that needs to use device identity information, and may be used as permission or verification information for the use of the device identity information of the terminal device. The third verification information may be implemented in a variety of ways, for example, the third verification information may be implemented in the form of a challenge code or a random number, and the third verification information may be composed of one or more of numbers, texts, and symbols, etc. The third verification information may be the same as the first verification information, or may be different from the first verification information.
[0120] In step S522, the device identity information and the third verification information sent by the terminal device are received, and the device identity information and the third verification information are verified.
[0121] In step S524, if the verification is passed, a usage notification of the device identity information is sent to the terminal device.
[0122] The embodiments of this specification provide a device identity processing method based on privacy protection, which is applied to a terminal device provided with a trusted execution environment, and detects whether the trusted execution environment of the terminal device contains the device identity information of the terminal device. If not, a creation request for the device identity information of the terminal device is sent to a server, and the server generates first verification information for the terminal device based on the creation request. When receiving the first verification information of the terminal device sent by the server, the server obtains the verification information of the terminal device, and sends the verification information of the terminal device to the server. The server verifies the verification information, and after the verification passes, generates device identity information for the terminal device, receives the device identity information sent by the server, and stores the device identity information in the trusted execution environment. In this way, there is no need to collect personal information of the terminal device and the user, and there will be no data collection failure and randomization problems caused by operating system upgrades, and there will be no problems such as user data privacy leakage. Moreover, the device identity information is stored in the trusted execution environment, which can prevent the user from unconsciously deleting the device identity information in the scenario of application uninstallation or flashing, thereby improving the accuracy of the device fingerprint of the terminal device.
[0123] Embodiment 5
[0124] like Figure 6As shown, the embodiment of this specification provides a device identity processing method based on privacy protection. The execution subject of the method can be a terminal device and a server, wherein the terminal device can be such as a mobile phone, a tablet computer, a personal computer, etc. A trusted execution environment can be set in the terminal device, and the trusted execution environment can be TEE (Trusted Execution Environment). The trusted execution environment can be implemented by a program written in a predetermined programming language (that is, it can be implemented in the form of software), or it can be implemented in the form of software and hardware. The trusted execution environment can be a secure operating environment for data processing. The server can be a background server for a certain business (such as a business for conducting transactions or a financial business, etc.) or providing access to a certain object. Specifically, the server can be a server for payment services, or a server for services related to finance or instant messaging, etc. The method can specifically include the following steps:
[0125] In step S602, the terminal device detects whether the trusted execution environment of the terminal device contains the device identity information of the terminal device.
[0126] In step S604, if the trusted execution environment does not include the device identity information of the terminal device, the terminal device sends a request for creating the device identity information of the terminal device to the server.
[0127] In step S606, the server generates first verification information for the terminal device based on the creation request, and sends the first verification information to the terminal device.
[0128] In step S608, when the terminal device receives the first verification information of the terminal device sent by the server, the verification information of the terminal device is obtained.
[0129] The verification information includes the first verification information, the first device key corresponding to the terminal device, and a random number.
[0130] In step S610, the terminal device encrypts the verification information using the first service key corresponding to the server to obtain encrypted verification information.
[0131] In step S612, the terminal device signs the encrypted verification information using the second device key corresponding to the terminal device to obtain the encrypted and signed verification information, and sends the encrypted and signed verification information to the server.
[0132] In step S614, the server decrypts the verification information using the second service key corresponding to the server to obtain the first verification information, the first device key corresponding to the terminal device, and a random number.
[0133] In step S616, the server verifies the authenticity of the first verification information and the random number, and performs signature verification on the verification information using the first device key corresponding to the terminal device.
[0134] In step S618, if the signature verification of the verification information is successful and the first verification information and the random number pass the authenticity verification, the server generates device identity information for the terminal device.
[0135] In step S620, the server encrypts the device identity information using the first device key corresponding to the terminal device to obtain the encrypted device identity information.
[0136] In step S622, the server signs the encrypted device identity information using the second device key corresponding to the server to obtain the encrypted and signed device identity information.
[0137] In step S624, the terminal device receives the device identity information sent by the server.
[0138] In step S626, the terminal device receives the first verification information of the terminal device sent by the server.
[0139] In step S628, the terminal device transmits the first verification information to the trusted execution environment through a first trusted application for performing data security processing on the terminal device.
[0140] In step S630, in the trusted execution environment, the terminal device verifies the authenticity of the first verification information.
[0141] In step S632, if the first verification information passes the authenticity verification, the terminal device transmits the device identity information to the trusted execution environment through the first trusted application on the terminal device.
[0142] In step S634, in the trusted execution environment, the terminal device decrypts the device identity information using the second device key corresponding to the terminal device to obtain the decrypted device identity information, and verifies the signature of the device identity information using the first service key corresponding to the server.
[0143] In step S636, if the decryption and signature verification of the device identity information are successful, the terminal device stores the decrypted device identity information in the trusted execution environment.
[0144] In addition, in addition to being processed in the above manner, it can also be processed in the following manner, which may specifically include the following: the terminal device receives second verification information of the terminal device sent by the server, the second verification information being the first verification information encrypted by the first device key corresponding to the terminal device, and signed by the second service key corresponding to the server; the second verification information is passed to the trusted execution environment through the first trusted application on the terminal device; in the trusted execution environment, the second verification information is decrypted by the second device key corresponding to the terminal device to obtain the first verification information, the authenticity of the first verification information is verified, and the second verification information is signed by the first service key corresponding to the server; if the decryption and verification of the device identity information and the second verification information are successful and the first verification information passes the authenticity verification, the decrypted device identity information is stored in the trusted execution environment.
[0145] After the device identity information of the terminal device is set in the trusted execution environment of the terminal device in the above manner, the terminal device can perform corresponding business processing based on the device identity information. For details, please refer to the processing of the following steps S638 to S328.
[0146] In step S638, the terminal device determines whether the trusted execution environment of the terminal device contains the device identity information of the terminal device.
[0147] In step S640, if the trusted execution environment includes the device identity information, the terminal device sends a request for using the device identity information to the server.
[0148] In step S642, the server generates third verification information corresponding to the use request based on the use request, and sends the third verification information to the terminal device.
[0149] In step S644, upon receiving the third verification information corresponding to the use request sent by the server, the terminal device obtains the device identity information from the trusted execution environment.
[0150] In step S646, in the trusted execution environment, the terminal device encrypts the device identity information, the third verification information and the first device key corresponding to the terminal device through the first service key corresponding to the server to obtain encrypted information, and signs the encrypted information through the second device key corresponding to the terminal device to obtain encrypted and signed information.
[0151] In step S648, the terminal device sends the encrypted and signed information to the server.
[0152] In step S650, the server verifies the device identity information and the third verification information, and if the verification passes, sends a usage notification of the device identity information to the terminal device.
[0153] In step S652, when the terminal device receives the usage notification sent by the server, corresponding service processing is performed based on the device identity information.
[0154] The embodiments of this specification provide a device identity processing method based on privacy protection, which is applied to a terminal device provided with a trusted execution environment, and detects whether the trusted execution environment of the terminal device contains the device identity information of the terminal device. If not, a creation request for the device identity information of the terminal device is sent to a server, and the server generates first verification information for the terminal device based on the creation request. When receiving the first verification information of the terminal device sent by the server, the server obtains the verification information of the terminal device, and sends the verification information of the terminal device to the server. The server verifies the verification information, and after the verification passes, generates device identity information for the terminal device, receives the device identity information sent by the server, and stores the device identity information in the trusted execution environment. In this way, there is no need to collect personal information of the terminal device and the user, and there will be no data collection failure and randomization problems caused by operating system upgrades, and there will be no problems such as user data privacy leakage. Moreover, the device identity information is stored in the trusted execution environment, which can prevent the user from unconsciously deleting the device identity information in the scenario of application uninstallation or flashing, thereby improving the accuracy of the device fingerprint of the terminal device.
[0155] Embodiment 6
[0156] As shown in FIG7 , the embodiment of this specification provides a device identity processing method based on privacy protection, and the execution subject of the method can be a terminal device, wherein the terminal device can be a computer device such as a laptop or desktop computer, and can also be a mobile terminal device such as a mobile phone or tablet computer. A trusted execution environment can be set in the terminal device, and the trusted execution environment can be a TEE (Trusted Execution Environment). The trusted execution environment can be implemented by a program written in a predetermined programming language (that is, it can be implemented in the form of software), or it can be implemented in the form of software and hardware. The trusted execution environment can be a secure operating environment for data processing.
[0157] Based on the above embodiment, the processing process in the above embodiment can also be simplified, so as to obtain the following implementable method, which can specifically include the following steps:
[0158] In step S702, it is detected whether the trusted execution environment of the terminal device contains the device identity information of the terminal device.
[0159] In step S704, if the device identity information of the terminal device is not included in the trusted execution environment, a request to create the device identity information of the terminal device is sent to the server, so that the server generates device identity information for the terminal device based on the creation request, wherein the device identity information is information that uniquely identifies the terminal device and is generated by the server based on a preset algorithm, and the data used to generate the device identity information does not include device attribute information of the terminal device and personal information of the user of the terminal device.
[0160] In step S706, the device identity information sent by the server is received, and the device identity information is stored in the trusted execution environment.
[0161] The processing method provided in this embodiment is a further simplified processing method of the above embodiment. In practical applications, the processing of the above steps S702 to S706 can also be refined. The specific processing method can refer to the specific contents of the above embodiments one, two and five, which will not be repeated here.
[0162] The embodiments of this specification provide a device identity processing method based on privacy protection, which is applied to a terminal device provided with a trusted execution environment, and detects whether the trusted execution environment of the terminal device contains the device identity information of the terminal device. If not, a creation request for the device identity information of the terminal device is sent to a server, and the server generates first verification information for the terminal device based on the creation request. When receiving the first verification information of the terminal device sent by the server, the server obtains the verification information of the terminal device, and sends the verification information of the terminal device to the server. The server verifies the verification information, and after the verification passes, generates device identity information for the terminal device, receives the device identity information sent by the server, and stores the device identity information in the trusted execution environment. In this way, there is no need to collect personal information of the terminal device and the user, and there will be no data collection failure and randomization problems caused by operating system upgrades, and there will be no problems such as user data privacy leakage. Moreover, the device identity information is stored in the trusted execution environment, which can prevent the user from unconsciously deleting the device identity information in the scenario of application uninstallation or flashing, thereby improving the accuracy of the device fingerprint of the terminal device.
[0163] Embodiment 7
[0164] like Fig. 8A and Figure 8BAs shown, the embodiment of this specification provides a device identity processing method based on privacy protection. The execution subject of the method can be a server, wherein the server can be a background server for a certain business (such as a business for conducting transactions or a financial business, etc.) or providing access to a certain object. Specifically, the server can be a payment service server, or a server for services related to finance or instant messaging, etc. The corresponding device identity processing system based on privacy protection can be as follows Figure 2 shown.
[0165] Based on the processing of the sixth embodiment above, the corresponding processing method on the server side may be as follows, and the method may specifically include the following steps:
[0166] In step S802, a request for creating device identity information sent by a terminal device is received. The request for creating device identity information is sent by the terminal device when the terminal device detects that the trusted execution environment of the terminal device does not contain the device identity information of the terminal device.
[0167] In step S804, based on the above creation request, device identity information is generated for the terminal device through a preset algorithm, wherein the data used to generate the device identity information does not include device attribute information of the terminal device and personal information of the user of the terminal device.
[0168] In step S806, the device identity information is sent to the terminal device, so that the terminal device stores the device identity information in a trusted execution environment.
[0169] The processing method provided in this embodiment is a further simplified processing method of the above embodiment. In practical applications, the processing of the above steps S802 to S806 can also be refined. The specific processing method can refer to the specific contents of the above embodiments three to five, which will not be repeated here.
[0170] The embodiments of this specification provide a device identity processing method based on privacy protection, which is applied to a terminal device provided with a trusted execution environment, and detects whether the trusted execution environment of the terminal device contains the device identity information of the terminal device. If not, a creation request for the device identity information of the terminal device is sent to a server, and the server generates first verification information for the terminal device based on the creation request. When receiving the first verification information of the terminal device sent by the server, the server obtains the verification information of the terminal device, and sends the verification information of the terminal device to the server. The server verifies the verification information, and after the verification passes, generates device identity information for the terminal device, receives the device identity information sent by the server, and stores the device identity information in the trusted execution environment. In this way, there is no need to collect personal information of the terminal device and the user, and there will be no data collection failure and randomization problems caused by operating system upgrades, and there will be no problems such as user data privacy leakage. Moreover, the device identity information is stored in the trusted execution environment, which can prevent the user from unconsciously deleting the device identity information in the scenario of application uninstallation or flashing, thereby improving the accuracy of the device fingerprint of the terminal device.
[0171] Embodiment 8
[0172] The above is a device identity processing method based on privacy protection provided by the embodiments of this specification. Based on the same idea, the embodiments of this specification also provide a device identity processing device based on privacy protection, in which a trusted execution environment is set, such as Fig. 9 shown.
[0173] The device identity processing apparatus based on privacy protection includes: an information detection module 901, a creation request module 902, a verification information acquisition module 903 and a device identity acquisition module 904, wherein:
[0174] An information detection module 901 detects whether the trusted execution environment of the terminal device contains the device identity information of the terminal device;
[0175] A creation request module 902, if the trusted execution environment does not contain the device identity information of the terminal device, sends a creation request for the device identity information of the terminal device to the server, so that the server generates first verification information for the terminal device based on the creation request;
[0176] The verification information acquisition module 903, upon receiving the first verification information of the terminal device sent by the server, acquires the verification information of the terminal device, and sends the verification information of the terminal device to the server, so that the server verifies the verification information, and generates the device identity information for the terminal device after the verification passes;
[0177] The device identity acquisition module 904 receives the device identity information sent by the server and stores the device identity information in the trusted execution environment.
[0178] In the embodiment of this specification, the verification information of the terminal device includes the first verification information, the first device key corresponding to the terminal device and a random number.
[0179] The verification information acquisition module 903 includes:
[0180] an encryption unit, encrypting the verification information by using a first service key corresponding to the server to obtain encrypted verification information;
[0181] The signing unit signs the encrypted verification information using the second device key corresponding to the terminal device to obtain the encrypted and signed verification information, and sends the encrypted and signed verification information to the server.
[0182] In the embodiment of this specification, the device further includes:
[0183] A first verification receiving module receives first verification information of the terminal device sent by the server;
[0184] A first transmission module transmits the first verification information to the trusted execution environment through a first trusted application for performing data security processing on the terminal device;
[0185] a first verification module, for verifying the authenticity of the first verification information in the trusted execution environment;
[0186] The second transmission module transmits the device identity information to the trusted execution environment through the first trusted application on the terminal device if the first verification information passes the authenticity verification.
[0187] In the embodiment of this specification, the device identity information is encrypted by the server using the first device key corresponding to the terminal device, and signed using the second service key corresponding to the server, and the apparatus further includes:
[0188] a third transmission module, transmitting the device identity information to the trusted execution environment through a first trusted application for performing data security processing on the terminal device;
[0189] a signature verification module, in the trusted execution environment, decrypting the device identity information by using the second device key corresponding to the terminal device to obtain the decrypted device identity information, and verifying the device identity information by using the first service key corresponding to the server;
[0190] The device identity acquisition module 904 stores the decrypted device identity information in the trusted execution environment if the decryption and signature verification of the device identity information are successful.
[0191] In the embodiment of this specification, the device further includes:
[0192] a verification information receiving module, receiving second verification information of the terminal device sent by the server, wherein the second verification information is information obtained by encrypting the first verification information using a first device key corresponding to the terminal device and signing the first verification information using a second service key corresponding to the server;
[0193] a verification information delivery module, which delivers the second verification information to the trusted execution environment through a first trusted application on the terminal device;
[0194] a second verification module, in the trusted execution environment, decrypting the second verification information by using a second device key corresponding to the terminal device to obtain the first verification information, verifying the authenticity of the first verification information, and verifying the signature of the second verification information by using a first service key corresponding to the server;
[0195] The device identity acquisition module 904 stores the decrypted device identity information in the trusted execution environment if the decryption and signature verification of the device identity information and the second verification information are successful and the first verification information passes the authenticity verification.
[0196] In the embodiment of this specification, the device identity information is information that uniquely identifies the terminal device and is generated by the server based on a preset algorithm. The data used to generate the device identity information does not include device attribute information of the terminal device and personal information of the user of the terminal device.
[0197] In the embodiment of this specification, the device further includes:
[0198] A judgment module, for judging whether the trusted execution environment of the terminal device contains the device identity information of the terminal device;
[0199] A usage request module, which sends a usage request for the device identity information to the server if the trusted execution environment contains the device identity information;
[0200] a third information sending module, which, upon receiving the third verification information corresponding to the use request sent by the server, obtains the device identity information from the trusted execution environment, and sends the device identity information and the third verification information to the server, so that the server verifies the device identity information and the third verification information, and after the verification passes, sends a use notification of the device identity information to the terminal device;
[0201] The service processing module performs corresponding service processing based on the device identity information when receiving the usage notification sent by the server.
[0202] In the embodiment of the present specification, the third information sending module, in the trusted execution environment, encrypts the device identity information, the third verification information and the first device key corresponding to the terminal device by using the first service key corresponding to the server to obtain encrypted information, and signs the encrypted information by using the second device key corresponding to the terminal device to obtain encrypted and signed information; and sends the encrypted and signed information to the server.
[0203] The embodiments of this specification provide a device identity processing device based on privacy protection, which is applied to a terminal device provided with a trusted execution environment, and detects whether the trusted execution environment of the terminal device contains the device identity information of the terminal device. If not, a creation request for the device identity information of the terminal device is sent to a server, and the server generates first verification information for the terminal device based on the creation request. When receiving the first verification information of the terminal device sent by the server, the server obtains the verification information of the terminal device, and sends the verification information of the terminal device to the server. The server verifies the verification information, and after the verification passes, generates device identity information for the terminal device, receives the device identity information sent by the server, and stores the device identity information in the trusted execution environment. In this way, there is no need to collect personal information of the terminal device and the user, and there will be no data collection failure and randomization problems caused by operating system upgrades, and there will be no problems such as user data privacy leakage. Moreover, the device identity information is stored in the trusted execution environment, which can prevent the user from unconsciously deleting the device identity information in the scenario of application uninstallation or flashing, thereby improving the accuracy of the device fingerprint of the terminal device.
[0204] Embodiment 9
[0205] Based on the same idea, the embodiment of this specification also provides a device identity processing device based on privacy protection, such as Fig.10 shown.
[0206] The device identity processing apparatus based on privacy protection includes: a creation request receiving module 1001, a first information generating module 1002, a first verification module 1003 and a device identity sending module 1004, wherein:
[0207] A creation request receiving module 1001 receives a creation request for device identity information sent by a terminal device, wherein the creation request is sent by the terminal device when the terminal device detects that the trusted execution environment of the terminal device does not contain the device identity information of the terminal device;
[0208] A first information generating module 1002 generates first verification information for the terminal device based on the creation request, and sends the first verification information to the terminal device;
[0209] The first verification module 1003 receives the verification information sent by the terminal device, verifies the verification information, and generates the device identity information for the terminal device if the verification passes;
[0210] The device identity sending module 1004 sends the device identity information to the terminal device, so that the terminal device stores the device identity information in the trusted execution environment.
[0211] In the embodiment of this specification, the verification information includes the first verification information of the terminal device, the first device key corresponding to the terminal device and the random number, and the verification information is encrypted by the terminal device using the first service key corresponding to the device and signed using the second device key corresponding to the terminal device.
[0212] The first verification module 1003 includes:
[0213] a decryption unit, decrypting the verification information by using a second service key corresponding to the device to obtain the first verification information, a first device key corresponding to the terminal device, and a random number;
[0214] A signature verification unit, which verifies the authenticity of the first verification information and the random number, and performs signature verification processing on the verification information using a first device key corresponding to the terminal device;
[0215] The verification unit generates the device identity information for the terminal device if the signature verification of the verification information is successful and the first verification information and the random number pass the authenticity verification.
[0216] In the embodiment of this specification, the device identity sending module 1004 includes:
[0217] an encryption unit, encrypting the device identity information by using a first device key corresponding to the terminal device to obtain encrypted device identity information;
[0218] The device identity sending unit signs the encrypted device identity information using the second device key corresponding to the apparatus to obtain the encrypted and signed device identity information, and sends the encrypted and signed device identity information to the terminal device.
[0219] In the embodiment of this specification, the device further includes:
[0220] A usage request receiving module, receiving a usage request for the device identity information sent by the terminal device;
[0221] a third information generating module, which generates third verification information corresponding to the use request based on the use request, and sends the third verification information to the terminal device, so that the terminal device obtains the device identity information from the trusted execution environment, and sends the device identity information and the third verification information to the apparatus;
[0222] A second verification module receives the device identity information and the third verification information sent by the terminal device, and verifies the device identity information and the third verification information;
[0223] The notification module uses the device identity information to send a notification of use to the terminal device if the verification is passed.
[0224] In the embodiment of the present specification, the first verification module 1003, if the verification passes, generates device identity information that can uniquely identify the terminal device based on a preset algorithm, wherein the data used to generate the device identity information does not include the device attribute information of the terminal device and the personal information of the user of the terminal device.
[0225] The embodiments of this specification provide a device identity processing device based on privacy protection, which is applied to a terminal device provided with a trusted execution environment, and detects whether the trusted execution environment of the terminal device contains the device identity information of the terminal device. If not, a creation request for the device identity information of the terminal device is sent to a server, and the server generates first verification information for the terminal device based on the creation request. When receiving the first verification information of the terminal device sent by the server, the server obtains the verification information of the terminal device, and sends the verification information of the terminal device to the server. The server verifies the verification information, and after the verification passes, generates device identity information for the terminal device, receives the device identity information sent by the server, and stores the device identity information in the trusted execution environment. In this way, there is no need to collect personal information of the terminal device and the user, and there will be no data collection failure and randomization problems caused by operating system upgrades, and there will be no problems such as user data privacy leakage. Moreover, the device identity information is stored in the trusted execution environment, which can prevent the user from unconsciously deleting the device identity information in the scenario of application uninstallation or flashing, thereby improving the accuracy of the device fingerprint of the terminal device.
[0226] Embodiment 10
[0227] Based on the same idea, the embodiment of this specification also provides a device identity processing device based on privacy protection, in which a trusted execution environment is set, such as Fig.11 shown.
[0228] The device identity processing apparatus based on privacy protection includes: a detection module 1101, a device identity request module 1102 and a device identity receiving module 1103, wherein:
[0229] A detection module 1101 detects whether the trusted execution environment of the terminal device contains the device identity information of the terminal device;
[0230] The device identity request module 1102 sends a request for creating the device identity information of the terminal device to the server if the trusted execution environment does not contain the device identity information of the terminal device, so that the server generates the device identity information for the terminal device based on the creation request, wherein the device identity information is information that uniquely identifies the terminal device and is generated by the server based on a preset algorithm, and the data used to generate the device identity information does not contain the device attribute information of the terminal device and the personal information of the user of the terminal device;
[0231] The device identity receiving module 1103 receives the device identity information sent by the server and stores the device identity information in the trusted execution environment.
[0232] The embodiments of this specification provide a device identity processing device based on privacy protection, which is applied to a terminal device provided with a trusted execution environment, and detects whether the trusted execution environment of the terminal device contains the device identity information of the terminal device. If not, a creation request for the device identity information of the terminal device is sent to a server, and the server generates first verification information for the terminal device based on the creation request. When receiving the first verification information of the terminal device sent by the server, the server obtains the verification information of the terminal device, and sends the verification information of the terminal device to the server. The server verifies the verification information, and after the verification passes, generates device identity information for the terminal device, receives the device identity information sent by the server, and stores the device identity information in the trusted execution environment. In this way, there is no need to collect personal information of the terminal device and the user, and there will be no data collection failure and randomization problems caused by operating system upgrades, and there will be no problems such as user data privacy leakage. Moreover, the device identity information is stored in the trusted execution environment, which can prevent the user from unconsciously deleting the device identity information in the scenario of application uninstallation or flashing, thereby improving the accuracy of the device fingerprint of the terminal device.
[0233] Embodiment 11
[0234] Based on the same idea, the embodiment of this specification also provides a device identity processing device based on privacy protection, such as Fig.12 shown.
[0235] The device identity processing apparatus based on privacy protection includes: a creation request receiving module 1201, a device identity generating module 1202 and a device identity sending module 1203, wherein:
[0236] A creation request receiving module 1201 receives a creation request for device identity information sent by a terminal device, wherein the creation request is sent by the terminal device when the terminal device detects that the trusted execution environment of the terminal device does not contain the device identity information of the terminal device;
[0237] The device identity generation module 1202 generates the device identity information for the terminal device through a preset algorithm based on the creation request, wherein the data used to generate the device identity information does not include the device attribute information of the terminal device and the personal information of the user of the terminal device;
[0238] The device identity sending module 1203 sends the device identity information to the terminal device, so that the terminal device stores the device identity information in the trusted execution environment.
[0239] The embodiments of this specification provide a device identity processing device based on privacy protection, which is applied to a terminal device provided with a trusted execution environment, and detects whether the trusted execution environment of the terminal device contains the device identity information of the terminal device. If not, a creation request for the device identity information of the terminal device is sent to a server, and the server generates first verification information for the terminal device based on the creation request. When receiving the first verification information of the terminal device sent by the server, the server obtains the verification information of the terminal device, and sends the verification information of the terminal device to the server. The server verifies the verification information, and after the verification passes, generates device identity information for the terminal device, receives the device identity information sent by the server, and stores the device identity information in the trusted execution environment. In this way, there is no need to collect personal information of the terminal device and the user, and there will be no data collection failure and randomization problems caused by operating system upgrades, and there will be no problems such as user data privacy leakage. Moreover, the device identity information is stored in the trusted execution environment, which can prevent the user from unconsciously deleting the device identity information in the scenario of application uninstallation or flashing, thereby improving the accuracy of the device fingerprint of the terminal device.
[0240] Embodiment 12
[0241] The above is a device identity processing apparatus based on privacy protection provided by the embodiments of this specification. Based on the same idea, the embodiments of this specification also provide a device identity processing apparatus based on privacy protection, which is provided with a trusted execution environment, such as Fig.13 shown.
[0242] The device identity processing device based on privacy protection may be the terminal device or server provided in the above embodiment.
[0243] The device identity processing device based on privacy protection may have relatively large differences due to different configurations or performances, and may include one or more processors 1301 and memory 1302, and one or more storage applications or data may be stored in the memory 1302. Among them, the memory 1302 may be a short-term storage or a persistent storage. The application stored in the memory 1302 may include one or more modules (not shown in the figure), and each module may include a series of computer executable instructions in the device identity processing device based on privacy protection. Furthermore, the processor 1301 may be configured to communicate with the memory 1302, and execute a series of computer executable instructions in the memory 1302 on the device identity processing device based on privacy protection. The device identity processing device based on privacy protection may also include one or more power supplies 1303, one or more wired or wireless network interfaces 1304, one or more input and output interfaces 1305, and one or more keyboards 1306.
[0244] Specifically in this embodiment, the device identity processing device based on privacy protection includes a memory and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer executable instructions in the device identity processing device based on privacy protection, and the one or more programs are configured to be executed by one or more processors, including computer executable instructions for performing the following:
[0245] Detecting whether the trusted execution environment of the terminal device contains device identity information of the terminal device;
[0246] If the trusted execution environment does not include the device identity information of the terminal device, sending a creation request for the device identity information of the terminal device to the server, so that the server generates first verification information for the terminal device based on the creation request;
[0247] Upon receiving the first verification information of the terminal device sent by the server, obtaining verification information of the terminal device, and sending the verification information of the terminal device to the server, so that the server verifies the verification information, and generates the device identity information for the terminal device after the verification passes;
[0248] The device identity information sent by the server is received, and the device identity information is stored in the trusted execution environment.
[0249] In the embodiment of this specification, the verification information of the terminal device includes the first verification information, the first device key corresponding to the terminal device and a random number.
[0250] The sending the verification information of the terminal device to the server includes:
[0251] Encrypting the verification information using a first service key corresponding to the server to obtain encrypted verification information;
[0252] The encrypted verification information is signed using the second device key corresponding to the terminal device to obtain the encrypted and signed verification information, and the encrypted and signed verification information is sent to the server.
[0253] In the embodiment of this specification, the device identity information is information that uniquely identifies the terminal device and is generated by the server based on a preset algorithm. The data used to generate the device identity information does not include device attribute information of the terminal device and personal information of the user of the terminal device.
[0254] In the embodiment of this specification, it also includes:
[0255] Determining whether the trusted execution environment of the terminal device contains the device identity information of the terminal device;
[0256] If the trusted execution environment includes the device identity information, sending a request for using the device identity information to the server;
[0257] Upon receiving the third verification information corresponding to the use request sent by the server, obtaining the device identity information from the trusted execution environment, and sending the device identity information and the third verification information to the server, so that the server verifies the device identity information and the third verification information, and after the verification passes, sending a use notification of the device identity information to the terminal device;
[0258] When the usage notification sent by the server is received, corresponding service processing is performed based on the device identity information.
[0259] In addition, specifically in this embodiment, the device identity processing device based on privacy protection includes a memory and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer executable instructions in the device identity processing device based on privacy protection, and the one or more programs are configured to be executed by one or more processors, including the following computer executable instructions:
[0260] receiving a request for creating device identity information sent by a terminal device, wherein the request for creating device identity information is sent by the terminal device when the terminal device detects that the trusted execution environment of the terminal device does not contain the device identity information of the terminal device;
[0261] generating first verification information for the terminal device based on the creation request, and sending the first verification information to the terminal device;
[0262] receiving verification information sent by the terminal device, and verifying the verification information, and if the verification passes, generating the device identity information for the terminal device;
[0263] The device identity information is sent to the terminal device, so that the terminal device stores the device identity information in the trusted execution environment.
[0264] In the embodiment of this specification, the verification information includes the first verification information of the terminal device, the first device key corresponding to the terminal device and the random number, and the verification information is encrypted by the terminal device using the first service key corresponding to the server and signed using the second device key corresponding to the terminal device.
[0265] The verifying the verification information, and if the verification passes, generating the device identity information for the terminal device, includes:
[0266] Decrypting the verification information by using the second service key corresponding to the server to obtain the first verification information, the first device key corresponding to the terminal device, and a random number;
[0267] Verify the authenticity of the first verification information and the random number, and verify the signature of the verification information using the first device key corresponding to the terminal device;
[0268] If the signature verification of the verification information is successful and the first verification information and the random number pass the authenticity verification, the device identity information is generated for the terminal device.
[0269] In the embodiment of this specification, it also includes:
[0270] Receiving a request for using the device identity information sent by the terminal device;
[0271] generating third verification information corresponding to the use request based on the use request, and sending the third verification information to the terminal device, so that the terminal device obtains the device identity information from the trusted execution environment, and sends the device identity information and the third verification information to the server;
[0272] receiving the device identity information and the third verification information sent by the terminal device, and verifying the device identity information and the third verification information;
[0273] If the verification is successful, a usage notification of the device identity information is sent to the terminal device.
[0274] In the embodiment of this specification, if the verification is passed, generating the device identity information for the terminal device includes:
[0275] If the verification passes, device identity information that can uniquely identify the terminal device is generated based on a preset algorithm, wherein the data used to generate the device identity information does not include device attribute information of the terminal device and personal information of the user of the terminal device.
[0276] In addition, specifically in this embodiment, the device identity processing device based on privacy protection includes a memory and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer executable instructions in the device identity processing device based on privacy protection, and the one or more programs are configured to be executed by one or more processors, including the following computer executable instructions:
[0277] Detecting whether the trusted execution environment of the terminal device contains device identity information of the terminal device;
[0278] If the trusted execution environment does not contain the device identity information of the terminal device, sending a creation request for the device identity information of the terminal device to the server, so that the server generates the device identity information for the terminal device based on the creation request, wherein the device identity information is information that uniquely identifies the terminal device and is generated by the server based on a preset algorithm, and the data used to generate the device identity information does not contain the device attribute information of the terminal device and the personal information of the user of the terminal device;
[0279] The device identity information sent by the server is received, and the device identity information is stored in the trusted execution environment.
[0280] In addition, specifically in this embodiment, the device identity processing device based on privacy protection includes a memory and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer executable instructions in the device identity processing device based on privacy protection, and the one or more programs are configured to be executed by one or more processors, including the following computer executable instructions:
[0281] Receiving a request for creating device identity information sent by a terminal device, wherein the request is sent by the terminal device when the terminal device detects that the trusted execution environment of the terminal device does not contain the device identity information of the terminal device;
[0282] Based on the creation request, generating the device identity information for the terminal device by using a preset algorithm, wherein the data used to generate the device identity information does not include device attribute information of the terminal device and personal information of a user of the terminal device;
[0283] The device identity information is sent to the terminal device, so that the terminal device stores the device identity information in the trusted execution environment.
[0284] The embodiments of this specification provide a device identity processing device based on privacy protection, which is applied to a terminal device provided with a trusted execution environment, and detects whether the trusted execution environment of the terminal device contains the device identity information of the terminal device. If not, a creation request for the device identity information of the terminal device is sent to a server, and the server generates first verification information for the terminal device based on the creation request. When receiving the first verification information of the terminal device sent by the server, the server obtains the verification information of the terminal device, and sends the verification information of the terminal device to the server. The server verifies the verification information, and after the verification passes, generates device identity information for the terminal device, receives the device identity information sent by the server, and stores the device identity information in the trusted execution environment. In this way, there is no need to collect personal information of the terminal device and the user, and there will be no data collection failure and randomization problems caused by operating system upgrades, and there will be no problems such as user data privacy leakage. Moreover, the device identity information is stored in the trusted execution environment, which can prevent the user from unconsciously deleting the device identity information in the scenario of application uninstallation or flashing, thereby improving the accuracy of the device fingerprint of the terminal device.
[0285] Embodiment 13
[0286] Further, based on the methods shown in FIGS. 1 to 8 above, one or more embodiments of the present specification further provide a storage medium for storing computer executable instruction information. In a specific embodiment, the storage medium may be a USB flash drive, an optical disk, a hard disk, etc. When the computer executable instruction information stored in the storage medium is executed by a processor, the following process can be implemented:
[0287] Detecting whether the trusted execution environment of the terminal device contains device identity information of the terminal device;
[0288] If the trusted execution environment does not include the device identity information of the terminal device, sending a creation request for the device identity information of the terminal device to the server, so that the server generates first verification information for the terminal device based on the creation request;
[0289] Upon receiving the first verification information of the terminal device sent by the server, obtaining verification information of the terminal device, and sending the verification information of the terminal device to the server, so that the server verifies the verification information, and generates the device identity information for the terminal device after the verification passes;
[0290] The device identity information sent by the server is received, and the device identity information is stored in the trusted execution environment.
[0291] In the embodiment of this specification, the verification information of the terminal device includes the first verification information, the first device key corresponding to the terminal device and a random number.
[0292] The sending the verification information of the terminal device to the server includes:
[0293] Encrypting the verification information using a first service key corresponding to the server to obtain encrypted verification information;
[0294] The encrypted verification information is signed using the second device key corresponding to the terminal device to obtain the encrypted and signed verification information, and the encrypted and signed verification information is sent to the server.
[0295] In the embodiment of this specification, the device identity information is information that uniquely identifies the terminal device and is generated by the server based on a preset algorithm. The data used to generate the device identity information does not include device attribute information of the terminal device and personal information of the user of the terminal device.
[0296] In the embodiment of this specification, it also includes:
[0297] Determining whether the trusted execution environment of the terminal device contains the device identity information of the terminal device;
[0298] If the trusted execution environment includes the device identity information, sending a request for using the device identity information to the server;
[0299] Upon receiving the third verification information corresponding to the use request sent by the server, obtaining the device identity information from the trusted execution environment, and sending the device identity information and the third verification information to the server, so that the server verifies the device identity information and the third verification information, and after the verification passes, sending a use notification of the device identity information to the terminal device;
[0300] When the usage notification sent by the server is received, corresponding service processing is performed based on the device identity information.
[0301] In addition, in a specific embodiment, the storage medium may be a USB flash drive, an optical disk, a hard disk, etc. When the computer executable instruction information stored in the storage medium is executed by the processor, the following process can be implemented:
[0302] Receiving a request for creating device identity information sent by a terminal device, wherein the request is sent by the terminal device when the terminal device detects that the trusted execution environment of the terminal device does not contain the device identity information of the terminal device;
[0303] generating first verification information for the terminal device based on the creation request, and sending the first verification information to the terminal device;
[0304] receiving verification information sent by the terminal device, and verifying the verification information, and if the verification passes, generating the device identity information for the terminal device;
[0305] The device identity information is sent to the terminal device, so that the terminal device stores the device identity information in the trusted execution environment.
[0306] In the embodiment of this specification, the verification information includes the first verification information of the terminal device, the first device key corresponding to the terminal device and the random number, and the verification information is encrypted by the terminal device using the first service key corresponding to the server and signed using the second device key corresponding to the terminal device.
[0307] The verifying the verification information, and if the verification passes, generating the device identity information for the terminal device, includes:
[0308] Decrypting the verification information by using the second service key corresponding to the server to obtain the first verification information, the first device key corresponding to the terminal device, and a random number;
[0309] Verify the authenticity of the first verification information and the random number, and verify the signature of the verification information using the first device key corresponding to the terminal device;
[0310] If the signature verification of the verification information is successful and the first verification information and the random number pass the authenticity verification, the device identity information is generated for the terminal device.
[0311] In the embodiment of this specification, it also includes:
[0312] Receiving a request for using the device identity information sent by the terminal device;
[0313] generating third verification information corresponding to the use request based on the use request, and sending the third verification information to the terminal device, so that the terminal device obtains the device identity information from the trusted execution environment, and sends the device identity information and the third verification information to the server;
[0314] receiving the device identity information and the third verification information sent by the terminal device, and verifying the device identity information and the third verification information;
[0315] If the verification is successful, a usage notification of the device identity information is sent to the terminal device.
[0316] In the embodiment of this specification, if the verification is passed, generating the device identity information for the terminal device includes:
[0317] If the verification passes, device identity information that can uniquely identify the terminal device is generated based on a preset algorithm, wherein the data used to generate the device identity information does not include device attribute information of the terminal device and personal information of the user of the terminal device.
[0318] In addition, in a specific embodiment, the storage medium may be a USB flash drive, an optical disk, a hard disk, etc. When the computer executable instruction information stored in the storage medium is executed by the processor, the following process can be implemented:
[0319] Detecting whether the trusted execution environment of the terminal device contains device identity information of the terminal device;
[0320] If the trusted execution environment does not contain the device identity information of the terminal device, sending a creation request for the device identity information of the terminal device to the server, so that the server generates the device identity information for the terminal device based on the creation request, wherein the device identity information is information that uniquely identifies the terminal device and is generated by the server based on a preset algorithm, and the data used to generate the device identity information does not contain the device attribute information of the terminal device and the personal information of the user of the terminal device;
[0321] The device identity information sent by the server is received, and the device identity information is stored in the trusted execution environment.
[0322] In addition, in a specific embodiment, the storage medium may be a USB flash drive, an optical disk, a hard disk, etc. When the computer executable instruction information stored in the storage medium is executed by the processor, the following process can be implemented:
[0323] Receiving a request for creating device identity information sent by a terminal device, wherein the request is sent by the terminal device when the terminal device detects that the trusted execution environment of the terminal device does not contain the device identity information of the terminal device;
[0324] Based on the creation request, generating the device identity information for the terminal device by using a preset algorithm, wherein the data used to generate the device identity information does not include device attribute information of the terminal device and personal information of a user of the terminal device;
[0325] The device identity information is sent to the terminal device, so that the terminal device stores the device identity information in the trusted execution environment.
[0326] An embodiment of the present specification provides a storage medium, which is applied to a terminal device provided with a trusted execution environment, and detects whether the trusted execution environment of the terminal device contains the device identity information of the terminal device. If not, a creation request for the device identity information of the terminal device is sent to a server, and the server generates first verification information for the terminal device based on the creation request. When the first verification information of the terminal device sent by the server is received, the verification information of the terminal device is obtained, and the verification information of the terminal device is sent to the server. The server verifies the verification information, and after the verification passes, generates device identity information for the terminal device, receives the device identity information sent by the server, and stores the device identity information in the trusted execution environment. In this way, there is no need to collect personal information of the terminal device and the user, and there will be no data collection failure and randomization problems caused by operating system upgrades, and there will be no problems such as user data privacy leakage. Moreover, the device identity information is stored in the trusted execution environment, which can prevent the user from unconsciously deleting the device identity information in the scenario of application uninstallation or flashing, thereby improving the accuracy of the device fingerprint of the terminal device.
[0327] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0328] In the 1990s, improvements to a technology could be clearly distinguished as hardware improvements (for example, improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the method flow). However, with the development of technology, many improvements to the method flow today can be regarded as direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that an improvement in a method flow cannot be implemented using a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to ask a chip manufacturer to design and produce a dedicated integrated circuit chip. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.
[0329] The controller can be implemented in any appropriate manner, for example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (such as software or firmware) that can be executed by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that in addition to implementing the controller in a purely computer-readable program code manner, the controller can be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, this controller can be considered as a hardware component, and the devices included therein for implementing various functions can also be regarded as structures within the hardware component. Or even, the devices for implementing various functions can be regarded as both software modules for implementing the method and structures within the hardware component.
[0330] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0331] For the convenience of description, the above devices are described in terms of functions and are divided into various units. Of course, when implementing one or more embodiments of this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0332] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems, or computer program products. Therefore, one or more embodiments of this specification may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, one or more embodiments of this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0333] The embodiments of this specification are described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of this specification. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable fraud case serial and parallel device to produce a machine, so that the instructions executed by the processor of the computer or other programmable fraud case serial and parallel device produce a device for implementing the function specified in one process or multiple processes of the flowchart and / or one box or multiple boxes of the block diagram.
[0334] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable fraud case serial and parallel device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0335] These computer program instructions may also be loaded onto a computer or other programmable fraud case serial and parallel device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, whereby the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more flows of the flowchart and / or one or more blocks of the block diagram.
[0336] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0337] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0338] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0339] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0340] It should be understood by those skilled in the art that the embodiments of this specification may be provided as methods, systems or computer program products. Therefore, one or more embodiments of this specification may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, one or more embodiments of this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0341] One or more embodiments of the present specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. One or more embodiments of the present specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
[0342] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0343] The above description is only an embodiment of the present specification and is not intended to limit the present specification. For those skilled in the art, the present specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present specification shall be included in the scope of the claims of the present specification.
Claims
1. A device identity processing method based on privacy protection, applied to a terminal device provided with a trusted execution environment, the method comprising: Detecting whether the trusted execution environment of the terminal device contains device identity information of the terminal device; If the trusted execution environment does not include the device identity information of the terminal device, sending a creation request for the device identity information of the terminal device to the server, so that the server generates first verification information for the terminal device based on the creation request; Upon receiving the first verification information of the terminal device sent by the server, obtaining verification information of the terminal device, and sending the verification information of the terminal device to the server, so that the server verifies the verification information, and after the verification passes, generates the device identity information for the terminal device, wherein the data used to generate the device identity information does not include the device attribute information of the terminal device and the personal information of the user of the terminal device; The device identity information sent by the server is received, and the device identity information is stored in the trusted execution environment.
2. The method according to claim 1, wherein the verification information of the terminal device includes the first verification information, a first device key corresponding to the terminal device, and a random number, The sending the verification information of the terminal device to the server includes: Encrypting the verification information using a first service key corresponding to the server to obtain encrypted verification information; The encrypted verification information is signed using the second device key corresponding to the terminal device to obtain the encrypted and signed verification information, and the encrypted and signed verification information is sent to the server.
3. The method according to claim 1 or 2, after receiving the device identity information sent by the server, the method further comprises: Receiving first verification information of the terminal device sent by the server; The first verification information is transmitted to the trusted execution environment through a first trusted application for performing data security processing on the terminal device; In the trusted execution environment, verifying the authenticity of the first verification information; If the first verification information passes the authenticity verification, the device identity information is transmitted to the trusted execution environment through the first trusted application on the terminal device.
4. The method according to claim 3, wherein the device identity information is encrypted by the server using a first device key corresponding to the terminal device and signed using a second service key corresponding to the server, the method further comprising: The device identity information is transmitted to the trusted execution environment through a first trusted application for performing data security processing on the terminal device; In the trusted execution environment, the device identity information is decrypted by using the second device key corresponding to the terminal device to obtain the decrypted device identity information, and the device identity information is verified by using the first service key corresponding to the server; The storing the device identity information in the trusted execution environment includes: If the decryption and signature verification of the device identity information are successful, the decrypted device identity information is stored in the trusted execution environment.
5. The method according to claim 4, further comprising: receiving second verification information of the terminal device sent by the server, where the second verification information is information obtained by encrypting the first verification information using a first device key corresponding to the terminal device and signing the first verification information using a second service key corresponding to the server; passing the second verification information to the trusted execution environment through a first trusted application on the terminal device; In the trusted execution environment, decrypting the second verification information by using the second device key corresponding to the terminal device to obtain the first verification information, verifying the authenticity of the first verification information, and verifying the signature of the second verification information by using the first service key corresponding to the server; If the decryption and signature verification of the device identity information are successful, storing the decrypted device identity information in the trusted execution environment includes: If the decryption and signature verification of the device identity information and the second verification information are successful and the first verification information passes the authenticity verification, the decrypted device identity information is stored in the trusted execution environment.
6. According to the method described in claim 1, the device identity information is information that uniquely identifies the terminal device and is generated by the server based on a preset algorithm, and the data used to generate the device identity information does not include device attribute information of the terminal device and personal information of the user of the terminal device.
7. The method according to claim 1, further comprising: Determining whether the trusted execution environment of the terminal device contains the device identity information of the terminal device; If the trusted execution environment includes the device identity information, sending a request for using the device identity information to the server; Upon receiving the third verification information corresponding to the use request sent by the server, obtaining the device identity information from the trusted execution environment, and sending the device identity information and the third verification information to the server, so that the server verifies the device identity information and the third verification information, and after the verification passes, sending a use notification of the device identity information to the terminal device; When the usage notification sent by the server is received, corresponding service processing is performed based on the device identity information.
8. The method according to claim 7, wherein sending the device identity information and the third verification information to the server comprises: In the trusted execution environment, the device identity information, the third verification information, and the first device key corresponding to the terminal device are encrypted by using the first service key corresponding to the server to obtain encrypted information, and the encrypted information is signed by using the second device key corresponding to the terminal device to obtain encrypted and signed information; The encrypted and signed information is sent to the server.
9. A device identity processing method based on privacy protection, applied to a server, the method comprising: Receiving a request for creating device identity information sent by a terminal device, wherein the request is sent by the terminal device when the terminal device detects that the trusted execution environment of the terminal device does not contain the device identity information of the terminal device; generating first verification information for the terminal device based on the creation request, and sending the first verification information to the terminal device; receiving verification information sent by the terminal device, and verifying the verification information, and if the verification passes, generating the device identity information for the terminal device, wherein the data used to generate the device identity information does not include device attribute information of the terminal device and personal information of a user of the terminal device; The device identity information is sent to the terminal device, so that the terminal device stores the device identity information in the trusted execution environment.
10. The method according to claim 9, wherein the verification information includes the first verification information of the terminal device, the first device key corresponding to the terminal device and a random number, and the verification information is encrypted by the terminal device using the first service key corresponding to the server and signed using the second device key corresponding to the terminal device. The verifying the verification information, and if the verification passes, generating the device identity information for the terminal device, includes: Decrypting the verification information by using the second service key corresponding to the server to obtain the first verification information, the first device key corresponding to the terminal device, and a random number; Verify the authenticity of the first verification information and the random number, and verify the signature of the verification information using the first device key corresponding to the terminal device; If the signature verification of the verification information is successful and the first verification information and the random number pass the authenticity verification, the device identity information is generated for the terminal device.
11. The method according to claim 10, wherein sending the device identity information to the terminal device comprises: The device identity information is encrypted using a first device key corresponding to the terminal device to obtain encrypted device identity information; The encrypted device identity information is signed using the second device key corresponding to the server to obtain the encrypted and signed device identity information, and the encrypted and signed device identity information is sent to the terminal device.
12. The method according to claim 9, further comprising: Receiving a request for using the device identity information sent by the terminal device; generating third verification information corresponding to the use request based on the use request, and sending the third verification information to the terminal device, so that the terminal device obtains the device identity information from the trusted execution environment, and sends the device identity information and the third verification information to the server; receiving the device identity information and the third verification information sent by the terminal device, and verifying the device identity information and the third verification information; If the verification is successful, a usage notification of the device identity information is sent to the terminal device.
13. The method according to any one of claims 9 to 12, wherein if the verification is passed, generating the device identity information for the terminal device comprises: If the verification passes, device identity information that can uniquely identify the terminal device is generated based on a preset algorithm, wherein the data used to generate the device identity information does not include device attribute information of the terminal device and personal information of the user of the terminal device.
14. A device identity processing method based on privacy protection, applied to a terminal device provided with a trusted execution environment, the method comprising: Detecting whether the trusted execution environment of the terminal device contains device identity information of the terminal device; If the trusted execution environment does not contain the device identity information of the terminal device, sending a creation request for the device identity information of the terminal device to the server, so that the server generates the device identity information for the terminal device based on the creation request, wherein the device identity information is information that uniquely identifies the terminal device and is generated by the server based on a preset algorithm, and the data used to generate the device identity information does not contain the device attribute information of the terminal device and the personal information of the user of the terminal device; The device identity information sent by the server is received, and the device identity information is stored in the trusted execution environment.
15. A device identity processing method based on privacy protection, applied to a server, the method comprising: Receiving a request for creating device identity information sent by a terminal device, wherein the request is sent by the terminal device when the terminal device detects that the trusted execution environment of the terminal device does not contain the device identity information of the terminal device; Based on the creation request, generating the device identity information for the terminal device by using a preset algorithm, wherein the data used to generate the device identity information does not include device attribute information of the terminal device and personal information of a user of the terminal device; The device identity information is sent to the terminal device, so that the terminal device stores the device identity information in the trusted execution environment.
16. A device identity processing apparatus based on privacy protection, wherein a trusted execution environment is provided in the device, and the device comprises: An information detection module, detecting whether the trusted execution environment of the device contains the device identity information of the device; a creation request module, which sends a creation request for the device identity information of the device to a server if the trusted execution environment does not contain the device identity information of the device, so that the server generates first verification information for the device based on the creation request; a verification information acquisition module, which, upon receiving the first verification information of the device sent by the server, acquires the verification information of the device, and sends the verification information of the device to the server, so that the server verifies the verification information, and generates the device identity information for the device after the verification passes, wherein the data used to generate the device identity information does not include the device attribute information of the device and the personal information of the user of the device; The device identity acquisition module receives the device identity information sent by the server and stores the device identity information in the trusted execution environment.
17. A device identity processing apparatus based on privacy protection, the apparatus comprising: A creation request receiving module receives a creation request for device identity information sent by a terminal device, wherein the creation request is sent by the terminal device when the terminal device detects that the trusted execution environment of the terminal device does not contain the device identity information of the terminal device; A first information generating module, generating first verification information for the terminal device based on the creation request, and sending the first verification information to the terminal device; a first verification module, receiving verification information sent by the terminal device, and verifying the verification information, and generating the device identity information for the terminal device if the verification passes, wherein the data used to generate the device identity information does not include device attribute information of the terminal device and personal information of the user of the terminal device; The device identity sending module sends the device identity information to the terminal device, so that the terminal device stores the device identity information in the trusted execution environment.
18. A device identity processing apparatus based on privacy protection, wherein a trusted execution environment is provided in the apparatus, and the apparatus comprises: A detection module, detecting whether the trusted execution environment of the device contains the device identity information of the device; a device identity request module, which sends a request for creating the device identity information of the device to a server if the trusted execution environment does not contain the device identity information of the device, so that the server generates the device identity information for the device based on the creation request, wherein the device identity information is information that uniquely identifies the device and is generated by the server based on a preset algorithm, and the data used to generate the device identity information does not contain the device attribute information of the device and the personal information of the user of the device; The device identity receiving module receives the device identity information sent by the server and stores the device identity information in the trusted execution environment.
19. A device identity processing apparatus based on privacy protection, the apparatus comprising: A creation request receiving module receives a creation request for device identity information sent by a terminal device, wherein the creation request is sent by the terminal device when the terminal device detects that the trusted execution environment of the terminal device does not contain the device identity information of the terminal device; A device identity generation module, based on the creation request, generates the device identity information for the terminal device through a preset algorithm, wherein the data used to generate the device identity information does not include the device attribute information of the terminal device and the personal information of the user of the terminal device; The device identity sending module sends the device identity information to the terminal device, so that the terminal device stores the device identity information in the trusted execution environment.
20. A device identity processing device based on privacy protection, wherein the device identity processing device based on privacy protection is provided with a trusted execution environment, comprising: processor; as well as a memory arranged to store computer executable instructions which, when executed, cause the processor to: Detecting whether the trusted execution environment of the device contains device identity information of the device; If the trusted execution environment does not include the device identity information of the device, sending a request for creating the device identity information of the device to the server, so that the server generates first verification information for the device based on the creation request; Upon receiving the first verification information of the device sent by the server, obtaining verification information of the device, and sending the verification information of the device to the server, so that the server verifies the verification information, and after the verification passes, generates the device identity information for the device, wherein the data used to generate the device identity information does not include device attribute information of the device and personal information of the user of the device; The device identity information sent by the server is received, and the device identity information is stored in the trusted execution environment.
21. A device identity processing device based on privacy protection, the device identity processing device based on privacy protection comprising: processor; as well as a memory arranged to store computer executable instructions which, when executed, cause the processor to: Receiving a request for creating device identity information sent by a terminal device, wherein the request is sent by the terminal device when the terminal device detects that the trusted execution environment of the terminal device does not contain the device identity information of the terminal device; generating first verification information for the terminal device based on the creation request, and sending the first verification information to the terminal device; receiving verification information sent by the terminal device, and verifying the verification information, and if the verification passes, generating the device identity information for the terminal device, wherein the data used to generate the device identity information does not include device attribute information of the terminal device and personal information of a user of the terminal device; The device identity information is sent to the terminal device, so that the terminal device stores the device identity information in the trusted execution environment.
22. A device identity processing device based on privacy protection, wherein the device identity processing device based on privacy protection is provided with a trusted execution environment, comprising: processor; as well as a memory arranged to store computer executable instructions which, when executed, cause the processor to: Detecting whether the trusted execution environment of the device contains device identity information of the device; If the trusted execution environment does not contain the device identity information of the device, sending a request for creating the device identity information of the device to the server, so that the server generates the device identity information for the device based on the creation request, wherein the device identity information is information that uniquely identifies the device and is generated by the server based on a preset algorithm, and the data used to generate the device identity information does not contain the device attribute information of the device and the personal information of the user of the device; The device identity information sent by the server is received, and the device identity information is stored in the trusted execution environment.
23. A device identity processing device based on privacy protection, the device identity processing device based on privacy protection comprising: processor; as well as a memory arranged to store computer executable instructions which, when executed, cause the processor to: Receiving a request for creating device identity information sent by a terminal device, wherein the request is sent by the terminal device when the terminal device detects that the trusted execution environment of the terminal device does not contain the device identity information of the terminal device; Based on the creation request, generating the device identity information for the terminal device by using a preset algorithm, wherein the data used to generate the device identity information does not include device attribute information of the terminal device and personal information of a user of the terminal device; The device identity information is sent to the terminal device, so that the terminal device stores the device identity information in the trusted execution environment.
24. A storage medium for storing computer executable instructions, wherein the executable instructions implement the following process when executed: Detecting whether the trusted execution environment of the terminal device contains device identity information of the terminal device; If the trusted execution environment does not include the device identity information of the terminal device, sending a creation request for the device identity information of the terminal device to the server, so that the server generates first verification information for the terminal device based on the creation request; Upon receiving the first verification information of the terminal device sent by the server, obtaining verification information of the terminal device, and sending the verification information of the terminal device to the server, so that the server verifies the verification information, and after the verification passes, generates the device identity information for the terminal device, wherein the data used to generate the device identity information does not include the device attribute information of the terminal device and the personal information of the user of the terminal device; The device identity information sent by the server is received, and the device identity information is stored in the trusted execution environment.
25. A storage medium for storing computer executable instructions, wherein the executable instructions implement the following process when executed: Receiving a request for creating device identity information sent by a terminal device, wherein the request is sent by the terminal device when the terminal device detects that the trusted execution environment of the terminal device does not contain the device identity information of the terminal device; generating first verification information for the terminal device based on the creation request, and sending the first verification information to the terminal device; receiving verification information sent by the terminal device, and verifying the verification information, and if the verification passes, generating the device identity information for the terminal device, wherein the data used to generate the device identity information does not include device attribute information of the terminal device and personal information of a user of the terminal device; The device identity information is sent to the terminal device, so that the terminal device stores the device identity information in the trusted execution environment.
26. A storage medium for storing computer executable instructions, wherein the executable instructions implement the following process when executed: Detecting whether the trusted execution environment of the terminal device contains device identity information of the terminal device; If the trusted execution environment does not contain the device identity information of the terminal device, a creation request for the device identity information of the terminal device is sent to the server, so that the server generates the device identity information for the terminal device based on the creation request, wherein: The device identity information is information that uniquely identifies the terminal device and is generated by the server based on a preset algorithm. The data used to generate the device identity information does not include device attribute information of the terminal device and personal information of the user of the terminal device. The device identity information sent by the server is received, and the device identity information is stored in the trusted execution environment.
27. A storage medium for storing computer executable instructions, wherein the executable instructions implement the following process when executed: Receiving a request for creating device identity information sent by a terminal device, wherein the request is sent by the terminal device when the terminal device detects that the trusted execution environment of the terminal device does not contain the device identity information of the terminal device; Based on the creation request, the device identity information is generated for the terminal device by a preset algorithm, wherein: The data used to generate the device identity information does not include device attribute information of the terminal device and personal information of the user of the terminal device; The device identity information is sent to the terminal device, so that the terminal device stores the device identity information in the trusted execution environment.
