Logistics data processing method and apparatus based on privacy protection

After scanning the logistics identification code through the terminal device and performing access registration verification on the server side, the logistics data is encrypted, which solves the problem of user privacy information leakage during the logistics distribution process and improves data security and control.

WO2024174716A1PCT designated stage expired Publication Date: 2024-08-29ALIPAY (HANGZHOU) INFORMATION TECH CO LTD

Patent Information

Application Number
PCT/CN2023/141588
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-02-20
Filing Date
2023-12-25
Publication Date
2024-08-29

AI Technical Summary

Technical Problem

In the existing logistics and distribution process, users' private information is easily leaked, especially after the express delivery order and packaging are discarded, the plain text information may be leaked, and the staff may leak the express delivery information, resulting in insufficient data security.

Method used

Using a logistics data processing method based on privacy protection, the terminal device scans the logistics identification code, generates and sends the registration token and logistics index information, and after the server performs access registration verification, it uses the key to encrypt the logistics data and sends the encrypted data to Trusted execution environment ensures the security of data during transmission.

Benefits of technology

It reduces the risk of leakage of logistics order data during the transmission process, improves data security, avoids privacy data leakage caused by plain text information, enhances access control to logistics data, and ensures the confidentiality of data during the circulation process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023141588_29082024_PF_FP_ABST
    Figure CN2023141588_29082024_PF_FP_ABST
Patent Text Reader

Abstract

Provided in the embodiments of the present description are a logistics data processing method and apparatus based on privacy protection. The logistics data processing method based on privacy protection comprises: receiving a logistics access request sent by a terminal device, wherein the logistics access request carries a registered token of the terminal device, and logistics index information obtained by decoding a logistics identification code of a logistics distribution object; determining a logistics order corresponding to the logistics index information, and performing access registration verification on the terminal device for the logistics order according to the registered token; after the access registration verification is passed, querying logistics order data of the logistics order on the basis of the logistics index information; and encrypting the logistics order data by using a key, so as to obtain encrypted logistics data, and sending the encrypted logistics data to a trusted execution environment configured for the terminal device.
Need to check novelty before this filing date? Find Prior Art

Description

Logistics data processing method and device based on privacy protection Technical Field

[0001] This document relates to the field of data processing technology, and in particular to a logistics data processing method and device based on privacy protection. Background Art

[0002] With the rapid development of online transactions, the corresponding logistics and distribution has also been rapidly applied. However, while logistics and distribution bring convenience to users, they also bring certain troubles to users. The main manifestation is that the express delivery note records the user's name, address and contact information. During the express delivery process and after the express packaging is discarded, the user's privacy information may be leaked. At the same time, there is also the possibility of express information being leaked by express staff. In view of this, how to improve data security in online logistics and distribution and thus reduce the possibility of user information leakage has become a new challenge faced in the logistics and distribution process provided to users.

[0003] Summary of the Invention

[0004] One or more embodiments of this specification provide a logistics data processing method based on privacy protection, which is applied to a server, and the method includes: receiving a logistics access request sent by a terminal device. The logistics access request carries the registration token of the terminal device, and the logistics index information obtained by decoding the logistics identification code of the logistics distribution object. Determine the logistics order corresponding to the logistics index information, and perform access registration verification of the logistics order on the terminal device based on the registration token. After the access registration verification is passed, query the logistics order data of the logistics order based on the logistics index information. Use a key to encrypt the logistics order data to obtain encrypted logistics data, and send the encrypted logistics data to the trusted execution environment configured for the terminal device.

[0005] One or more embodiments of this specification provide another logistics data processing method based on privacy protection, which is applied to a terminal device equipped with a trusted execution environment, and the method includes: decoding the logistics identification code of the logistics distribution object obtained by scanning, and sending a logistics access request carrying a registration token and logistics index information to the server based on the decoding result. Receive the encrypted logistics data sent by the server to the trusted execution environment. The encrypted logistics data is obtained by encrypting the logistics order data queried based on the logistics index information when the access registration verification of the logistics order of the terminal device is passed according to the registration token. Decrypt the encrypted logistics data using a key in the trusted execution environment, and output the decrypted logistics order data from the trusted execution environment to be displayed on the terminal device.

[0006] One or more embodiments of this specification provide a logistics data processing device based on privacy protection, which runs on a server, and the device includes: a request receiving module, which is configured to receive a logistics access request sent by a terminal device; the logistics access request carries the registration token of the terminal device, and the logistics index information obtained by decoding the logistics identification code of the logistics distribution object. An access registration verification module is configured to determine the logistics order corresponding to the logistics index information, and perform access registration verification of the logistics order on the terminal device based on the registration token. A data query module is configured to query the logistics order data of the logistics order based on the logistics index information after the access registration verification is passed. An encryption sending module is configured to encrypt the logistics order data using a key to obtain encrypted logistics data, and send the encrypted logistics data to the trusted execution environment configured for the terminal device.

[0007] One or more embodiments of this specification provide another logistics data processing device based on privacy protection, which runs on a terminal device configured with a trusted execution environment, and the device includes: a decoding module, which is configured to decode the logistics identification code of the logistics distribution object obtained by scanning, and send a logistics access request carrying a registration token and logistics index information to the server based on the decoding result. A data receiving module is configured to receive the encrypted logistics data sent by the server to the trusted execution environment. The encrypted logistics data is obtained by encrypting the logistics order data queried based on the logistics index information when the access registration verification of the logistics order of the terminal device is passed according to the registration token. A data decryption module is configured to decrypt the encrypted logistics data using a key in the trusted execution environment, and output the decrypted logistics order data from the trusted execution environment for display on the terminal device.

[0008] One or more embodiments of this specification provide a logistics data processing device based on privacy protection, comprising: a processor; and a memory configured to store computer-executable instructions, wherein the computer-executable instructions, when executed, cause the processor to: receive a logistics access request sent by a terminal device. The logistics access request carries the registration token of the terminal device, and the logistics index information obtained by decoding the logistics identification code of the logistics distribution object. Determine the logistics order corresponding to the logistics index information, and perform an access registration verification of the logistics order on the terminal device based on the registration token. After the access registration verification passes, query the logistics order data of the logistics order based on the logistics index information. Encrypt the logistics order data using a key to obtain encrypted logistics data, and send the encrypted logistics data to the trusted execution environment configured for the terminal device.

[0009] One or more embodiments of this specification provide another logistics data processing device based on privacy protection, including: a processor, a trusted execution environment; and a memory configured to store computer-executable instructions, wherein when the computer-executable instructions are executed, the processor is caused to: decode the logistics identification code of the logistics distribution object obtained by scanning, and send a logistics access request carrying a registration token and logistics index information to the server based on the decoding result. Receive the encrypted logistics data sent by the server to the trusted execution environment. The encrypted logistics data is obtained by encrypting the logistics order data queried based on the logistics index information when the access registration verification of the logistics order of the terminal device is passed according to the registration token. Decrypt the encrypted logistics data using a key in the trusted execution environment, and output the decrypted logistics order data from the trusted execution environment to be displayed on the terminal device.

[0010] One or more embodiments of this specification provide a storage medium for storing computer-executable instructions, which implement the following process when executed by a processor: receiving a logistics access request sent by a terminal device. The logistics access request carries the registration token of the terminal device and the logistics index information obtained by decoding the logistics identification code of the logistics distribution object. Determine the logistics order corresponding to the logistics index information, and perform an access registration verification of the logistics order on the terminal device based on the registration token. After the access registration verification is passed, query the logistics order data of the logistics order based on the logistics index information. Use a key to encrypt the logistics order data to obtain encrypted logistics data, and send the encrypted logistics data to the trusted execution environment configured for the terminal device.

[0011] One or more embodiments of this specification provide another storage medium for storing computer-executable instructions, which implement the following process when executed by a processor: decoding the logistics identification code of the logistics distribution object obtained by scanning, and sending a logistics access request carrying a registration token and logistics index information to the server based on the decoding result. Receive the encrypted logistics data sent by the server to the trusted execution environment. The encrypted logistics data is obtained by encrypting the logistics order data queried based on the logistics index information when the access registration verification of the logistics order of the terminal device is passed according to the registration token. Decrypt the encrypted logistics data using a key in the trusted execution environment, and output the decrypted logistics order data from the trusted execution environment to be displayed on the terminal device. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] In order to more clearly illustrate the technical solutions in one or more embodiments of this specification or related technologies, the following briefly introduces the drawings required for use in the description of the embodiments or related technologies. Obviously, the drawings described below are only some embodiments described in this specification. Those skilled in the art can also derive other drawings based on these drawings without inventive efforts.

[0013] FIG1 is a flowchart of a logistics data processing method based on privacy protection provided by one or more embodiments of this specification;

[0014] FIG2 is a data interaction diagram of a trusted access registration process provided by one or more embodiments of this specification;

[0015] FIG3 is a data interaction diagram of a logistics query process provided by one or more embodiments of this specification;

[0016] FIG4 is a timing diagram of a privacy-protection-based logistics data processing method applied to an express delivery scenario provided by one or more embodiments of this specification;

[0017] FIG5 is a flowchart of another logistics data processing method based on privacy protection provided by one or more embodiments of this specification;

[0018] FIG6 is a schematic diagram of a logistics data processing device based on privacy protection provided by one or more embodiments of this specification;

[0019] FIG7 is a schematic diagram of another logistics data processing device based on privacy protection provided by one or more embodiments of this specification;

[0020] FIG8 is a schematic structural diagram of a logistics data processing device based on privacy protection provided by one or more embodiments of this specification;

[0021] FIG9 is a schematic structural diagram of another logistics data processing device based on privacy protection provided by one or more embodiments of this specification. DETAILED DESCRIPTION

[0022] In order to enable those skilled in the art to better understand the technical solutions in one or more embodiments of this specification, the technical solutions in one or more embodiments of this specification will be clearly and completely described below in conjunction with the drawings in one or more embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on one or more embodiments of this specification, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of this document.

[0023] This specification provides an embodiment of a logistics data processing method based on privacy protection: In the logistics data processing method based on privacy protection provided in this embodiment, during the access process of logistics order data, the terminal device requests access by scanning the logistics identification code of the logistics distribution object, thereby avoiding the leakage of user privacy data caused by the use of plaintext logistics information; and starting from the logistics index information and registration token carried in the logistics access request, the logistics order to be accessed by the terminal device is determined according to the logistics index information, and the terminal device is verified for access registration of the logistics order according to the registration token, so as to verify whether the terminal device currently requesting access has registered for access to the logistics order, thereby implementing access control of the logistics order data, reducing the probability of data leakage caused by the logistics order data being accessed by terminal devices that have not registered for access, and also reducing the possibility of leakage of logistics order data during the logistics flow process; further, after the verification is passed, the logistics order data is encrypted to obtain encrypted logistics data, and the logistics order data is sent to the Trusted Execution Environment (TEE) of the terminal device requesting access in a data encrypted manner, thereby avoiding the interception of the logistics order data during transmission, resulting in the leakage of privacy data contained in the logistics data.

[0024] The privacy protection-based logistics data processing method provided in this embodiment is applied to a server, and the method specifically includes the following steps S102 to S108.

[0025] Step S102: receiving a logistics access request sent by a terminal device.

[0026] In actual logistics scenarios, the logistics flow process of logistics distribution objects includes at least the following flow links: collection, distribution, delivery, and receipt. During this process, logistics flow needs to be carried out based on the sending and receiving information. Therefore, the logistics data clearly written on the packaging of the logistics distribution object is visible to all parties involved in the logistics flow. At the same time, after the logistics distribution object is delivered to the recipient and the packaging of the logistics distribution object is discarded, the logistics data clearly written on the packaging of the logistics distribution object is also visible to all parties who can access the packaging.

[0027] In view of this, in order to avoid data leakage caused by the use of plain text logistics data, this embodiment provides a logistics identification code to the logistics distribution object, and uses the logistics identification code as the access entry for the logistics data of the logistics distribution object. Based on this, during the logistics flow of the logistics distribution object, and after the logistics distribution object is transferred to the recipient, access to the logistics data is proposed by scanning the logistics identification code, thereby reducing the possibility of data leakage of the logistics distribution object during and after the logistics flow.

[0028] The logistics identification code refers to an identification code used to access the logistics-related data of a logistics distribution object. It can be configured on the packaging of the logistics distribution object or on the logistics distribution object itself. The specific form of the logistics identification code can be various forms such as QR code, barcode, or color code. In the specific implementation process, based on the logistics identification code provided to the logistics distribution object, all parties involved in the logistics flow of the logistics distribution object can scan the logistics identification code through their respective terminal devices to access the logistics data of the logistics distribution object.

[0029] Optionally, the terminal device includes at least one of the following: a logistics personnel terminal in the logistics flow process of the logistics distribution object, a terminal device of the sender of the logistics distribution object, a terminal device of the recipient of the logistics distribution object, and a third-party terminal device that receives the access reminder message of the logistics order forwarded by the recipient's terminal device.

[0030] For example, the sorting equipment in the logistics flow process can access the receipt information of the logistics distribution object by scanning the QR code of the logistics distribution object, and then sort and process the logistics distribution object according to the received receipt information obtained from the access; similarly, the sorting equipment of the sorter can also access the receipt information by scanning the QR code of the logistics distribution object and then perform sorting and processing; for example, the accessories terminal or intelligent delivery equipment of the accessories staff can access the receipt information of the logistics distribution object by scanning the QR code of the logistics distribution object, and then perform delivery according to the received receipt information obtained from the access; or, the recipient user uses his or her own smart phone to scan the QR code of the logistics distribution object to access the logistics order data of the logistics distribution object.

[0031] During specific implementation, when the terminal device accesses the logistics data of the logistics distribution object, it is necessary to scan the logistics identification code of the logistics distribution object, decode the scanned logistics identification code, and generate and send a logistics access request based on the decoding result; accordingly, the logistics access request sent by the terminal device is received here.

[0032] Optionally, the logistics access request carries the terminal device's registration token and logistics index information obtained by decoding the logistics identification code of the logistics delivery object. The logistics index information refers to index information of the logistics order that can identify the logistics delivery object; for example, the logistics index information can be an index of the storage address of the logistics order, or an index of the location where the logistics order is stored in a database. The registration token is a token used to verify whether the terminal device currently sending the logistics access request has access rights to the logistics order.

[0033] Specifically, the registration token is obtained after the trusted access registration for the logistics order is performed. Through the trusted access registration, the registration token for accessing the relevant data of the logistics order can be obtained. The specific process of the trusted access registration is described in detail below.

[0034] During the specific execution process, before the terminal device proposes logistics data access, that is, before receiving the logistics access request sent by the terminal device, it can perform trusted access registration for the logistics distribution object that currently proposes logistics data access, and obtain a registration token through trusted access registration, so that the obtained registration token can be used to access relevant logistics data of the logistics distribution object.

[0035] This embodiment provides an optional implementation method, in which trusted access registration is performed in the following manner: an access reminder message of a logistics order is sent to the terminal device; the logistics order here refers to the logistics order of the logistics distribution object targeted by the logistics identification code scanned by the terminal device, that is, the logistics order corresponding to the logistics index information obtained by decoding the logistics identification code of the logistics distribution object; receiving the registration token sent by the terminal device through the trusted execution environment; generating a trusted registration relationship for the logistics order based on the registration token and the order identification of the logistics order.

[0036] Among them, in the process of generating a trusted registration relationship for a logistics order, a registration relationship record including a registration token and an order identifier of a logistics order can be generated as a trusted registration relationship; in addition, a trusted access registry can be set up, and a trusted registration relationship between the registration token and the order identifier of the logistics order can be established by writing the registration token and the order identifier of the logistics order into the corresponding fields of the trusted access registry; this trusted registration relationship is also a trusted registration relationship between the terminal device and the logistics order, so that through the generation mechanism of the trusted registration relationship, it is ensured that the terminal devices that request logistics data access by scanning the logistics identification code of the logistics distribution object are all registered terminal devices that have accessed the logistics data in advance, so that the terminal devices that have not registered for logistics data access cannot access the logistics data by scanning the logistics identification code of the logistics distribution object.

[0037] Optionally, after the access reminder message is sent to the terminal device, the terminal device generates the registration token in the trusted execution environment based on the unique device identifier of the terminal device when the access reminder message is triggered. The unique device identifier refers to identification information that can uniquely identify the terminal device, such as the hardware ID or MAC address of the terminal device; in addition, when there is a one-to-one correspondence between the terminal device and the configured trusted execution environment, the unique device identifier may also be the identification information of the trusted execution environment.

[0038] In order to reduce the possibility of data leakage when logistics data is transmitted in plain text during the network transmission between the server and the terminal device, this embodiment improves the data security of logistics data during the network transmission, and transmits logistics data between the server and the terminal device through data encryption. In the specific execution process, after the trusted registration relationship of the logistics order is generated as mentioned above, the key can be sent to the trusted execution environment of the terminal device for storage, so as to be used for subsequent decryption of the encrypted logistics data sent by the server. By storing the key in the trusted execution environment of the terminal device and utilizing the secure storage and memory isolation mechanism of the trusted execution environment, the security of the key after it is sent to the terminal device is guaranteed.

[0039] In order to further improve the security of data transmission, the security of the key during network transmission can also be improved by encrypting the key. On the basis of improving the security of key transmission, the possibility of logistics data being intercepted and leaked is further reduced. Specifically, in an optional implementation manner provided by this embodiment, after the trusted registration relationship of the logistics order is generated as mentioned above, the key is sent to the trusted execution environment configured by the terminal device in the following manner: the key is encrypted with a private key to obtain an encryption key, and the encryption key is sent to the trusted execution environment; wherein, the terminal device uses the public key corresponding to the private key in the trusted execution environment to decrypt the encryption key, and uses the key obtained by decryption to decrypt the encrypted logistics data.

[0040] The following describes the overall processing of trusted access registration in detail by taking the trusted access registration process performed by the user terminal of the recipient user provided in FIG. 2 as an example.

[0041] When the server detects that a new logistics order has been generated, it pushes an access reminder message to the recipient user according to the instant messaging number recorded in the logistics order, so as to guide the recipient user to register for trusted access to the logistics order; after the access reminder message is pushed to the user terminal of the recipient user, the recipient user can trigger the access reminder message through the application or applet installed on the user terminal, and after the access reminder message is triggered, the trusted access registration process of the user terminal is entered; in the trusted access registration process, the user terminal sends a token generation instruction to the trusted execution environment, and after receiving the token generation instruction, the trusted execution environment obtains the device ID of the user terminal to generate a registration token, and sends the generated registration token to the server; at the same time, the user terminal can also send the currently bound instant messaging number to the server; after receiving the registration instruction sent by the user terminal, the server After the card is registered, the registration token is written into the field corresponding to the current logistics order in the trusted access registration table, so as to establish a trusted registration relationship between the registration token and the logistics order, that is, to establish a trusted registration relationship between the user terminal and the logistics order; at the same time, the server can also associate the instant messaging number sent by the user terminal with the logistics order; after completing the trusted access registration process, the server generates a key and sends the generated key to the trusted execution environment of the user terminal to store the key in the trusted execution environment of the user terminal, and utilizes the secure storage and memory isolation mechanism of the trusted execution environment to protect the security of the key sent to the user terminal; further, after the trusted access registration is successful, the QR code of the logistics distribution object for accessing logistics data can be sent to the user terminal, so that the recipient user can query the logistics status by scanning the QR code.

[0042] As described above, in actual logistics scenarios, the logistics flow process of logistics distribution objects includes at least the flow links of collection, distribution, delivery, and receipt. During this process, logistics flow needs to be carried out according to the sending information and the receiving information. Taking the access process of the deliveryman using the terminal device to access the logistics data in the logistics distribution link as an example, the deliveryman needs to deliver a large number of logistics pieces every day. If the optional implementation method of the trusted access registration provided above is used to perform logistics data access registration for the logistics pieces in advance, it will add a lot of extra workload to the deliveryman. Similarly, other logistics personnel or logistics participating equipment in the logistics flow process will also add a lot of extra workload. In view of this, in order to avoid adding a lot of workload to the logistics personnel or logistics participating equipment, another optional implementation method provided in this embodiment is that before the terminal device proposes logistics data access, that is, before receiving the logistics access request sent by the terminal device, the following method is used for trusted access registration: when it is detected that the logistics order data is generated, a trusted registration relationship of the logistics order is generated based on the registration token and the order identifier of the logistics order, and the key is sent to the trusted execution environment.

[0043] In addition, in the process of performing trusted access registration for terminal devices on the side of logistics personnel or logistics participating equipment, batch registration can also be used to improve the efficiency of trusted access registration. For example, batch trusted access registration can be performed for logistics distribution objects in the same batch of collection or delivery. Specifically, based on the registration token of the terminal device and the order identification of each logistics order in the same batch, a trusted registration relationship between the registration token and the order identification of each logistics order can be established.

[0044] On the basis of the two optional implementation methods for trusted access registration provided above, in order to strengthen the access constraints on logistics data and thereby improve the access security of logistics data, a validity period can also be configured for the registration token. During the validity period, the registration token is valid and the logistics data can be accessed using the registration token. If the registration token is invalid after the validity period, the logistics data cannot be accessed using the registration token. In an optional implementation method provided by this embodiment, if it is detected that the validity period of the registration token has expired, the trusted registration relationship is terminated.

[0045] It should be noted that in the logistics flow of logistics distribution objects in actual logistics scenarios, on the one hand, there is a situation where the terminal device on the recipient side needs to be registered for trusted access, and at the same time, there is a situation where the terminal device on the logistics personnel or logistics participating equipment side needs to be registered for trusted access. Therefore, the two optional methods provided above can also be combined to improve the registration efficiency of trusted access registration for the terminal device on the recipient side and the terminal device on the logistics personnel or logistics participating equipment side. The specific implementation is as follows: sending an access reminder message of the logistics order to the user terminal, receiving the registration token of the user terminal sent by the user terminal through the trusted execution environment; generating a trusted registration relationship of the logistics order based on the registration token of the user terminal and the order identifier of the logistics order, and generating a trusted registration relationship of the logistics order based on the registration token of the logistics terminal and the order identifier of the logistics order.

[0046] Step S104: Determine the logistics order corresponding to the logistics index information, and perform access registration verification of the logistics order on the terminal device according to the registration token.

[0047] During specific implementation, after receiving the logistics access request sent by the terminal device, the corresponding logistics order is determined according to the logistics index information carried in the logistics access request, and on the basis of determining the logistics order corresponding to the logistics index information, the terminal device is verified for access registration of the logistics order according to the registration token, so as to verify whether the terminal device currently requesting access to the logistics order has registered for access to the logistics order, thereby realizing access control over the logistics order data, improving the credibility of the logistics order access, reducing the possibility of the logistics order data being leaked due to access by a device terminal that has not performed trusted access registration, and also reducing the probability of the logistics order data being leaked during the logistics flow process.

[0048] In an optional implementation provided by this embodiment, access registration verification of the logistics order is performed on the terminal device based on the registration token, including: verifying whether the registration token is recorded in the trusted registration relationship of the logistics order; if so, verifying whether the validity period of the registration token has expired; if not, determining that the access registration verification has passed; if so, determining that the access registration verification has failed; if not, determining that the access registration verification has failed. Specifically, if the access registration verification fails, a reminder message indicating that the access registration verification has failed may be sent to the terminal device.

[0049] Optionally, the trusted registration relationship includes: a correspondence between the order identifier of the logistics order and a registration token of a terminal device that performs trusted access registration for the logistics order.

[0050] During the specific execution process, the validity period of the registration token can be determined within the trusted execution environment of the terminal device. The validity period of the registration token can be set to a fixed period. It can also be determined based on the device type of the terminal device, such as setting a first validity period for the registration token of a user terminal and a second validity period for the registration token of a logistics terminal. Alternatively, the validity period of the registration token can be determined based on the type or duration of the logistics flow process in which the terminal device participates, such as setting the validity period of the registration token of the terminal device based on the logistics delivery duration.

[0051] Step S106: After the access registration verification is passed, the logistics order data of the logistics order is queried based on the logistics index information.

[0052] If the above steps verify the terminal device's access to the logistics order registration using the registration token, the logistics order data for the logistics order is retrieved based on the logistics index information. Specifically, if the logistics index information is a storage address index of the logistics order, the logistics data under the storage address index can be read as the logistics order data.

[0053] The logistics order data described in this embodiment includes at least one of the following: the recipient's receiving information, the sender's sending information, and the logistics distribution process data of the logistics distribution object. The recipient's receiving information may consist of at least one of the recipient's name, address, and instant messaging number; similarly, the sender's sending information may consist of at least one of the sender's name, address, and instant messaging number. The logistics order flow process data refers to the logistics record data generated by the logistics distribution object during its logistics flow.

[0054] Step S108: Use the key to encrypt the logistics order data to obtain encrypted logistics data, and send the encrypted logistics data to the trusted execution environment configured in the terminal device.

[0055] In order to prevent the logistics order data from being intercepted during transmission between devices, resulting in the leakage of privacy data contained in the logistics order data, this embodiment encrypts the logistics order data to obtain encrypted logistics data, and sends the encrypted logistics data to the trusted execution environment configured for the terminal device, thereby sending the logistics order data to the trusted execution environment of the terminal device requesting access in a data encrypted manner, thereby improving the security of the logistics order data during transmission; at the same time, sending the encrypted logistics data to the trusted execution environment of the terminal device can utilize the secure storage and memory isolation mechanism of the trusted execution environment to ensure the data security of the encrypted logistics data after it is sent to the terminal device.

[0056] In specific implementations, to improve data transmission security between the server and terminal devices and reduce the probability of data transmission being intercepted between devices, a dedicated encrypted data channel can be established between the server and the terminal device, and data exchange between the server and the terminal device is carried out based on the established encrypted data channel. Optionally, the data exchange between the server and the terminal device is carried out through the encrypted data channel established by calling a data encryption protocol.

[0057] In addition, in order to reduce the losses caused by data leakage, a traceability mechanism for logistics data access can also be provided. In this regard, a data recording process can be set for the trusted access registration process provided in this embodiment, so that the trusted access registration process can be traced based on the data record. In an optional implementation manner provided by this embodiment, registration record information for the trusted access registration of the terminal device is created to trace the trusted access registration of the logistics order based on the registration record information. In addition, a data recording process can also be set for the logistics data access process, so that the logistics data access process can be traced based on the data record. In an optional implementation manner provided by this embodiment, the registration record information for the trusted access registration of the terminal device is created to trace the trusted access registration of the logistics order based on the registration record information. The access record information of the terminal device for accessing the logistics order data is used to trace the access to the logistics order data based on the access record information; in addition, a data recording process can also be set for the trusted access registration process and the logistics data access process at the same time, so as to trace the trusted access registration process and the logistics data access process based on the data record. The specific implementation is as follows: create the registration record information of the terminal device for trusted access registration to trace the trusted access registration of the logistics order according to the registration record information; create the access record information of the terminal device for accessing the logistics order data to trace the access to the logistics order data based on the access record information.

[0058] The following describes the overall processing of accessing logistics data by taking the logistics query process performed by the user terminal of the recipient user provided in FIG3 as an example.

[0059] The user terminal of the recipient user scans the QR code of the logistics distribution object for accessing logistics data, decodes the scanned QR code to obtain logistics index information, and sends the logistics index information to the trusted execution environment to generate a logistics query request carrying a registration token and logistics index information in the trusted environment, and sends the logistics query request to the server through the trusted execution environment; after the server receives the logistics query request, it performs an access registration verification on the registration token carried by the logistics query request. After the access registration verification is passed, the logistics status information of the corresponding logistics order is queried based on the logistics index information, and then the queried logistics status information is encrypted using the key, and the obtained encrypted logistics status information is sent to the trusted execution environment of the user terminal; after the encrypted logistics status information is sent to the trusted execution environment of the user terminal, the encrypted logistics status information is decrypted using the key stored in the trusted execution environment to obtain the plaintext logistics status information and output it from the trusted execution environment to be displayed on the screen of the user terminal.

[0060] In summary, the logistics data processing method based on privacy protection provides a method for a terminal device to make an access request for logistics data by scanning the logistics identification code of the logistics distribution object, thereby avoiding the leakage of user privacy data caused by the use of plaintext logistics information; on this basis, an access registration mechanism based on a registration token is provided for the terminal device. During the actual access process of the terminal device, the registration token is accessed and registered to verify whether the terminal device making the access request for logistics data has registered for access to the logistics order, thereby reducing the possibility of logistics order data being accessed by a device that has not performed trusted access registration, thereby reducing the probability of logistics order data being leaked during the logistics flow process; and after the verification is passed, the logistics order data is sent to the trusted execution environment of the terminal device that made the access request in a data encrypted manner, thereby avoiding the interception of the logistics order data during the transmission process, thereby preventing the privacy data contained in the logistics data from being leaked; further, the security of the key during network transmission can be improved by encrypting the key, thereby further reducing the possibility of logistics data being intercepted and leaked on the basis of improving the security of key transmission; in addition, a data recording process is set for the trusted access registration process and the logistics data access process, so that the trusted access registration process and the logistics data access process can be traced based on the data record.

[0061] The implementation process of the logistics data processing method based on privacy protection provided above is executed by the server, and the implementation process of another logistics data processing method based on privacy protection provided in the following method embodiment is executed by the user terminal. The two can cooperate with each other during the execution process. Therefore, when reading the above implementation process, you can refer to the corresponding content of the following another method embodiment. Correspondingly, when reading the following another method embodiment, you can also refer to the corresponding content of the above method embodiment.

[0062] The following takes the application of a privacy protection-based logistics data processing method provided by this embodiment in an express delivery scenario as an example, and combines Figure 4 to further illustrate the privacy protection-based logistics data processing method provided by this embodiment. Referring to Figure 4, the privacy protection-based logistics data processing method applied to the express delivery scenario specifically includes the following steps.

[0063] Step S402: When it is detected that an express order is generated, an express order access reminder message is sent to the user terminal of the recipient user.

[0064] Step S410: receiving a registration token sent by a user terminal through a trusted execution environment.

[0065] Step S412: Based on the registration token and the order number of the express order, a trusted registration relationship of the user terminal for the express order is generated.

[0066] Step S414: encrypt the key using the private key to obtain an encrypted key, and send the encrypted key to the trusted execution environment.

[0067] Step S424: receiving the express query request sent by the user terminal, and determining the express order corresponding to the order number carried in the express query request.

[0068] Step S426, verify whether the registration token of the user terminal is recorded in the trusted registration relationship of the express order; if so, execute step S428.

[0069] Step S428 , checking whether the validity period of the registration token of the user terminal has expired; if not, determining that the verification has passed, and executing steps S430 to S432 .

[0070] Step S430: Query the delivery record data of the express order based on the order number.

[0071] Step S432: Use the key to encrypt the delivery record data to obtain encrypted delivery data, and send the encrypted delivery data to the trusted execution environment of the user terminal.

[0072] The above-mentioned steps S402, steps S410 to S414, and steps S424 to S432 provided in this embodiment are executed by the server. It should be noted that the processing procedures of the server executing the above-mentioned steps S402, steps S410 to S414, and steps S424 to S432 and the processing procedures of steps S404 to S408, steps S416 to S422, and steps S434 to 438 executed by the user terminal in the following embodiment can cooperate with each other during the execution process. Therefore, when reading this embodiment, please refer to the corresponding contents of steps S404 to S408, steps S416 to S422, and steps S434 to 438 provided in the following method embodiment.

[0073] This specification provides another embodiment of a logistics data processing method based on privacy protection: In the logistics data processing method based on privacy protection provided in this embodiment, during the process of a terminal device accessing logistics order data, the terminal device requests logistics data access by scanning the logistics identification code of the logistics distribution object, thereby avoiding the leakage of user privacy data caused by the use of plain text logistics information; after the logistics access request of the terminal device is sent to the server, the server passes the access registration verification of the registration token carried by the logistics access request, and then sends the encrypted logistics data to the trusted execution environment of the terminal device in a data encrypted manner, which not only reduces the possibility of logistics order data being leaked due to access by devices that have not performed trusted access registration, but also can utilize the trusted execution environment's secure storage and memory isolation mechanism to ensure the security of the encrypted logistics data after it is sent to the terminal device.

[0074] The privacy protection-based logistics data processing method provided in this embodiment is applied to a terminal device configured with a trusted execution environment. The method specifically includes the following steps S502 to S506.

[0075] Step S502: decode the logistics identification code of the logistics distribution object obtained by scanning, and send a logistics access request carrying a registration token and logistics index information to the server based on the decoding result.

[0076] In actual logistics scenarios, the logistics flow process of logistics distribution objects includes at least the flow links of collection, distribution, delivery, and receipt. During this process, logistics flow needs to be carried out according to the sending information and the receiving information. Therefore, the logistics data in plain text on the packaging of the logistics distribution object is visible to all parties involved in the logistics flow. At the same time, after the logistics distribution object is delivered to the recipient and the packaging of the logistics distribution object is discarded, the logistics data in plain text on the packaging of the logistics distribution object is also visible to all parties who can access the packaging. In view of this, in order to avoid data leakage caused by the use of plain text logistics data, this embodiment provides a logistics identification code to the logistics distribution object, and uses the logistics identification code as the access entry for the logistics data of the logistics distribution object. Based on this, during the logistics flow process of the logistics distribution object and after the logistics distribution object is transferred to the recipient, access to the logistics data is proposed by scanning the logistics identification code, thereby reducing the possibility of data leakage of the logistics distribution object during and after the logistics flow.

[0077] The logistics identification code described in this embodiment refers to an identification code used to access logistics-related data of a logistics distribution object. It can be configured on the packaging of the logistics distribution object or on the object itself. The logistics identification code can be in various forms, such as a QR code, a barcode, or a color code. During implementation, after providing the logistics identification code to the logistics distribution object, all parties involved in the logistics flow of the logistics distribution object can scan the logistics identification code through their respective terminal devices to access the logistics data of the logistics distribution object.

[0078] Optionally, the terminal device includes at least one of the following: a logistics personnel terminal in the logistics flow process of the logistics distribution object, a terminal device of the sender of the logistics distribution object, a terminal device of the recipient of the logistics distribution object, and a third-party terminal device that receives the access reminder message of the logistics order forwarded by the recipient's terminal device.

[0079] For example, the sorting equipment in the logistics flow process can access the receipt information of the logistics distribution object by scanning the QR code of the logistics distribution object, and then sort and process the logistics distribution object according to the received receipt information obtained from the access; similarly, the sorting equipment of the sorter can also access the receipt information by scanning the QR code of the logistics distribution object and then perform sorting and processing; for example, the accessories terminal or intelligent delivery equipment of the accessories staff can access the receipt information of the logistics distribution object by scanning the QR code of the logistics distribution object, and then perform delivery according to the received receipt information obtained from the access; or, the recipient user uses his or her own smart phone to scan the QR code of the logistics distribution object to access the logistics order data of the logistics distribution object.

[0080] The logistics index information described in this embodiment refers to the index information of the logistics order that can be used to identify the logistics delivery object; for example, the logistics index information can be the storage address index of the logistics order, or the location index of the logistics order storage location in the database. The registration token is a token used to verify whether the terminal device currently sending the logistics access request has access rights to the logistics order.

[0081] During the specific execution process, before requesting access to logistics data, the terminal device can perform trusted access registration for the logistics distribution object for which access to logistics data is currently requested, and obtain a registration token through trusted access registration, so that the obtained registration token can be used to access relevant logistics data of the logistics distribution object.

[0082] This embodiment provides an optional implementation method, in which trusted access registration is performed in the following manner: receiving an access reminder message of the logistics order sent by the server; if it is detected that the access reminder message is triggered, generating a registration token for the terminal device according to the device unique identifier of the terminal device in the trusted execution environment, and sending the registration token to the server through the trusted execution environment.

[0083] Among them, the device unique identifier refers to the identification information that can uniquely determine the terminal device, such as the hardware ID or MAC address of the terminal device; in addition, when the terminal device has a one-to-one correspondence with the configured trusted execution environment, the device unique identifier can also be the identification information of the trusted execution environment.

[0084] In order to reduce the possibility of data leakage when logistics data is transmitted in plain text during the network transmission between the server and the terminal device, and to improve the data security of logistics data during the network transmission, the logistics data is transmitted between the server and the terminal device by means of data encryption. In the specific execution process, the key sent by the server to the trusted execution environment can be received before the logistics access request carrying the registration token and logistics index information is sent to the server.

[0085] Optionally, the key is sent after the trusted access registration of the terminal device is performed, and the trusted access registration includes generating a trusted registration relationship of the logistics order with the registration token of the terminal device and the order identifier of the logistics order.

[0086] In addition, in order to improve the security of the key during the network transmission between the server and the terminal device, this embodiment improves the security of the key during the network transmission by encrypting the key, thereby further reducing the possibility of logistics data being intercepted and leaked on the basis of improving the security of key transmission. Specifically, in an optional implementation manner provided by this embodiment, after the registration token is sent to the server through the trusted execution environment, the encryption key sent by the server to the trusted execution environment is received; the encryption key is decrypted using the public key in the trusted execution environment to obtain the key; the public key corresponds to the private key used by the server to encrypt the key into the encryption key.

[0087] The following describes the overall processing of trusted access registration in detail by taking the trusted access registration process performed by the user terminal of the recipient user provided in FIG. 2 as an example.

[0088] When the server detects that a new logistics order has been generated, it pushes an access reminder message to the recipient user according to the instant messaging number recorded in the logistics order, so as to guide the recipient user to register for trusted access to the logistics order; after the access reminder message is pushed to the user terminal of the recipient user, the recipient user can trigger the access reminder message through the application or applet installed on the user terminal, and after the access reminder message is triggered, the trusted access registration process of the user terminal is entered; in the trusted access registration process, the user terminal sends a token generation instruction to the trusted execution environment, and after receiving the token generation instruction, the trusted execution environment obtains the device ID of the user terminal to generate a registration token, and sends the generated registration token to the server; at the same time, the user terminal can also send the currently bound instant messaging number to the server; after receiving the registration instruction sent by the user terminal, the server After the card is registered, the registration token is written into the field corresponding to the current logistics order in the trusted access registration table, so as to establish a trusted registration relationship between the registration token and the logistics order, that is, to establish a trusted registration relationship between the user terminal and the logistics order; at the same time, the server can also associate the instant messaging number sent by the user terminal with the logistics order; after completing the trusted access registration process, the server generates a key and sends the generated key to the trusted execution environment of the user terminal to store the key in the trusted execution environment of the user terminal, and utilizes the secure storage and memory isolation mechanism of the trusted execution environment to protect the security of the key sent to the user terminal; further, after the trusted access registration is successful, the QR code of the logistics distribution object for accessing logistics data can be sent to the user terminal, so that the recipient user can query the logistics status by scanning the QR code.

[0089] In order to strengthen the access constraints on logistics data and thereby improve the access security of logistics data, the validity period can also be configured for the registration token. The registration token is valid within the validity period, and the registration token can be used to access the logistics data. If the registration token is invalid after the validity period, the registration token cannot be used to access the logistics data. During the specific execution process, the validity period of the registration token can be determined within the trusted execution environment of the terminal device. Among them, the validity period of the registration token can be set to a fixed period; the validity period of the registration token can also be determined according to the device type of the terminal device, such as setting a first validity period for the registration token of a terminal device whose device type is a user terminal, and setting a second validity period for the registration token of a terminal device whose device type is a logistics terminal; or, the validity period of the registration token can also be determined according to the processing type or processing duration of the logistics flow processing in which the terminal device participates, such as setting the validity period of the registration token of the terminal device according to the logistics distribution duration.

[0090] Step S504: receiving the encrypted logistics data sent by the server to the trusted execution environment.

[0091] Optionally, the encrypted logistics data is obtained by encrypting the logistics order data queried based on the logistics index information when the access registration verification of the logistics order of the terminal device is passed according to the registration token.

[0092] The logistics order data described in this embodiment includes at least one of the following: the recipient's receiving information, the sender's sending information, and the logistics distribution process data of the logistics distribution object. The recipient's receiving information may consist of at least one of the recipient's name, address, and instant messaging number; similarly, the sender's sending information may consist of at least one of the sender's name, address, and instant messaging number. The logistics order flow process data refers to the logistics record data generated by the logistics distribution object during its logistics flow.

[0093] During the specific execution process, after the logistics access request carrying the registration token and logistics index information of the terminal device is sent to the server, the server first determines the logistics order corresponding to the logistics index information, and then performs access registration verification of the logistics order on the terminal device based on the registration token; after the access registration verification is passed, the logistics order data of the logistics order is queried based on the logistics index information, and further, the logistics order data is encrypted using a key to obtain encrypted logistics data, and finally the encrypted logistics data is sent to the trusted execution environment of the terminal device; accordingly, here, the encrypted logistics data sent by the receiving server to the trusted execution environment can be used to utilize the secure storage and memory isolation mechanism of the trusted execution environment to ensure the data security after the encrypted logistics data is sent to the terminal device.

[0094] Step S506: decrypt the encrypted logistics data using the key in the trusted execution environment, and output the decrypted logistics order data from the trusted execution environment for display on the terminal device.

[0095] In specific implementations, to improve data transmission security between the server and terminal devices and reduce the probability of data transmission being intercepted between devices, a dedicated encrypted data channel can be established between the server and the terminal device, and data exchange between the server and the terminal device is carried out based on the established encrypted data channel. Optionally, data exchange between the terminal device and the server is carried out through an encrypted data channel established by calling a data encryption protocol.

[0096] The following describes the overall processing of accessing logistics data by taking the logistics query process performed by the user terminal of the recipient user provided in FIG3 as an example.

[0097] The user terminal of the recipient user scans the QR code of the logistics distribution object for accessing logistics data, decodes the scanned QR code to obtain logistics index information, and sends the logistics index information to the trusted execution environment to generate a logistics query request carrying a registration token and logistics index information in the trusted environment, and sends the logistics query request to the server through the trusted execution environment; after the server receives the logistics query request, it performs an access registration verification on the registration token carried by the logistics query request. After the access registration verification is passed, the logistics status information of the corresponding logistics order is queried based on the logistics index information, and then the queried logistics status information is encrypted using the key, and the obtained encrypted logistics status information is sent to the trusted execution environment of the user terminal; after the encrypted logistics status information is sent to the trusted execution environment of the user terminal, the encrypted logistics status information is decrypted using the key stored in the trusted execution environment to obtain the plaintext logistics status information and output it from the trusted execution environment to be displayed on the screen of the user terminal.

[0098] The following takes the application of a privacy protection-based logistics data processing method provided by this embodiment in an express delivery scenario as an example, and combines Figure 4 to further illustrate the privacy protection-based logistics data processing method provided by this embodiment. Referring to Figure 4, the privacy protection-based logistics data processing method applied to the express delivery scenario specifically includes the following steps.

[0099] Step S404: Receive the access reminder message of the express order sent by the server.

[0100] Step S406: If it is detected that the access reminder message is triggered, a registration token is generated in the trusted execution environment of the user terminal according to the unique device identifier of the user terminal.

[0101] Step S408: Send the registration token to the server through the trusted execution environment.

[0102] Step S416: Receive the encryption key sent by the server to the trusted execution environment.

[0103] Step S418: Decrypt the encryption key using the public key in the trusted execution environment to obtain the key and store it.

[0104] Step S420: Decode the QR code of the express item corresponding to the express order obtained by scanning.

[0105] The QR code may be a QR code issued by the server after step S414, or may be a QR code printed on the outer packaging of the express package received by the recipient.

[0106] Step S422: Send an express query request carrying the registration token and order number to the server based on the decoding result.

[0107] Step S434: receiving the encrypted delivery data sent by the server to the trusted execution environment.

[0108] Step S436: Decrypt the encrypted delivery data using the key in the trusted execution environment.

[0109] In step S438, the decrypted delivery record data is output from the trusted execution environment to be displayed on the screen of the user terminal.

[0110] An embodiment of a logistics data processing device based on privacy protection provided in this specification is as follows: In the above embodiment, a logistics data processing method based on privacy protection is provided, and correspondingly, a logistics data processing device based on privacy protection is also provided, which is explained below in conjunction with the accompanying drawings.

[0111] 6 , which shows a schematic diagram of a logistics data processing device based on privacy protection provided by this embodiment.

[0112] Since the device embodiment corresponds to the method embodiment, the description is relatively simple. For the relevant parts, please refer to the corresponding description of the method embodiment provided above. The device embodiment described below is only illustrative.

[0113] This embodiment provides a logistics data processing device based on privacy protection, which runs on a server, and the device includes: a request receiving module 602, which is configured to receive a logistics access request sent by a terminal device; the logistics access request carries the registration token of the terminal device, and the logistics index information obtained by decoding the logistics identification code of the logistics distribution object; an access registration verification module 604, which is configured to determine the logistics order corresponding to the logistics index information, and perform access registration verification of the logistics order on the terminal device according to the registration token; a data query module 606, which is configured to query the logistics order data of the logistics order based on the logistics index information after the access registration verification is passed; an encryption sending module 608, which is configured to encrypt the logistics order data with a key to obtain encrypted logistics data, and send the encrypted logistics data to the trusted execution environment configured for the terminal device.

[0114] Another embodiment of a logistics data processing device based on privacy protection provided in this specification is as follows: In the above embodiment, another logistics data processing method based on privacy protection is provided. Correspondingly, another logistics data processing device based on privacy protection is also provided, which is explained below in conjunction with the accompanying drawings.

[0115] 7 , which shows a schematic diagram of a logistics data processing device based on privacy protection provided by this embodiment.

[0116] Since the device embodiment corresponds to the method embodiment, the description is relatively simple. For the relevant parts, please refer to the corresponding description of the method embodiment provided above. The device embodiment described below is only illustrative.

[0117] This embodiment provides a logistics data processing device based on privacy protection, which runs on a terminal device configured with a trusted execution environment, and the device includes: a decoding module 702, configured to decode the logistics identification code of the logistics distribution object obtained by scanning, and send a logistics access request carrying a registration token and logistics index information to the server based on the decoding result; a data receiving module 704, configured to receive the encrypted logistics data sent by the server to the trusted execution environment; the encrypted logistics data is obtained by encrypting the logistics order data queried based on the logistics index information when the access registration verification of the logistics order of the terminal device is passed according to the registration token; a data decryption module 706, configured to decrypt the encrypted logistics data using a key in the trusted execution environment, and output the decrypted logistics order data from the trusted execution environment for display on the terminal device.

[0118] An embodiment of a logistics data processing device based on privacy protection provided in this specification is as follows: Corresponding to the logistics data processing method based on privacy protection described above, based on the same technical concept, one or more embodiments of this specification also provide a logistics data processing device based on privacy protection, which is used to execute the logistics data processing method based on privacy protection provided above. Figure 8 is a structural schematic diagram of a logistics data processing device based on privacy protection provided in one or more embodiments of this specification.

[0119] This embodiment provides a privacy-preserving logistics data processing device, including: As shown in FIG8 , the privacy-preserving logistics data processing device may vary significantly depending on configuration or performance. It may include one or more processors 801 and memory 802. Memory 802 may store one or more applications or data. Memory 802 may be either ephemeral or persistent. The applications stored in memory 802 may include one or more modules (not shown), each of which may include a series of computer-executable instructions for the privacy-preserving logistics data processing device. Furthermore, processor 801 may be configured to communicate with memory 802, allowing the privacy-preserving logistics data processing device to execute the series of computer-executable instructions in memory 802. The privacy-preserving logistics data processing device may also include one or more power supplies 803, one or more wired or wireless network interfaces 804, one or more input / output interfaces 805, one or more keyboards 806, and the like.

[0120] In a specific embodiment, a logistics data 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 logistics data processing device based on privacy protection, and is configured to be executed by one or more processors. The one or more programs include the following computer-executable instructions: receiving a logistics access request sent by a terminal device; the logistics access request carries a registration token of the terminal device and logistics index information obtained by decoding the logistics identification code of the logistics distribution object; determining the logistics order corresponding to the logistics index information, and performing an access registration verification of the logistics order on the terminal device according to the registration token; after the access registration verification is passed, querying the logistics order data of the logistics order based on the logistics index information; encrypting the logistics order data using a key to obtain encrypted logistics data, and sending the encrypted logistics data to the trusted execution environment configured for the terminal device.

[0121] Another embodiment of a logistics data processing device based on privacy protection provided in this specification is as follows: Corresponding to the other logistics data processing method based on privacy protection described above, based on the same technical concept, one or more embodiments of this specification also provide another logistics data processing device based on privacy protection. The logistics data processing device based on privacy protection is used to execute the other logistics data processing method based on privacy protection provided above. Figure 9 is a structural schematic diagram of another logistics data processing device based on privacy protection provided in one or more embodiments of this specification.

[0122] This embodiment provides a privacy-preserving logistics data processing device, including: As shown in FIG9 , the privacy-preserving logistics data processing device may vary significantly due to different configurations or performance, and may include one or more processors 901, a memory 902, and a trusted execution environment 906. The memory 902 may store one or more applications or data. The memory 902 may be a temporary or persistent storage. The application stored in the memory 902 may include one or more modules (not shown), each of which may include a series of computer-executable instructions in the privacy-preserving logistics data processing device. Furthermore, the processor 901 may be configured to communicate with the memory 902 to execute the series of computer-executable instructions in the memory 902 on the privacy-preserving logistics data processing device. The privacy-preserving logistics data processing device may also include one or more power supplies 903, one or more wired or wireless network interfaces 904, and one or more input / output interfaces 905.

[0123] In a specific embodiment, a logistics data processing device based on privacy protection includes a memory and one or more programs, wherein one or more programs are stored in the memory, and one or more programs may include one or more modules, and each module may include a series of computer-executable instructions in the logistics data processing device based on privacy protection, and is configured to be executed by one or more processors. The one or more programs include the following computer-executable instructions: decoding the logistics identification code of the logistics distribution object obtained by scanning, and sending a logistics access request carrying a registration token and logistics index information to the server based on the decoding result; receiving the encrypted logistics data sent by the server to the trusted execution environment; the encrypted logistics data is obtained by encrypting the logistics order data queried based on the logistics index information when the access registration verification of the logistics order of the terminal device is passed according to the registration token; decrypting the encrypted logistics data using a key in the trusted execution environment, and outputting the decrypted logistics order data from the trusted execution environment for display on the terminal device.

[0124] An embodiment of a storage medium provided in this specification is as follows: Corresponding to the above-described logistics data processing method based on privacy protection, based on the same technical concept, one or more embodiments of this specification also provide a storage medium.

[0125] The storage medium provided in this embodiment is used to store computer-executable instructions, which implement the following process when executed by a processor: receiving a logistics access request sent by a terminal device; the logistics access request carries a registration token of the terminal device and logistics index information obtained by decoding the logistics identification code of the logistics distribution object; determining the logistics order corresponding to the logistics index information, and performing an access registration verification of the logistics order on the terminal device based on the registration token; after the access registration verification is passed, querying the logistics order data of the logistics order based on the logistics index information; encrypting the logistics order data with a key to obtain encrypted logistics data, and sending the encrypted logistics data to the trusted execution environment configured for the terminal device.

[0126] It should be noted that the embodiment of a storage medium in this specification and the embodiment of a logistics data processing method based on privacy protection in this specification are based on the same inventive concept. Therefore, the specific implementation of this embodiment can refer to the implementation of the aforementioned corresponding method, and the repeated parts will not be repeated.

[0127] Another storage medium embodiment provided in this specification is as follows: Corresponding to the other privacy-protection-based logistics data processing method described above, based on the same technical concept, one or more embodiments of this specification also provide another storage medium.

[0128] The storage medium provided in this embodiment is used to store computer-executable instructions, which implement the following process when executed by the processor: decoding the logistics identification code of the logistics distribution object obtained by scanning, and sending a logistics access request carrying a registration token and logistics index information to the server based on the decoding result; receiving the encrypted logistics data sent by the server to the trusted execution environment; the encrypted logistics data is obtained by encrypting the logistics order data queried based on the logistics index information when the access registration verification of the logistics order of the terminal device is passed according to the registration token; decrypting the encrypted logistics data using a key in the trusted execution environment, and outputting the decrypted logistics order data from the trusted execution environment to be displayed on the terminal device.

[0129] It should be noted that the embodiment of another storage medium in this specification and the embodiment of another logistics data processing method based on privacy protection in this specification are based on the same inventive concept. Therefore, the specific implementation of this embodiment can refer to the implementation of the aforementioned corresponding method, and the repeated parts will not be repeated.

[0130] The foregoing description of this specification describes specific embodiments. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims can be performed in an order different from that described in the embodiments and still achieve the desired results. Furthermore, the processes depicted in the accompanying drawings do not necessarily require the specific order shown or the sequential order to achieve the desired results. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0131] In the 1930s, technological improvements could be clearly distinguished as either hardware improvements (for example, improvements to circuit structures like diodes, transistors, and switches) or software improvements (improvements to process flows). However, with the advancement of technology, many process flow improvements today can now be considered direct improvements to hardware circuit structures. Designers almost always create the corresponding hardware circuit structure by programming the improved process flow into the hardware circuit. Therefore, it cannot be said that a process flow improvement cannot be implemented using hardware modules. For example, a programmable logic device (PLD), such as a field programmable gate array (FPGA), is an integrated circuit whose logical function is determined by user programming. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to hire a chip manufacturer to design and manufacture a dedicated integrated circuit chip. Moreover, nowadays, instead of manually fabricating integrated circuit chips, this programming is mostly done using "logic compiler" software. This is similar to the software compiler used when developing programs. Before compilation, the original code must also be written in a specific programming language, called a hardware description language (HDL). There is not just one HDL, but many, 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 are VHDL (Very-High-Speed ​​Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art will also understand that by simply programming the method flow in one of these hardware description languages ​​and then programming it into an integrated circuit, a hardware circuit that implements the logic method flow can be easily obtained.

[0132] The controller can be implemented in any suitable manner. For example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro)processor, logic gates, switches, application-specific integrated circuits (ASICs), programmable logic controllers, and embedded microcontrollers. 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 will also know that in addition to implementing the controller in a purely computer-readable program code format, the controller can be implemented in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers by logically programming the method steps. Therefore, such a controller can be considered a hardware component, and the devices included therein for implementing various functions can also be considered as structures within the hardware component. Or even, the devices for implementing various functions can be considered as both software modules that implement the method and structures within the hardware component.

[0133] The systems, devices, modules, or units described in the above embodiments may be implemented by computer chips or entities, or by products having 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 smartphone, 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.

[0134] For the convenience of description, the above devices are described as being divided into various units according to their functions. Of course, when implementing the embodiments of this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0135] Those skilled in the art will appreciate that one or more embodiments of this specification may be provided as a method, system, or computer program product. Thus, one or more embodiments of this specification may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, 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 magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0136] This specification is 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 data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0137] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a product including an instruction device that implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0138] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0139] In a typical configuration, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.

[0140] 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. Memory is an example of a computer-readable medium.

[0141] Computer-readable media includes permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. The 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 disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, 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 transitory media such as modulated data signals and carrier waves.

[0142] It should also be noted that the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, commodity, or apparatus that includes a series of elements includes not only those elements but also other elements not explicitly listed, or includes elements inherent to such process, method, commodity, or apparatus. In the absence of further limitations, an element defined by the phrase "comprises a ..." does not exclude the presence of other identical elements in the process, method, commodity, or apparatus that includes the element.

[0143] One or more embodiments of this 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, and the like that perform specific tasks or implement specific abstract data types. One or more embodiments of this specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected via a communications network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

[0144] The various embodiments in this specification are described in a progressive manner. Similar parts between the various embodiments can be referred to in conjunction with each other. Each embodiment focuses on the differences between the other embodiments. In particular, the system embodiments are generally similar to the method embodiments, so the description is relatively simple. For relevant parts, refer to the description of the method embodiments.

[0145] The foregoing description is merely an example of the present invention and is not intended to limit the present invention. Persons skilled in the art will readily appreciate that various modifications and variations of the present invention are possible. Any modifications, equivalent substitutions, or improvements made within the spirit and principles of the present invention are intended to be included within the scope of the claims herein.

Claims

1. A logistics data processing method based on privacy protection, applied to a server, the method include: Receive logistics access requests sent by terminal devices; The logistics access request carries the registration token of the terminal device and the logistics index information obtained by decoding the logistics identification code of the logistics distribution object; Determine the logistics order corresponding to the logistics index information, and perform access registration verification of the logistics order on the terminal device according to the registration token; After the access registration verification is passed, querying the logistics order data of the logistics order based on the logistics index information; The logistics order data is encrypted using a key to obtain encrypted logistics data, and the encrypted logistics data is sent to a trusted execution environment configured on the terminal device.

2. The privacy protection-based logistics data processing method according to claim 1, wherein the terminal device is verified for access registration of the logistics order according to the registration token. include: Verifying whether the registration token is recorded in the trusted registration relationship of the logistics order; If so, verify whether the validity period of the registration token has expired, and if not, determine that the access registration verification has passed; The trusted registration relationship includes: a corresponding relationship between an order identifier of the logistics order and a registration token of a terminal device for trusted access registration for the logistics order.

3. According to the privacy protection-based logistics data processing method of claim 1, before the step of receiving the logistics access request sent by the terminal device is executed, include: Sending an access reminder message of the logistics order to the terminal device; Receiving the registration token sent by the terminal device through the trusted execution environment; A trusted registration relationship of the logistics order is generated based on the registration token and the order identifier of the logistics order.

4. According to the privacy protection-based logistics data processing method of claim 3, after the access reminder message is sent to the terminal device, the terminal device generates the registration token according to the unique device identifier of the terminal device in the trusted execution environment when the access reminder message is triggered.

5. According to the privacy protection-based logistics data processing method of claim 3, after the step of generating the trusted registration relationship of the logistics order based on the registration token and the order identifier of the logistics order is executed, include: Encrypting the key using a private key to obtain an encrypted key, and sending the encrypted key to the trusted execution environment; Among them, the terminal device uses the public key corresponding to the private key in the trusted execution environment to decrypt the encryption key, and uses the key obtained by decryption to decrypt the encrypted logistics data.

6. According to the privacy protection-based logistics data processing method of claim 1, before the step of receiving the logistics access request sent by the terminal device is executed, include: When the generation of the logistics order data is detected, a trusted registration relationship of the logistics order is generated based on the registration token and the order identifier of the logistics order, and the key is sent to the trusted execution environment.

7. The privacy protection-based logistics data processing method according to claim 3 or 6, further comprising: include: If it is detected that the validity period of the registration token has expired, the trusted registration relationship is terminated.

8. The method for processing logistics data based on privacy protection according to claim 1, further comprising: include: Creating registration record information for trusted access registration of the terminal device, so as to perform traceability processing of the trusted access registration of the logistics order according to the registration record information; and / or, Access record information of the terminal device accessing the logistics order data is created to perform access tracing processing on the logistics order data based on the access record information.

9. According to the privacy protection-based logistics data processing method of claim 1, the data interaction between the server and the terminal device is carried out through an encrypted data channel constructed by calling a data encryption protocol.

10. According to the privacy protection-based logistics data processing method of claim 1, the terminal device comprises at least one of the following: The logistics personnel terminal in the logistics flow process of the logistics distribution object, the terminal device of the sender of the logistics distribution object, the terminal device of the recipient of the logistics distribution object, and the third-party terminal device that receives the access reminder message of the logistics order forwarded by the terminal device of the recipient.

11. A logistics data processing method based on privacy protection, applied to a terminal device configured with a trusted execution environment, the method include: Decode the logistics identification code of the logistics distribution object obtained by scanning, and send a logistics access request carrying a registration token and logistics index information to the server based on the decoding result; Receiving encrypted logistics data sent by the server to the trusted execution environment; The encrypted logistics data is obtained by encrypting the logistics order data queried based on the logistics index information when the terminal device passes the access registration verification of the logistics order according to the registration token; The encrypted logistics data is decrypted using a key in the trusted execution environment, and the decrypted logistics order data is output from the trusted execution environment for display on the terminal device.

12. According to the privacy protection-based logistics data processing method of claim 11, before the step of decoding the logistics identification code of the logistics distribution object obtained by scanning and sending a logistics access request carrying the registration token and logistics index information to the server based on the decoding result is executed, include: Receiving an access reminder message of the logistics order sent by the server; If it is detected that the access reminder message is triggered, a registration token for the terminal device is generated in the trusted execution environment according to the unique device identifier of the terminal device, and the registration token is sent to the server through the trusted execution environment.

13. The privacy-preserving logistics data processing method according to claim 12, wherein after the operation of sending the registration token to the server through the trusted execution environment is executed, include: receiving an encryption key sent by the server to the trusted execution environment; Decrypting the encryption key using a public key in the trusted execution environment to obtain the key; The public key corresponds to a private key used by the server to encrypt the secret key into the encrypted key.

14. According to the privacy protection-based logistics data processing method of claim 11, before the step of decoding the logistics identification code of the logistics distribution object obtained by scanning and sending a logistics access request carrying the registration token and logistics index information to the server based on the decoding result is executed, include: receiving the key sent by the server to the trusted execution environment; The key is sent after the trusted access registration of the terminal device is performed, and the trusted access registration includes generating a trusted registration relationship of the logistics order with the registration token of the terminal device and the order identifier of the logistics order.

15. According to the privacy protection-based logistics data processing method of claim 11, the terminal device comprises at least one of the following: The logistics personnel terminal in the logistics flow process of the logistics distribution object, the terminal device of the sender of the logistics distribution object, the terminal device of the recipient of the logistics distribution object, and the third-party terminal device that receives the access reminder message of the logistics order forwarded by the terminal device of the recipient.

16. A logistics data processing device based on privacy protection, running on a server, the device include: A request receiving module, configured to receive a logistics access request sent by a terminal device; The logistics access request carries the registration token of the terminal device and the logistics index information obtained by decoding the logistics identification code of the logistics distribution object; An access registration verification module is configured to determine the logistics order corresponding to the logistics index information, and perform access registration verification of the logistics order on the terminal device according to the registration token; The data query module is configured to query the Logistics order data of logistics orders; The encryption sending module is configured to encrypt the logistics order data using a key to obtain encrypted logistics data, and send the encrypted logistics data to the trusted execution environment configured in the terminal device.

17. A logistics data processing device based on privacy protection, running on a terminal device configured with a trusted execution environment, the device include: A decoding module is configured to decode the logistics identification code of the logistics distribution object obtained by scanning, and send a logistics access request carrying a registration token and logistics index information to the server based on the decoding result; A data receiving module, configured to receive the encrypted logistics data sent by the server to the trusted execution environment; The encrypted logistics data is obtained by encrypting the logistics order data queried based on the logistics index information when the terminal device passes the access registration verification of the logistics order according to the registration token; The data decryption module is configured to decrypt the encrypted logistics data using a key within the trusted execution environment, and output the decrypted logistics order data from the trusted execution environment for display on the terminal device.

18. A logistics data processing device based on privacy protection, include: processor; and a memory configured to store computer executable instructions that, when executed, cause the processor to: Receiving a logistics access request sent by a terminal device; the logistics access request carries a registration token of the terminal device and logistics index information obtained by decoding a logistics identification code of a logistics distribution object; Determine the logistics order corresponding to the logistics index information, and perform access registration verification of the logistics order on the terminal device according to the registration token; After the access registration verification is passed, querying the logistics order data of the logistics order based on the logistics index information; The logistics order data is encrypted using a key to obtain encrypted logistics data, and the encrypted logistics data is sent to a trusted execution environment configured on the terminal device.

19. A logistics data processing device based on privacy protection, include: Processor, Trusted Execution Environment; and a memory configured to store computer executable instructions that, when executed, cause the processor to: Decode the logistics identification code of the logistics distribution object obtained by scanning, and send a logistics access request carrying a registration token and logistics index information to the server based on the decoding result; Receiving encrypted logistics data sent by the server to the trusted execution environment; The encrypted logistics data is obtained by encrypting the logistics order data queried based on the logistics index information when the terminal device passes the access registration verification of the logistics order according to the registration token; The encrypted logistics data is decrypted using a key in the trusted execution environment, and the decrypted logistics order data is output from the trusted execution environment for display on the terminal device.

20. A storage medium for storing computer executable instructions, wherein the computer executable instructions, when executed by a processor, implement the following process: Receiving a logistics access request sent by a terminal device; the logistics access request carries a registration token of the terminal device and logistics index information obtained by decoding a logistics identification code of a logistics distribution object; Determine the logistics order corresponding to the logistics index information, and perform access registration verification of the logistics order on the terminal device according to the registration token; After the access registration verification is passed, querying the logistics order data of the logistics order based on the logistics index information; The logistics order data is encrypted using a key to obtain encrypted logistics data, and the encrypted logistics data is sent to a trusted execution environment configured on the terminal device.

21. A storage medium for storing computer executable instructions, wherein the computer executable instructions, when executed by a processor, implement the following process: Decode the logistics identification code of the logistics distribution object obtained by scanning, and send the data to the server based on the decoding result. Logistics access request with registration token and logistics index information; Receiving encrypted logistics data sent by the server to the trusted execution environment; The encrypted logistics data is obtained by encrypting the logistics order data queried based on the logistics index information when the terminal device passes the access registration verification of the logistics order according to the registration token; The encrypted logistics data is decrypted using a key in the trusted execution environment, and the decrypted logistics order data is output from the trusted execution environment for display on the terminal device.

Citation Information

Patent Citations

  • Intelligent logistics signing method and system

    CN104657842A

  • Logistics business information processing method, related device, and related system

    CN105787682A

  • Logistics big data information security access control system

    CN107196967A

  • Logistics privacy protection system based on ciphertext policy attribute-based key encapsulation

    CN113645582A

  • Logistics data processing method and device based on privacy protection

    CN116011905A

Cited By

  • Logistics distribution control platform based on human-computer interaction

    CN121808843A