Express privacy protection method and device, equipment and medium

By using single-use keys and encryption algorithms in the logistics process, the sender and recipient information is protected, the problem of information leakage in logistics is solved, and the security of logistics and information transmission is improved.

CN118586035APending Publication Date: 2024-09-03WEILING (QINGDAO) NETWORK SECURITY RES INST CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410794293.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-19
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

During the logistics process, the express delivery privacy form only protects the recipient's information and fails to effectively protect the sender's information, leading to the leakage of user information, and information substitution methods cannot avoid the exposure of information in intermediate links.

Method used

Adopting an express privacy protection method, through encryption and decryption between the security center, e-commerce platform and logistics platform, using a single-use key for information transmission, ensuring that the sender and recipient information are protected throughout the entire logistics process. The whole process is encrypted to avoid information leakage. Specific steps include obtaining the security center encrypted information, using the key to decrypt the order information, and using the Z cipher algorithm and SM4 algorithm to encrypt and decrypt, ensuring that both parties of information transmission generate unique single-use keys.

Benefits of technology

Effectively protect the recipient and sender information during the logistics process, improve logistics security, save storage space, reduce the possibility of the key being obtained, avoid information leakage, and ensure that a single use of the key will not affect the next time transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118586035A
    Figure CN118586035A
Patent Text Reader

Abstract

The invention discloses an express privacy protection method, device and equipment and a medium, and relates to the technical field of computers, the method is applied to a logistics platform, and the method comprises the following steps: when data transmission is carried out between an e-commerce platform and a security center, between the security center and the logistics platform, between the logistics platform and a parcel collection client, and between the logistics platform and a parcel delivery client, the data transmission is carried out; according to the technical scheme, the keys generated in the respective transmission process are used for encryption, and the keys are all single-use keys, so that the security of the keys is ensured, the keys do not need to be stored, and the storage space is saved; through the secret keys between the logistics platform and the express collection client and between the logistics platform and the express delivery client, simultaneous protection of the sender information and the inspector information is realized, and the receiver and sender information in the logistics process can be protected so as to improve the logistics safety.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method, device, equipment and medium for protecting express privacy. Background Art

[0002] Currently, in the logistics process, the express privacy label only protects the recipient's information, but not the sender's information, which will still cause the leakage of user information. Furthermore, when the information replacement method is used to protect the recipient and sender's information, it is still impossible to avoid the recipient and sender's information being exposed in the middle link.

[0003] In summary, how to protect the information of recipients and senders in the logistics process to improve logistics security is an urgent problem that needs to be solved. Summary of the invention

[0004] In view of this, the purpose of the present invention is to provide a method, device, equipment and medium for express privacy protection, which can protect the information of recipients and senders in the logistics process to improve logistics security. The specific scheme is as follows:

[0005] In the first aspect, the present application discloses a method for privacy protection of express delivery, which is applied to a logistics platform, comprising:

[0006] Obtain security center encrypted information sent by the security center, and use the first key to decrypt the security center encrypted information to obtain order information; the security center encrypted information is information obtained by the security center using the first key to encrypt the acquired order information; the security center obtains the order information by using the second key to decrypt the e-commerce platform encrypted information obtained from the e-commerce platform, and the e-commerce platform encrypted information is information obtained by the e-commerce platform using the second key to encrypt the order information;

[0007] The sender information in the order information is encrypted using the third key to obtain the encrypted pickup information, and the recipient information in the order information is encrypted using the fourth key to obtain the encrypted delivery information;

[0008] Sending the encrypted pickup information to the pickup client, and sending the encrypted delivery information to the delivery client, so that the pickup client decrypts the encrypted pickup information using the third key and the delivery client decrypts the encrypted delivery information using the fourth key;

[0009] The first key, the second key, the third key and the fourth key are single-use keys generated by both parties of information transmission during the information transmission process.

[0010] Optionally, the first key, the second key, the third key and the fourth key are single-use keys generated by both parties of information transmission using their respective Z cryptographic algorithms during the information transmission process.

[0011] Optionally, the Z cryptographic algorithm of the security center, the logistics platform and the e-commerce platform is an algorithm generated by the security center based on the information of the party to which the Z cryptographic algorithm belongs; the Z cryptographic algorithm of the collection client and the delivery client is an algorithm generated by the logistics platform based on the information of the party to which the Z cryptographic algorithm belongs.

[0012] Optionally, the SM4 algorithm is used when performing encryption and decryption operations using the first key, the second key, the third key and the fourth key.

[0013] Optionally, before encrypting the sender information in the order information with the third key to obtain the encrypted pickup information and encrypting the recipient information in the order information with the fourth key to obtain the encrypted delivery information, the method further includes:

[0014] Determine a random number for picking up a shipment, and send the random number for picking up a shipment to the shipment client, so that the shipment client generates the third key based on the random number for picking up a shipment;

[0015] Generate the third key based on the random number of the package;

[0016] and / or,

[0017] Determine a random number for sending a document, and send the random number for sending a document to the sending client, so that the sending client generates the fourth key based on the random number for sending a document;

[0018] Generate the fourth key based on the random number sent;

[0019] Accordingly, before using the first key to decrypt the security center encrypted information to obtain the order information, the method further includes:

[0020] Obtaining the logistics random number sent by the security center, and generating the first key based on the logistics random number; wherein the security center generates the first key according to the logistics random number;

[0021] Correspondingly, the e-commerce center generates the second key based on the e-commerce random number obtained from the security center; the security center generates the second key based on the e-commerce random number determined by the security center.

[0022] Optionally, the sending the random number for picking up a parcel to the parcel picking client so that the parcel picking client generates the third key based on the random number for picking up a parcel; generating the third key based on the random number for picking up a parcel includes:

[0023] Sending the parcel pickup random number to the parcel pickup client, so that the parcel pickup client generates first parcel pickup verification information based on the parcel pickup random number, and sending the first parcel pickup verification information to the logistics platform;

[0024] Generate second parcel collection verification information based on the parcel collection random number, and if the first parcel collection verification information is consistent with the second parcel collection verification information, generate the third key based on the second parcel collection verification information, and send a verification success message to the parcel collection client, so that the parcel collection client generates the third key based on the first parcel collection verification information;

[0025] Correspondingly, the sending of the random number to the sending client so that the sending client generates the fourth key based on the random number; generating the fourth key based on the random number includes:

[0026] Sending the delivery random number to the delivery client, so that the delivery client generates first delivery verification information based on the delivery random number, and sends the first delivery verification information to the logistics platform;

[0027] Generate second delivery verification information based on the delivery random number; if the first delivery verification information is consistent with the second delivery verification information, generate the fourth key based on the second delivery verification information, and send verification success information to the delivery client so that the delivery client can generate the fourth key based on the first delivery verification information.

[0028] Optionally, generating the first key based on the logistics random number includes:

[0029] Generate first logistics verification information based on the logistics random number, and send the first logistics verification information to the security center, so that the security center can determine whether the first logistics verification information is consistent with the second logistics verification information generated by the security center based on the logistics random number. If they are consistent, send verification success information to the logistics platform, and generate the first key based on the second logistics verification information;

[0030] If the verification success information is obtained, generating the first key based on the first logistics verification information;

[0031] Correspondingly, the e-commerce platform generates the second key based on the first e-commerce verification information when the first e-commerce verification information is consistent with the second e-commerce verification information; the security center generates the second key based on the first e-commerce verification information when the first e-commerce verification information is consistent with the second e-commerce verification information; the first e-commerce verification information is information generated by the e-commerce platform based on the e-commerce random number obtained from the security center; the second e-commerce verification information is information generated by the security center based on the e-commerce random number determined by the security center.

[0032] In a second aspect, the present application discloses a courier privacy protection device, which is applied to a logistics platform, including:

[0033] An information acquisition module, used to acquire security center encrypted information sent by the security center, and decrypt the security center encrypted information using a first key to obtain order information; the security center encrypted information is information obtained by the security center encrypting the acquired order information using the first key; the security center acquires the order information by decrypting the e-commerce platform encrypted information acquired from the e-commerce platform using a second key, and the e-commerce platform encrypted information is information obtained by the e-commerce platform encrypting the order information using the second key;

[0034] An encryption module, used to encrypt the sender information in the order information with a third key to obtain encrypted pickup information, and to encrypt the recipient information in the order information with a fourth key to obtain encrypted delivery information;

[0035] An information sending module, used for sending the encrypted information of picking up the parcel to the picking up parcel client, and sending the encrypted information of sending the parcel to the sending parcel client, so that the picking up parcel client can decrypt the encrypted information of picking up the parcel using the third key and the sending parcel client can decrypt the encrypted information of sending the parcel using the fourth key;

[0036] The first key, the second key, the third key and the fourth key are single-use keys generated by both parties of information transmission during the information transmission process.

[0037] In a third aspect, the present application discloses an electronic device, comprising:

[0038] Memory, used to store computer programs;

[0039] A processor is used to execute the computer program to implement the above-disclosed express privacy protection method.

[0040] In a fourth aspect, the present application discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the express privacy protection method disclosed above is implemented.

[0041] It can be seen that the present application obtains the security center encrypted information sent by the security center, and uses the first key to decrypt the security center encrypted information to obtain the order information; the security center encrypted information is the information obtained by the security center using the first key to encrypt the obtained order information; the security center obtains the order information by using the second key to decrypt the e-commerce platform encrypted information obtained from the e-commerce platform, and the e-commerce platform encrypted information is the information obtained by the e-commerce platform using the second key to encrypt the order information; the sender information in the order information is encrypted using the third key to obtain the collection encrypted information, and the recipient information in the order information is encrypted using the fourth key to obtain the delivery encrypted information; the collection encrypted information is sent to the collection client, and the delivery encrypted information is sent to the delivery client, so that the collection client uses the third key to decrypt the collection encrypted information and the delivery client uses the fourth key to decrypt the delivery encrypted information; wherein the first key, the second key, the third key and the fourth key are single-use keys generated by both parties of the information transmission process. It can be seen that the present application generates keys during information transmission, and there is no need to store keys in advance, which saves storage space and reduces the possibility of keys being obtained, further avoiding information leakage; the keys in the present application are all single-use keys, and a new key will be generated during the transmission process for the next transmission. Therefore, after the previous transmission is completed, if the key is known, it will not affect the next information transmission, further avoiding information leakage; in the logistics information transmission process of the present application, different combinations of information transmission parties generate keys respectively, thus ensuring that after the current information transmission parties transmit information, if the key used in the information transmission is known, it will not affect the information transmission of the next group of information transmission parties, thus avoiding information leakage. In summary, the present application can protect the recipient and sender information in the logistics process to improve logistics security. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0043] Figure 1 A flow chart of a method for privacy protection of express delivery disclosed in this application;

[0044] Figure 2 A schematic diagram of a terminal privacy data protection method disclosed in this application;

[0045] Figure 3A flowchart of a specific express privacy protection method disclosed in this application;

[0046] Figure 4 A schematic diagram of an authentication process between an e-commerce platform or a logistics platform and a security center disclosed in this application;

[0047] Figure 5 A schematic diagram of the authentication process between a courier's mobile terminal (a pickup client or a delivery client) and a logistics platform disclosed in this application;

[0048] Figure 6 This is a diagram of information flow relationships among a security center, a logistics platform, an e-commerce platform, couriers, and buyers disclosed in this application;

[0049] Figure 7 This is a schematic diagram of the structure of a courier privacy protection device disclosed in this application;

[0050] Figure 8 This is a structural diagram of an electronic device disclosed in this application. DETAILED DESCRIPTION

[0051] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0052] Currently, in the logistics process, the express privacy label only protects the recipient's information, but not the sender's information, which will still cause the leakage of user information. Furthermore, when the information replacement method is used to protect the recipient and sender's information, it is still impossible to avoid the recipient and sender's information being exposed in the middle link.

[0053] To this end, the embodiment of the present application proposes an express privacy protection solution that can protect the recipient and sender information during the logistics process to improve logistics security.

[0054] The present application embodiment discloses a method for protecting privacy in express delivery. Figure 1 As shown, the method includes:

[0055] Step S11: Obtain the security center encrypted information sent by the security center, and use the first key to decrypt the security center encrypted information to obtain the order information; the security center encrypted information is the information obtained by the security center using the first key to encrypt the acquired order information; the security center obtains the order information by using the second key to decrypt the e-commerce platform encrypted information obtained from the e-commerce platform, and the e-commerce platform encrypted information is the information obtained by the e-commerce platform using the second key to encrypt the order information.

[0056] Step S12: using the third key to encrypt the sender information in the order information to obtain encrypted pickup information, and using the fourth key to encrypt the recipient information in the order information to obtain encrypted delivery information.

[0057] Step S13: Send the encrypted information for picking up the parcel to the parcel picking client, and send the encrypted information for sending the parcel to the parcel sending client, so that the parcel picking client uses the third key to decrypt the encrypted information for picking up the parcel and the parcel sending client uses the fourth key to decrypt the encrypted information for sending the parcel; wherein the first key, the second key, the third key and the fourth key are single-use keys generated by both parties of the information transmission process respectively.

[0058] In this embodiment, the first key, the second key, the third key and the fourth key are all single-use keys generated during the information transmission process, which further ensures the security of the transmission process and saves storage space because there is no need to store keys.

[0059] In this embodiment, the first key, the second key, the third key and the fourth key are single-use keys generated by both parties of information transmission using their own Z cryptographic algorithms during the information transmission process.

[0060] It should be pointed out that the Z cryptographic algorithm is designed to solve the problem of secure identity authentication of IoT terminals. It adopts the design concept of deep integration of user keys and algorithms to provide different grouping algorithms for different users. The Z algorithm is a 64-bit block cipher algorithm cluster, consisting of 2^1024 grouping algorithms (each of which can be called an algorithm instance). It is based on a unified algorithm architecture, according to the algorithm generation rules (the unified algorithm architecture + algorithm generation rules can be called an algorithm generator), and based on the user key to determine the generation of the user's grouping algorithm. The user key and the algorithm are highly integrated, and the cryptographic algorithms of different users are completely different. Each algorithm instance is a customized reversible cryptographic transformation. The "user key" refers to the parameter input to the algorithm generator. It is a string with a length of 1024 bits. The algorithm generator generates a Z cryptographic algorithm based on this bit string. The user keys corresponding to the Z algorithms of different users are different. In the user's terminal, an executable Z algorithm program (or an executable file generated after compiling with other programs of the terminal) is saved, not the user key. The user key and the cryptographic algorithm are highly integrated, which makes the key cracking difficult exponentially. The risk of information encrypted and protected by the Z algorithm cryptographic system being cracked is reduced.

[0061] In this embodiment, the Z cryptographic algorithm of the security center, the logistics platform and the e-commerce platform is an algorithm generated by the security center based on the information of the party to which the Z cryptographic algorithm belongs; the Z cryptographic algorithm of the collection client and the delivery client is an algorithm generated by the logistics platform based on the information of the party to which the Z cryptographic algorithm belongs.

[0062] It should be pointed out that the logistics platform can generate the Z cryptographic algorithm for the collection client and the delivery client by itself, and can implement private deployment without going through the security center.

[0063] In a specific embodiment, the security center sends the Z cryptographic algorithm to the e-commerce platform and the logistics platform respectively; the security center generates respective Z cryptographic algorithms Z1 and Z2 according to the registration information of the e-commerce platform and the logistics platform; wherein, Z1=GenerateZ(M1, N1), Z2=GenerateZ(M2, N2) (GenerateZ represents the Z algorithm generation function, M1 represents the taxpayer identification number of the e-commerce platform, and N1 represents the server identification number of the e-commerce platform; M1 represents the taxpayer identification number of the logistics platform, and N1 represents the server identification number of the logistics platform). The logistics platform generates the Z password algorithm Zi2' for the pickup courier and the Z password algorithm Zj2 for the delivery courier according to the courier's registration information, Zi2'=GenerateZ(Ui2, Pi2, Ki2), Zj2'=GenerateZ(Uj2, Pj2, Kj2) (GenerateZ represents the Z algorithm generation function, Ui2 represents the username information of the pickup courier, Pi2 represents the password of the pickup courier, Ki2 represents the device code of the pickup courier; Uj2 represents the username information of the delivery courier, Pj2 represents the password of the delivery courier, and Kj2 represents the device code of the delivery courier).

[0064] In this embodiment, the SM4 algorithm is used when the first key, the second key, the third key and the fourth key are used to perform encryption and decryption operations.

[0065] It should be noted that the SM4 cryptographic algorithm is a block cipher algorithm (GM / T 0002-2012 SM4 Block Cipher Algorithm) released by the State Cryptography Administration in 2012. The block length of the algorithm is 128 bits and the key length is 128 bits. Both the encryption algorithm and the key expansion algorithm use a 32-round nonlinear iterative structure. The algorithm structure of data decryption and data encryption is the same, except that the order of use of the round keys is reversed, and the decryption round key is the reverse order of the encryption round key.

[0066] In a specific embodiment, the user fills in the order information, transmits it to the e-commerce platform, and sends it to the security center after encryption; after receiving the order information, the e-commerce platform promptly synchronizes it to the database, and the name, telephone number, and detailed address of the sender and the recipient (the province, city, and district do not need to be encrypted, only the community, building number, and house number are encrypted) are encrypted and saved using the SM4 cryptographic algorithm; after receiving the order information S, the e-commerce platform uses the Z1 cryptographic algorithm to perform identity authentication with the security center. After the authentication is passed, the order information is encrypted with SM4 using k0 to obtain S1, and the encrypted order-related information is sent to the security center, where S1 =SM4(k0,S); After receiving the encrypted order information S1, the security center uses k0 to perform SM4 decryption to obtain S1d, where S1d=SM4d(k0,S1); where SM4d represents the decryption algorithm of SM4; The security center uses the Z2 cryptographic algorithm to authenticate the identity with the logistics platform. After the authentication is passed, k1 is used to perform SM4 encryption on S1d to obtain S2 and send it to the logistics platform, where S2=SM4(k1,S1d); After receiving the order information, the logistics platform uses k1 to perform SM4 decryption to obtain S2d, where S2d=SM4d(k1, S2); the logistics platform uses the Zi2' cryptographic algorithm to authenticate the identity of the courier who picks up the item. After the authentication is passed, k2 is used to SM4 encrypt the sender information in S2d to obtain Si2', which is sent to the courier who picks up the item, where Si2'=SM4(k2,S2di), where S2di represents the sender information in S2d; the logistics platform uses the Zj2' cryptographic algorithm to authenticate the identity of the courier who delivers the item. After the authentication is passed, k3 is used to SM4 encrypt the recipient information in S2d to obtain Sj2', which is sent to the courier who delivers the item, where Sj2'=SM4( k3,S2dj), where S2dj represents the recipient information in S2d; the logistics platform assigns courier A to pick up the package, and after receiving the collection order information, courier A uses k2 to perform SM4 decryption to obtain Si2'd, and obtains the shipping address from Si2'd, where Si2'd=SM4d(k2,Si2'); the logistics platform assigns courier B to deliver the package, and after receiving the delivery order information, courier B uses k3 to perform SM4 decryption to obtain Sj2'd, and obtains the receiving address from Sj2'd, where Sj2'd=SM4d(k3,Sj2').

[0067] It should be pointed out that this application uses the Z cryptographic algorithm for identity authentication and the SM4 cryptographic algorithm to encrypt communication data, achieving one-time one-password and one key for each communicating party. The security center, logistics platform, e-commerce platform and user terminal of this application do not store keys. The keys are integrated into the algorithm executable program, which solves the problem of difficult private key storage in the traditional PKI (Public Key Infrastructure) system; the sender information and recipient information of this application are fully encrypted, and any unrelated party cannot obtain the plaintext information, protecting the privacy and security of information.

[0068] Furthermore, the privacy data protection technology based on the Z algorithm proposed in this application solves the problem of difficulty in storing private keys in the traditional PKI system, and can be used as security reinforcement of PKI (public key infrastructure) technology in IoT terminals and mobile terminals.

[0069] See also Figure 2 As shown in the figure, it is a schematic diagram of a terminal privacy data protection method. In the figure, it describes the protection of user (sender, recipient) privacy data on the terminal device by the logistics platform's business personnel (collectors and dispatchers) after receiving the express delivery business; further, in the figure, when the collector (dispatcher) obtains the logistics platform's cargo collection task through Z algorithm authentication, he uses the logistics business terminal device ③, and the encrypted data protected by the session key is decrypted, so the sender's privacy information is already known. After each session key transmits a batch of delivery information, the collector will connect to the logistics business terminal device through the U shield ① (with an encryption chip inside) of the logistics business device through the interface (SPI (Serial Peripheral Interface, Serial Peripheral Interface) interface or I2C (Inter-Integrated Circuit) interface) and protect the data, and store the encrypted data ② locally in the terminal device, thereby realizing the confidentiality of user privacy data.

[0070] It can be seen that the present application obtains the security center encrypted information sent by the security center, and uses the first key to decrypt the security center encrypted information to obtain the order information; the security center encrypted information is the information obtained by the security center using the first key to encrypt the obtained order information; the security center obtains the order information by using the second key to decrypt the e-commerce platform encrypted information obtained from the e-commerce platform, and the e-commerce platform encrypted information is the information obtained by the e-commerce platform using the second key to encrypt the order information; the sender information in the order information is encrypted using the third key to obtain the collection encrypted information, and the recipient information in the order information is encrypted using the fourth key to obtain the delivery encrypted information; the collection encrypted information is sent to the collection client, and the delivery encrypted information is sent to the delivery client, so that the collection client uses the third key to decrypt the collection encrypted information and the delivery client uses the fourth key to decrypt the delivery encrypted information; wherein the first key, the second key, the third key and the fourth key are single-use keys generated by both parties of the information transmission process. It can be seen that the present application generates keys during information transmission, and there is no need to store keys in advance, which saves storage space and reduces the possibility of keys being obtained, further avoiding information leakage; the keys in the present application are all single-use keys, and a new key will be generated during the transmission process for the next transmission. Therefore, after the previous transmission is completed, if the key is known, it will not affect the next information transmission, further avoiding information leakage; in the logistics information transmission process of the present application, different combinations of information transmission parties generate keys respectively, thus ensuring that after the current information transmission parties transmit information, if the key used in the information transmission is known, it will not affect the information transmission of the next group of information transmission parties, thus avoiding information leakage. In summary, the present application can protect the recipient and sender information in the logistics process to improve logistics security.

[0071] The embodiment of this application discloses a specific express privacy protection method. Compared with the previous embodiment, this embodiment further explains and optimizes the technical solution. Figure 3 As shown, specifically including:

[0072] Step S21: Obtain the security center encrypted information sent by the security center, and obtain the logistics random number sent by the security center; generate the first key based on the logistics random number, and use the first key to decrypt the security center encrypted information to obtain the order information; the security center encrypted information is the information obtained by the security center using the first key to encrypt the acquired order information; the security center obtains the order information by using the second key to decrypt the e-commerce platform encrypted information obtained from the e-commerce platform, and the e-commerce platform encrypted information is the information obtained by the e-commerce platform using the second key to encrypt the order information; wherein, the security center generates the first key according to the logistics random number; wherein, the e-commerce center generates the second key based on the e-commerce random number obtained from the security center; the security center generates the second key based on the e-commerce random number determined by the security center.

[0073] In this embodiment, the password is generated based on a random number, so the password cannot be known in advance, which is conducive to improving security.

[0074] In this embodiment, identity authentication is required before generating the key. During identity authentication, the communicating parties respectively calculate the verification information according to the Z cryptographic algorithm and the random number to verify whether they are consistent. If they are inconsistent, the authentication fails. If they are consistent, the communicating parties respectively generate keys based on their respective verification information.

[0075] Specifically, the generating of the first key based on the logistics random number includes: generating first logistics verification information based on the logistics random number, and sending the first logistics verification information to the security center, so that the security center determines whether the first logistics verification information is consistent with the second logistics verification information generated by the security center based on the logistics random number, and if they are consistent, sending verification success information to the logistics platform, and generating the first key based on the second logistics verification information; if the verification success information is obtained, generating the first key based on the first logistics verification information;

[0076] Specifically, the e-commerce platform generates the second key based on the first e-commerce verification information when the first e-commerce verification information is consistent with the second e-commerce verification information; the security center generates the second key based on the first e-commerce verification information when the first e-commerce verification information is consistent with the second e-commerce verification information; the first e-commerce verification information is information generated by the e-commerce platform based on the e-commerce random number obtained from the security center; the second e-commerce verification information is information generated by the security center based on the e-commerce random number determined by the security center.

[0077] It should be pointed out that the key may be generated not on the basis of the verification information, but based on other information of the communicating parties and the Z cryptographic algorithm, which is not specifically limited here.

[0078] Step S22: Determine a random number for picking up a shipment, and send the random number to the shipment client so that the shipment client generates the third key based on the random number; generate the third key based on the random number for picking up a shipment, and use the third key to encrypt the sender information in the order information to obtain the shipment encryption information.

[0079] Specifically, the sending of the parcel pickup random number to the parcel pickup client so that the parcel pickup client generates the third key based on the parcel pickup random number; generating the third key based on the parcel pickup random number includes: sending the parcel pickup random number to the parcel pickup client so that the parcel pickup client generates first parcel pickup verification information based on the parcel pickup random number, and sending the first parcel pickup verification information to the logistics platform; generating second parcel pickup verification information based on the parcel pickup random number, if the first parcel pickup verification information is consistent with the second parcel pickup verification information, then generating the third key based on the second parcel pickup verification information, and sending verification success information to the parcel pickup client so that the parcel pickup client generates the third key based on the first parcel pickup verification information.

[0080] Step S23: Determine a random number for delivery, and send the random number to the delivery client so that the delivery client generates the fourth key based on the random number; generate the fourth key based on the random number for delivery, and use the fourth key to encrypt the recipient information in the order information to obtain encrypted delivery information.

[0081] Specifically, the sending of the delivery random number to the delivery client so that the delivery client generates the fourth key based on the delivery random number; generating the fourth key based on the delivery random number includes: sending the delivery random number to the delivery client so that the delivery client generates first delivery verification information based on the delivery random number, and sending the first delivery verification information to the logistics platform; generating second delivery verification information based on the delivery random number, if the first delivery verification information is consistent with the second delivery verification information, generating the fourth key based on the second delivery verification information, and sending verification success information to the delivery client so that the delivery client generates the fourth key based on the first delivery verification information.

[0082] Step S24: Send the encrypted information for picking up the parcel to the parcel picking client, and send the encrypted information for sending the parcel to the parcel sending client, so that the parcel picking client uses the third key to decrypt the encrypted information for picking up the parcel and the parcel sending client uses the fourth key to decrypt the encrypted information for sending the parcel; wherein the first key, the second key, the third key and the fourth key are single-use keys generated by both parties of the information transmission process respectively.

[0083] In a specific embodiment, 1. Identity authentication is performed between the security center and the e-commerce platform, and between the security center and the logistics platform: the e-commerce platform / logistics platform sends information related to the e-commerce platform / logistics platform to the security center, including M and the initiation time T. The security center responds and sends a challenge value X. The e-commerce platform / logistics platform calculates the random number combined with the algorithm Z(Z(Z(X)+P)+N) and sends the result to the security center. The security center obtains the calculation result Z(Z(Z(X)+P)+N) based on local calculations based on the random number X sent to the e-commerce platform / logistics platform and compares it with the former. If they are the same, the e-commerce platform / logistics platform is authenticated successfully (M: e-commerce platform / logistics platform taxpayer identification number; Z: user algorithm (the Z cryptographic algorithm used by the e-commerce platform and the logistics platform is different); T: current time; P: e-commerce platform / logistics platform Pin code; N: e-commerce platform / logistics platform server identification number; X: random number). The authentication flow chart is as follows. Figure 4 The security center calculates and sends Z(Z(Z(T)+P)+N) to the e-commerce platform / logistics platform. The e-commerce platform / logistics platform calculates Z(Z(Z(T)+P)+N) locally. If the results are the same, the security center authentication succeeds. Otherwise, the authentication fails. The authentication flow chart is shown in Figure 4 2. If the two-way authentication between the security center and the e-commerce platform / logistics platform is successful, this authentication is passed, and Z(Z(Z(Z(X)+P))+N)) is calculated as the session key k0 / k1 for this communication (where k0 represents the session key used for communication between the security center and the e-commerce platform, and k1 represents the session key used for communication between the security center and the logistics platform). 3. Identity authentication is performed between the logistics platform and the pickup courier / delivery courier: The courier sends user-related information to the logistics platform, including U and the initiation time T. The logistics platform responds and sends a challenge value X. The pickup courier / delivery courier calculates Z(Z(Z(X)+P)+K) based on the random number combined with the algorithm and sends the result to the logistics platform. The logistics platform combines the random number X sent to the pickup / delivery courier with the local calculation result of Z(Z(Z(X)+P)+K) and compares it with the former. If they are the same, the pickup / delivery courier is successfully authenticated (U: user ID; Z: user algorithm; T: current time; P: Pin code; K: device code; X: random number). The authentication flow chart is as follows Figure 5The logistics platform calculates and sends Z(Z(Z(T)+P)+K) to the pickup / delivery courier. The pickup / delivery courier calculates Z(Z(Z(T)+P)+K) locally. If the results are the same, the logistics platform authentication succeeds. Otherwise, the authentication fails. The authentication flow chart is shown below. Figure 5 After the two-way authentication between the logistics platform and the pickup courier / delivery courier is successful, this authentication is passed, and Z(Z(Z(Z(X)+P))+K)) is calculated as the session key k2 / k3 for this communication (where k2 represents the session key used by the logistics platform to communicate with the pickup courier, and k3 represents the session key used by the logistics platform to communicate with the recipient courier).

[0084] It should be pointed out that the letters in the above formula only represent calculation parameters, and do not represent the specific parameter contents. The random number parameters corresponding to the e-commerce platform, logistics platform, pickup couriers and delivery couriers are all represented by X. However, the random values ​​corresponding to the random number parameters of the specific e-commerce platform, logistics platform, pickup couriers and delivery couriers are different, and other parameters are similar.

[0085] It can be seen that the present application determines a random number for picking up a parcel, sends the random number for picking up a parcel to the parcel client, so that the parcel client generates the third key based on the random number for picking up a parcel; generates the third key based on the random number for picking up a parcel; determines a random number for delivering a parcel, sends the random number for delivering a parcel to the parcel client, so that the parcel client generates the fourth key based on the random number for delivering a parcel; generates the fourth key based on the random number for delivering a parcel; obtains the logistics random number sent by the security center, and generates the first key based on the logistics random number; wherein the security center generates the first key based on the logistics random number. wherein the e-commerce center generates the second key based on the e-commerce random number obtained from the security center; the security center generates the second key based on the e-commerce random number determined by the security center. It can be seen that the present application performs identity authentication before information transmission to ensure the correctness of the information transmission party and improve information security.

[0086] See also Figure 6 As shown, it is an information flow relationship diagram between a security center, a logistics platform, an e-commerce platform, couriers and buyers. The specific content has been explained in the above content and will not be elaborated here.

[0087] Correspondingly, the present application embodiment also discloses a courier privacy protection device, which is applied to a logistics platform, see Figure 7 As shown, the device comprises:

[0088] The information acquisition module 11 is used to acquire the security center encrypted information sent by the security center, and decrypt the security center encrypted information with a first key to obtain the order information; the security center encrypted information is information obtained by the security center encrypting the acquired order information with the first key; the security center obtains the order information by decrypting the e-commerce platform encrypted information acquired from the e-commerce platform with a second key, and the e-commerce platform encrypted information is information obtained by the e-commerce platform encrypting the order information with the second key;

[0089] An encryption module 12, configured to encrypt the sender information in the order information with a third key to obtain encrypted pickup information, and to encrypt the recipient information in the order information with a fourth key to obtain encrypted delivery information;

[0090] The information sending module 13 is used to send the encrypted information of picking up the parcel to the picking up parcel client, and send the encrypted information of sending the parcel to the sending parcel client, so that the picking up parcel client can decrypt the encrypted information of picking up the parcel using the third key and the sending parcel client can decrypt the encrypted information of sending the parcel using the fourth key;

[0091] The first key, the second key, the third key and the fourth key are single-use keys generated by both parties of information transmission during the information transmission process.

[0092] Among them, the more specific working process of each of the above modules can refer to the corresponding content disclosed in the above embodiments, which will not be repeated here.

[0093] It can be seen that the present application obtains the security center encrypted information sent by the security center, and uses the first key to decrypt the security center encrypted information to obtain the order information; the security center encrypted information is the information obtained by the security center using the first key to encrypt the obtained order information; the security center obtains the order information by using the second key to decrypt the e-commerce platform encrypted information obtained from the e-commerce platform, and the e-commerce platform encrypted information is the information obtained by the e-commerce platform using the second key to encrypt the order information; the sender information in the order information is encrypted using the third key to obtain the collection encrypted information, and the recipient information in the order information is encrypted using the fourth key to obtain the delivery encrypted information; the collection encrypted information is sent to the collection client, and the delivery encrypted information is sent to the delivery client, so that the collection client uses the third key to decrypt the collection encrypted information and the delivery client uses the fourth key to decrypt the delivery encrypted information; wherein the first key, the second key, the third key and the fourth key are single-use keys generated by both parties of the information transmission process. It can be seen that the present application generates keys during information transmission, and there is no need to store keys in advance, which saves storage space and reduces the possibility of keys being obtained, further avoiding information leakage; the keys in the present application are all single-use keys, and a new key will be generated during the transmission process for the next transmission. Therefore, after the previous transmission is completed, if the key is known, it will not affect the next information transmission, further avoiding information leakage; in the logistics information transmission process of the present application, different combinations of information transmission parties generate keys respectively, thus ensuring that after the current information transmission parties transmit information, if the key used in the information transmission is known, it will not affect the information transmission of the next group of information transmission parties, thus avoiding information leakage. In summary, the present application can protect the recipient and sender information in the logistics process to improve logistics security.

[0094] Furthermore, an embodiment of the present application also provides an electronic device. Figure 8 This is a structural diagram of an electronic device 20 according to an exemplary embodiment. The content in the diagram cannot be considered as any limitation on the scope of use of the present application.

[0095] Figure 8 A schematic diagram of the structure of an electronic device 20 provided in an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a display screen 23, an input / output interface 24, a communication interface 25, a power supply 26, and a communication bus 27. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the express privacy protection method disclosed in any of the aforementioned embodiments. In addition, the electronic device 20 in this embodiment may specifically be an electronic computer.

[0096] In this embodiment, the power supply 26 is used to provide working voltage for each hardware device on the electronic device 20; the communication interface 25 can create a data transmission channel between the electronic device 20 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 24 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.

[0097] In addition, the memory 22, as a carrier for storing resources, may be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon may include a computer program 221, and the storage method may be temporary storage or permanent storage. In addition to the computer program that can be used to complete the express privacy protection method performed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 221 may further include a computer program that can be used to complete other specific tasks.

[0098] Furthermore, an embodiment of the present application also discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the express privacy protection method disclosed above is implemented.

[0099] The specific steps of the method can refer to the corresponding contents disclosed in the above embodiments, which will not be repeated here.

[0100] The various embodiments in this application are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.

[0101] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0102] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0103] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0104] The above is a detailed introduction to the express privacy protection method, device, equipment, and storage medium provided by the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for general technical personnel in this field, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A method for protecting privacy in express delivery, characterized in that: Applied to logistics platforms, including: Obtain security center encrypted information sent by the security center, and use the first key to decrypt the security center encrypted information to obtain order information; the security center encrypted information is information obtained by the security center using the first key to encrypt the acquired order information; the security center obtains the order information by using the second key to decrypt the e-commerce platform encrypted information obtained from the e-commerce platform, and the e-commerce platform encrypted information is information obtained by the e-commerce platform using the second key to encrypt the order information; The sender information in the order information is encrypted using the third key to obtain the encrypted pickup information, and the recipient information in the order information is encrypted using the fourth key to obtain the encrypted delivery information; Sending the encrypted pickup information to the pickup client, and sending the encrypted delivery information to the delivery client, so that the pickup client decrypts the encrypted pickup information using the third key and the delivery client decrypts the encrypted delivery information using the fourth key; The first key, the second key, the third key and the fourth key are single-use keys generated by both parties of information transmission during the information transmission process.

2. The express privacy protection method according to claim 1, characterized in that: The first key, the second key, the third key and the fourth key are single-use keys generated by both parties of information transmission using their own Z cryptographic algorithms during the information transmission process.

3. The express privacy protection method according to claim 2, characterized in that: The Z cryptographic algorithm of the security center, the logistics platform and the e-commerce platform is an algorithm generated by the security center based on the information of the party to which the Z cryptographic algorithm belongs; the Z cryptographic algorithm of the collection client and the delivery client is an algorithm generated by the logistics platform based on the information of the party to which the Z cryptographic algorithm belongs.

4. The express privacy protection method according to claim 1, characterized in that: The SM4 algorithm is used when performing encryption and decryption operations using the first key, the second key, the third key and the fourth key.

5. The express privacy protection method according to claim 1, characterized in that: Before the third key is used to encrypt the sender information in the order information to obtain the encrypted pickup information, and the fourth key is used to encrypt the recipient information in the order information to obtain the encrypted delivery information, the method further includes: Determine a random number for picking up a shipment, and send the random number for picking up a shipment to the shipment client, so that the shipment client generates the third key based on the random number for picking up a shipment; Generate the third key based on the random number of the package; and / or, Determine a random number for sending a document, and send the random number for sending a document to the sending client, so that the sending client generates the fourth key based on the random number for sending a document; Generate the fourth key based on the random number sent; Accordingly, before using the first key to decrypt the security center encrypted information to obtain the order information, the method further includes: Obtaining the logistics random number sent by the security center, and generating the first key based on the logistics random number; wherein the security center generates the first key according to the logistics random number; Correspondingly, the e-commerce center generates the second key based on the e-commerce random number obtained from the security center; the security center generates the second key based on the e-commerce random number determined by the security center.

6. The express privacy protection method according to claim 5, characterized in that: sending the random number for collecting parcels to the client for collecting parcels, so that the client for collecting parcels generates the third key based on the random number for collecting parcels; Generating the third key based on the random number of the pickup includes: Sending the parcel pickup random number to the parcel pickup client, so that the parcel pickup client generates first parcel pickup verification information based on the parcel pickup random number, and sending the first parcel pickup verification information to the logistics platform; Generate second parcel collection verification information based on the parcel collection random number, and if the first parcel collection verification information is consistent with the second parcel collection verification information, generate the third key based on the second parcel collection verification information, and send a verification success message to the parcel collection client, so that the parcel collection client generates the third key based on the first parcel collection verification information; Correspondingly, the sending of the random number to the sending client so that the sending client generates the fourth key based on the random number; generating the fourth key based on the random number includes: Sending the delivery random number to the delivery client, so that the delivery client generates first delivery verification information based on the delivery random number, and sends the first delivery verification information to the logistics platform; Generate second delivery verification information based on the delivery random number; if the first delivery verification information is consistent with the second delivery verification information, generate the fourth key based on the second delivery verification information, and send verification success information to the delivery client so that the delivery client can generate the fourth key based on the first delivery verification information.

7. The express privacy protection method according to any one of claims 5 to 6, characterized in that: The generating the first key based on the logistics random number comprises: Generate first logistics verification information based on the logistics random number, and send the first logistics verification information to the security center, so that the security center can determine whether the first logistics verification information is consistent with the second logistics verification information generated by the security center based on the logistics random number. If they are consistent, send verification success information to the logistics platform, and generate the first key based on the second logistics verification information; If the verification success information is obtained, generating the first key based on the first logistics verification information; Correspondingly, the e-commerce platform generates the second key based on the first e-commerce verification information when the first e-commerce verification information is consistent with the second e-commerce verification information; the security center generates the second key based on the first e-commerce verification information when the first e-commerce verification information is consistent with the second e-commerce verification information; the first e-commerce verification information is information generated by the e-commerce platform based on the e-commerce random number obtained from the security center; the second e-commerce verification information is information generated by the security center based on the e-commerce random number determined by the security center.

8. A courier privacy protection device, characterized in that: Applied to logistics platforms, including: An information acquisition module, used to acquire security center encrypted information sent by the security center, and decrypt the security center encrypted information using a first key to obtain order information; the security center encrypted information is information obtained by the security center encrypting the acquired order information using the first key; the security center acquires the order information by decrypting the e-commerce platform encrypted information acquired from the e-commerce platform using a second key, and the e-commerce platform encrypted information is information obtained by the e-commerce platform encrypting the order information using the second key; An encryption module, used to encrypt the sender information in the order information with a third key to obtain encrypted pickup information, and to encrypt the recipient information in the order information with a fourth key to obtain encrypted delivery information; An information sending module, used for sending the encrypted information of picking up the parcel to the picking up parcel client, and sending the encrypted information of sending the parcel to the sending parcel client, so that the picking up parcel client can decrypt the encrypted information of picking up the parcel using the third key and the sending parcel client can decrypt the encrypted information of sending the parcel using the fourth key; The first key, the second key, the third key and the fourth key are single-use keys generated by both parties of information transmission during the information transmission process.

9. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor, configured to execute the computer program to implement the express privacy protection method as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: Used to store computer programs; wherein, when the computer program is executed by a processor, the express privacy protection method as described in any one of claims 1 to 7 is implemented.