Information processing method and device
By using encryption and decryption key pairs for identity verification and information processing in product monitoring information processing, the problem of low credibility of information storage in the existing technology is solved, and high security and integrity transmission of information are achieved.
Patent Information
- Application Number
- CN202410807719.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-21
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2044-06-21
AI Technical Summary
The existing method of storing product monitoring information cannot effectively improve the credibility of the information and is easily tampered with, resulting in low consumer trust in the product production process.
Receive instructions from the verification device through the management device, distribute encryption public keys and decryption private keys to ensure the identity verification of data collection devices and storage devices, and use encryption and decryption key pairs for information processing to ensure the security and integrity of information during transmission. sex.
It improves the security of identity verification of data collection equipment and the security of information transmission process, ensures the credibility and integrity of information, and avoids the risk of tampering.
Smart Images

Figure CN118784282A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of blockchain technology, and in particular to an information processing method and device. Background Art
[0002] In order to ensure the quality of products, product manufacturers usually monitor important links in product production to prevent quality problems. However, existing technical solutions usually store product monitoring information internally, and consumers cannot easily obtain product production information. Alternatively, product monitoring information is stored publicly, but this method is prone to tampering, resulting in low credibility of monitoring information.
[0003] In the existing technical solutions, although the important links of the product are monitored, the storage method of the monitoring information cannot make the product gain the trust of consumers. Therefore, how to process the monitoring information and improve the credibility of the monitoring information has become a key point in this technical field. Summary of the invention
[0004] The embodiments of the present application provide an information processing method and device to improve the credibility of information data.
[0005] In a first aspect, an embodiment of the present application provides an information processing method, comprising: a management device receives a first indication from a verification device. The first indication is used to indicate that the identity information of a data acquisition device has been successfully verified. The management device sends an encryption public key to the data acquisition device, and the encryption public key is used to encrypt plaintext information to obtain a first ciphertext. And, the management device sends a decryption private key to the storage device. The decryption private key is used to decrypt the first ciphertext to obtain plaintext information, and the encryption public key and the decryption private key are a first key pair. The management device receives a second indication from the storage device, and the second indication is used to indicate that the storage device has successfully obtained the plaintext information. The management device updates the first key pair.
[0006] By adopting this method, the identity information of the data collection device is verified, which can improve the security of the process of collecting plaintext information. The keys for encrypting and decrypting the plaintext information are distributed by the management device, which can improve the security of the plaintext information during transmission. The management device updates the first key pair to ensure that different plaintext information corresponds to different key pairs, thereby improving the security of the process of encrypting and decrypting the plaintext information.
[0007] In a possible design, the management device sends an identity authentication public key to the data collection device, and the identity authentication public key is used to encrypt the first ciphertext to obtain the second ciphertext, and the second ciphertext is used to indicate that the device sending the first ciphertext is a device that successfully verifies the identity information. The management device sends an identity authentication private key to the storage device, and the identity authentication private key is used to decrypt the second ciphertext to obtain the first ciphertext. The identity authentication public key and the identity authentication private key are a second key pair.
[0008] With this design, the second ciphertext is obtained by processing the first ciphertext based on the identity authentication public key. Therefore, the device corresponding to the first ciphertext can be determined as a trusted device based on the second ciphertext, thereby ensuring the accuracy of the first ciphertext and improving the credibility of the information data.
[0009] In one possible design, the management device updates the second key pair.
[0010] With this design, different ciphertexts can correspond to different identity authentication public / private keys (i.e., the second key pair), thereby preventing the leakage of the second key pair from affecting the identity authentication of other ciphertexts, further improving data security.
[0011] In a possible design, the management device sends an integrity verification public key to the data acquisition device, and the integrity verification public key is used to encrypt the second ciphertext to obtain the third ciphertext. The management device sends an integrity verification private key to the storage device, and the integrity verification private key is used to decrypt the third ciphertext to obtain the second ciphertext. The integrity verification public key and the integrity verification private key are a third key pair.
[0012] This design is used to verify the integrity of data to avoid data loss or tampering, thereby ensuring data integrity.
[0013] In a second aspect, an embodiment of the present application further provides an information processing device, including a communication module and a processing module.
[0014] The communication module is used to receive a first indication from a verification device, where the first indication is used to indicate successful verification of the identity information of the data collection device.
[0015] The communication module is also used to send an encryption public key to the data acquisition device, and the encryption public key is used to encrypt the plaintext information to obtain the first ciphertext. And,
[0016] The communication module is also used to send a decryption private key to the storage device, where the decryption private key is used to decrypt the first ciphertext to obtain plaintext information, and the encryption public key and the decryption private key are a first key pair.
[0017] The communication module is further used to receive a second indication from the storage device, where the second indication is used to indicate that the storage device has successfully obtained the plaintext information.
[0018] A processing module is used to update the first key pair.
[0019] In one possible design, the communication module is also used to send an identity authentication public key to the data acquisition device. The identity authentication public key is used to encrypt the first ciphertext to obtain a second ciphertext. The second ciphertext is used to indicate that the device sending the first ciphertext is a device that has successfully verified the identity information.
[0020] The communication module is also used to send an identity authentication private key to the storage device, where the identity authentication private key is used to decrypt the second ciphertext to obtain the first ciphertext, and the identity authentication public key and the identity authentication private key are a second key pair.
[0021] In one possible design, the processing module is also used to update the second key pair.
[0022] In one possible design, the communication module is also used to send an integrity verification public key to the data acquisition device, and the integrity verification public key is used to encrypt the second ciphertext to obtain a third ciphertext.
[0023] The communication module is also used to send an integrity verification private key to the storage device, where the integrity verification private key is used to decrypt the third ciphertext to obtain the second ciphertext, and the integrity verification public key and the integrity verification private key are a third key pair.
[0024] In a third aspect, an embodiment of the present application further provides an electronic device, comprising a processor, wherein the processor is configured to implement the method of the first aspect and any one of its designs when executing a computer program stored in a memory.
[0025] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the method of the first aspect and any one of its designs.
[0026] The technical effects brought about by the second to fourth aspects and any one of their designs can refer to the technical effects brought about by the corresponding design in the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0028] Figure 1 A schematic diagram of the structure of a data processing device provided in an embodiment of the present application;
[0029] Figure 2 A flowchart of a data processing method provided in an embodiment of the present application;
[0030] Figure 3 A schematic diagram of the structure of another data processing device provided in an embodiment of the present application;
[0031] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0032] In order to make the purpose, technical scheme and advantages of the present application clearer, the technical scheme in the embodiment of the present application will be clearly and completely described below in conjunction with the drawings in the embodiment of the present application. Obviously, the described embodiment is only a part of the embodiment of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application. In the absence of conflict, the embodiments in the present application and the features in the embodiments can be combined with each other arbitrarily. In addition, although the logical order is shown in the flow chart, in some cases, the steps shown or described can be performed in an order different from that here.
[0033] The terms "first" and "second" in the specification and claims of the present application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the term "comprising" and any of their variations are intended to cover non-exclusive protection. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes other steps or units inherent to these processes, methods, products or devices. "Multiple" in the present application can mean at least two, for example, two, three or more, and the embodiments of the present application are not limited.
[0034] In the technical solution of this application, the collection, dissemination, and use of data are in compliance with the requirements of relevant national laws and regulations.
[0035] Before introducing the information processing method provided by the embodiment of the present application, in order to facilitate understanding, the technical background of the embodiment of the present application is first introduced in detail below.
[0036] In order to enhance consumers' trust in products, product manufacturers usually disclose to consumers the monitoring information of important links in the production process of the product. Currently, manufacturers usually disclose monitoring information to consumers by directly disclosing the monitoring information of the product. However, this monitoring information is easily tampered by other illegal persons, resulting in low credibility of the monitoring information.
[0037] Therefore, how to improve the credibility of the monitoring information becomes the key point for the development of this field.
[0038] In order to solve the above-mentioned defects, the present application provides an information processing method and device to improve the credibility of information data.
[0039] In the present application, the method adopted includes: the management device receives a first indication from the verification device, and the first indication is used to indicate the successful verification of the identity information of the data acquisition device. The management device sends an encryption public key to the data acquisition device, and the encryption public key is used to encrypt the plaintext information to obtain the first ciphertext, and the encryption public key corresponds to the plaintext information. And, the management device sends a decryption private key to the storage device, and the decryption private key is used to decrypt the first ciphertext to obtain the plaintext information, and the encryption public key and the decryption private key are the first key pair. The management device receives a second indication from the storage device, and the second indication is used to indicate that the storage device successfully obtains the plaintext information. The management device updates the first key pair.
[0040] It can be understood that after the management device in the present application determines that the identity information of the data acquisition device is verified, the management device can send an encryption public key for encrypting plaintext information to the data acquisition device. After receiving the encryption public key, the data acquisition device can encrypt the plaintext information stored in itself according to the encryption public key to obtain a first ciphertext, and send the first ciphertext to the storage device. The management device can send a decryption private key for decryption to the storage device, so that after the storage device receives the first ciphertext, the storage device can decrypt the first ciphertext according to the decryption private key to obtain the plaintext information. In addition, after determining that the storage device has successfully obtained the plaintext information, the management device updates the first key pair.
[0041] Therefore, in this method, the identity information of the data acquisition device is verified, which can improve the security of the process of collecting plaintext information. The keys for encrypting and decrypting the plaintext information are distributed by the management device, which can improve the security of the plaintext information during transmission. The management device updates the first key pair to ensure that different plaintext information corresponds to different key pairs, thereby improving the security of the process of encrypting and decrypting the plaintext information.
[0042] In addition, the management device, data collection device, verification device or storage device may be included in a computer system for executing the method described in the present application, or may be a processing device in a computer system for executing the method described in the present application, such as a processor or a processing module. The management device, data collection device, verification device or storage device may be a fixed device or a portable device, which is not specifically limited in the present application.
[0043] Blockchain is a decentralized distributed ledger that is tamper-proof, secure and reliable. It combines distributed storage, peer-to-peer transmission, consensus mechanism, cryptography and other technologies to record transactions and information through a growing data block chain to ensure data security and transparency. In order to ensure the security and traceability of the data in this application, the data in this application can be stored on the blockchain. Management devices, data collection devices, verification devices or storage devices can be devices on the blockchain.
[0044] The data collection device can be used on the blockchain to obtain plain text information on product production, transportation, sales, etc. Figure 1 As shown, the inspection terminal 101 can be represented as a data acquisition device, and the inspection terminal 101 can be connected to at least one sensor (such as Figure 1 The storage device may be a device or terminal for storing plain text information. For example, Figure 1 As shown, the receiving terminal 103 can be represented as a storage device, and the verification terminal 102 can be represented as a verification device. The storage device can communicate with the data collection device and the verification device through a wired network and / or a wireless network. The storage device can also be a server or a computing terminal that the consumer can access. For example, the consumer can hold a mobile terminal (such as Figure 1 The mobile terminal 104) communicates with the storage device through a wireless network and / or a wired network to query the plain text information.
[0045] Figure 2 This is a flow chart of an information processing method provided by an embodiment of the present invention. Taking a management device, a data collection device, a verification device, and a storage device as the execution subjects as an example, the process may include the following steps:
[0046] S101, the data collection device sends identity information to the verification device. Correspondingly, the verification device receives the identity information from the data collection device.
[0047] In the present application, the data collection device may include multiple different devices. For example, the data collection devices may be devices for collecting data from different links. Alternatively, the data collection device may be a device including multiple different users / roles. For example, a data collection device may be a device for collecting data from multiple links, wherein different links correspond to different user / role information.
[0048] For example, taking fertilizer products as an example, fertilizer products can be produced by fertilizer manufacturers and sold to product distributors, and product distributors can sell fertilizer to fertilizer farmers. In the production process of fertilizer, the equipment corresponding to the fertilizer manufacturer can be a data acquisition device. In the fertilizer sales process, the equipment corresponding to the product distributor can be a data acquisition device. In other words, the equipment corresponding to the fertilizer manufacturer and the product distributor can be two different data acquisition devices. In addition, the production process of fertilizers can include multiple production links, such as production and quality inspection, and different production links can correspond to different users in the same data acquisition device.
[0049] In one or more embodiments, the verification device is a trusted device used to verify the identity information of other devices. For example, the verification device can be a device with product authority certification.
[0050] In one or more embodiments, the identity information may be information indicating the identity of the data acquisition device. For example, the identity information may be a unique identification code of the device. The identity information may also be user information of an operator of the device. Alternatively, the identity information may be a unique identification code of the device and user information of an operator. In addition, in order to improve the accuracy of identity authentication, the identity information is not limited to information such as user names and passwords that are relatively easy to be tampered with or misappropriated.
[0051] Optionally, the data acquisition device may be connected to the verification device via a wired interface and / or a wireless interface and send the identity information of the device to the verification device. Correspondingly, the verification device may receive the identity information of the data acquisition device via a wired interface and / or a wireless interface.
[0052] S102, the verification device verifies the identity of the data collection device according to the identity information.
[0053] As an example, after receiving the identity information of the data collection device, the verification device can compare the identity information with the information stored in itself to determine whether the device is a normal device.
[0054] Exemplarily, the verification device can verify the identity of the data collection device by looking up a table. Figure 1 As shown, the verification terminal 102 can verify the identity of the detection terminal 101 by comparing the identity information with the data in the rule database 106. In addition, the verification device can also verify the identity of the data collection device in other ways, which are not specifically limited in this application.
[0055] In one or more embodiments, when the verification device determines that the data acquisition device is an abnormal device, the verification device can store unique identification information such as the device identification or network interface of the data acquisition device, and limit the number of verifications of the data acquisition device to prevent the abnormal device from performing multiple malicious verifications.
[0056] In one or more embodiments, when the verification device determines that the data acquisition device is a normal device, the verification device can send a message to the management device that the data acquisition device is a normal device. The verification device can also send a message to the data acquisition device that the verification is successful. Optionally, the verification device can send a message to the data acquisition device that the identity verification is successful through a wired interface and / or a wireless interface.
[0057] Optionally, the verification terminal can send the data of the data collection device to the monitor in the form of ciphertext, and the monitor can monitor and verify the data. For example, the verification terminal can send the dealer's identity information to the monitor, and the monitor can verify whether the dealer's identity is normal based on the dealer's identity information. If the identity is abnormal, a warning prompt for sales of counterfeit goods will be issued.
[0058] Alternatively, the verification terminal may send all the data from the data collection device to the monitor, who may then conduct a secondary verification or a spot check on the data.
[0059] Based on step S102, the verification device verifies whether the data collection device is a normal device, which can ensure the security of the collected plaintext information, thereby improving the credibility of the information.
[0060] S103, the verification device sends a first instruction to the management device. Correspondingly, the management device receives the first instruction from the verification device. The first instruction is used to indicate the successful verification of the identity information of the data collection device. The management device is a trusted device, or the management device is a device that has passed identity authentication in advance.
[0061] In one or more embodiments, the verification device may be connected to the management device via a wired interface and / or a wireless interface. Accordingly, the verification device may send the first indication to the management device via the wired interface and / or the wireless interface.
[0062] Optionally, the first indication may also carry a device identifier, an address identifier, etc. of the data collection device. For example, the header of the first indication is used to indicate the identity identifier of the device that has successfully verified the identity.
[0063] The management device may determine that the data acquisition device is a normal device according to the first indication. The management device may store the device identification of the data acquisition device so that the management device can subsequently determine that the device is a normal device according to the information stored by itself. Alternatively, the management device may not store the device identification of the data acquisition device and determine that the data acquisition device is a normal device according to the first indication each time.
[0064] S104, the management device sends the encryption public key to the data collection device. Correspondingly, the data collection device receives the encryption public key from the management device. The encryption public key is used to encrypt plain text information.
[0065] In one or more embodiments, the management device may send the encrypted public key to the data collection device after receiving the first instruction. Correspondingly, the data collection device receives the encrypted public key from the management device.
[0066] For example, when the data collection device needs to encrypt plain text information, the verification device can first send identity information to verify the identity of the device. After the verification device determines that the data collection device is a normal device, it sends an indication of successful verification of the data collection device to the management device, and the management device sends the encryption public key to the data collection device.
[0067] In one or more embodiments, the data collection device may send a first request for requesting an encrypted public key to the management device. After receiving the first indication, the management device may send the encrypted public key to the data collection device according to the first request.
[0068] For example, after receiving the successful verification message from the verification device, the data collection device may send a first request for the encryption key to the management device. The management device may send the encryption public key to the data collection device according to the first request and the first instruction.
[0069] Optionally, the management device can be connected to the data acquisition device via a wired interface and / or a wireless interface. Accordingly, the management device can send an encrypted public key to the data acquisition device via a wired interface and / or a wireless interface. The data acquisition device receives the encrypted public key from the management device via a wired interface and / or a wireless interface.
[0070] S105, the management device sends a decryption private key to the storage device. Correspondingly, the storage device receives the decryption private key from the management device. The decryption private key and the encryption public key form a first key pair. That is, the ciphertext encrypted by the encryption public key can be decrypted by the decryption private key.
[0071] In one or more embodiments, after the management device sends the encryption public key, it may send the corresponding decryption private key to the storage device. Alternatively, when the management device sends the encryption public key, it may send the corresponding decryption private key to the storage device. Alternatively, before sending the encryption public key, the management device may send the corresponding decryption private key to the storage device.
[0072] Exemplarily, when the management device sends the encrypted public key according to the first instruction, the management device may send the decrypted private key to the storage device according to the first instruction. Alternatively, when the management device sends the encrypted public key according to the first request, the management device may send the decrypted private key to the storage device according to the first request. Accordingly, the storage device receives the decrypted private key from the management device.
[0073] Optionally, the management device can be connected to the storage device via a wired interface and / or a wireless interface. Accordingly, the management device can send the decryption private key to the storage device via the wired interface and / or the wireless interface. The storage device receives the decryption private key from the management device via the wired interface and / or the wireless interface.
[0074] It is understandable that the present application does not limit the execution order of step S104 and step S105. The present application may execute step S104 first and then step S105, or may execute step S105 first and then step S104.
[0075] In one or more embodiments, the management device may send an identity authentication public key to the data collection device, and correspondingly, the data collection device receives the identity authentication public key from the management device.
[0076] As an example, after receiving the first instruction, the management device may send the encryption public key and the identity authentication public key to the data management device at the same time, or may send the encryption public key and the identity authentication public key to the data management device separately.
[0077] As another example, the first request sent by the data collection device can also be used to request an identity authentication public key. After receiving the first instruction, the management device can send the identity authentication public key to the data collection device according to the first request. Alternatively, the data collection device sends a second request to the management device for a separate identity authentication public key, and the management device sends the identity authentication public key to the data collection device according to the second request.
[0078] In one or more embodiments, the management device may send the identity authentication private key to the storage device. Correspondingly, the storage device may receive the identity authentication private key from the management device. The identity authentication public key and the identity authentication private key are the second key pair.
[0079] As an example, after the management device sends the identity authentication public key, it can send the corresponding identity authentication private key to the storage device. Alternatively, when the management device sends the identity authentication public key, it can send the corresponding identity authentication private key to the storage device. Alternatively, the management device can send the corresponding identity authentication private key to the storage device before sending the identity authentication public key.
[0080] Exemplarily, when the management device sends the identity authentication public key according to the first instruction, the management device may send the identity authentication private key to the storage device according to the first instruction. Alternatively, when the management device sends the identity authentication public key according to the first request, the management device may send the identity authentication private key to the storage device according to the first request. Alternatively, when the management device sends the identity authentication public key according to the second request, the management device may send the identity authentication private key to the storage device according to the second request. Accordingly, the storage device receives the identity authentication private key from the management device.
[0081] In one or more embodiments, the management device may send the integrity verification public key to the data collection device. Correspondingly, the data collection device receives the integrity verification public key from the management device.
[0082] As an example, after receiving the first instruction, the management device may send the encryption public key and the integrity verification public key to the data management device at the same time, or may send the encryption public key and the integrity verification public key to the data management device separately.
[0083] As another example, the first request sent by the data acquisition device can also be used to request an integrity verification public key. After receiving the first instruction, the management device can send the integrity verification public key to the data acquisition device according to the first request. Alternatively, the data acquisition device sends a third request to the management device for separately requesting an integrity verification public key, and the management device sends the integrity verification public key to the data acquisition device according to the third request.
[0084] In one or more embodiments, the management device may send the integrity verification private key to the storage device. Correspondingly, the storage device may receive the integrity verification private key from the management device. The integrity verification public key and the integrity verification private key are a third key pair.
[0085] As an example, after the management device sends the integrity verification public key, it can send the corresponding integrity verification private key to the storage device. Alternatively, when the management device sends the integrity verification public key, it can send the corresponding integrity verification private key to the storage device. Alternatively, before sending the integrity verification public key, the management device can send the corresponding integrity verification private key to the storage device.
[0086] Exemplarily, when the management device sends the integrity verification public key according to the first instruction, the management device may send the integrity verification private key to the storage device according to the first instruction. Alternatively, when the management device sends the integrity verification public key according to the first request, the management device may send the integrity verification private key to the storage device according to the first request. Alternatively, when the management device sends the integrity verification public key according to the third request, the management device may send the integrity verification private key to the storage device according to the third request. Accordingly, the storage device receives the integrity verification private key from the management device.
[0087] It is understandable that the first key pair, the second key pair and the third key pair of the present application can be generated by the management device according to business needs, or can be generated by other devices (such as key generation devices) and sent to the management device by other devices. This application does not make specific limitations.
[0088] Based on step S104 and step S105, the management device sends the encryption and decryption keys to other devices, which can ensure the security of the encryption and decryption keys, improve the credibility of encryption / decryption of plaintext information, and thus improve the credibility of plaintext information.
[0089] S106, the data collection device encrypts the plaintext information according to the encryption public key to obtain a first ciphertext.
[0090] Exemplarily, still taking the above example, the plain text information of the data acquisition device may include the user's identity information, timestamp, fertilizer product information (such as production location, warehouse location, production date, etc.), and transportation information (such as driver information, transportation route, time, etc.).
[0091] After receiving the encryption public key, the data acquisition device can encrypt the plain text information according to the encryption public key to obtain the first ciphertext. Different plain text information can correspond to different encryption public keys. Alternatively, different data acquisition devices correspond to different encryption public keys.
[0092] Optionally, the management device may send encrypted indication information to the data acquisition device. The data acquisition device may determine the plaintext information to be encrypted based on the encrypted indication information, and encrypt the specified plaintext information based on the encryption public key. For example, the encryption public key carries the type information of the plaintext information corresponding to the encryption public key, and the data acquisition device may encrypt the plaintext information of the corresponding type based on the encryption public key to obtain the ciphertext. Alternatively, the data acquisition device may encrypt multiple plaintext information of itself in sequence based on the encryption public key to obtain the ciphertext.
[0093] In one or more embodiments, the data collection device can encrypt the first ciphertext according to the identity authentication public key to obtain the second ciphertext. The second ciphertext is used to indicate that the device sending the ciphertext is a device that successfully authenticates the identity information, that is, the second ciphertext can be used to indicate that the data collection device is a device that successfully authenticates the identity information, that is, the data collection device is a trusted device.
[0094] In one or more embodiments, the data collection device may encrypt the second ciphertext according to the integrity verification public key to obtain a third ciphertext, wherein the third ciphertext may be used to verify the integrity of the plaintext information.
[0095] S107, the data collection device sends the first ciphertext to the storage device. Correspondingly, the storage device receives the first ciphertext from the data collection device. The storage device may be a storage device on a blockchain, the data collection device may send the first ciphertext to the blockchain, the blockchain receives the first ciphertext, and stores the first ciphertext in the storage device.
[0096] Optionally, the data acquisition device can be connected to the storage device via a wired interface and / or a wireless interface. Accordingly, the data acquisition device can send the first ciphertext to the storage device via the wired interface and / or the wireless interface. The storage device can receive the first ciphertext via the wired interface and / or the wireless interface.
[0097] In one or more embodiments, when the ciphertext obtained by the data acquisition device after processing the plaintext information is the second ciphertext, the data acquisition device sends the second ciphertext to the storage device. When the ciphertext obtained by the data acquisition device after processing the plaintext information is the third ciphertext, the data acquisition device sends the third ciphertext to the storage device. It is understandable that the specific method of the data acquisition device sending the second ciphertext / third ciphertext to the storage device can refer to the specific method of the data acquisition device sending the first ciphertext to the storage device, and this application will not repeat it.
[0098] S108: The storage device decrypts the first ciphertext according to the decryption private key to obtain plaintext information.
[0099] After receiving the decryption private key, the storage device can decrypt the first ciphertext according to the decryption private key to obtain plaintext information.
[0100] Optionally, the management device may send a decryption instruction message to the storage device. The storage device may determine the first ciphertext to be decrypted based on the decryption instruction message, and decrypt the first ciphertext based on the decryption private key to obtain the corresponding plaintext information. For example, the decryption private key carries the type information of the first ciphertext corresponding to the decryption private key, and the storage device may decrypt the first ciphertext of the corresponding type based on the decryption private key to obtain the plaintext information.
[0101] In one or more embodiments, when the ciphertext sent by the data acquisition device to the storage device is the second ciphertext, the storage device can decrypt the second ciphertext according to the identity authentication private key to obtain the first ciphertext, and decrypt the first ciphertext according to the decryption private key to obtain the plaintext information. Among them, the storage device can decrypt the second ciphertext according to the identity authentication private key to obtain the first ciphertext, and determine that the device corresponding to the first ciphertext is the device whose identity has been successfully verified, that is, the device is a trusted device.
[0102] In one or more embodiments, when the ciphertext sent by the data acquisition device to the storage device is the third ciphertext, the storage device can decrypt the third ciphertext according to the integrity verification private key to obtain the second ciphertext. The storage device can decrypt the third ciphertext according to the integrity verification private key to obtain the second ciphertext, and determine that the second ciphertext has integrity. In other words, the plaintext information corresponding to the ciphertext has integrity.
[0103] It is understandable that the specific methods of encrypting / decrypting data in this application are all existing technologies (such as hash algorithms), and this application will not go into details.
[0104] In addition, after successfully obtaining the plaintext information, the storage device may publicly display the plaintext information. For example, the plaintext information may be publicly displayed to consumers in the form of a web link, and consumers may obtain the plaintext information through the web link.
[0105] For example, consumers can determine whether the production date on the product packaging is accurate and judge the quality of the product through the production date in the public information. For another example, dealers can determine whether the product is misappropriated through the transportation route in the public information.
[0106] S109, the storage device sends a second instruction to the management device. Correspondingly, the management device receives the second instruction from the storage device. The second instruction is used to indicate that the storage device has successfully obtained the plaintext information.
[0107] In one or more embodiments, after obtaining the plaintext information, the storage device may send a second indication to the management device indicating that the plaintext information has been successfully obtained. Correspondingly, the management device receives the second indication from the storage device.
[0108] In one or more embodiments, after the storage device decrypts the second ciphertext according to the identity authentication private key to obtain the first ciphertext, it can send a third indication to the management device to indicate that the data collection device is a trusted device. Correspondingly, the management device receives the third indication from the storage device.
[0109] S110, the management device updates the first key pair.
[0110] In one or more embodiments, after receiving the second indication, the management device may update the first key pair according to the second indication.
[0111] In one or more embodiments, after receiving the third indication, the management device may update the second key pair according to the third indication.
[0112] In this application, the data interactions between management devices, data collection devices, verification devices and storage devices can all be stored on the blockchain, thereby achieving traceability and security of interactive data between multiple devices, thereby improving the credibility of information data.
[0113] Based on the above content and the same concept, the present application provides an information processing device. Figure 3 As shown, the device includes a communication module 301 and a processing module 302 .
[0114] The communication module 301 is used to receive a first indication from a verification device, where the first indication is used to indicate successful verification of the identity information of the data collection device.
[0115] The communication module 301 is also used to send an encryption public key to the data acquisition device, where the encryption public key is used to encrypt the plaintext information to obtain the first ciphertext. And,
[0116] The communication module 301 is also used to send a decryption private key to the storage device, where the decryption private key is used to decrypt the first ciphertext to obtain plaintext information, and the encryption public key and the decryption private key are a first key pair.
[0117] The communication module 301 is further used to receive a second indication from the storage device, where the second indication is used to indicate that the storage device has successfully obtained the plaintext information.
[0118] The processing module 302 is configured to update the first key pair.
[0119] In one possible design, the communication module 301 is also used to send an identity authentication public key to the data acquisition device. The identity authentication public key is used to encrypt the first ciphertext to obtain the second ciphertext. The second ciphertext is used to indicate that the device sending the first ciphertext is a device that has successfully verified the identity information.
[0120] The communication module 301 is also used to send an identity authentication private key to the storage device. The identity authentication private key is used to decrypt the second ciphertext to obtain the first ciphertext. The identity authentication public key and the identity authentication private key are a second key pair.
[0121] In one possible design, the processing module 302 is also used to update the second key pair.
[0122] In one possible design, the communication module 301 is also used to send an integrity verification public key to the data acquisition device, and the integrity verification public key is used to encrypt the second ciphertext to obtain a third ciphertext.
[0123] The communication module 301 is also used to send an integrity verification private key to the storage device. The integrity verification private key is used to decrypt the third ciphertext to obtain the second ciphertext. The integrity verification public key and the integrity verification private key are a third key pair.
[0124] Based on the same inventive concept, an embodiment of the present application provides an electronic device, which can realize the functions of the device discussed above. Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application is shown.
[0125] The electronic device in the embodiment of the present application may include a processor 401. The processor 401 is the control center of the device, and various interfaces and lines can be used to connect various parts of the device, by running or executing instructions stored in the memory 403 and calling data stored in the memory 403. Optionally, the processor 401 may include one or more processing units, and the processor 401 may integrate an application processor and a modem processor, wherein the application processor mainly processes operating systems and application programs, etc., and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 401. In some embodiments, the processor 401 and the memory 403 may be implemented on the same chip, and in some embodiments, they may also be implemented separately on independent chips.
[0126] Processor 401 can be a general-purpose processor, such as a central processing unit (CPU), a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, and can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present application. A general-purpose processor can be a microprocessor or any conventional processor, etc. The method steps disclosed in the embodiments of the present application can be directly executed by a hardware processor, or can be executed by a combination of hardware and software modules in the processor.
[0127] In the embodiment of the present application, the memory 403 stores instructions that can be executed by at least one processor 401. The at least one processor 401 can be used to execute the method steps disclosed in the embodiment of the present application by executing the instructions stored in the memory 403.
[0128] The memory 403 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs and modules. The memory 403 may include at least one type of storage medium, such as a flash memory, a hard disk, a multimedia card, a card-type memory, a random access memory (RAM), a static random access memory (SRAM), a programmable read-only memory (PROM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic memory, a disk, an optical disk, etc. The memory 403 is any other medium that can be used to carry or store a desired program code in the form of an instruction or data structure and can be accessed by a computer, but is not limited thereto. The memory 403 in the embodiment of the present application can also be a circuit or any other device that can realize a storage function, for storing program instructions and / or data.
[0129] In the embodiment of the present application, the device may further include a communication interface 402 , through which the electronic device may transmit data.
[0130] Optional, can be Figure 4 The processor 401 (or the processor 401 and the communication interface 402) implements Figure 3 The processing module 302 and / or the communication module 301 shown, that is, the actions of the processing module 302 and / or the communication module 301 can be executed by the processor 401 (or the processor 401 and the communication interface 402).
[0131] Based on the same inventive concept, the embodiment of the present application also provides a computer-readable storage medium, which may store instructions. When the instructions are executed on a computer, the computer executes the operation steps provided in the above method embodiment. The computer-readable storage medium may be Figure 4 The memory 403 is shown.
[0132] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0133] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. 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 generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0134] These computer program instructions may also be stored in a computer-readable memory capable of directing 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 an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0135] These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of operation steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby executing the program on the computer or other programmable device.
Claims
1. An information processing method, characterized in that: The method comprises: The management device receives a first indication from the verification device, wherein the first indication is used to indicate that the identity information of the data collection device has been successfully verified; The management device sends an encryption public key to the data collection device, where the encryption public key is used to encrypt plaintext information to obtain a first ciphertext; and, The management device sends a decryption private key to the storage device, where the decryption private key is used to decrypt the first ciphertext to obtain the plaintext information, and the encryption public key and the decryption private key form a first key pair; The management device receives a second indication from the storage device, where the second indication is used to indicate that the storage device successfully obtains the plaintext information; The management device updates the first key pair.
2. The method according to claim 1, characterized in that The method further comprises: The management device sends an identity authentication public key to the data collection device, the identity authentication public key is used to encrypt the first ciphertext to obtain a second ciphertext, and the second ciphertext is used to indicate that the device that sent the first ciphertext is a device that successfully authenticates identity information; The management device sends an identity authentication private key to the storage device, the identity authentication private key is used to decrypt the second ciphertext to obtain the first ciphertext, and the identity authentication public key and the identity authentication private key form a second key pair.
3. The method according to claim 2, characterized in that After the management device receives the second instruction from the storage device, the method further includes: The management device updates the second key pair.
4. The method according to claim 2, characterized in that The method further comprises: The management device sends an integrity verification public key to the data collection device, where the integrity verification public key is used to encrypt the second ciphertext to obtain a third ciphertext; The management device sends an integrity verification private key to the storage device, where the integrity verification private key is used to decrypt the third ciphertext to obtain the second ciphertext, and the integrity verification public key and the integrity verification private key form a third key pair.
5. An information processing device, characterized in that: The device comprises: A communication module, used for receiving a first indication from a verification device, wherein the first indication is used for indicating successful verification of identity information of a data acquisition device; The communication module is further used to send an encryption public key to the data acquisition device, wherein the encryption public key is used to encrypt the plaintext information to obtain a first ciphertext; and The communication module is further used to send a decryption private key to the storage device, where the decryption private key is used to decrypt the first ciphertext to obtain the plaintext information, and the encryption public key and the decryption private key are a first key pair; The communication module is further used to receive a second indication from the storage device, where the second indication is used to indicate that the storage device successfully obtains the plaintext information; A processing module is used to update the first key pair.
6. The device according to claim 5, characterized in that The device also includes: The communication module is further used to send an identity authentication public key to the data acquisition device, the identity authentication public key is used to encrypt the first ciphertext to obtain a second ciphertext, and the second ciphertext is used to indicate that the device sending the first ciphertext is a device that has successfully verified the identity information; The communication module is further used to send an identity authentication private key to the storage device, where the identity authentication private key is used to decrypt the second ciphertext to obtain the first ciphertext, and the identity authentication public key and the identity authentication private key form a second key pair.
7. The device according to claim 6, characterized in that The processing module is further used to update the second key pair.
8. The device according to claim 6, characterized in that The device also includes: The communication module is further used to send an integrity verification public key to the data acquisition device, and the integrity verification public key is used to encrypt the second ciphertext to obtain a third ciphertext; The communication module is further used to send an integrity verification private key to the storage device, where the integrity verification private key is used to decrypt the third ciphertext to obtain the second ciphertext, and the integrity verification public key and the integrity verification private key are a third key pair.
9. An electronic device, characterized in that: The electronic device comprises a processor, and the processor is used to implement the steps of any one of the methods as claimed in claims 1 to 4 when executing a computer program stored in a memory.
10. A computer-readable storage medium, characterized in that: The device stores a computer program, which implements the steps of the method according to any one of claims 1 to 4 when executed by a processor.
Citation Information
Patent Citations
Certification encrypting method between certificate public key system and identity public key system
CN101594228A
Consumption method based on mobile terminal and messages, mobile terminal and business system
CN101867895A
Anti-quantum computing two-dimensional code authentication method and system based on asymmetric key pool and serial number
CN110493006A
Data privacy protection method for identity authentication in wireless sensor network
CN111294793A
Network security protection method, system and device, security switch and storage medium
CN114374508A
