Information issuing method and system, information issuing device, equipment, platform and medium

By generating negotiation keys in the Internet of Things platform to encrypt and digest the data, the security and integrity of data transmission in the Internet of Things technology are solved, and the secure data transmission and identity between the terminal device and the information issuing device is realized. Certification.

CN119070992APending Publication Date: 2024-12-03BOE TECHNOLOGY GROUP CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310638602.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-31
Publication Date
2024-12-03

AI Technical Summary

Technical Problem

In the Internet of Things technology, existing information release methods are difficult to ensure the security and integrity of data transmission between the terminal equipment and the information issuing device, especially in the process of identity authentication, there is a risk of information leakage and tampering.

Method used

The secret key generated by the Internet of Things platform is decrypted to obtain the negotiation key, encrypt the original data packet, and use preset algorithms to generate the digest ciphertext to ensure the confidentiality and integrity of the data packet during transmission. The terminal device shall use the following methods to create a digest ciphertext. Target information and negotiation keys get the original data.

Benefits of technology

It realizes safe and reliable data transmission between the terminal equipment and the information issuing device, ensures the confidentiality and integrity of the data, and enhances the reliability and security of identity authentication.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119070992A_ABST
    Figure CN119070992A_ABST
Patent Text Reader

Abstract

The invention discloses an information issuing method, an information issuing system, an information issuing device, terminal equipment, an Internet of Things platform, electronic equipment and a computer readable medium. The information publishing method comprises the following steps: in response to a secret key ciphertext sent by an Internet of Things platform, decrypting the secret key ciphertext to obtain a negotiation secret key; encrypting a to-be-issued original data packet by using the negotiation key to generate an encrypted data packet; wherein the original data packet comprises original data of at least one data file, and the original data of the data file comprises at least one first original data group and at least one second original data group; the encrypted data packet comprises a first original data group of each data file and an encrypted data group generated by encrypting a second original data group by using a negotiation key; processing the encrypted data packet based on a first preset algorithm and the negotiation key to generate an abstract ciphertext; and sending target information including the abstract ciphertext and the encrypted data packet to the terminal equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of Internet of Things, and in particular to an information publishing method, an information publishing system, an information issuing device, a terminal device, an Internet of Things platform, an electronic device, and a computer-readable medium. Background Art

[0002] In recent years, the Internet of Things technology has developed rapidly, which has had a profound impact on basic forms of human society such as agriculture, industry, and services, and has brought profound changes to the production and lifestyle of society. The Internet of Things technology collects information from sensor devices in real time to achieve device identification, monitoring, positioning, connection, tracking, and management, making devices, networks, and interactions more intelligent. Summary of the invention

[0003] The present disclosure provides an information publishing method, which is applied to an information issuing device, wherein the method comprises:

[0004] In response to the secret key ciphertext sent by the Internet of Things platform, the secret key ciphertext is decrypted to obtain a negotiated secret key; wherein the secret key ciphertext is generated when the Internet of Things platform successfully authenticates the identity of the terminal device;

[0005] The original data packet to be sent is encrypted using the negotiated secret key to generate an encrypted data packet; wherein the original data packet includes original data of at least one data file, and the original data of the data file includes at least one first original data group and at least one second original data group; the encrypted data packet includes: the first original data group of each data file, and an encrypted data group generated by encrypting the second original data group using the negotiated secret key;

[0006] Processing the encrypted data packet based on a first preset algorithm and the negotiated key to generate a digest ciphertext;

[0007] The target information including the summary ciphertext and the encrypted data packet is sent to the terminal device, so that the terminal device can obtain the data in the original data packet according to the target information and the negotiated key.

[0008] In some embodiments, the step of processing the encrypted data packet based on the first preset algorithm and the negotiated key specifically includes:

[0009] Processing the encrypted data packet based on the first preset algorithm to generate a digital summary;

[0010] The digital summary is encrypted using the negotiated key to generate the summary ciphertext.

[0011] In some embodiments, the data file is an image, the image includes a plurality of first regions and a plurality of second regions, the plurality of first regions and the plurality of second regions are arranged in an array, and in each row and each column of the array, the first regions and the second regions are arranged alternately;

[0012] The first raw data set includes raw image data of the first area, and the second raw data set includes raw image data of the second area.

[0013] In some embodiments, the original data packet includes: original data of multiple frames of images, and in every two adjacent frames of images, the positions of the first area and the second area are complementary.

[0014] In some embodiments, after the step of decrypting the key ciphertext in response to the key ciphertext sent by the Internet of Things platform, the method further includes:

[0015] In response to the authentication message ciphertext sent by the Internet of Things platform, the authentication message ciphertext is decrypted using the negotiated key to obtain an authentication success message;

[0016] The step of using the negotiated secret key to encrypt the original data packet to be sent is performed after obtaining the authentication success message.

[0017] In some embodiments, before the step of decrypting the key ciphertext in response to the key ciphertext sent by the Internet of Things platform, the method further includes:

[0018] Submitting a fourth public key certificate to the Internet of Things platform so that the Internet of Things platform can verify the legitimacy of the fourth public key certificate; wherein the fourth public key of the information issuing device is recorded in the fourth public key certificate;

[0019] The step of decrypting the key ciphertext specifically includes:

[0020] The secret key ciphertext is decrypted using the fourth private key; wherein the fourth public key and the fourth private key are matched in pair and are both pre-generated by the information sending device.

[0021] In some embodiments, before the step of submitting the fourth public key certificate to the Internet of Things platform, the method further includes:

[0022] Generate a fourth private key and a fourth public key that match in pair;

[0023] Sending the fourth public key to the authentication machine so that the authentication machine signs the fourth public key and generates a fourth public key certificate;

[0024] Receive and store the fourth public key certificate sent by the authentication integrated machine.

[0025] In some embodiments, the method comprises:

[0026] If the identity authentication of the terminal device is successful, determining the negotiated key;

[0027] In response to the target information sent by the information sending device, the encrypted data packet in the target information is processed using a first preset algorithm to obtain a first processing result;

[0028] Decrypting the digest ciphertext in the target information using the negotiated key to obtain a second processing result;

[0029] Determine whether the first processing result is the same as the second processing result, and if they are the same, decrypt the encrypted data packet using the negotiated key to obtain original data of each data file in the original data packet;

[0030] Wherein, the encrypted data packet includes data to be decrypted of at least one data file, and the data to be decrypted includes: at least one first data group and at least one second data group; the original data of the data file includes: a first original data group that is the same as each first data group, and a second original data group obtained by decrypting each second data group using the negotiated key.

[0031] In some embodiments, the method further comprises:

[0032] Submitting the first public key certificate to the Internet of Things platform, so that the Internet of Things platform can extract the first public key of the terminal device from the first public key certificate if the first public key certificate is determined to be legitimate;

[0033] In response to a first ciphertext sent by the Internet of Things platform, decrypt the first ciphertext; wherein the first ciphertext is generated by the Internet of Things platform by encrypting a first random number using the first public key, and the first random number is data randomly generated by the Internet of Things platform using a server cryptographic machine;

[0034] Generate a second ciphertext based on the decryption result of the first ciphertext;

[0035] The second ciphertext is sent to the Internet of Things platform so that the Internet of Things platform can decrypt the second ciphertext and authenticate the identity of the terminal device based on the decryption result and the first ciphertext.

[0036] In some embodiments, the step of generating the second ciphertext based on the decryption result of the first ciphertext specifically includes:

[0037] generating a third random number;

[0038] Concatenate the first decryption result and the third random number in series to generate a second random number;

[0039] The second random number is encrypted to generate the second ciphertext.

[0040] In some embodiments, the step of encrypting the second random number specifically includes:

[0041] Extracting the third public key of the Internet of Things platform from the pre-obtained third public key certificate;

[0042] The second random number is encrypted using the third public key.

[0043] In some embodiments, the step of determining the negotiation key when the identity authentication of the terminal device is successful specifically includes: responding to the authentication message ciphertext sent by the Internet of Things platform, using the second random number as the negotiation key;

[0044] The method further includes: using the negotiated secret key to decrypt the authentication message ciphertext to obtain an authentication success message.

[0045] In some embodiments, before the step of submitting the first public key certificate to the Internet of Things platform, the method further includes:

[0046] Generate a first public key and a first private key that match in pair;

[0047] Submitting the first public key to an authentication server, so that the authentication server signs the first public key and generates a first public key certificate;

[0048] The first public key certificate and the third public key certificate sent by the authentication server are received and stored, wherein the third public key certificate records the third public key of the Internet of Things platform.

[0049] The present disclosure also provides an information publishing method, which is applied to an Internet of Things platform, and the method comprises:

[0050] When it is determined that the identity authentication of the terminal device is successful, determining the negotiated key;

[0051] Encrypting the negotiated key to generate a key ciphertext;

[0052] The secret key ciphertext is sent to the information sending device so that the information sending device can decrypt the secret key ciphertext to obtain the negotiated secret key.

[0053] In some embodiments, the step of encrypting the negotiated key specifically includes:

[0054] Extracting the fourth public key of the information sending device from the fourth public key certificate obtained in advance;

[0055] The negotiated secret key is encrypted using the fourth public key.

[0056] In some embodiments, after the step of sending the secret key ciphertext to the information sending device, the method further includes:

[0057] Generate an authentication success message;

[0058] Encrypting the authentication success message using the negotiated secret key to generate an authentication message ciphertext;

[0059] The authentication message ciphertext is sent to the terminal device and the information sending device.

[0060] In some embodiments, the method further comprises:

[0061] In response to the first public key certificate sent by the terminal device, based on the second public key certificate pre-sent by the authentication server, verify the legitimacy of the first public key certificate; and, in response to the fourth public key certificate sent by the information issuing device, based on the second public key certificate, verify the legitimacy of the fourth public key certificate;

[0062] When both the first public key certificate and the fourth public key certificate are verified, extracting the first public key of the terminal device from the first public key certificate, and extracting the fourth public key of the information issuing device from the fourth public key certificate;

[0063] Generate a first random number using a server cryptographic machine, and encrypt the first random number using the first public key to generate a first ciphertext;

[0064] Sending the first ciphertext to the terminal device, so that the terminal device decrypts the first ciphertext and generates a second ciphertext based on the decryption result of the first ciphertext;

[0065] In response to the second ciphertext, decrypting the second ciphertext;

[0066] The decryption result of the second ciphertext is matched with the first random number, and if the match is successful, it is determined that the identity authentication of the terminal device is successful.

[0067] In some embodiments, the step of determining the negotiation key when determining that the identity authentication of the terminal device is successful specifically includes:

[0068] When it is determined that the identity authentication of the terminal device is successful, the decryption result of the second ciphertext is used as the negotiation key.

[0069] In some embodiments, the second ciphertext is generated by the terminal device encrypting a second random number using a third public key of the IoT platform, the second random number is data generated by concatenating a decryption result of the first ciphertext by the terminal device and a third random number, and the third random number is data randomly generated by the terminal device;

[0070] The step of decrypting the second ciphertext specifically includes:

[0071] The second ciphertext is decrypted using a third private key, wherein the third public key and the third private key are matched in pair.

[0072] In some embodiments, the step of verifying the legitimacy of the first public key certificate based on the second public key certificate pre-sent by the authentication server specifically includes:

[0073] Extracting the second public key of the authentication server from the second public key certificate sent in advance by the authentication server;

[0074] Using the second public key to verify the signature of the first public key certificate;

[0075] If the signature verification of the first public key certificate passes, it is determined that the first public key certificate is legal;

[0076] The step of verifying the legitimacy of the fourth public key certificate based on the second public key certificate specifically includes:

[0077] Extracting the second public key of the authentication server from the second public key certificate sent in advance by the authentication server;

[0078] The fourth public key certificate is verified using the second public key; if the fourth public key certificate passes the verification, it is determined that the fourth public key certificate is legal.

[0079] In some embodiments, before the step of verifying the legitimacy of the first public key certificate, the method further includes:

[0080] Receiving and storing a second public key certificate sent by the authentication server; wherein the public key certificate records the second public key of the authentication server;

[0081] Generate a third public key and a third private key that match in pair;

[0082] Sending the third public key to the authentication server, so that the authentication server signs the third public key using the second private key to generate a third public key certificate;

[0083] The second public key and the second private key are matched in pair.

[0084] The present disclosure also provides an information delivery device, which includes:

[0085] The key acquisition module is configured to, in response to the key ciphertext sent by the Internet of Things platform, decrypt the key ciphertext to obtain the negotiated key; wherein the key ciphertext is generated when the Internet of Things platform successfully authenticates the identity of the terminal device;

[0086] The data encryption module is configured to encrypt the original data packet to be sent using the negotiated secret key to generate an encrypted data packet; the original data packet includes original data of at least one data file, and the original data of the data file includes at least one first original data group and at least one second original data group; the encrypted data packet includes: a first original data group of each data file, and an encrypted data group generated by encrypting the second original data group using the negotiated secret key;

[0087] A summary generation module is configured to process the encrypted data packet using a first preset algorithm to generate a digital summary;

[0088] A summary encryption module is configured to encrypt the digital summary based on the negotiated key to generate a summary ciphertext;

[0089] The sending module is configured to send the target information including the summary ciphertext and the encrypted data packet to the terminal device, so that the terminal device can obtain the data in the original data packet according to the target information and the negotiated key.

[0090] The present disclosure also provides a terminal device, including:

[0091] A key determination module, configured to determine a negotiated key when the identity authentication of the terminal device is successful;

[0092] A first processing module is configured to, in response to the target information sent by the information sending device, process the encrypted data packet in the target information using a first preset algorithm to obtain a first processing result S3;

[0093] A second processing module is configured to decrypt the digest ciphertext in the target information using the negotiated key to obtain a second processing result;

[0094] a decryption module configured to determine whether the first processing result is the same as the second processing result, and if they are the same, decrypt the encrypted data packet using the negotiated key to obtain the original data of each data file;

[0095] Wherein, the encrypted data packet includes data to be decrypted of at least one data file, and the data to be decrypted includes: at least one first data group and at least one second data group; the original data of the data file includes: a first original data group that is the same as each first data group, and a second original data group obtained by decrypting each second data group using the negotiated key.

[0096] The present disclosure also provides an Internet of Things platform, which includes:

[0097] The ciphertext generation module is configured to, when it is determined that the IoT platform successfully authenticates the identity of the terminal device, determine the negotiation key; and encrypt the negotiation key to generate a key ciphertext;

[0098] The ciphertext sending module is configured to send the key ciphertext to the information sending device, so that the information sending device can decrypt the key ciphertext to obtain the negotiated key.

[0099] The present disclosure also provides an information publishing system, including: the above-mentioned information issuing device, the above-mentioned terminal equipment, and the above-mentioned Internet of Things platform.

[0100] In some embodiments, the information publishing system further includes:

[0101] The authentication server is configured to generate a second private key and a second public key certificate, wherein the second public key certificate records a second public key that matches the second private key in pair; in response to the first public key sent by the terminal device, use the second private key to sign the first public key to generate a first public key certificate; send the first public key certificate to the terminal device; send the second public key certificate to the Internet of Things platform; in response to the third public key sent by the Internet of Things platform, use the second private key to sign the third public key to generate a third public key certificate, and send the third public key certificate to the terminal device; in response to the fourth public key sent by the information sending device, use the second private key to sign the fourth public key to generate a fourth public key certificate, and send the fourth public key certificate to the information sending device.

[0102] The present disclosure also provides an electronic device, comprising:

[0103] one or more processors;

[0104] A storage device stores one or more programs thereon, and when the one or more programs are executed by the one or more processors, the one or more processors implement the above method.

[0105] The present disclosure also provides a computer-readable medium having a computer program stored thereon, and the program implements the above method when executed by a processor. BRIEF DESCRIPTION OF THE DRAWINGS

[0106] The accompanying drawings are used to provide a further understanding of the present disclosure and constitute a part of the specification. Together with the following specific embodiments, they are used to explain the present disclosure but do not constitute a limitation of the present disclosure. In the accompanying drawings:

[0107] Figure 1 A schematic diagram of an information publishing method provided in some embodiments of the present disclosure.

[0108] Figure 2A A schematic diagram of region division of a frame of image provided in some embodiments of the present disclosure.

[0109] Figure 2B A schematic diagram of region division of another frame image provided in some embodiments of the present disclosure.

[0110] Figure 3 It is a schematic diagram of the information publishing method provided in some other embodiments of the present disclosure.

[0111] Figure 4 A schematic diagram of a certificate issuance process provided in some embodiments of the present disclosure.

[0112] Figure 5 It is a schematic diagram of the information publishing method provided in some other embodiments of the present disclosure.

[0113] Figure 6 It is a schematic diagram of the information publishing method provided in some other embodiments of the present disclosure.

[0114] Figure 7 A schematic diagram of a certificate issuance process provided in some embodiments of the present disclosure.

[0115] Figure 8 A schematic diagram of an information publishing method provided in some embodiments of the present disclosure.

[0116] Fig. 9 It is a schematic diagram of the information publishing method provided in some other embodiments of the present disclosure.

[0117] Fig.10 A schematic diagram of a certificate issuance process provided in some embodiments of the present disclosure.

[0118] Fig.11 A schematic diagram of the certificate issuance process of the information publishing system provided in some embodiments of the present disclosure.

[0119] Fig.12 A schematic diagram of the identity authentication process of an information publishing system provided in some embodiments of the present disclosure.

[0120] Fig.13A schematic diagram of the information distribution process of the information publishing system provided in some embodiments of the present disclosure.

[0121] Fig.14 This is a schematic diagram of an information sending device provided in some embodiments of the present disclosure.

[0122] Fig.15 A schematic diagram of a terminal device provided in some embodiments of the present disclosure.

[0123] Fig.16 A schematic diagram of an Internet of Things platform provided in some embodiments of the present disclosure.

[0124] Fig.17 A schematic diagram of an information publishing system provided in some embodiments of the present disclosure. DETAILED DESCRIPTION

[0125] The specific implementation of the present disclosure is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described herein is only used to illustrate and explain the present disclosure, and is not used to limit the present disclosure.

[0126] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution of the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings of the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all of the embodiments. Based on the described embodiments of the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.

[0127] Unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present disclosure should be understood by people with ordinary skills in the field to which the present disclosure belongs. The words "first", "second" and similar words used in the present disclosure do not indicate any order, quantity or importance, but are only used to distinguish different components.

[0128] In order to facilitate understanding of the embodiments of the present disclosure, before specifically introducing the embodiments of the present disclosure, the special terms involved in the present disclosure are explained in detail:

[0129] (1) CA (Certification Authority) is an internationally recognized certification body. It is an institution that issues, manages, and cancels digital certificates for digital certificate applicants. The role of CA is to check the legitimacy of the certificate holder's identity and issue a certificate (using mathematical methods to sign the certificate) to prevent the certificate from being forged or tampered with. The Digital Certificate Authority (CA) is a key link in the security of the entire online electronic transaction. It is mainly responsible for generating, distributing, and managing the identity authentication digital certificates required by all entities participating in online transactions. Each digital certificate is associated with the digital signature certificate of the previous level, and is ultimately traced back through a security chain to a known and widely recognized secure, authoritative, and trustworthy institution - the root certification authority (root CA).

[0130] (2) Server cryptographic machine, which is a server-side cryptographic computing device that provides general cryptographic service functions such as key generation, digital signature, signature verification, data encryption, and data decryption. That is, a device that realizes the transformation of plaintext and ciphertext or the transformation of ciphertext and plaintext under the action of a key. In the disclosed embodiment, basic security services such as data encryption and decryption are provided for the IoT platform.

[0131] (3) A digital signature (also known as a public key digital signature) is a string of numbers that can only be generated by the sender of the information and cannot be forged by others. This string of numbers is also a valid proof of the authenticity of the information sent by the sender. It is a method for authenticating digital information, similar to an ordinary physical signature written on paper, but implemented using technology in the field of public key encryption. A set of digital signatures usually defines two complementary operations, one for signing and the other for verification (i.e., signature verification). The signature involved in the embodiments of the present disclosure is issued by a private key and verified by a public key.

[0132] In the disclosed embodiment, the process of signing data A using a private key a may include: using a hash algorithm to process the data A' to be signed containing data A to generate a first hash value; and using the private key a to encrypt the first hash value to generate a digital signature; based on the digital signature and the data A' to be signed, generating the signed data D. When verifying the signature, the digital signature is decrypted using the public key a' paired with the private key a, and the data D is processed using a hash function to obtain a second hash value; the second hash value is compared with the decrypted result of the digital signature, and if the two are the same, the verification is successful.

[0133] (4) A digital certificate (also known as a public key certificate) is a digitally signed statement that binds the value of a public key to the identity of the person, device, or service that holds the corresponding private key. Most general-purpose certificates are based on the X.509v3 certificate standard.

[0134] (5) Hash, generally translated as hash, hash, or transliterated as hash, is a function that transforms an input of arbitrary length (also called pre-image) into an output of fixed length through a hash algorithm. The output is the hash value. This conversion is a compression mapping, that is, the space of hash values ​​is usually much smaller than the space of inputs. Different inputs may hash to the same output, so it is impossible to determine the unique input value from the hash value. Simply put, it is a function that compresses a message of arbitrary length into a message digest of a fixed length.

[0135] (6) The Internet of Things platform is an integrated platform that integrates capabilities such as device management, data security communication, and message subscription. It supports connecting to a large number of devices and collecting device data to the cloud; it provides a cloud API, and the server can send instructions to the device by calling the cloud API to achieve remote control. In the disclosed embodiment, the Internet of Things platform is used to implement identity authentication of terminal devices and information delivery devices.

[0136] (7) Terminal devices are intermediate devices between the sensor network layer and the transmission network layer, and are also key devices in the Internet of Things. Through their conversion and collection, various external sensory data can be collected and processed, and the data can be transmitted to the Internet through various network interfaces. The terminal devices in the embodiments of the present disclosure are mainly display terminal devices, such as monitors, all-in-one conference machines, etc.

[0137] (8) An information sending device, used to send information to a terminal device that has undergone identity authentication and successfully authenticated.

[0138] Figure 1 is a schematic diagram of an information publishing method provided in some embodiments of the present disclosure, Figure 1 The information publishing method shown is applied to the information sending device. Figure 1 As shown, the information publishing method includes the following steps S110 to S140.

[0139] S110, the information issuing device responds to the secret key ciphertext sent by the Internet of Things platform, decrypts the secret key ciphertext, and obtains the negotiated secret key. The secret key ciphertext is generated by the Internet of Things platform, and the Internet of Things platform can authenticate the terminal device. If the authentication is successful, the Internet of Things platform generates the secret key ciphertext.

[0140] S120, the information sending device encrypts the original data packet to be sent using the negotiated secret key to generate an encrypted data packet. The original data packet includes original data of at least one data file, and the original data of the data file includes at least one first original data group and at least one second original data group; the encrypted data packet includes: the first original data group of each data file, and the encrypted data group generated by encrypting the second original data group using the negotiated secret key.

[0141] The data file may be an image or a non-image. For example, if the data file is an image, the original data of the data file includes the original image data of the image.

[0142] S130: The information sending device processes the encrypted data packet based on the first preset algorithm and the negotiated key to generate a digest ciphertext.

[0143] S140, the information sending device sends the target information including the summary ciphertext and the encrypted data packet to the terminal device, so that the terminal device can obtain the data in the original data packet according to the target information and the negotiated key.

[0144] In the disclosed embodiment, the information sending device sends information to the terminal device after receiving the secret key ciphertext sent by the Internet of Things platform (i.e., after the identity authentication of the terminal device is successful), thereby ensuring the credibility and security of the terminal device. In addition, in the process of information sending, the information sending device encrypts the original data packet, processes the encrypted data packet, generates a summary ciphertext of the encrypted data packet, and sends the summary ciphertext and the encrypted data packet to the terminal device together. After receiving the summary ciphertext and the encrypted data packet, the terminal device can first process the summary ciphertext to determine whether the target information has been tampered with during the transmission process. If it has not been tampered with, the terminal device can further decrypt the encrypted data packet to obtain the data in the original data packet. This method can ensure the confidentiality and integrity of the sent information, and because when the original data packet is encrypted, only part of the data therein (i.e., the data of the second original data group) is encrypted, and the data of the first original data group is not encrypted, the encryption and decryption effect can be improved.

[0145] In some embodiments, step S130 may specifically include the following steps S131 and S132.

[0146] S131. The information sending device processes the encrypted data packet based on the first preset algorithm to generate a digital summary.

[0147] In one example, the first preset algorithm may be a hash algorithm, such as a SHA-256 algorithm.

[0148] S132: The information sending device encrypts the digital summary using the negotiated key to generate the summary ciphertext.

[0149] In one example, the information sending device may encrypt the digital summary using a negotiated key and a preset encryption algorithm (eg, AES-128 algorithm).

[0150] In some embodiments, the data file is an image, and the first raw data set and the second raw data set may include image data of different regions in the image. For example, each frame of the image includes a plurality of first regions and a plurality of second regions, and the first regions and the second regions are arranged alternately along the first direction, or are arranged alternately along the first direction and the second direction. Figure 2A A schematic diagram of region division of a frame of image provided in some embodiments of the present disclosure, such as Figure 2B A schematic diagram of region division of another frame image provided in some embodiments of the present disclosure is shown in FIG. Figure 2A and Figure 2B As shown, each frame of image includes multiple first areas and multiple second areas, and the multiple first areas and the multiple second areas are arranged in an array, and in each row and each column in the array, the first areas and the second areas are arranged alternately. The first original data group includes the original image data of the first area, and the second original data group includes the original image data of the second area. The first area and the second area are arranged evenly and alternately, and the original image data of the second area is encrypted. Under the premise of effective computing power, the demand for computing power of the encryption and decryption algorithm can be greatly reduced. At the same time, for scenes that require real-time display, the system delay caused by the encryption and decryption algorithm can be reduced.

[0151] It should be noted that both the first area and the second area include multiple pixels, and the original image data of the first area (or the second area) includes pixel data of each pixel in the first area (or the second area), and the pixel data includes red component data, green component data and blue component data of the pixel.

[0152] In some embodiments, the original data packet includes original data of multiple frames of images, and the multiple frames of images are arranged in sequence. In two adjacent frames of images, the positions of the first area and the second area are complementary. That is, the position of the first area of ​​one frame is the same as the position of the second area of ​​the adjacent frame. For example, the odd-numbered frames of images are arranged in sequence. Figure 2A The area is divided in the way of Figure 2B By encrypting the data in opposite positions in two adjacent frames of images, the system load can be more balanced and the requirements on the system can be reduced.

[0153] Figure 3 is a schematic diagram of an information publishing method provided in some other embodiments of the present disclosure, such as Figure 3 As shown, the information publishing method further includes step S115 performed between step S110 and step S120.

[0154] S115. The information issuing device responds to the authentication message ciphertext sent by the Internet of Things platform, decrypts the authentication message ciphertext using the negotiated key, and obtains an authentication success message.

[0155] The authentication message ciphertext is generated by the IoT platform. For example, the IoT platform first generates an authentication success message, and encrypts the authentication success message using a negotiated key to generate an authentication message ciphertext. The authentication success message is a message used to indicate that the terminal device has been successfully authenticated.

[0156] In some embodiments, Figure 3 As shown, before step S110, the following steps may also be included:

[0157] S105. The information issuing device submits the fourth public key certificate CER_D to the Internet of Things platform, so that the Internet of Things platform can verify the legitimacy of the fourth public key certificate CER_D. The fourth public key certificate CER_D records the fourth public key PUB_D of the information issuing device. Verify the legitimacy of the fourth public key certificate CER_D, that is, verify whether the fourth public key certificate CER_D is issued by the authentication server (that is, the above-mentioned CA integrated machine).

[0158] After verifying the legitimacy of the fourth public key certificate CER_D, the IoT platform can also extract the fourth public key PUB_D in the certificate, thereby using the fourth public key PUB_D to encrypt the authentication success message and generate the authentication message ciphertext. In step S150, the information issuing device can use the fourth private key PRI_D that is paired with the fourth public key PUB_D to decrypt the authentication message ciphertext.

[0159] In some embodiments, before step S105, a certificate issuance process may also be included. Figure 4 is a schematic diagram of a certificate issuance process provided in some embodiments of the present disclosure, Figure 4 The certificate issuance process is executed by the information issuing device, and specifically includes the following steps S101 to S103.

[0160] S101. The information issuing device generates a fourth private key PRI_D and a fourth public key PUB_D that are matched in pair.

[0161] S102: The information issuing device sends the fourth public key PUB_D to the authentication machine, so that the authentication machine signs the fourth public key PUB_D and generates a fourth public key certificate CER_D. The authentication machine may sign the fourth public key PUB_D using the pre-generated second private key PRI_B.

[0162] S103: The information issuing device receives and stores the fourth public key certificate CER_D sent by the authentication integrated machine.

[0163] Figure 5 is a schematic diagram of an information publishing method provided in some other embodiments of the present disclosure, Figure 5The information publishing method shown is applied to a terminal device, which may be a display terminal device or other terminal device. The terminal device may include a security chip, and the identity authentication method may be executed by the security chip. Figure 5 As shown, the information publishing method includes the following steps S210 to S240.

[0164] S210: When the terminal device successfully authenticates its own identity, it determines the negotiated key.

[0165] In some embodiments, the negotiation key is generated during the process of the IoT platform authenticating the identity of the terminal device. For example, after the identity authentication of the terminal device is successful, the IoT platform can send a message of successful authentication to the terminal device in an encrypted or unencrypted manner. After the terminal device obtains the successful authentication message, it determines that the identity has been successfully authenticated and determines the negotiation key. For another example, after the identity authentication of the terminal device is successful, the IoT platform can send the negotiation key to the terminal device in an encrypted or unencrypted manner.

[0166] S220. The terminal device processes the encrypted data packet in the target information using a first preset algorithm in response to the target information sent by the information sending device to obtain a first processing result.

[0167] S230: The terminal device decrypts the digest ciphertext in the target information using the negotiated key to obtain a second processing result.

[0168] S240, the terminal device determines whether the first processing result is the same as the second processing result. If they are the same, the encrypted data packet is decrypted using the negotiated key to obtain the original data of each data file in the original data packet. If the first processing result is the same as the second processing result, it means that the target information has not been tampered with during the transmission process. At this time, the terminal device can decrypt the encrypted data packet. If the first processing result is different from the second processing result, it means that the target information has been tampered with during the transmission process and can be discarded.

[0169] Wherein, the encrypted data packet includes data to be decrypted of at least one data file, and the data to be decrypted includes: at least one first data group and at least one second data group. The original data of the data file includes: at least one first original data group and at least one second original data group, wherein the first original data group corresponds to and is the same as the first data group, and the second original data group corresponds to the second data group. The second data group is obtained by the information sending device encrypting the second original data group using the negotiated key. When the terminal is set to decrypt the encrypted data packet using the negotiated key, the second data group in the encrypted data packet can be decrypted using the negotiated key to obtain the second original data group, and based on the second original data group and the first data group (i.e., the first original data group), the original data of each data file is obtained.

[0170] Figure 6 is a schematic diagram of an information publishing method provided in some other embodiments of the present disclosure, Figure 6 The information publishing method shown is applied to a terminal device, such as Figure 6 As shown, the information publishing method also includes the following steps S201 to S204.

[0171] S201. The terminal device submits a first public key certificate CER_A to the Internet of Things platform, so that the Internet of Things platform can extract a first public key PUB_A of the terminal device from the first public key certificate CER_A when the first public key certificate CER_A is determined to be legitimate.

[0172] S202. The terminal device responds to the first ciphertext [R_S] sent by the Internet of Things platform, decrypts the first ciphertext [R_S], and obtains the decryption result R_S' of the first ciphertext. The first ciphertext [R_S] is generated by the Internet of Things platform using the first public key PUB_A of the terminal device to encrypt the first random number R_S, and the first random number R_S is data randomly generated by the Internet of Things platform using the server cryptographic machine. The terminal device can use the first private key PRI_A to decrypt the first ciphertext [R_S]. The first public key PUB_A and the first private key PRI_A are matched in pairs.

[0173] S203. The terminal device generates a second ciphertext based on the decryption result R_S' of the first ciphertext.

[0174] The terminal device may process the decryption result R_S' of the first ciphertext based on a preset rule to generate a second ciphertext. For example, the terminal device may directly encrypt the decryption result R_S' of the first ciphertext to generate the second ciphertext; for another example, the terminal device may perform a specific operation (such as multiplying by a predetermined coefficient) on the decryption result R_S' of the first ciphertext, and then encrypt the operation result to generate the second ciphertext.

[0175] In some embodiments, step S203 may specifically include steps S203a to S203c.

[0176] S203a, the terminal device generates a third random number R_D. The third random number R_D is data randomly generated by the terminal device.

[0177] S203b: The terminal device concatenates the first decryption result R_S' and the third random number R_D in series to generate a second random number.

[0178] Among them, serial splicing means arranging two data in order and splicing them into new data. Specifically, the first decryption result can be arranged before or after the third random number. For example, the first random number R_S and the decryption result R_S' of the first ciphertext are both n-bit data, and the third random number R_D is m-bit data; the second random number R_D|R_S' is the data of the decryption result R_S' of the first ciphertext and the third random number R_D spliced ​​in series, and the third random number R_D is located before the decryption result R_S' of the first ciphertext.

[0179] S203c. The terminal device encrypts the second random number R_D|R_S' to generate a second ciphertext.

[0180] S204: The terminal device sends the second ciphertext to the Internet of Things platform, so that the Internet of Things platform decrypts the second ciphertext and authenticates the identity of the terminal device based on the decryption result and the first ciphertext.

[0181] In some embodiments, step S203c may specifically include:

[0182] S203c1. The terminal device may extract the third public key PUB_C of the Internet of Things platform from the pre-obtained third public key certificate CER_C.

[0183] S203c2, the terminal device uses the third public key PUB_C to encrypt the second random number R_D|R_S' to generate a second ciphertext. After receiving the second ciphertext, the IoT platform can use the third private key PRI_C to decrypt the second ciphertext, thereby authenticating the identity of the terminal device based on the decryption result and the first ciphertext. The third private key PRI_C matches the third public key PUB_C in pairs, and both are pre-generated by the IoT platform.

[0184] The above steps S201 to S204 are equivalent to the identity authentication process performed by the terminal device, because in the identity authentication process, the IoT platform uses the first public key PUB_A of the terminal device to encrypt the first random number, and the terminal device uses the first private key PRI_A to decrypt the first ciphertext; and when the terminal device generates the second ciphertext, it uses the third public key PUB_C of the IoT platform to encrypt the second random number, and the IoT platform uses the third private key PRI_C to decrypt the second ciphertext. This authentication method is equivalent to verifying the security of both the first private key PRI_A of the terminal device and the third private key PRI_C of the IoT platform.

[0185] In some embodiments, step S210 specifically includes: the IoT terminal responds to the authentication message ciphertext sent by the IoT platform, and uses the second random number as the negotiation key. That is, after receiving the authentication message ciphertext sent by the IoT platform, the IoT terminal determines that the identity authentication is successful, and uses the second random number as the negotiation key to decrypt the authentication message ciphertext to obtain an authentication success message. The authentication success message can serve as an end mark for the identity authentication process.

[0186] In other embodiments, the IoT terminal responds to the authentication message ciphertext sent by the IoT platform by using a second random number to decrypt the authentication message ciphertext. If the decryption is successful to obtain the identity authentication message, the terminal device determines that the identity authentication is successful and uses the second random number as the negotiated key.

[0187] In some embodiments, before the identity authentication process is performed, a certificate issuance process is also included. Figure 7 is a schematic diagram of a certificate issuance process provided in some embodiments of the present disclosure, Figure 7 The certificate issuance process shown is performed by the terminal device, such as Figure 7 As shown, the certificate issuance process includes the following steps S200a~S200c.

[0188] S200a. The terminal device generates a first public key PUB_A and a first private key PRI_A that are matched in pair.

[0189] S200b, the terminal device submits the first public key PUB_A to the authentication server, so that the authentication server signs the first public key PUB_A and generates a first public key certificate CER_A. The authentication server may use its second private key PRI_B to sign the first public key PUB_A.

[0190] S200c, the terminal device receives and stores the first public key certificate CER_A and the third public key certificate CER_C sent by the authentication server, wherein the third public key certificate CER_C records the third public key PUB_C of the Internet of Things platform, and when the terminal device performs step S203 subsequently, it extracts the third public key PUB_C from the stored third public key certificate CER_C, and uses the third public key PUB_C to encrypt the second random number R_D|R_S'.

[0191] Figure 8 is a schematic diagram of an information publishing method provided in some embodiments of the present disclosure, Figure 8 The information publishing method shown is applied to the Internet of Things platform. Figure 8 As shown, the information publishing method includes the following steps S310 to S330.

[0192] S310. When determining that the identity authentication of the terminal device is successful, the IoT platform determines a negotiation key.

[0193] S320: The Internet of Things platform encrypts the negotiated key to generate a key ciphertext.

[0194] S330. The Internet of Things platform sends the key ciphertext to the information sending device, so that the information sending device decrypts the key ciphertext to obtain the negotiated key.

[0195] In some embodiments, the Internet of Things platform can use the public key of the information sending device to encrypt the negotiated key, and after the information sending device receives the key ciphertext, it uses the private key to decrypt it.

[0196] Specifically, step S320 may include steps S320a and S320b.

[0197] S320a: The Internet of Things platform extracts the fourth public key PUB_D of the information sending device from the fourth public key certificate CER_D obtained in advance.

[0198] S320b, the Internet of Things platform encrypts the negotiated secret key using the fourth public key PUB_D. After receiving the secret key ciphertext, the information delivery device decrypts it using the fourth private key PRI_D that is paired with the fourth public key PUB_D.

[0199] In some embodiments, after step S330, the following steps S340 to S350 may also be included.

[0200] S340, the IoT platform generates an authentication success message.

[0201] S350, the IoT platform encrypts the authentication success message using the negotiated secret key, generates an authentication message ciphertext, and sends the authentication message ciphertext to the terminal device and the information sending device.

[0202] Fig. 9 is a schematic diagram of an information publishing method provided in some other embodiments of the present disclosure, Fig. 9 The information publishing method shown is applied to the Internet of Things platform. Fig. 9 As shown, the information publishing method also includes the following steps S301 to S306.

[0203] S301. The Internet of Things platform responds to the first public key certificate CER_A sent by the terminal device, and verifies the legitimacy of the first public key certificate CER_A based on the second public key certificate CER_B sent in advance by the authentication server; and responds to the fourth public key certificate CER_D sent by the information issuing device, and verifies the legitimacy of the fourth public key certificate CER_D based on the second public key certificate CER_B.

[0204] In some embodiments, the process of verifying the legitimacy of the first public key certificate CER_A includes the following steps S301a and S301b.

[0205] S301a. The Internet of Things platform extracts the second public key PUB_B of the authentication server from the second public key certificate CER_B sent in advance by the authentication server.

[0206] The second public key certificate CER_B is pre-generated by the authentication server, and the second public key PUB_B is recorded in the second public key certificate CER_B.

[0207] S301b. The Internet of Things platform uses the second public key PUB_B to verify the signature of the first public key certificate CER_A; if the first public key certificate CER_A passes the signature verification, it is determined that the first public key certificate CER_A actually received by the Internet of Things platform is issued by the authentication server, that is, it is determined that the first public key certificate CER_A is legal.

[0208] In some embodiments, the process of the Internet of Things platform verifying the legitimacy of the fourth public key certificate CER_D includes the following steps S301c and S301d.

[0209] S301c. The Internet of Things platform extracts the second public key PUB_B of the authentication server from the second public key certificate CER_B sent in advance by the authentication server.

[0210] S301d. The Internet of Things platform uses the second public key PUB_B to verify the signature of the fourth public key certificate CER_D; if the fourth public key certificate CER_D passes the verification, it is determined that the fourth public key certificate CER_D actually received by the Internet of Things platform is issued by the authentication server, that is, the fourth public key certificate CER_D is determined to be legal.

[0211] It should be noted that in step S301, the legitimacy of the first public key certificate CER_A can be verified through steps S301a and S301b. If the first public key certificate CER_A is determined to be legal, step S301d is performed; if the first public key certificate CER_A is determined to be illegal, the subsequent steps are not performed. The legitimacy of the fourth public key certificate CER_D can also be verified through steps S301c and S301d. If the fourth public key certificate CER_D is determined to be legal, step S301b is performed; if the third public key certificate CER_C is determined to be illegal, the subsequent steps are not performed. Steps S301b and S301d can also be performed in parallel after extracting the second public key PUB_B.

[0212] S302. When both the first public key certificate CER_A and the fourth public key certificate CER_D are verified, the Internet of Things platform extracts the first public key PUB_A of the terminal device from the first public key certificate CER_A, and extracts the fourth public key PUB_D of the information sending device from the fourth public key certificate CER_D.

[0213] S303. The Internet of Things platform generates a first random number R_S using the server cryptographic machine, and encrypts the first random number R_S using the first public key PUB_A to generate a first ciphertext [R_S].

[0214] S304, the Internet of Things platform sends the first ciphertext [R_S] to the terminal device, so that the terminal device decrypts the first ciphertext [R_S] and generates a second ciphertext based on the decryption result R_S' of the first ciphertext.

[0215] For example, after the IoT platform sends the first ciphertext [R_S] to the terminal device, the terminal device decrypts the first ciphertext [R_S] and directly encrypts the decryption result R_S' of the first ciphertext to generate the second ciphertext (hereinafter referred to as Method 1). For another example, the terminal device can concatenate the decryption result R_S' of the first ciphertext with another random number, and then encrypt the concatenated data to generate the second ciphertext (hereinafter referred to as Method 2).

[0216] S305. The Internet of Things platform responds to the second ciphertext and decrypts the second ciphertext.

[0217] S306. The IoT platform matches the decryption result of the second ciphertext with the first random number R_S. If the match is successful, it is determined that the identity authentication of the terminal device is successful.

[0218] For example, in some embodiments, the terminal device generates the second ciphertext using the above method 1. In this case, in step S306, if the IoT platform determines that the decryption result of the second ciphertext is the same as the first random number, it indicates that the match is successful. In other embodiments, the terminal device generates the second ciphertext using the above method 2. In this case, in step S306, if the IoT platform determines that a part of the decryption result of the second ciphertext is the same as the first random number, it indicates that the match is successful.

[0219] In order to improve the reliability of identity authentication, in a preferred embodiment, the second ciphertext is generated by encrypting the second random number using the third public key PUB_C of the IoT platform by the terminal device, the second random number is the data generated by the terminal device decrypting the first ciphertext and concatenating the third random number, and the third random number is the data randomly generated by the terminal device. For example, the first random number R_S and the decryption result R_S' of the first ciphertext are both n-bit data, and the third random number R_D is m-bit data; the second random number R_D|R_S' is the data concatenated between the decryption result R_S' of the first ciphertext and the third random number R_D, and the third random number R_D is located before the decryption result R_S' of the first ciphertext. Correspondingly, in step S305, the IoT platform decrypts the second ciphertext using the third private key PRI_C. Among them, the third public key PUB_C and the third private key PRI_C are matched in pairs. In step S306, if the last n bits of the decrypted result of the second ciphertext are equal to the first random number, it is considered that the decrypted result of the second ciphertext matches the first random number, and the decrypted result of the second ciphertext is considered to be the same as the second random number.

[0220] When the decryption result of the second ciphertext matches the first random number, it means that the private key used by the device terminal and the private key used by the IoT platform are both safe, that is, the terminal device identity authentication is successful. In this case, the IoT platform uses the decryption result of the second ciphertext (that is, the second random number) as the negotiation key.

[0221] In some embodiments, a certificate issuance process is also included before step S301. Fig.10 is a schematic diagram of a certificate issuance process provided in some embodiments of the present disclosure, Fig.10 The certificate issuance process shown is applied to the IoT platform, such as Fig.10 As shown, the certificate issuance process includes the following steps S300a~S300c.

[0222] S300a. The Internet of Things platform receives and stores the second public key certificate CER_B sent by the authentication server; wherein the second public key certificate CER_B records the second public key PUB_B of the authentication server.

[0223] S300b. The Internet of Things platform generates a third public key PUB_C and a third private key PRI_C that are matched in pair.

[0224] The order of steps S300a and S300b is not particularly limited.

[0225] S300c, the Internet of Things platform sends the third public key PUB_C to the authentication server, so that the authentication server can use the second private key PRI_B to sign the third public key PUB_C and generate a third public key certificate CER_C; wherein the second public key PUB_B and the second private key PRI_B are matched in pairs. After the authentication server generates the third public key certificate CER_C, it can send the third public key certificate CER_C to the terminal device, so that the terminal device can extract the third public key PUB_C to encrypt the second random number during the identity authentication process.

[0226] The information publishing method of the information publishing system is explained below in conjunction with the accompanying drawings. The information publishing system includes: terminal equipment, authentication server, Internet of Things platform and information issuing device, and the information publishing method includes: certificate issuance process, identity authentication process, and information issuing process. Fig.11 This is a schematic diagram of the certificate issuance process of the information publishing system provided in some embodiments of the present disclosure. Fig.12 This is a schematic diagram of the identity authentication process of the information publishing system provided in some embodiments of the present disclosure. Fig.13 Schematic diagram of the information distribution process of the information distribution system provided in some embodiments of the present disclosure. Fig.11 As shown, the certificate issuance process includes the following steps S401 to S405:

[0227] S401, the terminal device generates a first public key PUB_A and a first private key PRI_A that are matched in pair, the authentication server generates a second private key PRI_B and a second public key certificate CER_B; the Internet of Things platform generates a third public key PUB_C and a third private key PRI_C that are matched in pair; the information sending device generates a fourth public key PUB_D and a fourth private key PRI_D that are matched in pair.

[0228] S402. The terminal device submits the first public key PUB_A to the authentication server. The authentication server signs the first public key PUB_A using the second private key PRI_B, generates a first public key certificate CER_A for the terminal device, and sends the first public key certificate CER_A to the terminal device.

[0229] S403. The authentication server sends the second public key certificate CER_B to the Internet of Things platform.

[0230] S404, the Internet of Things platform submits the third public key PUB_C to the authentication server, and the authentication server signs the third public key PUB_C using the second private key PRI_B, generates the third public key certificate CER_C of the Internet of Things platform, and sends the third public key certificate CER_C to the terminal device. In an example, the authentication server can also send the third public key certificate CER_C to the Internet of Things platform.

[0231] S405. The information sending device submits the fourth public key PUB_D to the authentication server. The authentication server signs the fourth public key PUB_D using the second private key PRI_B, generates the fourth public key certificate CER_D of the information sending device, and sends the fourth public key certificate CER_D to the information sending device.

[0232] After the certificate issuance process is completed, the terminal device stores: the first private key PRI_A, the first public key certificate CER_A of the terminal device, and the third public key certificate CER_C of the Internet of Things. The authentication server stores: the second private key PRI_B and the second public key certificate CER_B of the authentication server. The Internet of Things platform stores: the third private key PRI_C, the third public key certificate CER_C of the Internet of Things platform, and the second public key certificate CER_B of the authentication server. The information delivery device stores: the fourth private key PRI_D and the fourth public key certificate CER_D.

[0233] like Fig.12 As shown, the identity authentication process includes the following steps S501 to S514.

[0234] S501. The terminal device submits the first public key certificate CER_A to the Internet of Things platform; the information issuing device submits the fourth public key certificate CER_D to the Internet of Things platform.

[0235] S502. The Internet of Things platform responds to the first public key certificate CER_A and verifies the legitimacy of the first public key certificate CER_A, that is, uses the second public key certificate CER_B to verify the signature of the first public key certificate CER_A. If the signature verification is successful, it indicates that the first public key certificate CER_A is legal (that is, it indicates that the first public key certificate CER_A belongs to the digital certificate issued by the authentication server), and the first public key PUB_A is extracted from the first public key certificate CER_A. In addition, the Internet of Things platform responds to the fourth public key certificate CER_D and verifies the legitimacy of the fourth public key certificate CER_D, that is, uses the second public key certificate CER_B to verify the signature of the fourth public key certificate CER_D. If the signature verification is successful, it indicates that the fourth public key certificate CER_D is legal (that is, it indicates that the fourth public key certificate CER_D belongs to the digital certificate issued by the authentication server), and the fourth public key PUB_D is extracted from the fourth public key certificate CER_D. If the signature verification of either the first public key certificate CER_A or the fourth public key certificate CER_D fails, the process ends.

[0236] S503. When both the first public key certificate CER_A and the fourth public key certificate CER_D are verified, the Internet of Things platform generates a first random number R_S, and encrypts the first random number R_S using the first public key PUB_A extracted in the above step to generate a first ciphertext [R_S].

[0237] S504. The IoT platform sends the first ciphertext [R_S] to the terminal device.

[0238] S505. The terminal device responds to the first ciphertext [R_S] sent by the Internet of Things platform, decrypts the first ciphertext [R_S] using the first private key PRI_A, and obtains the decryption result R_S' of the first ciphertext.

[0239] S506. The terminal device extracts the third public key PUB_C from the third public key certificate CER_C.

[0240] S507. The terminal device generates a third random number R_D, and concatenates the third random number R_D with the decryption result R_S' of the first ciphertext to obtain a second random number R_D|R_S'; encrypts the second random number R_D|R_S' using the third public key PUB_C to generate a second ciphertext [R_D|R_S'], and sends the second ciphertext [R_D|R_S'] to the Internet of Things platform.

[0241] S508. The IoT platform responds to the second ciphertext [R_D|R_S'] and uses the third private key PRI_C to decrypt the second ciphertext [R_D|R_S']. The decryption result of the second ciphertext is recorded as R_D0|R_S0; the IoT platform determines whether R_D0|R_S0 matches the first ciphertext R_S. Specifically, the IoT platform determines whether R_S0 is equal to the first ciphertext R_S. If they are equal, it is determined that the identity authentication of the terminal device is successful; otherwise, it is determined that the identity authentication fails and the process ends.

[0242] S509. The IoT platform uses the decryption result of the second ciphertext as the negotiation key, encrypts the negotiation key using the fourth public key PUB_D extracted in step S502, generates a key ciphertext, and sends the key ciphertext to the information sending device.

[0243] S510. The information issuing device responds to the secret key ciphertext sent by the Internet of Things platform, uses the fourth private key PRI_D to decrypt the information secret key ciphertext, and uses the decryption result as the negotiation key.

[0244] S511. The IoT platform generates an authentication success message, and encrypts the authentication success message through a negotiated key to generate an authentication message ciphertext.

[0245] S512. The IoT platform sends the encrypted message to the terminal device and the information distribution device.

[0246] S513. The terminal device responds to the authentication message ciphertext, uses the second random number as the negotiation key, and uses the negotiation key to decrypt the authentication message ciphertext to obtain an authentication success message.

[0247] S514: The information issuing device responds to the authentication message ciphertext and decrypts the authentication message ciphertext using the negotiated key determined in S510 to obtain an authentication success message. The information issuing device determines that the identity authentication of the terminal device is successful.

[0248] Through the above identity authentication process, the two-way identity authentication of the terminal device and the IoT platform, as well as the identity authentication of the IoT platform to the information issuing device can be completed, and the negotiation key can be determined at the same time. The negotiation key can be used for subsequent communications to provide credentials for the legitimacy of the identity of the terminal device and the information issuing device.

[0249] like Fig.13 As shown, the information delivery process includes the following steps:

[0250] S601. The information sending device encrypts the original data packet to be sent using the negotiated key to generate an encrypted data packet.

[0251] Specifically, the original data packet to be sent includes the original data of multiple images, and each image is divided into multiple first areas and multiple second areas. For example, the first area and the second area in each image are arranged in an array, and in each row and each column, the first area and the second area are arranged alternately. The position of the first area in the odd-numbered frame image is the same as the position of the second area in the even-numbered frame image, and the position of the second area in the odd-numbered frame image is the same as the position of the first area in the even-numbered frame image. The original data includes multiple first original data groups and multiple second original data groups, each first original data group includes the original image data of the first area, and each second original data group includes the original image data of the second area.

[0252] When encrypting the original data packet, the information sending device uses the negotiated key to encrypt the original image data of the second area of ​​each frame of the image, but does not encrypt the original image data of the first area, thereby obtaining the data to be decrypted for each frame of the image. The data to be decrypted of multiple frames of images constitute an encrypted data packet.

[0253] S602: The information delivery device processes the encrypted data packet based on a first preset algorithm (eg, SHA-256 algorithm) to generate a digital summary Sh1. The digital summary Sh1 is encrypted using a negotiated key and the AES-128 algorithm to generate a summary ciphertext Sh2.

[0254] S603, the information sending device sends the target information including the summary ciphertext Sh2 and the encrypted data packet to the terminal device.

[0255] S604. The terminal device processes the encrypted data packet in the target information using a first preset algorithm in response to the target information to obtain a first processing result Sh3.

[0256] S605: The terminal device decrypts the digest ciphertext Sh2 in the target information using the negotiated key and the AES-128 algorithm to obtain a second processing result Sh1'.

[0257] S606. The terminal device compares the second processing result Sh1' with the first processing result Sh3. If the two are the same, it is determined that the target information has not been tampered with during transmission, and step S607 is executed; otherwise, it is determined that the target information has been tampered with during transmission.

[0258] S607, the terminal device decrypts the encrypted data packet using the negotiated key. Specifically, the encrypted data packet includes the data to be decrypted of each frame of the image, and the data to be decrypted includes the original image data of each first area in the image and the encrypted data of the second area; the terminal device can use the negotiated data to decrypt the encrypted data of the second area in each frame of the image, thereby obtaining the original data of each frame of the image.

[0259] Fig.14 Schematic diagram of an information delivery device provided in some embodiments of the present disclosure, such as Fig.14 As shown, the information sending device includes: a key acquisition module 110, a data encryption module 120, a digest generation module 130, a digest encryption module 140 and a sending module 150.

[0260] The key acquisition module 110 is configured to, in response to the key ciphertext sent by the IoT platform, decrypt the key ciphertext to obtain the negotiated key; wherein the key ciphertext is generated when the IoT platform successfully authenticates the identity of the terminal device.

[0261] The data encryption module 120 is configured to encrypt the original data packet to be sent using the negotiated key to generate an encrypted data packet; the original data packet includes the original data of at least one data file, and the original data of the data file includes at least one first original data group and at least one second original data group; the encrypted data packet includes: the first original data group of each of the data files, and the encrypted data group generated by encrypting the second original data group using the negotiated key.

[0262] The summary generation module 130 is configured to process the encrypted data packet using a first preset algorithm to generate a digital summary.

[0263] The digest encryption module 140 is configured to encrypt the digital digest based on the negotiated key to generate a digest ciphertext.

[0264] The sending module 150 is configured to send the target information including the summary ciphertext and the encrypted data packet to the terminal device, so that the terminal device can obtain the data in the original data packet according to the target information and the negotiated key.

[0265] The functions of each module are described in the above description of the information release method and will not be repeated here.

[0266] Fig.15 is a schematic diagram of a terminal device provided in some embodiments of the present disclosure, such as Fig.15 As shown, the terminal device includes: a key determination module 210, a first processing module 220, a second processing module 230, and a decryption module 240.

[0267] Among them, the key determination module 210 is configured to determine the negotiated key when the identity authentication of the terminal device is successful.

[0268] The first processing module 220 is configured to, in response to the target information sent by the information sending device, process the encrypted data packet in the target information using a first preset algorithm to obtain a first processing result S3.

[0269] The second processing module 230 is configured to decrypt the digest ciphertext in the target information using the negotiated key to obtain a second processing result.

[0270] The decryption module 240 is configured to determine whether the first processing result is the same as the second processing result, and if they are the same, decrypt the encrypted data packet using the negotiated key to obtain the original data of each data file.

[0271] Wherein, the encrypted data packet includes data to be decrypted of at least one data file, and the data to be decrypted includes: at least one first data group and at least one second data group; the original data of the data file includes: a first original data group that is the same as each first data group, and a second original data group obtained by decrypting each second data group using the negotiated key.

[0272] The functions of each module are described in the above description of the information release method and will not be repeated here.

[0273] Fig.16 A schematic diagram of an Internet of Things platform provided in some embodiments of the present disclosure, such as Fig.16 As shown, the Internet of Things platform includes: a ciphertext generation module 310 and a ciphertext sending module 320.

[0274] The ciphertext generation module 310 is configured to, when it is determined that the IoT platform has successfully authenticated the identity of the terminal device, determine the negotiation key; and encrypt the negotiation key to generate a key ciphertext.

[0275] The ciphertext sending module 320 is configured to send the key ciphertext to the information sending device, so that the information sending device can decrypt the key ciphertext to obtain the negotiated key.

[0276] The functions of each module are described in the above description of the information release method and will not be repeated here.

[0277] Fig.17 is a schematic diagram of an information publishing system provided in some embodiments of the present disclosure, such as Fig.17 As shown, the information publishing system includes: the above-mentioned information issuing device 100, the above-mentioned terminal device 200 and the above-mentioned Internet of Things platform 300.

[0278] In some embodiments, the information publishing system further includes: an authentication server 400. The authentication server 400 is configured to generate a second private key and a second public key certificate, wherein the second public key certificate records a second public key that matches the second private key in pair; in response to the first public key sent by the terminal device, use the second private key to sign the first public key to generate a first public key certificate; send the first public key certificate to the terminal device; send the second public key certificate to the Internet of Things platform; in response to the third public key sent by the Internet of Things platform, use the second private key to sign the third public key to generate a third public key certificate, and send the third public key certificate to the terminal device; in response to the fourth public key sent by the information sending device, use the second private key to sign the fourth public key to generate a fourth public key certificate, and send the fourth public key certificate to the information sending device.

[0279] The present disclosure also provides an electronic device, comprising:

[0280] one or more processors;

[0281] A memory stores one or more programs, and when the one or more programs are executed by one or more processors, the one or more processors implement any one of the above-mentioned information publishing methods.

[0282] The electronic device also includes one or more I / O interfaces connected between the processor and the memory and configured to implement information interaction between the processor and the memory.

[0283] Among them, the processor is a device with data processing capabilities, including but not limited to the central processing unit (CPU) and the like; the memory is a device with data storage capabilities, including but not limited to random access memory (RAM, more specifically SDRAM, DDR, etc.), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory (FLASH); the I / O interface (read-write interface) is connected between the processor and the memory, and can realize information exchange between the processor and the memory, including but not limited to the data bus (Bus) and the like.

[0284] In some embodiments, the processor, memory, and I / O interface are connected to each other and, in turn, to other components of the computing device via a bus.

[0285] This embodiment also provides a computer-readable medium on which a computer program is stored. When the program is executed by a processor, the information publishing method provided by this embodiment is implemented. To avoid repeated description, the specific steps of the method are not repeated here.

[0286] It will be appreciated by those skilled in the art that all or some of the steps, systems, and functional modules / units in the methods disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. In hardware implementations, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed by several physical components in cooperation. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-transitory medium) and a communication medium (or temporary medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer. In addition, it is well known to those skilled in the art that communication media typically contain computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.

[0287] It should be noted that, in this article, the terms "include", "comprises" or any other variations 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, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0288] It is to be understood that the above embodiments are merely exemplary embodiments used to illustrate the principles of the present disclosure, but the present disclosure is not limited thereto. For those of ordinary skill in the art, various modifications and improvements can be made without departing from the spirit and substance of the present disclosure, and these modifications and improvements are also considered to be within the scope of protection of the present disclosure.

Claims

1. An information publishing method, applied to an information issuing device, wherein: The method comprises: In response to the secret key ciphertext sent by the Internet of Things platform, the secret key ciphertext is decrypted to obtain a negotiated secret key; wherein the secret key ciphertext is generated when the Internet of Things platform successfully authenticates the identity of the terminal device; The original data packet to be sent is encrypted using the negotiated secret key to generate an encrypted data packet; wherein the original data packet includes original data of at least one data file, and the original data of the data file includes at least one first original data group and at least one second original data group; the encrypted data packet includes: the first original data group of each data file, and an encrypted data group generated by encrypting the second original data group using the negotiated secret key; Processing the encrypted data packet based on a first preset algorithm and the negotiated key to generate a digest ciphertext; The target information including the summary ciphertext and the encrypted data packet is sent to the terminal device, so that the terminal device can obtain the data in the original data packet according to the target information and the negotiated key.

2. The information publishing method according to claim 1, wherein: The step of processing the encrypted data packet based on the first preset algorithm and the negotiated key specifically includes: Processing the encrypted data packet based on the first preset algorithm to generate a digital summary; The digital summary is encrypted using the negotiated key to generate the summary ciphertext.

3. The information publishing method according to claim 1, wherein: The data file is an image, the image includes a plurality of first regions and a plurality of second regions, the plurality of first regions and the plurality of second regions are arranged in an array, and in each row and each column of the array, the first regions and the second regions are arranged alternately; The first raw data set includes raw image data of the first area, and the second raw data set includes raw image data of the second area.

4. The information publishing method according to claim 2 or 3, wherein: The original data packet includes: original data of multiple frames of images, and in every two adjacent frames of images, the positions of the first area and the second area are complementary.

5. The information publishing method according to any one of claims 1 to 4, wherein: After the step of decrypting the key ciphertext in response to the key ciphertext sent by the Internet of Things platform, the method further includes: In response to the authentication message ciphertext sent by the Internet of Things platform, the authentication message ciphertext is decrypted using the negotiated key to obtain an authentication success message; The step of using the negotiated secret key to encrypt the original data packet to be sent is performed after obtaining the authentication success message.

6. The information publishing method according to any one of claims 1 to 5, wherein: Before the step of decrypting the key ciphertext in response to the key ciphertext sent by the Internet of Things platform, the method further includes: Submitting a fourth public key certificate to the Internet of Things platform so that the Internet of Things platform can verify the legitimacy of the fourth public key certificate; wherein the fourth public key of the information issuing device is recorded in the fourth public key certificate; The step of decrypting the key ciphertext specifically includes: The secret key ciphertext is decrypted using the fourth private key; wherein the fourth public key and the fourth private key are matched in pair and are both pre-generated by the information sending device.

7. The information publishing method according to claim 6, wherein: Before the step of submitting the fourth public key certificate to the Internet of Things platform, the method further includes: Generate a fourth private key and a fourth public key that match in pair; Sending the fourth public key to the authentication machine so that the authentication machine signs the fourth public key and generates a fourth public key certificate; Receive and store the fourth public key certificate sent by the authentication integrated machine.

8. An information publishing method, applied to a terminal device, wherein: The method comprises: If the identity authentication of the terminal device is successful, determining the negotiated key; In response to the target information sent by the information sending device, the encrypted data packet in the target information is processed using a first preset algorithm to obtain a first processing result; Decrypting the digest ciphertext in the target information using the negotiated key to obtain a second processing result; Determine whether the first processing result is the same as the second processing result, and if they are the same, decrypt the encrypted data packet using the negotiated key to obtain original data of each data file in the original data packet; Wherein, the encrypted data packet includes data to be decrypted of at least one data file, and the data to be decrypted includes: at least one first data group and at least one second data group; the original data of the data file includes: a first original data group that is the same as each first data group, and a second original data group obtained by decrypting each second data group using the negotiated key.

9. The information publishing method according to claim 8, wherein: The method further comprises: Submitting the first public key certificate to the Internet of Things platform, so that the Internet of Things platform can extract the first public key of the terminal device from the first public key certificate if the first public key certificate is determined to be legitimate; In response to a first ciphertext sent by the Internet of Things platform, decrypt the first ciphertext; wherein the first ciphertext is generated by the Internet of Things platform by encrypting a first random number using the first public key, and the first random number is data randomly generated by the Internet of Things platform using a server cryptographic machine; Generate a second ciphertext based on the decryption result of the first ciphertext; The second ciphertext is sent to the Internet of Things platform so that the Internet of Things platform can decrypt the second ciphertext and authenticate the identity of the terminal device based on the decryption result and the first ciphertext.

10. The information publishing method according to claim 9, wherein: The step of generating the second ciphertext based on the decryption result of the first ciphertext specifically includes: generating a third random number; Concatenate the first decryption result and the third random number in series to generate a second random number; The second random number is encrypted to generate the second ciphertext.

11. The information publishing method according to claim 10, wherein: The step of encrypting the second random number specifically includes: Extracting the third public key of the Internet of Things platform from the pre-obtained third public key certificate; The second random number is encrypted using the third public key.

12. The information publishing method according to claim 10, wherein: The step of determining the negotiation key when the identity authentication of the terminal device is successful specifically includes: responding to the authentication message ciphertext sent by the Internet of Things platform, using the second random number as the negotiation key; The method further includes: using the negotiated secret key to decrypt the authentication message ciphertext to obtain an authentication success message.

13. The information publishing method according to claim 9, wherein: Before the step of submitting the first public key certificate to the Internet of Things platform, the method further includes: Generate a first public key and a first private key that match in pair; Submitting the first public key to an authentication server, so that the authentication server signs the first public key and generates a first public key certificate; The first public key certificate and the third public key certificate sent by the authentication server are received and stored, wherein the third public key certificate records the third public key of the Internet of Things platform.

14. An information publishing method, applied to an Internet of Things platform, comprising: When it is determined that the identity authentication of the terminal device is successful, determining the negotiated key; Encrypting the negotiated key to generate a key ciphertext; The secret key ciphertext is sent to the information sending device so that the information sending device can decrypt the secret key ciphertext to obtain the negotiated secret key.

15. The information publishing method according to claim 14, wherein: The step of encrypting the negotiated key specifically includes: Extracting the fourth public key of the information sending device from the fourth public key certificate obtained in advance; The negotiated secret key is encrypted using the fourth public key.

16. The information publishing method according to claim 14, wherein: After the step of sending the secret key ciphertext to the information sending device, the method further includes: Generate an authentication success message; Encrypting the authentication success message using the negotiated secret key to generate an authentication message ciphertext; The authentication message ciphertext is sent to the terminal device and the information sending device.

17. The information publishing method according to any one of claims 14 to 16, wherein: The method further comprises: In response to the first public key certificate sent by the terminal device, based on the second public key certificate pre-sent by the authentication server, verify the legitimacy of the first public key certificate; and, in response to the fourth public key certificate sent by the information issuing device, based on the second public key certificate, verify the legitimacy of the fourth public key certificate; When both the first public key certificate and the fourth public key certificate are verified, extracting the first public key of the terminal device from the first public key certificate, and extracting the fourth public key of the information issuing device from the fourth public key certificate; Generate a first random number using a server cryptographic machine, and encrypt the first random number using the first public key to generate a first ciphertext; Sending the first ciphertext to the terminal device, so that the terminal device decrypts the first ciphertext and generates a second ciphertext based on the decryption result of the first ciphertext; In response to the second ciphertext, decrypting the second ciphertext; The decryption result of the second ciphertext is matched with the first random number, and if the match is successful, it is determined that the identity authentication of the terminal device is successful.

18. The information publishing method according to claim 17, wherein: The step of determining the negotiation key when it is determined that the identity authentication of the terminal device is successful specifically includes: When it is determined that the identity authentication of the terminal device is successful, the decryption result of the second ciphertext is used as the negotiation key.

19. The information publishing method according to claim 17, wherein: The second ciphertext is generated by the terminal device encrypting a second random number using the third public key of the Internet of Things platform, the second random number is data generated by concatenating the decryption result of the first ciphertext by the terminal device and the third random number, and the third random number is data randomly generated by the terminal device; The step of decrypting the second ciphertext specifically includes: The second ciphertext is decrypted using a third private key, wherein the third public key and the third private key are matched in pair.

20. The information publishing method according to claim 17, wherein: The step of verifying the legitimacy of the first public key certificate based on the second public key certificate pre-sent by the authentication server specifically includes: Extracting the second public key of the authentication server from the second public key certificate sent in advance by the authentication server; Using the second public key to verify the signature of the first public key certificate; If the signature verification of the first public key certificate passes, it is determined that the first public key certificate is legal; The step of verifying the legitimacy of the fourth public key certificate based on the second public key certificate specifically includes: Extracting the second public key of the authentication server from the second public key certificate sent in advance by the authentication server; The fourth public key certificate is verified using the second public key; if the fourth public key certificate passes the verification, it is determined that the fourth public key certificate is legal.

21. The information publishing method according to claim 17, wherein: Before the step of verifying the legitimacy of the first public key certificate, the method further comprises: Receiving and storing a second public key certificate sent by the authentication server; wherein the public key certificate records the second public key of the authentication server; Generate a third public key and a third private key that match in pair; Sending the third public key to the authentication server, so that the authentication server signs the third public key using the second private key to generate a third public key certificate; The second public key and the second private key are matched in pair.

22. An information sending device, wherein: include: The key acquisition module is configured to, in response to the key ciphertext sent by the Internet of Things platform, decrypt the key ciphertext to obtain the negotiated key; wherein the key ciphertext is generated when the Internet of Things platform successfully authenticates the identity of the terminal device; The data encryption module is configured to encrypt the original data packet to be sent using the negotiated secret key to generate an encrypted data packet; the original data packet includes original data of at least one data file, and the original data of the data file includes at least one first original data group and at least one second original data group; the encrypted data packet includes: a first original data group of each data file, and an encrypted data group generated by encrypting the second original data group using the negotiated secret key; A summary generation module is configured to process the encrypted data packet using a first preset algorithm to generate a digital summary; A summary encryption module is configured to encrypt the digital summary based on the negotiated key to generate a summary ciphertext; The sending module is configured to send the target information including the summary ciphertext and the encrypted data packet to the terminal device, so that the terminal device can obtain the data in the original data packet according to the target information and the negotiated key.

23. A terminal device, comprising: A key determination module, configured to determine a negotiated key when the identity authentication of the terminal device is successful; A first processing module is configured to, in response to the target information sent by the information sending device, process the encrypted data packet in the target information using a first preset algorithm to obtain a first processing result S3; A second processing module is configured to decrypt the digest ciphertext in the target information using the negotiated key to obtain a second processing result; a decryption module configured to determine whether the first processing result is the same as the second processing result, and if they are the same, decrypt the encrypted data packet using the negotiated key to obtain the original data of each data file; Wherein, the encrypted data packet includes data to be decrypted of at least one data file, and the data to be decrypted includes: at least one first data group and at least one second data group; the original data of the data file includes: a first original data group that is the same as each first data group, and a second original data group obtained by decrypting each second data group using the negotiated key.

24. An Internet of Things platform, wherein: include: The ciphertext generation module is configured to determine a negotiated secret key when it is determined that the IoT platform successfully authenticates the terminal device; And, encrypting the negotiated secret key to generate a secret key ciphertext; The ciphertext sending module is configured to send the key ciphertext to the information sending device, so that the information sending device can decrypt the key ciphertext to obtain the negotiated key.

25. An information publishing system, comprising: The information sending device as described in claim 22, the terminal equipment as described in claim 23, and the Internet of Things platform as described in claim 24.

26. The information publishing system according to claim 25, wherein: The information publishing system also includes: The authentication server is configured to generate a second private key and a second public key certificate, wherein the second public key certificate records a second public key that matches the second private key in pair; in response to the first public key sent by the terminal device, use the second private key to sign the first public key to generate a first public key certificate; send the first public key certificate to the terminal device; send the second public key certificate to the Internet of Things platform; in response to the third public key sent by the Internet of Things platform, use the second private key to sign the third public key to generate a third public key certificate, and send the third public key certificate to the terminal device; in response to the fourth public key sent by the information sending device, use the second private key to sign the fourth public key to generate a fourth public key certificate, and send the fourth public key certificate to the information sending device.

27. An electronic device, comprising: one or more processors; A storage device having one or more programs stored thereon, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 21.

28. A computer readable medium having a computer program stored thereon, wherein when the program is executed by a processor, the method according to any one of claims 1 to 21 is implemented.