Information interaction method, device and system

The key pair of the access device is directly generated and delivered through the cloud platform, which solves the problem of low efficiency of identity authentication of the access device, improves the authentication speed and security, and reduces the risk of untimely update of the public key.

CN113204757BActive Publication Date: 2024-10-29BEIJING WONDERSOFT TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202110484907.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-04-30
Publication Date
2024-10-29
Estimated Expiration
2041-04-30

AI Technical Summary

Technical Problem

In industrial Internet scenarios, the identity authentication efficiency of access devices is low, leading to security risks and authentication efficiency issues.

Method used

Obtain the identity of the access device through the cloud platform, generate and directly deliver the private key and public key as a key pair, reducing the step-by-step forwarding process and improving the speed of identity authentication.

Benefits of technology

It improves the identity authentication efficiency of access devices, reduces security risks caused by untimely public key updates, and enhances the security capabilities of external system access in industrial scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113204757B_ABST
    Figure CN113204757B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention provides an information interaction method, device and system, and the method applied to the cloud platform includes: obtaining the identity of the access device of the cloud platform; generating a first private key according to the identity; generating a first public key according to the first private key; sending the first private key and the first public key as the key pair of the access device to the access device. Therefore, the embodiment of the present application can improve the authentication efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of industrial Internet technology, and in particular to an information interaction method, device and system. Background Art

[0002] As a product of the deep integration of new-generation information technology and manufacturing, the Industrial Internet, through the comprehensive interconnection of people, machines and things, builds a new production and service system that is fully connected with all factors, the entire industrial chain and the entire value chain. It is a way to achieve digital transformation and a key force in realizing the transformation of new and old kinetic energy.

[0003] The Industrial Internet is the carrier and external manifestation of the digital transformation of industry. The core principle of the Industrial Internet is that data drives the interconnection and coordination of physical systems and digital space. Data is the soul of the Industrial Internet, showing the characteristics of north-south flow from the device layer, edge layer to the enterprise layer and industry layer from bottom to top, as well as east-west flow within each layer. Among them, in the process of network interconnection and system intercommunication, while data flow is accelerated, several security risks are also generated.

[0004] In the industrial Internet industry, upstream and downstream companies interact with the industrial Internet platform through business systems and mobile applications (APPs). The industrial Internet platform's identity authentication of these business systems and mobile apps has become a necessary condition for ensuring the security of the industrial Internet.

[0005] In the current industrial Internet scenario, the authentication method for access devices (including business systems, devices, and mobile apps to be connected to the industrial Internet platform) to access the industrial Internet platform is based on username and password. Figure 1 As shown, the authentication method based on username and password is specifically described in steps 101 to 106 as follows:

[0006] Step 101: The access device obtains a user name and password from a security authentication system (i.e., a system responsible for security authentication in the intranet);

[0007] Step 102: The access device sends an API request to the security authentication system with the username and password to access the intranet device;

[0008] Step 103: The security authentication system verifies the user name and password;

[0009] Step 104: After the username and password are verified, the security authentication system sends an API request to the intranet device;

[0010] Step 105, the intranet device executes the API;

[0011] Step 106: The intranet device returns data to the access device, that is, returns the result to the access device, and closes the connection.

[0012] Among them, in the process of the aforementioned steps 101 to 103, the attacker can try possible usernames and passwords through multiple attempts, thereby obtaining the usernames and passwords of legitimate users through a large number of attempts, and using the illegally obtained usernames and passwords to connect to the Industrial Internet platform and illegally use data; the attacker can also obtain the usernames and passwords of legitimate users through network attack interception and theft, and use the legitimate user's identity to connect to the Industrial Internet platform and illegally use data. It can be seen that the authentication method based on usernames and passwords has security risks such as easy attempts and impersonation.

[0013] In order to solve the security problems caused by traditional user names and passwords, businesses generally use the public key cryptography system (PKI) to issue identity certificates for access devices. When access devices connect to the industrial Internet platform, identity certificates are used for identity authentication to ensure the legitimacy of the identity of external access systems. Figure 2 As shown, the certificate-based public key cryptographic authentication method specifically includes steps 201 to 206 as described below:

[0014] Step 201: The access device obtains a login identity certificate from the certificate issuing authority (CA) of the industrial Internet cloud platform;

[0015] Step 202: The security authentication system synchronizes the login identity certificate of the access device from the CA;

[0016] Step 203: The access device sends an API request to the security authentication system with the login identity certificate to access the internal device;

[0017] Step 204: The security authentication system verifies the validity of the login identity certificate;

[0018] Step 205: After the security authentication system verifies the login identity certificate, it sends an API request to the intranet device;

[0019] Step 206: The intranet device executes the API;

[0020] Step 207: The intranet device returns data to the access device, that is, returns the result to the access device, and closes the connection.

[0021] Among them, in the certificate-based public key password authentication method, PKI will update the login identity certificate from time to time to reduce the security risks caused by the login identity certificate being stolen. In addition, when the user holding the login identity certificate suspects that the login identity certificate has been stolen, he can notify the CA in the PKI to apply for the cancellation of the original login identity certificate and the issuance of a new login identity certificate, thereby reducing the security risks caused by certificate leakage to a certain extent.

[0022] From the above, we can see that the certificate-based public key password authentication method can, to a certain extent, solve the security risks such as attempts and impersonation brought about by the authentication method based on username and password.

[0023] However, in the prior art, when CA issues certificates to access devices, they are issued step by step, for example, according to the process of group-factory-workshop-production line-equipment. It takes a lot of time to issue such a certificate to the access device, resulting in low efficiency in identity authentication of the access device. Summary of the invention

[0024] The present invention provides an information interaction method, device and system to solve the problem of low efficiency of identity authentication of access equipment in the prior art.

[0025] In a first aspect, an embodiment of the present invention provides an information interaction method, which is applied to a cloud platform, and the method includes:

[0026] Obtain the identity of the access device of the cloud platform;

[0027] Generate a first private key according to the identity identifier;

[0028] Generate a first public key according to the first private key;

[0029] The first private key and the first public key are sent to the access device as a key pair of the access device.

[0030] In a second aspect, an embodiment of the present application provides an information interaction method, which is applied to an access device of a cloud platform, and the method includes:

[0031] A first private key and a first public key sent by the cloud platform are received and stored as a key pair of the access device.

[0032] In a third aspect, an embodiment of the present invention provides an information interaction device, which is applied to a cloud platform, and the device includes:

[0033] An identification acquisition module is used to obtain the identity of the access device of the cloud platform;

[0034] A first key generation module, used to generate a first private key according to the identity identifier;

[0035] A second key generation module, used to generate a first public key according to the first private key;

[0036] A first sending module is configured to send the first private key and the first public key as a key pair of the access device to the access device.

[0037] In a fourth aspect, an embodiment of the present invention provides an information interaction device, which is applied to an access device of a cloud platform, and the device includes:

[0038] The first receiving module is used to receive a first private key and a first public key sent by the cloud platform to store them as a key pair of the access device.

[0039] In a fifth aspect, an embodiment of the present application provides a cloud platform, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the information interaction method described in the first aspect above.

[0040] In a sixth aspect, an embodiment of the present application provides an access device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the information interaction method described in the second aspect above.

[0041] In a seventh aspect, an embodiment of the present application provides an information interaction system, including the above-mentioned information interaction device applied to the cloud platform and the above-mentioned information interaction device applied to the access device.

[0042] In an eighth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned information interaction methods are implemented.

[0043] Compared with the prior art, the present invention has the following advantages:

[0044] In an embodiment of the present invention, the cloud platform obtains the identity of the access device, thereby generating a first private key based on the identity, generating a first public key based on the first private key, and then sending the first private key and the first public key as the key pair of the access device to the access device. It can be seen that in an embodiment of the present invention, the cloud platform generates the key pair of the access device and directly sends it to the corresponding access device instead of forwarding it step by step, so that the access device can quickly receive its own key pair, thereby improving the speed of identity authentication of the receiving device, that is, improving the identity authentication efficiency of the access device. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] Figure 1 A flowchart of an authentication method based on a username and password in the prior art;

[0046] Figure 2 A schematic diagram of a process flow of a certificate-based public key cryptographic authentication method in the prior art;

[0047] Figure 3A flowchart showing an information interaction method applied to a cloud platform provided by an embodiment of the present invention;

[0048] Figure 4 A schematic diagram showing a process of generating a shared key in an embodiment of the present invention;

[0049] Figure 5 A flowchart showing an information interaction method for an access device applied to a cloud platform provided by an embodiment of the present invention;

[0050] Figure 6 A block diagram showing an information interaction device applied to a cloud platform provided by an embodiment of the present invention;

[0051] Figure 7 A block diagram showing an information interaction device for access devices applied to a cloud platform provided by an embodiment of the present invention;

[0052] Figure 8 A schematic diagram showing an interaction mode in an industrial Internet system according to an embodiment of the present invention;

[0053] Fig. 9 A block diagram showing a specific implementation of the information interaction system provided by an embodiment of the present invention;

[0054] Fig.10 A block diagram showing the working system of a cigarette factory in an embodiment of the present invention. DETAILED DESCRIPTION

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

[0056] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here. In addition, the "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally represents that the objects associated with each other are in an "or" relationship.

[0057] In a first aspect, an embodiment of the present application provides an information interaction method, which is applied to a cloud platform. Figure 3 , the method may include the following steps:

[0058] Step 301: Obtain the identity of the access device of the cloud platform.

[0059] Among them, the access device may include a terminal, a mobile application (APP), and a business system that accesses the cloud platform.

[0060] Step 302: Generate a first private key according to the identity identifier.

[0061] Optionally, the identity identifier is a number; and generating the first private key according to the identity identifier includes:

[0062] According to the first preset formula y=a ID_A , calculate the target parameter y, where the target parameter is one of the elements of the first cyclic group, a is the generator of the first cyclic group, and ID_A is the identity identifier;

[0063] Taking the sum of the target parameter and the second private key as the first private key;

[0064] The second private key is a private key in a predetermined key pair of the cloud platform.

[0065] That is, after the cloud platform obtains the identity ID_A of the access device, it calculates $t_1=H_1(ID_A, N)+ks on the finite field F(N), where N is the field set, and the calculated $t_1 is the first private key. Among them, "H_1(ID_A, N)" means that on the finite field F(N), H_1=a ID_A , H_1 is an element of the first cyclic group with a as the generator, and ks represents the second private key.

[0066] The target parameter H_1 is one of the elements in the first cyclic group with a as the generator, and H_1 = a ID _A , ID_A is known, then the target parameter H_1 can be solved according to these known conditions, and then the target parameter H_1 is summed with the second private key ks to obtain the first private key $t_1.

[0067] Step 303: Generate a first public key according to the first private key.

[0068] Optionally, generating a first public key according to the first private key includes:

[0069] According to the second preset formula P pub-s1 =b $t_1 , calculate the first public key P pub-s1 , wherein the first public key is one of the elements of the second cyclic group, b is the generator of the second cyclic group, and $t_1 is the first private key.

[0070] That is, the first public key P pub-s1is an element of the second cyclic group with b as the generator, and P pub-s1 =b $t_1 , $t_1 is known, then the first public key P can be obtained based on these known conditions. pub-s1 .

[0071] Step 304: Send the first private key and the first public key as a key pair of the access device to the access device.

[0072] Optionally, when the access device accesses the cloud platform for the first time, the cloud platform will be triggered to execute the aforementioned steps 301 to 304, that is, a key pair is generated for the access device and issued to the access device.

[0073] The key pair is used to encrypt data and perform identity authentication. Therefore, in order to ensure the transmission security of the key pair, the first private key and the first public key may be encrypted.

[0074] Therefore, optionally, sending the first private key and the first public key as a key pair of the access device to the access device includes:

[0075] The first private key and the first public key are encrypted by a shared key and a symmetric encryption algorithm to obtain a fifth ciphertext;

[0076] Sending the fifth ciphertext to the access device;

[0077] The shared key is generated by the cloud platform and the access device through a key exchange protocol.

[0078] That is, the cloud platform and the access device generate a shared key through a key exchange protocol, so that the cloud platform can use the shared key to encrypt the first private key and the first public key, and the access device can use the shared key to decrypt the encrypted first private key and the first public key.

[0079] The process of the cloud platform and access device generating a shared key through a key exchange protocol is as follows: Figure 4 As shown, it includes steps 1.1 to 1.4 as described below:

[0080] Step 1.1, the cloud platform initiates a key exchange request;

[0081] Step 1.2: The cloud platform generates a prime number P and an integer G for key negotiation and sends them to the other party (i.e., the access device);

[0082] Step 2.1: The cloud platform runs the password generator to generate the seed key ka=K a ;

[0083] Step 2.2: The access device runs the seed key generator to generate the seed key kb=K b ;

[0084] Step 3.1: The cloud platform runs the subkey generation function: f(a) = G ka mod P, the result is sent to the other party (i.e. the access device);

[0085] Step 3.2: The access device runs the subkey generation function: f(b) = G kb mod P, the result is sent to the other party (i.e., the cloud platform);

[0086] Step 4.1: The cloud platform runs the shared key generation function: f(a) = (f(b)) f(a) mod P to obtain the shared key.

[0087] Step 4.2: The access device runs the shared key generation function: f(b) = (f(a)) f(b) mod P to obtain the shared key.

[0088] From the above, it can be seen that in the embodiment of the present invention, the identity of the access device is obtained through the cloud platform, so as to generate a first private key according to the identity, generate a first public key according to the first private key, and then send the first private key and the first public key as the key pair of the access device to the access device. It can be seen that in the embodiment of the present invention, the key pair of the access device is generated by the cloud platform and directly sent to the corresponding access device, rather than forwarding it step by step, so that the access device can quickly receive its own key pair, and then the speed of identity authentication of the receiving device can be improved, that is, the efficiency of identity authentication of the access device is improved.

[0089] In addition, in the existing technology, the business systems and mobile apps that the industrial Internet platform needs to connect to have grown from dozens to more than a thousand, and will continue to grow. In addition, in the future, the external entities that the industrial Internet platform needs to connect to will have to add tens of thousands of sensors in addition to business systems and mobile apps. It can be seen that based on the certificate-based public key cryptographic authentication method, the identity authentication center needs to store, update, revoke, and generate tens of thousands, hundreds of thousands, and millions of identity authentications, so the PKI identity authentication center will be overwhelmed. That is, when the number of access devices is huge, the CA authentication center is overburdened and there is a problem of untimely public key updates.

[0090] In the embodiment of the present invention, the cloud platform can autonomously generate a key pair for the access device and directly send it to the access device, so that the key pair of the access device can be updated in time, solving the real-time problem of public key update. That is, in the embodiment of the present invention, there is no need to synchronize the identity certificate from a third-party certification agency, and the cloud platform can autonomously generate the key pair of the access device, thereby solving the problem of hacker attacks caused by untimely identity certificate updates and greatly improving the security protection capability of external system access in industrial scenarios.

[0091] Optionally, the method further includes:

[0092] Generate a second private key and a second public key as a key pair of the cloud platform, and send the second public key to the access device.

[0093] That is, in the embodiment of the present invention, the cloud platform can also generate its own key pair and send the public key in the key pair to the access device.

[0094] Optionally, generating the second private key and the second public key includes:

[0095] Generate a second random number as the second private key;

[0096] According to the third preset formula P pub-s2 =c ks , calculate the second public key P pub-s2 , wherein the second public key is one of the elements of the third cyclic group, c is the generator of the third cyclic group, and ks is the second private key.

[0097] Among them, the second public key P pub-s2 is an element of the third cyclic group with c as a generator, and P pub-s2 =c ks , ks is known, then the second public key P can be obtained based on these known conditions. pub-s2 .

[0098] In addition, the second random number is a number randomly selected from 1 to n.

[0099] Optionally, the method further includes:

[0100] Receiving an identity authentication request sent by the access device, wherein the identity authentication request carries a first ciphertext, wherein the first ciphertext is obtained by encrypting a first random number and an identity identifier of the access device using the first private key;

[0101] Decrypting the first ciphertext using the first public key to obtain the first random number and the identity of the access device;

[0102] In the case where the identity of the access device exists in a predetermined identity library, determining that the identity of the access device is qualified, and encrypting the first random number by using the second private key to obtain a second ciphertext;

[0103] The second ciphertext is sent to the access device, so that the access device decrypts the second ciphertext by using the second public key, and authenticates the identity of the cloud platform according to the random number obtained by decryption.

[0104] The first random number may be concatenated with the identity identifier of the access device, and then the concatenated data may be encrypted using the first private key to obtain the first password.

[0105] Optionally, the length of the first random number is 128 bits.

[0106] In addition, when the access device accesses the cloud platform for the first time, or needs to send data to the cloud platform, the above-mentioned identity authentication request can be sent to the cloud platform.

[0107] From the above, it can be seen that the access device can generate a first random number m, and then concatenate m with the identity ID_A of the receiving device, thereby encrypting the concatenated data with the first private key to obtain the first ciphertext, and then send the first ciphertext to the cloud platform. After receiving the first ciphertext, the cloud platform decrypts the first ciphertext with the first public key to obtain m and ID_A.

[0108] Among them, if ID_A exists in the predetermined identity library, the identity of the access device identified by ID_A is determined to be qualified; if ID_A does not exist in the predetermined identity library, the identity of the access device identified by ID_A is determined to be unqualified, thereby terminating the communication.

[0109] In addition, after determining that the access device identified by ID_A is qualified, the cloud platform can also encrypt the obtained m through the second private key to obtain the second ciphertext, and then send the second ciphertext to the access device. After receiving the second ciphertext, the access device decrypts the second ciphertext through the second public key to obtain the random number m' included in the second ciphertext, and then compares m and m'. If the two are equal, it means that the cloud platform identity is qualified, otherwise the cloud platform identity is unqualified and the communication ends.

[0110] From the above, it can be seen that the embodiments of the present invention can not only perform identity authentication on the access device, but also authenticate the cloud platform, that is, the embodiments of the present invention can realize two-way authentication between the access device and the cloud platform, thereby further improving communication security.

[0111] Optionally, the method further includes:

[0112] Receiving first data and third ciphertext sent by the access device when the identity authentication of the cloud platform is qualified, wherein the third ciphertext is obtained by encrypting the first summary data by the first private key, and the first summary data is obtained by processing the first data by using a cryptographic hash SM3 algorithm;

[0113] Decrypting the third ciphertext using the first public key to obtain the first summary data;

[0114] The received first data is processed using a cryptographic hash SM3 algorithm to obtain second summary data;

[0115] In a case where the first summary data is identical to the second summary data, it is determined that the received first data has not been tampered with.

[0116] From the above, it can be seen that after the identities of the cloud platform and the access device are authenticated, the access device can send data to the cloud platform. Among them, the access device can use the SM3 algorithm to process the first data to be sent to obtain the first summary data, and then encrypt the first summary data with the first private key to obtain the third ciphertext (i.e., data signature), so as to send the third ciphertext and the first data (i.e., plaintext data) to the cloud platform at the same time.

[0117] Among them, after the cloud platform receives the third ciphertext and the first data, it first uses the first public key to decrypt the third ciphertext to obtain the first summary data; then, it uses the SM3 algorithm to process the received first data to obtain the second summary data; and then compares the first summary data with the second summary data to determine whether the first data has been tampered with. That is, if the first summary data is the same as the second summary data, the first data has not been tampered with; if the first summary data is different from the second summary data, the first data has been tampered with.

[0118] Optionally, the method further includes:

[0119] Receiving a fourth ciphertext sent by the access device when the identity authentication of the cloud platform is qualified, wherein the fourth ciphertext is obtained by encrypting the second data using the first private key using the identification password SM9 algorithm;

[0120] The fourth ciphertext is decrypted using the first public key to obtain the second data.

[0121] From the above, it can be seen that after the identities of the cloud platform and the access device are authenticated, the access device can send data to the cloud platform. Among them, the access device can use the SM9 algorithm to process the second data to be sent to obtain the fourth ciphertext, and then send the fourth ciphertext to the cloud platform.

[0122] After receiving the fourth ciphertext, the cloud platform can decrypt the fourth ciphertext using the first public key to obtain the second data.

[0123] Optionally, the security level of the first data is lower than a preset level, and the security level of the second data is higher than or equal to the preset level.

[0124] That is, when the security level of the data that the access device needs to send to the cloud platform is lower than the preset level, the access device can first use the SM3 algorithm to process the data to be sent to obtain summary data, and then encrypt the summary data with the first public key to obtain a data signature, thereby sending the data signature and the plaintext data (i.e., the data to be sent) to the cloud platform. Among them, data with a low security level does not require a very high encryption level. Therefore, this encryption method can increase the data transmission speed while ensuring the required security level.

[0125] When the security level of the data that the access device needs to send to the cloud platform is higher than or equal to the preset level, the access device can use the SM9 algorithm and encrypt the data to be sent using the first private key. Among them, data with a high security level requires a very high encryption level, so this encryption method can ensure the required security level.

[0126] From the above, it can be seen that the embodiments of the present invention can pre-set the security levels of different types of data, so that when the access device sends different types of data to the cloud platform, different encryption levels can be used to improve the data transmission speed while meeting the security level.

[0127] In a second aspect, an embodiment of the present application provides an information interaction method, which is applied to an access device of a cloud platform. Figure 5 , the method may include the following steps:

[0128] Step 501: Receive a first private key and a first public key sent by a cloud platform, and store them as a key pair of the access device.

[0129] Among them, the access device may include a terminal, a mobile application (APP), and a business system that accesses the cloud platform.

[0130] Optionally, when an access device accesses the cloud platform for the first time, the cloud platform will be triggered to generate a key pair for the access device and send it to the access device.

[0131] In addition, for the generation process of the first private key and the first public key, please refer to the above description, which will not be repeated here.

[0132] Optionally, the receiving the first private key and the first public key sent by the cloud platform includes:

[0133] Receiving a fifth ciphertext sent by the cloud platform, wherein the fifth ciphertext is obtained by encrypting the first private key and the first public key using a shared key and an asymmetric encryption algorithm;

[0134] Decrypting the fifth ciphertext using the shared key and an asymmetric cryptographic algorithm to obtain the first private key and the first public key;

[0135] The shared key is generated by the cloud platform and the access device through a key exchange protocol.

[0136] The key pair is used to encrypt data and perform identity authentication. Therefore, in order to ensure the transmission security of the key pair, the cloud platform can encrypt the first private key and the first public key, and then decrypt them after the access device receives them.

[0137] That is, the cloud platform and the access device generate a shared key through a key exchange protocol, so that the cloud platform can use the shared key to encrypt the first private key and the first public key, and the access device can use the shared key to decrypt the encrypted first private key and the first public key.

[0138] The process of the cloud platform and the access device generating a shared key through a key exchange protocol is described above and will not be repeated here.

[0139] Optionally, the method further includes:

[0140] Receive a second public key sent by the cloud platform, and store the second public key, wherein the second public key is a public key in a key pair of the cloud platform.

[0141] That is, in the embodiment of the present invention, the cloud platform can also generate its own key pair and send the public key in the key pair to the access device.

[0142] Optionally, the method further includes:

[0143] generating a first random number;

[0144] Encrypting the first random number and the identity of the access device by using the first private key to obtain a first ciphertext;

[0145] Sending an identity authentication request to the cloud platform, wherein the identity authentication request carries the first ciphertext;

[0146] In the case where the target identity exists in a predetermined identity library, receiving a second ciphertext sent by the cloud platform, wherein the target identity is the identity of the access device obtained by the cloud platform after decrypting the first ciphertext by using the first public key, and the second ciphertext is obtained by encrypting the first random number by using the second private key;

[0147] Decrypting the second ciphertext by using the second public key to obtain a random number included in the second ciphertext;

[0148] When the random number included in the second ciphertext is equal to the first random number, it is determined that the identity of the cloud platform is qualified.

[0149] From the above, it can be seen that the access device can generate a first random number m, and then concatenate m with the identity ID_A of the receiving device, thereby encrypting the concatenated data with the first private key to obtain the first ciphertext, and then send the first ciphertext to the cloud platform. After receiving the first ciphertext, the cloud platform decrypts the first ciphertext with the first public key to obtain m and ID_A.

[0150] Among them, if ID_A exists in the predetermined identity library, the identity of the access device identified by ID_A is determined to be qualified; if ID_A does not exist in the predetermined identity library, the identity of the access device identified by ID_A is determined to be unqualified, thereby terminating the communication.

[0151] In addition, after determining that the access device identified by ID_A is qualified, the cloud platform can also encrypt the obtained m through the second private key to obtain the second ciphertext, and then send the second ciphertext to the access device. After receiving the second ciphertext, the access device decrypts the second ciphertext through the second public key to obtain the random number m' included in the second ciphertext, and then compares m and m'. If the two are equal, it means that the cloud platform identity is qualified, otherwise the cloud platform identity is unqualified and the communication ends.

[0152] From the above, it can be seen that the embodiments of the present invention can not only perform identity authentication on the access device, but also authenticate the cloud platform, that is, the embodiments of the present invention can realize two-way authentication between the access device and the cloud platform, thereby further improving communication security.

[0153] Optionally, after determining that the identity of the cloud platform is qualified, the method further includes:

[0154] Processing the first data using a cryptographic hash SM3 algorithm to obtain first summary data;

[0155] Encrypting the first summary data by using the first private key to obtain a third ciphertext;

[0156] The first data and the third ciphertext are sent to the cloud platform.

[0157] From the above, it can be seen that after the identities of the cloud platform and the access device are authenticated, the access device can send data to the cloud platform. Among them, the access device can use the SM3 algorithm to process the first data to be sent to obtain the first summary data, and then encrypt the first summary data with the first private key to obtain the third ciphertext (i.e., data signature), so as to send the third ciphertext and the first data (i.e., plaintext data) to the cloud platform at the same time.

[0158] Among them, after the cloud platform receives the third ciphertext and the first data, it first uses the first public key to decrypt the third ciphertext to obtain the first summary data; then, it uses the SM3 algorithm to process the received first data to obtain the second summary data; and then compares the first summary data with the second summary data to determine whether the first data has been tampered with. That is, if the first summary data is the same as the second summary data, the first data has not been tampered with; if the first summary data is different from the second summary data, the first data has been tampered with.

[0159] Optionally, after determining that the identity of the cloud platform is qualified, the method further includes:

[0160] The second data is encrypted by using the first public key and the identification password SM9 algorithm to obtain a fourth ciphertext;

[0161] The fourth ciphertext is sent to the cloud platform.

[0162] From the above, it can be seen that after the identities of the cloud platform and the access device are authenticated, the access device can send data to the cloud platform. Among them, the access device can use the SM9 algorithm to process the second data to be sent to obtain the fourth ciphertext, and then send the fourth ciphertext to the cloud platform.

[0163] After receiving the fourth ciphertext, the cloud platform can decrypt the fourth ciphertext using the first public key to obtain the second data.

[0164] Optionally, the security level of the first data is lower than a preset level, and the security level of the second data is higher than or equal to the preset level.

[0165] That is, when the security level of the data that the access device needs to send to the cloud platform is lower than the preset level, the access device can first use the SM3 algorithm to process the data to be sent to obtain summary data, and then encrypt the summary data with the first public key to obtain a data signature, thereby sending the data signature and the plaintext data (i.e., the data to be sent) to the cloud platform. Among them, data with a low security level does not require a very high encryption level. Therefore, this encryption method can increase the data transmission speed while ensuring the required security level.

[0166] When the security level of the data that the access device needs to send to the cloud platform is higher than or equal to the preset level, the access device can use the SM9 algorithm and encrypt the data to be sent using the first private key. Among them, data with a high security level requires a very high encryption level, so this encryption method can ensure the required security level.

[0167] From the above, it can be seen that the embodiments of the present invention can pre-set the security levels of different types of data, so that when the access device sends different types of data to the cloud platform, different encryption levels can be used to improve the data transmission speed while meeting the security level.

[0168] In a third aspect, the embodiments of the present application provide an information interaction device, which is applied to a cloud platform, such as Figure 6 As shown, the information interaction device may include the following modules:

[0169] The identification acquisition module 601 is used to obtain the identity of the access device of the cloud platform;

[0170] A first key generation module 602, used to generate a first private key according to the identity identifier;

[0171] A second key generation module 603, configured to generate a first public key according to the first private key;

[0172] The first sending module 604 is configured to send the first private key and the first public key as a key pair of the access device to the access device.

[0173] Optionally, the device further comprises:

[0174] The third key generation module is used to generate a second private key and a second public key as a key pair of the cloud platform, and send the second public key to the access device.

[0175] Optionally, the device further comprises:

[0176] a request receiving module, configured to receive an identity authentication request sent by the access device, wherein the identity authentication request carries a first ciphertext, wherein the first ciphertext is obtained by encrypting a first random number and an identity identifier of the access device using the first private key;

[0177] A first decryption module, used to decrypt the first ciphertext by using the first public key to obtain the first random number and the identity of the access device;

[0178] A first authentication module, used to determine that the identity of the access device is qualified when the identity of the access device exists in a predetermined identity library;

[0179] A first encryption module, used to encrypt the first random number by using the second private key to obtain a second ciphertext;

[0180] The second sending module is used to send the second ciphertext to the access device, so that the access device decrypts the second ciphertext through the second public key and authenticates the identity of the cloud platform according to the random number obtained by decryption.

[0181] Optionally, the device further comprises:

[0182] A second receiving module is used to receive the first data and the third ciphertext sent by the access device when the identity authentication of the cloud platform is qualified, wherein the third ciphertext is obtained by encrypting the first summary data by the first private key, and the first summary data is obtained by processing the first data by using the cryptographic hash SM3 algorithm;

[0183] A second decryption module, configured to decrypt the third ciphertext using the first public key to obtain the first summary data;

[0184] A second encryption module is used to process the received first data using a cryptographic hash SM3 algorithm to obtain second summary data;

[0185] The result determination module is used to determine that the received first data has not been tampered with when the first summary data is the same as the second summary data.

[0186] Optionally, the device further comprises:

[0187] A third receiving module is used to receive a fourth ciphertext sent by the access device when the identity authentication of the cloud platform is qualified, wherein the fourth ciphertext is obtained by encrypting the second data using the first private key using the identification password SM9 algorithm;

[0188] The third decryption module is used to decrypt the fourth ciphertext using the first public key to obtain the second data.

[0189] Optionally, the identity identifier is a number; the first key generation module 602 is specifically used to:

[0190] According to the first preset formula H_1=a ID_A , calculate the target parameter H_1, where the target parameter is one of the elements of the first cyclic group, a is the generator of the first cyclic group, and ID_A is the identity identifier;

[0191] Taking the sum of the target parameter and the second private key as the first private key;

[0192] The second private key is a private key in a predetermined key pair of the cloud platform.

[0193] Optionally, the second key generation module 603 is specifically used to:

[0194] According to the second preset formula P pub-s1 =b $t_1 , calculate the first public key P pub-s1 , wherein the first public key is one of the elements of the second cyclic group, b is the generator of the second cyclic group, and $t_1 is the first private key.

[0195] Optionally, the third key generation module is specifically used to:

[0196] Generate a second random number as the second private key;

[0197] According to the third preset formula P pub-s2 =c ks , calculate the second public key P pub-s2 , wherein the second public key is one of the elements of the third cyclic group, c is the generator of the third cyclic group, and ks is the second private key.

[0198] Optionally, the first sending module 604 is specifically configured to:

[0199] The first private key and the first public key are encrypted by a shared key and a symmetric encryption algorithm to obtain a fifth ciphertext;

[0200] Sending the fifth ciphertext to the access device;

[0201] The shared key is generated by the cloud platform and the access device through a key exchange protocol.

[0202] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0203] In a fourth aspect, an embodiment of the present application provides an information interaction device, which is applied to an access device of a cloud platform, such as Figure 7 As shown, the information interaction device may include the following modules:

[0204] The first receiving module 701 is used to receive a first private key and a first public key sent by the cloud platform to store them as a key pair of the access device.

[0205] Optionally, the device further comprises:

[0206] The fourth receiving module is used to receive the second public key sent by the cloud platform and store the second public key, wherein the second public key is the public key in the key pair of the cloud platform.

[0207] Optionally, the device further comprises:

[0208] A random number generation module, used to generate a first random number;

[0209] A third encryption module, used to encrypt the first random number and the identity of the access device by using the first private key to obtain a first ciphertext;

[0210] A request sending module, used for sending an identity authentication request to the cloud platform, wherein the identity authentication request carries the first ciphertext;

[0211] a fifth receiving module, configured to receive, when the target identity exists in a predetermined identity library, a second ciphertext sent by the cloud platform, wherein the target identity is the identity of the access device obtained by the cloud platform after decrypting the first ciphertext with the first public key, and the second ciphertext is obtained by encrypting the first random number with a second private key;

[0212] a fourth decryption module, configured to decrypt the second ciphertext by using the second public key to obtain a random number included in the second ciphertext;

[0213] The second authentication module is used to determine that the identity of the cloud platform is qualified when the random number included in the second ciphertext is equal to the first random number.

[0214] Optionally, the device further comprises:

[0215] a fourth encryption module, configured to process the first data using a cryptographic hash SM3 algorithm to obtain first summary data;

[0216] a fifth encryption module, configured to encrypt the first summary data by using the first private key to obtain a third ciphertext;

[0217] A third sending module is used to send the first data and the third ciphertext to the cloud platform.

[0218] Optionally, the device further comprises:

[0219] a sixth encryption module, configured to encrypt the second data by using the first public key and the identification password SM9 algorithm to obtain a fourth ciphertext;

[0220] The fourth sending module is used to send the fourth ciphertext to the cloud platform.

[0221] Optionally, the first receiving module 701 is specifically configured to:

[0222] Receiving a fifth ciphertext sent by the cloud platform, wherein the fifth ciphertext is obtained by encrypting the first private key and the first public key using a shared key and an asymmetric encryption algorithm;

[0223] Decrypting the fifth ciphertext using the shared key and an asymmetric cryptographic algorithm to obtain the first private key and the first public key;

[0224] The shared key is generated by the cloud platform and the access device through a key exchange protocol.

[0225] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0226] In a fifth aspect, an embodiment of the present application further provides an information interaction system, the above-mentioned information interaction device applied to the cloud platform and the information interaction device applied to the access device of the cloud platform.

[0227] In the sixth aspect, an embodiment of the present application also provides a cloud platform, including: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the steps of the above-mentioned information interaction method applied to the cloud platform are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0228] In the seventh aspect, an embodiment of the present application also provides an access device, comprising: a memory, a processor, and a computer program stored on the memory and executable on the processor. When the computer program is executed by the processor, the steps of the information interaction method for the access device applied to the cloud platform are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0229] In the eighth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the information interaction method described in any one of the above items can achieve the same technical effect. To avoid repetition, they will not be repeated here.

[0230] In the ninth aspect, the specific implementation of the information interaction system of the embodiment of the present invention can be described as follows.

[0231] In the industrial field, the Internet technology (IT) architecture of manufacturing enterprises is generally composed of three layers: the equipment layer, the edge layer, and the enterprise layer, to ensure the stable operation of equipment and support the continuous operation of enterprises. However, with the rapid development of the industrial Internet industry, a large number of sensors and industrial equipment at the equipment layer of manufacturing enterprises, and a large number of business systems and mobile apps at the enterprise layer need to be connected to the industrial Internet platform to use the data and functions provided by the industrial Internet platform. If illegal devices or unidentified devices are connected to the industrial Internet platform to use the data and functions provided by the platform, it will cause information security problems such as data leakage and illegal tampering of data, which will seriously affect the normal operation of enterprises.

[0232] like Figure 8 As shown in the figure, in the industrial Internet system, there are two types of interaction modes: one is the interaction between the industrial Internet platform and terminals, mobile apps, and business systems; the other is the interaction between terminals, mobile apps, and business systems.

[0233] The information interaction system provided in the embodiment of the present invention includes a cloud platform and an access device, wherein the cloud platform is the Internet platform described above, and the access device is any one of a terminal, a mobile APP, and a business system. Therefore, the information interaction involved in the information interaction system in the embodiment of the present invention belongs to the first type of interaction mode described above.

[0234] The architecture diagram of the information interaction system according to the embodiment of the present invention is as follows: Fig. 9 shown.

[0235] The industrial Internet platform includes: a first random number generator, a key pair generation module, a first public key management module, a second private key management module, a first shared key generation module, an identity library module, a data verification module, a first data encryption module, and a first data decryption module.

[0236] The access device includes: a second shared key generation module, an identity identification module, a second random number generator, a second public key management module, a second private key management module, a data signature module, a second data encryption module, and a second data decryption module.

[0237] Among them, the functions of each module included in the industrial Internet platform and access equipment are described in the first to fifth points below.

[0238] First, in the process of generating the key pair of the industrial Internet platform, the first random number generator generates a second random number as the second private key and sends it to the key pair generation module, so that the key pair generation module generates a second public key based on the second private key, thereby sending the second private key to the first private key management module for storage, sending the second public key to the first public key management module for storage, and sending the second public key to the access device for storage by the second public key management module of the access device. For the specific process of generating the second public key based on the second private key, please refer to the previous text, which will not be repeated here.

[0239] Second, in the process of generating a key pair for an access device, the key pair generation module obtains the identity of the access device, and determines the first private key based on the identity, thereby determining the first public key based on the first private key, and then sending the first private key to the first private key management module for storage, and sending the first public key to the first public key management module for storage. For the specific process of generating the first public key based on the first private key, please refer to the previous text, which will not be repeated here.

[0240] The first shared key generation module and the second shared key generation module can use the Diffie-Hellman password exchange algorithm to generate and store the shared key. For the specific process of generating the shared key, please refer to the above text and will not be repeated here.

[0241] In addition, after the key pair generation module generates a key pair for the access device, it can use a shared password to encrypt the key pair, and then send the encrypted key pair to the access device. The second private key management module in the access device stores the first private key, and the second public key management module stores the first public key.

[0242] Third, in the process of two-way authentication (i.e. authentication of the industrial Internet platform and access devices), the functions of each module are as follows:

[0243] When an external device is connected to the industrial Internet platform, the second random number generator will be triggered to generate a first random number and send the first random number to the identity module. The identity module will splice the first random number with the identity of the access device, and then send the spliced ​​data to the second data encryption module. The second data encryption module uses the first private key to encrypt the received spliced ​​data to obtain the first ciphertext, and then send the first ciphertext to the industrial Internet platform.

[0244] After the industrial Internet platform receives the first ciphertext, the first data decryption module decrypts it using the first public key to obtain the spliced ​​data, then extracts the identity and the first random number from the spliced ​​data, and then sends the first random number to the first data encryption module and sends the identity to the identity library module.

[0245] Among them, after receiving the identity identifier, the identity recognition library module determines whether the identity identifier exists in the pre-established identity recognition library, and if so, determines that the identity of the access device represented by the identity identifier is qualified, thereby sending a first instruction to the first data encryption module to instruct the first data encryption module to encrypt the first random number; and when the identity identifier does not exist in the identity recognition library, determines that the identity of the access device represented by the identity identifier is unqualified.

[0246] In addition, the first data encryption module encrypts the first random number with the second private key to obtain the second ciphertext, and then sends the second ciphertext to the access device. After the access device receives the second ciphertext, the second data decryption module decrypts the second ciphertext with the second public key, and compares the decrypted random number with the first random number generated before. If the two are the same, the industrial Internet platform identity is determined to be qualified, otherwise, the industrial Internet platform identity is determined to be unqualified.

[0247] The fourth point is about the transmission of low-security level data (i.e., data with a security level lower than the preset level): After the identities of the access device and the industrial Internet platform are authenticated, when the access device needs to send low-security level data to the industrial Internet platform, the data signature module uses the SM3 algorithm to process the low-security level data to be sent, and generates first summary data. The first summary data is then sent to the second data encryption module, which encrypts the data using the first private key to obtain a third ciphertext, and then the third ciphertext and unencrypted low-security level data (i.e., plaintext data) are sent to the industrial Internet platform.

[0248] Among them, after the industrial Internet platform receives the third ciphertext, the first data decryption module decrypts the third ciphertext through the first public key to obtain the first summary data, and then sends the first summary data to the data verification module. The data verification module uses the SM3 algorithm to process the unencrypted low-security level data to obtain the second summary data, so as to compare the first summary data with the second summary data. When the two are the same, it is determined that the unencrypted low-security level data has not been tampered with. Otherwise, it is determined that the unencrypted low-security level data has been tampered with.

[0249] The fifth point is about the transmission of high-security level data (i.e. data with a security level higher than or equal to the preset level): after the identities of the access device and the industrial Internet platform are authenticated, when the access device needs to send high-security level data to the industrial Internet platform, the second data encryption module uses the first private key and the SM9 algorithm to encrypt the high-security level data to be sent, obtain the fourth ciphertext, and then send the fourth ciphertext to the industrial Internet platform.

[0250] After receiving the fourth ciphertext, the industrial Internet platform uses the first public key through the first data decryption module to decrypt the fourth ciphertext to obtain high-security level data.

[0251] From the above, it can be seen that the industrial Internet platform generates key pairs for access devices and its own key pairs, and can use these key pairs to complete two-way authentication, data signing and verification, and data encryption and decryption.

[0252] Specifically, Fig.10 As shown in the figure, the working system of the cigarette factory includes the equipment layer, access layer, platform layer and application layer. The equipment layer mainly includes silk-making equipment, rolling and packaging equipment and power energy equipment. Among them, the silk-making equipment is responsible for cutting tobacco leaves into shredded tobacco, and the rolling and packaging equipment is responsible for rolling shredded tobacco into cigarette sticks, and packaging them into boxes, strips and boxes. The power energy equipment is responsible for providing the energy required for the production process of water, electricity and gas for the silk-making line and the rolling and packaging line. The stable operation of the silk-making equipment, rolling and packaging equipment and power energy equipment is a necessary prerequisite for ensuring production. Therefore, a large number of monitoring systems and equipment are required to monitor the silk-making, rolling and packaging and power energy equipment, detect problems in a timely manner, and assist in operation and maintenance guarantee work.

[0253] The access layer includes devices such as secure access gateways, which are responsible for connecting the silk-making, winding, power energy and other equipment in the equipment layer to the platform layer; the platform layer includes microservice components and an online data analysis platform (DASS); the application layer includes manufacturing enterprises' production process execution management systems (MES), enterprise resource planning (ERP) systems, warehouse management (WM), material management (MM) and other production business execution control systems.

[0254] Among them, the above-mentioned access layer, platform layer, and application layer can be collectively referred to as the industrial Internet platform of the cigarette factory, and the equipment layer is the layer where the access equipment of the industrial Internet is located.

[0255] In addition, various production equipment at the equipment layer access the industrial Internet platform through the access layer security access gateway, upload equipment operation information, and receive instructions from the industrial Internet platform. The tax system, material in transit APP, and equipment remote operation and maintenance APP of supply chain enterprises also access the industrial Internet platform through the access layer security access gateway and exchange data with the platform. Among them, the material in transit APP is an APP for managing materials in transit.

[0256] In addition, in the industrial system of the cigarette factory, its industrial Internet platform can be used as the cloud platform described in the first and second aspects, and any device in its device layer can be used as the access device described in the first and second aspects to implement the information interaction method described in the first and second aspects. That is, the information interaction method of the embodiment of the present invention can be applied to the industrial Internet platform and the devices in the device layer of the working system of the cigarette factory.

[0257] Similarly, in the industrial system of a cigarette factory, its industrial Internet platform may include the various modules of the industrial Internet platform described in the ninth aspect above (i.e. Fig. 9 The industrial Internet platform in the above aspect includes various modules), and any device in the device layer may include various modules included in the access device described in the ninth aspect (i.e. Fig. 9 The access device in the example includes various modules), thereby realizing the interaction process between various modules.

[0258] In addition, it has been verified that the information interaction method described in the embodiment of the present invention can achieve the following technical indicators by implementing it in the industrial system of a cigarette factory:

[0259] New connection speed (times / second)>3000;

[0260] Throughput (MB / s)>800Mbps;

[0261] Authentication number per second (TPS)>5000;

[0262] It can be seen that the information interaction method provided in the embodiment of the present application can improve the new connection speed, throughput rate and authentication efficiency.

[0263] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk Solid State Disk (SSD)), etc.

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

[0265] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0266] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims

1. An information interaction method, characterized in that: Applied to a cloud platform, the method includes: Obtain the identity of the access device of the cloud platform; Generate a first private key according to the identity identifier; Generate a first public key according to the first private key; Sending the first private key and the first public key as a key pair of the access device to the access device; The identity is a number; The step of generating a first private key according to the identity identifier includes: According to the first preset formula H_1=a ID_A , calculate the target parameter H1, wherein the target parameter is one of the elements of the first cyclic group, a is the generator of the first cyclic group, and ID_A is the identity identifier; Taking the sum of the target parameter and the second private key as the first private key; Wherein, the second private key is a private key in a predetermined key pair of the cloud platform; The step of generating a first public key according to the first private key includes: According to the second preset formula P pub-s1 =b $t_1 , calculate the first public key P pub-s1 , wherein the first public key is one of the elements of the second cyclic group, b is the generator of the second cyclic group, and $t_1 is the first private key.

2. The information interaction method according to claim 1, characterized in that: The method further comprises: Generate a second private key and a second public key as a key pair of the cloud platform, and send the second public key to the access device.

3. The information interaction method according to claim 2, characterized in that: The method further comprises: Receiving an identity authentication request sent by the access device, wherein the identity authentication request carries a first ciphertext, wherein the first ciphertext is obtained by encrypting a first random number and an identity identifier of the access device using the first private key; Decrypting the first ciphertext using the first public key to obtain the first random number and the identity of the access device; In the case where the identity of the access device exists in a predetermined identity library, determining that the identity of the access device is qualified, and encrypting the first random number by using the second private key to obtain a second ciphertext; The second ciphertext is sent to the access device, so that the access device decrypts the second ciphertext by using the second public key, and authenticates the identity of the cloud platform according to the random number obtained by decryption.

4. The information interaction method according to claim 3, characterized in that: The method further comprises: Receiving first data and third ciphertext sent by the access device when the identity authentication of the cloud platform is qualified, wherein the third ciphertext is obtained by encrypting the first summary data by the first private key, and the first summary data is obtained by processing the first data by using a cryptographic hash SM3 algorithm; Decrypting the third ciphertext using the first public key to obtain the first summary data; The received first data is processed using a cryptographic hash SM3 algorithm to obtain second summary data; In a case where the first summary data is identical to the second summary data, it is determined that the received first data has not been tampered with.

5. The information interaction method according to claim 3, characterized in that: The method further comprises: Receiving a fourth ciphertext sent by the access device when the identity authentication of the cloud platform is qualified, wherein the fourth ciphertext is obtained by encrypting the second data using the first private key using the identification password SM9 algorithm; The fourth ciphertext is decrypted using the first public key to obtain the second data.

6. The information interaction method according to claim 2, characterized in that: The generating of the second private key and the second public key comprises: Generate a second random number to serve as the second private key; According to the third preset formula P pub-s2 =c ks , calculate the second public key P pub-s2 , wherein the second public key is one of the elements of the third cyclic group, c is the generator of the third cyclic group, and ks is the second private key.

7. The information interaction method according to claim 1, characterized in that: The sending the first private key and the first public key as a key pair of the access device to the access device includes: The first private key and the first public key are encrypted by a shared key and a symmetric encryption algorithm to obtain a fifth ciphertext; Sending the fifth ciphertext to the access device; The shared key is generated by the cloud platform and the access device through a key exchange protocol.

8. An information interaction method, characterized in that: The access device applied to the cloud platform comprises: Receiving a first private key and a first public key sent by the cloud platform to store as a key pair of the access device; The first private key is generated by the cloud platform according to the sum of the target parameter and the second private key; Wherein, the target parameter is determined by the first preset formula H_1=a ID_A , calculate the target parameter H_1 to generate; The target parameter is one of the elements of the first cyclic group, a is a generator of the first cyclic group, and ID_A is an identity identifier of the access device of the cloud platform; The second private key is a private key in a predetermined key pair of the cloud platform; The first public key is obtained by the cloud platform according to a second preset formula P pub-s1 =b $t_1 generated; The first public key is one of the elements of the second cyclic group, b is the generator of the second cyclic group, and $t_1 is the first private key.

9. The information interaction method according to claim 8, characterized in that: The method further comprises: Receive a second public key sent by the cloud platform, and store the second public key, wherein the second public key is a public key in a key pair of the cloud platform.

10. The information interaction method according to claim 9, characterized in that: The method further comprises: generating a first random number; Encrypting the first random number and the identity of the access device by using the first private key to obtain a first ciphertext; Sending an identity authentication request to the cloud platform, wherein the identity authentication request carries the first ciphertext; In the case where the target identity exists in a predetermined identity library, receiving a second ciphertext sent by the cloud platform, wherein the target identity is the identity of the access device obtained by the cloud platform after decrypting the first ciphertext by using the first public key, and the second ciphertext is obtained by encrypting the first random number by using the second private key; Decrypting the second ciphertext by using the second public key to obtain a random number included in the second ciphertext; When the random number included in the second ciphertext is equal to the first random number, it is determined that the identity of the cloud platform is qualified.

11. The information interaction method according to claim 10, characterized in that: After determining that the identity of the cloud platform is qualified, the method further includes: Processing the first data using a cryptographic hash SM3 algorithm to obtain first summary data; Encrypting the first summary data by using the first private key to obtain a third ciphertext; The first data and the third ciphertext are sent to the cloud platform.

12. The information interaction method according to claim 10, characterized in that: After determining that the identity of the cloud platform is qualified, the method further includes: The second data is encrypted by using the first public key and the identification password SM9 algorithm to obtain a fourth ciphertext; The fourth ciphertext is sent to the cloud platform.

13. The information interaction method according to claim 8, characterized in that: The receiving the first private key and the first public key sent by the cloud platform includes: Receiving a fifth ciphertext sent by the cloud platform, wherein the fifth ciphertext is obtained by encrypting the first private key and the first public key using a shared key and an asymmetric encryption algorithm; Decrypting the fifth ciphertext using the shared key and an asymmetric cryptographic algorithm to obtain the first private key and the first public key; The shared key is generated by the cloud platform and the access device through a key exchange protocol.

14. An information interaction device, characterized in that: Applied to a cloud platform, the device comprises: An identification acquisition module is used to obtain the identity of the access device of the cloud platform; A first key generation module, used to generate a first private key according to the identity identifier; A second key generation module, used to generate a first public key according to the first private key; A first sending module, configured to send the first private key and the first public key as a key pair of the access device to the access device; The identity is a number; The first key generation module is specifically used for: According to the first preset formula H_1=a ID_A , calculate the target parameter H1, wherein the target parameter is one of the elements of the first cyclic group, a is the generator of the first cyclic group, and ID_A is the identity identifier; Taking the sum of the target parameter and the second private key as the first private key; The second private key is a predetermined private key in the key pair of the cloud platform. The second key generation module is specifically used for: According to the second preset formula P pub_s1 =b $t_1 , calculate the first public key P pub_s1 , wherein the first public key is one of the elements of the second cyclic group, b is the generator of the second cyclic group, and $t_1 is the first private key.

15. An information interaction device, characterized in that: An access device applied to a cloud platform, the device comprising: A first receiving module, used to receive a first private key and a first public key sent by the cloud platform, so as to store them as a key pair of the access device; The first private key is generated by the cloud platform according to the sum of the target parameter and the second private key; Wherein, the target parameter is determined by the first preset formula H_1=a ID_A , calculate the target parameter H1 to generate; The target parameter is one of the elements of the first cyclic group, a is a generator of the first cyclic group, and ID_A is an identity identifier of the access device of the cloud platform; The second private key is a private key in a predetermined key pair of the cloud platform; The first public key is obtained by the cloud platform according to a second preset formula P pub-s1 =b $t_1 generated; The first public key is one of the elements of the second cyclic group, b is the generator of the second cyclic group, and $t_1 is the first private key.

16. An information interaction system, characterized in that: It includes the information interaction device as claimed in claim 14 and the information interaction device as claimed in claim 15.

Citation Information

Patent Citations

  • Method for ensuring computer information security

    CN105187213A

  • Secret key negotiation method and device

    CN106603485A

  • Information interaction method and device thereof and computing equipment

    CN111464486A

  • Key generation method and device, equipment and encryption method

    CN111740828A

  • Lightweight authentication method based on equipment identity label and gateway

    CN111835752A