A data transmission method, electronic device, and storage medium

By verifying the certificate and signature of the RFID terminal and negotiating the link session key, the problem of RFID terminal taking risks is solved, and secure data transmission between the RFID terminal and the server is realized, improving overall security.

CN116132986BActive Publication Date: 2024-11-26CHINA TOWER CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211623819.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-16
Publication Date
2024-11-26
Estimated Expiration
2042-12-16

AI Technical Summary

Technical Problem

Existing RFID terminals have risk of counterfeiting during data transmission, and fail to effectively verify the legitimacy of terminal equipment, resulting in insufficient security.

Method used

By obtaining the public key, certificate and signature of the RFID terminal, verify its legitimacy, and generate and negotiate the link session key after verification, use asymmetric keys for data encryption and transmission, ensuring the Data link security.

Benefits of technology

It improves the security of RFID terminals, reduces the possibility of fake terminals counterfeiting, enhances the security of data transmission between RFID terminals and servers, and ensures the secure channel of the data link.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116132986B_ABST
    Figure CN116132986B_ABST
Patent Text Reader

Abstract

The present application provides a data transmission method, an electronic device and a storage medium, the method comprising: accessing a radio frequency identification (RFID) terminal, and obtaining a public key of the RFID terminal, a certificate of the RFID terminal and a first signature of the RFID terminal; verifying the certificate and the first signature; obtaining first encrypted data when the certificate is legal and the first signature is valid, and transmitting the first encrypted data to the RFID terminal, wherein the first encrypted data is data obtained by encrypting a first random number by the public key, and the first random number is a link session key; receiving an initialization vector sent by the RFID terminal, wherein the initialization vector is a second random number generated by the RFID terminal, and the second random number is a random number generated by the RFID terminal after decrypting the first encrypted data based on a private key; and executing a link session with the RFID terminal based on the link session key and the initialization vector.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of information security, and in particular to a data transmission method, an electronic device and a storage medium. Background Art

[0002] With the rapid development of Internet technology, users can complete various operations and enjoy various services online. While online operations bring great convenience to users, they also bring problems such as information leakage and information security. At present, the server usually verifies the username and password to access the RFID terminal before transmitting data with the RFID terminal, and does not verify the legitimacy of the RFID terminal itself, so the risk of terminal equipment being counterfeited is relatively high. Summary of the invention

[0003] The embodiments of the present application provide a data transmission method, an electronic device, and a storage medium to solve the problem that the existing RFID terminal has a high risk of being counterfeited.

[0004] In order to solve the above technical problems, this application is implemented as follows:

[0005] In a first aspect, an embodiment of the present application provides a data transmission method, which is applied to a server, and the method includes:

[0006] Accessing a radio frequency identification (RFID) terminal and obtaining a public key of the RFID terminal, a certificate of the RFID terminal, and a first signature of the RFID terminal;

[0007] verifying the certificate and the first signature;

[0008] When the certificate is legal and the first signature is valid, obtaining first encrypted data, and transmitting the first encrypted data to the RFID terminal, wherein the first encrypted data is data obtained by encrypting a first random number using the public key, and the first random number is a link session key;

[0009] Receiving an initialization vector sent by the RFID terminal, wherein the initialization vector is a second random number generated by the RFID terminal, and the second random number is a random number generated by the RFID terminal after decrypting the first encrypted data based on a private key;

[0010] A link session with the RFID terminal is performed based on the link session key and the initialization vector.

[0011] Optionally, when the certificate is legal and the first signature is valid, obtaining the first encrypted data and transmitting the first encrypted data to the RFID terminal includes:

[0012] If the certificate is legal and the first signature is valid, generate the first random number, wherein each time the RFID terminal is accessed, the first random number is regenerated and each time the first random number is different;

[0013] The first encrypted data obtained by encrypting the first random number based on the public key is obtained.

[0014] Optionally, the certificate of the RFID terminal is a certificate generated by the RFID terminal management platform based on the device information of the RFID terminal when the signature authentication with the RFID terminal is passed.

[0015] In a second aspect, an embodiment of the present application provides a data transmission method, which is applied to an RFID terminal. The method includes:

[0016] Sending the first signature, the certificate and the public key of the RFID terminal to the server;

[0017] Receiving first encrypted data sent by the server, wherein the first encrypted data is data obtained by encrypting a first random number generated by the server through the public key when the server verifies that the certificate is legitimate and the first signature is valid, and the first random number is a link session key;

[0018] decrypting the first encrypted data based on the private key;

[0019] Generate a second random number and send it to the server, wherein the second random number is an initialization vector;

[0020] Based on the link session key and the initialization vector, a link session is performed with the server.

[0021] Optionally, the method comprises:

[0022] Generate a public key and a private key, obtain device information, and send the public key and the device information to the RFID terminal management platform;

[0023] Receiving a fourth random number generated by the RFID terminal management platform;

[0024] Sign the fourth random number based on the private key, obtain a second signature and send it to the RFID device management platform;

[0025] The certificate sent by the RFID terminal management platform is received and written into the certificate, where the certificate is generated by the RFID terminal management platform when verifying that the second signature is valid.

[0026] Optionally, the device information includes authorization information of the RFID tag, and the sending of the public key and the device information to the RFID terminal management platform includes:

[0027] Determining the legitimacy of the RFID tag based on the authorization information;

[0028] If the RFID tag is legal, the public key and the device information are sent to the RFID terminal management platform.

[0029] Optionally, the receiving a fourth random number generated by the RFID terminal management platform, signing the fourth random number based on the private key, obtaining a second signature and sending it to the RFID device management platform includes:

[0030] The RFID terminal acquires and verifies the personal identification code and / or biometric feature of the RFID terminal;

[0031] verifying the personal identification code and / or identifying the biometric feature;

[0032] When the personal identification code verification is passed and / or the biometric feature recognition is passed, the fourth random number is signed based on the private key to obtain the second signature and send it to the RFID device management platform.

[0033] In a third aspect, an embodiment of the present application provides a data transmission method, which is applied to an RFID terminal management platform. The method includes:

[0034] Receiving the public key of the RFID terminal and the device information of the RFID terminal sent by the RFID terminal;

[0035] Generate and send a fourth random number to the RFID terminal;

[0036] Obtaining a second signature of the RFID terminal, and verifying the second signature based on the public key, wherein the second signature is a signature result obtained by the RFID terminal signing the fourth random number using the private key;

[0037] If the second signature verification is valid, generating a certificate of the RFID terminal based on the device information of the RFID terminal;

[0038] The certificate is sent to the RFID terminal.

[0039] In a fourth aspect, an embodiment of the present application further provides an electronic device, comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the steps of the above-mentioned data transmission method when executed by the processor.

[0040] In a fifth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above-mentioned data transmission method are implemented.

[0041] In an embodiment of the present application, a dedicated certificate is issued to the RFID terminal, and the server completes the security management of the connected RFID terminal based on the verification of this certificate. And when the first signature signed by the RFID terminal is verified to be valid, the RFID terminal and the server negotiate the session key based on the asymmetric key, and negotiate a first random number as the link session key. After that, the session between the RFID terminal and the server will perform data link encryption by using the first random number as the link session key and the second random number as the initialization vector. In this way, the security of the RFID terminal is improved by verifying the access RFID terminal certificate, and the possibility of terminal counterfeiting such as pseudo terminals is reduced. At the same time, the security of the data link session between the RFID terminal and the server is effectively improved by the above-mentioned data transmission method between the RFID terminal and the server. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0043] Figure 1 This is one of the flow charts of a data transmission method provided in an embodiment of the present application;

[0044] Figure 2 This is the second flowchart of a data transmission method provided in an embodiment of the present application;

[0045] Figure 3 This is a flowchart of a data transmission method provided in an embodiment of the present application;

[0046] Figure 4 This is a fourth flowchart of a data transmission method provided in an embodiment of the present application;

[0047] Figure 5 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0048] 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.

[0049] The embodiment of the present application provides a data transmission method, an electronic device and a storage medium. The following is a detailed description of a data transmission method provided according to the embodiment of the present application in conjunction with the accompanying drawings, which is applied to a server. Figure 1 , Figure 1 This is one of the flowcharts of a data transmission method provided in an embodiment of the present application, comprising the following steps:

[0050] Step 11: access a radio frequency identification (RFID) terminal, and obtain a public key of the RFID terminal, a certificate of the RFID terminal, and a first signature of the RFID terminal.

[0051] It should be noted that the public key of the RFID terminal in this application is set based on the technical architecture of the Public Key Infrastructure (KPI). The above public key is sent by the RFID terminal to the server, and can be encrypted, decrypted or signed by the server, and can decrypt the ciphertext, signature, etc. from the RFID terminal. The above first signature can be obtained by signing a random number with the RFID terminal's own private key. The certificate of the above RFID terminal can be a device certificate issued specifically for the RFID terminal. This application does not limit the specific content of the certificate, and the setting of the certificate content can be designed specifically for the characteristics of the RFID terminal application industry. The certificate content in the embodiment of this application may include the content in Table 1:

[0052] Table 1 Certificate Contents

[0053]

[0054] Step 12: Verify the certificate and the first signature.

[0055] It is worth mentioning that the certificate content needs to be able to prove the legitimacy of the source of the RFID terminal. After the RFID terminal is connected to the server, the server can distinguish the connected RFID terminal from other counterfeit terminals based on the content of the certificate, ensure the legitimacy of the RFID terminal connected to the server, and avoid misunderstanding.

[0056] In the above steps, the RFID terminal is connected to the server. When the RFID terminal is connected to the server, the certificate, public key and first signature of the RFID terminal need to be sent to the server. The server can first verify the legitimacy of the connected RFID terminal, which can be verified by the content of the certificate, or further confirm the identity of the RFID terminal by verifying the validity of the first signature signed by the RFID terminal. In this way, the legitimacy of the RFID terminal can be effectively confirmed through the certificate and the first signature, ensuring the security management verification of the connected RFID terminal.

[0057] Step 13: When the certificate is legal and the first signature is valid, obtain first encrypted data and transmit the first encrypted data to the RFID terminal, wherein the first encrypted data is data obtained by encrypting a first random number using the public key, and the first random number is a link session key.

[0058] In the above steps, the first encrypted data is obtained after verifying the legality of the certificate and the validity of the first signature. The server first verifies the legality of the certificate sent by the RFID terminal and the validity of its first signature, indicating that the RFID terminal accessing the server is legal and valid, ensuring the security of the source of access to the server and avoiding the access of pseudo terminals as much as possible. Subsequently, the server generates a first random number as the link session key for the RFID terminal to access, encrypts the first random number through the public key sent by the RFID terminal, obtains the first encrypted data, and transmits the first encrypted data to the RFID terminal. In this way, the link session key is randomly generated by the server and transmitted to the RFID terminal through public key encryption, which effectively ensures the security of the link session key.

[0059] Specifically, the above steps may be: the RFID terminal uses a pre-generated private key to encrypt the signature to obtain the first signature, the RFID terminal transmits the first signature and the certificate to the server, the server first verifies the certificate of the RFID terminal, and can verify the validity of the first signature after verifying the legitimacy of the certificate. The first signature can be decrypted by using the public key sent by the RFID terminal to ensure the accuracy of the source. Subsequently, the server randomly generates a first random number, which can be used as a link session key between the RFID terminal and the server. Before the server transmits the first random number to the RFID terminal, the first random number needs to be encrypted, encrypted by the public key of the server, and decrypted by the private key of the RFID terminal after being transmitted to the RFID terminal. In this way, the RFID terminal and the server both have the link session key, negotiate to generate the link session key before the link session, ensure the consistency of the subsequent key application between the server and the RFID terminal, and encrypt the authentication data between the server and the RFID terminal by the link session key during the establishment of the secure channel, effectively improving the security of data interaction between the RFID terminal and the server.

[0060] Step 14: Receive an initialization vector sent by the RFID terminal, wherein the initialization vector is a second random number generated by the RFID terminal, and the second random number is a random number generated by the RFID terminal after decrypting the first encrypted data based on a private key.

[0061] It is worth mentioning that the above-mentioned initialization vector can be a random initialization vector. The use of a random initialization vector can achieve semantic security, making it difficult for attackers to crack the ciphertext transmitted between the server and the RFID terminal. The RFID terminal can randomly generate a random number with a different bit sequence as an initialization vector. Secondly, the above-mentioned second random number is different from the first random number. The first random number is generated by the server, and the second random number is generated by the RFID terminal. There is no necessary connection between the first random number and the second random number. The first random number exists as a key for the link session between the server and the RFID terminal, and the second random number exists as an initial vector for encrypting the link session data after the link session is determined. In this application, the RFID terminal generates a second random number as an initial vector in the link session, which can effectively improve the security of the link session between the RFID terminal and the server.

[0062] Step 15: Execute a link session with the RFID terminal based on the link session key and the initialization vector.

[0063] In this step, the link session between the server and the RFID terminal is conducted on the basis of the above-mentioned link session key and the RFID terminal. Specifically, in the process of the server generating a plain text instruction and transmitting it to the RFID terminal, in order to ensure the security of the instruction transmission, the instruction needs to be encrypted, and the transmission plain text is encrypted by using the first random number as the link session key and the second random number as the initialization vector, and a secure channel is established between the server and the RFID terminal. It can be applied to a variety of practical application scenarios, and according to the configuration of the security level, communication resources are reasonably used. While ensuring high-security data transmission, the overall stability and communication efficiency of the system are improved, and the overall security of data transmission is improved.

[0064] In the first embodiment of the present application, first, when the RFID terminal device accesses the server, the server verifies the validity of the certificate of the RFID terminal device and the first signature signed by the RFID terminal private key. Secondly, a first random number is generated on the server as the link session key for the RFID terminal to access, and the public key sent by the RFID terminal to the server is encrypted, and the encrypted result, the first encrypted data, is transmitted to the RFID terminal. Finally, data encryption is transmitted between the RFID terminal and the server through the link session key and the initialization vector. In this way, the legitimacy of the RFID terminal accessing the server can be effectively judged for the legitimacy of the RFID terminal accessing the server, the security management of the server accessing the RFID terminal device is improved, and the possibility of accessing a pseudo-terminal is reduced. Secondly, the use of link session keys and initialization vectors in the data transmission process can effectively improve the security of data transmission between the server and the RFID terminal, and reduce the security risks of link monitoring.

[0065] Optionally, when the certificate is legal and the first signature is valid, obtaining the first encrypted data and transmitting the first encrypted data to the RFID terminal includes:

[0066] If the certificate is legal and the first signature is valid, generate the first random number, wherein each time the RFID terminal is accessed, the first random number is regenerated and each time the first random number is different;

[0067] The first encrypted data obtained by encrypting the first random number based on the public key is obtained.

[0068] In the embodiment of the present application, when the certificate is legal and the first signature is valid, the RFID terminal accesses the server, and the key is used to encrypt and transmit data during the link session between the RFID terminal and the server. It is particularly important to note that the first random number generated by the server will be regenerated each time the RFID terminal accesses the server, and each time the first random number is random and can be different. In this way, in the process of each RFID terminal accessing the server, the server generates a first random number as the link session key, encrypts the first random number with a public key and sends it to the RFID terminal, the RFID terminal receives the encrypted first random number, that is, the first encrypted data, and the RFID terminal uses the private key to decrypt the first encrypted data to restore the first random number. At this time, the RFID terminal also obtains the first random number, and the first random number begins to play a role as the link session key between the server and the RFID terminal. In this way, in the process of each RFID terminal device accessing the server, the server uses the regenerated first random number as the link session key to ensure that the link session key after each RFID terminal access is different, so as to achieve the "one-time one-key" of the link session, which effectively reduces the possibility of replay attacks. .

[0069] Optionally, the certificate of the RFID terminal is a certificate generated by the RFID terminal management platform based on the device information of the RFID terminal when the signature authentication with the RFID terminal is passed.

[0070] It should be mentioned that the above-mentioned RFID terminal management platform may refer to an RFID terminal management system, which may be specifically composed of two parts, the first part being a key management system, and the second part being a device issuance system. The key management system is mainly responsible for the generation, storage, import, export, backup and other management functions of device certificates. In order to ensure the security of the key, a cryptographic machine certified by the national secret system is required to complete the storage and calculation of the key. The device issuance system is mainly responsible for the management of RFID terminals accessing the system, including the access of the device system, the writing of device interaction authentication information, and the issuance of device certificates. The device certificate should be professionally designed according to the characteristics of the industry application. Specifically, the design may refer to the contents in Table 1 given in the above embodiment, and the embodiment of the present application does not limit this.

[0071] In the above specific embodiment, the certificate of the RFID terminal is generated by the RFID terminal management platform when the signature authentication with the RFID terminal is passed. The specific steps may be: the RFID terminal first generates a public key and a private key pair, retains the private key, and sends the public key and its own device information to the RFID terminal management platform. After receiving, the RFID terminal management platform generates a random number and sends it to the RFID terminal. The RFID terminal receives the random number sent by the RFID terminal management platform and signs it with a private key, and sends the signature result to the RFID terminal management platform. Subsequently, the RFID terminal management platform uses the public key to verify the signature of the previous step. After the verification is passed, the RFID terminal management platform makes a certificate based on the device information of the RFID terminal, sends it to the RFID terminal after the production is completed, and the RFID terminal writes the device certificate. Through the above steps, the RFID terminal can sign the random number sent back by the RFID terminal management platform with a private key, and the RFID terminal management platform will use the private key to authenticate the validity of the signature. If the authentication is valid, the certificate will be made and sent to the RFID terminal. In this way, it is ensured that the certificate issuance process is executed in a secure environment, the source of the certificate is reliable, and it can play a strong supporting role in the subsequent judgment of the server to verify the legitimacy of the RFID terminal, greatly reducing the possibility of the occurrence of pseudo-terminal situations.

[0072] See also Figure 2 , Figure 2 This is a second flowchart of a data transmission method provided in an embodiment of the present application, which is applied to an RFID terminal and includes the following steps:

[0073] Step 21: Send the first signature, the certificate and the public key of the RFID terminal to the server;

[0074] Step 22: Receive first encrypted data sent by the server, wherein the first encrypted data is data obtained by encrypting a first random number generated by the server through the public key when the server verifies that the certificate is legitimate and the first signature is valid, and the first random number is a link session key;

[0075] Step 23: decrypting the first encrypted data based on the private key;

[0076] Step 24: Generate a second random number and send it to the server, wherein the second random number is an initialization vector;

[0077] Step 25: Based on the link session key and the initialization vector, execute a link session with the server.

[0078] In the second embodiment of the present application, for the RFID terminal, the following steps can be specifically performed: receiving the third random number generated by the server and the certificate sent by the RFID terminal management platform, signing the third random number with the private key to obtain the first signature. Sending the public key, the first signature and the certificate to the server. After the server verifies the certificate and the first signature, it generates a first random number, encrypts it with the public key to obtain the first encrypted data, and transmits the first encrypted data to the RFID terminal. The RFID terminal receives the first encrypted data, and decrypts it with the private key to obtain the first random number, and the first random number is used as the link session key between the RFID terminal and the server. Subsequently, the RFID terminal generates a second random number as the initialization vector of the link session and transmits it to the server. The server initiates a service instruction to the RFID terminal with the first random number as the link session key and the second random number as the initialization vector. The RFID terminal uses the first random number to decrypt the service instruction. The RFID terminal and the server continue to transmit data. The above steps are a data transmission method applied to RFID terminals. Based on the technical architecture of PKI, an asymmetric key management center can be established first, a dedicated certificate can be issued to the RFID terminal, and the security management of the RFID terminal equipment can be completed. Secondly, based on the certificate generated by the RFID terminal management platform, the authentication between the server and the RFID terminal can be completed.

[0079] Optionally, the method comprises:

[0080] Generate a public key and a private key, obtain device information, and send the public key and the device information to the RFID terminal management platform;

[0081] Receiving a fourth random number generated by the RFID terminal management platform;

[0082] Sign the fourth random number based on the private key, obtain a second signature and send it to the RFID device management platform;

[0083] The certificate sent by the RFID terminal management platform is received and written into the certificate, where the certificate is generated by the RFID terminal management platform when verifying that the second signature is valid.

[0084] Specifically, the RFID terminal signs the fourth random number sent by the RFID terminal management platform based on its own private key to obtain a second signature. The RFID terminal management platform receives the second signature and verifies the second signature through the public key sent by the RFID terminal. After the verification, the certificate of the RFID terminal is generated. Subsequently, the RFID terminal management platform sends the certificate to the RFID terminal. Through the above steps, the RFID terminal establishes asymmetric key management based on the technical framework of KPI, obtains a dedicated certificate for the RFID terminal, and completes the legality management of the RFID terminal access server, which plays an important role.

[0085] Optionally, the device information includes authorization information of the RFID tag, and the sending of the public key and the device information to the RFID terminal management platform includes:

[0086] Determining the legitimacy of the RFID tag based on the authorization information;

[0087] If the RFID tag is legal, the public key and the device information are sent to the RFID terminal management platform.

[0088] It should be noted that the above-mentioned device information includes the authorization information of the RFID tag, which can be the authorization information for the RFID tag read by the RFID terminal. In the above-mentioned embodiment, the RFID terminal can preliminarily determine the legality of the content of the RFID tag based on the authorization information. Only when the RFID tag is legal, the RFID terminal will send the public key and device information to the RFID device management platform. For illegal tags, it can be directly rejected at the terminal, avoiding the data waste caused by uploading illegal data to the server and improving the processing capacity of the entire system.

[0089] Optionally, the receiving a fourth random number generated by the RFID terminal management platform, signing the fourth random number based on the private key, obtaining a second signature and sending it to the RFID device management platform includes:

[0090] The RFID terminal acquires and verifies the personal identification code and / or biometric feature of the RFID terminal;

[0091] verifying the personal identification code and / or identifying the biometric feature;

[0092] When the personal identification code verification is passed and / or the biometric feature recognition is passed, the fourth random number is signed based on the private key to obtain the second signature and send it to the RFID device management platform.

[0093] It is worth mentioning that the above-mentioned personal identification number (PIN) is a passcode consisting of a string of numbers, which is used to authenticate the identity of the RFID terminal user, authorize the user to log in to the RFID terminal, and become the prerequisite for subsequent access to the service end. The above-mentioned biometric features include but are not limited to the face, fingerprint, voice, etc. of the RFID terminal user.

[0094] In the embodiment of the present application, the RFID terminal uses a private key signature to prove its legal identity to the server, thereby better protecting the RFID terminal certificate and the resources accessible to the RFID terminal. The RFID terminal management platform needs to authenticate the RFID terminal before making a certificate for the RFID terminal. The authentication process can use but is not limited to a combination of a private key and a PIN, a combination of a private key and biometrics, and other two-factor authentication methods. Users use two different authentication factors to prove their identity, thereby better protecting user certificates and resources accessible to users.

[0095] See also Figure 3 , Figure 3 This is a flowchart of a data transmission method provided in an embodiment of the present application, which is applied to an RFID terminal management platform. The method includes:

[0096] Step 31: receiving the public key of the RFID terminal and the device information of the RFID terminal sent by the RFID terminal;

[0097] Step 32: Generate and send a fourth random number to the RFID terminal;

[0098] Step 33: Obtain a second signature of the RFID terminal, and verify the second signature based on the public key, wherein the second signature is a signature result obtained by the RFID terminal signing the fourth random number using the private key;

[0099] Step 34: if the second signature verification is valid, generate a certificate of the RFID terminal based on the device information of the RFID terminal;

[0100] Step 35: Send the certificate to the RFID terminal.

[0101] The third embodiment of the present application is applied to the RFID terminal management platform, mainly about the generation of RFID terminal certificates. Through the public key and device information about the RFID terminal sent to the RFID terminal management platform by the RFID terminal, the RFID terminal management platform first verifies the second signature to confirm that the accessed RFID terminal is a valid source. If the second signature verification is valid, a certificate of the RFID terminal is generated according to the device information of the RFID terminal. The certificate can distinguish the RFID terminal from other pseudo terminals, so that the RFID terminal can legally access the server.

[0102] like Figure 4 As shown, Figure 4 This is a fourth flowchart of a data transmission method provided in an embodiment of the present application, the method comprising:

[0103] Step 41: The RFID terminal generates a public key and a private key, and obtains device information of the RFID terminal;

[0104] Step 42, the RFID terminal sends the public key and device information to the RFID terminal management platform;

[0105] Step 43: The RFID terminal management platform generates a fourth random number;

[0106] Step 44: The RFID terminal management platform sends a fourth random number to the RFID terminal;

[0107] Step 45: The RFID terminal signs the fourth random number using the private key to obtain a second signature;

[0108] Step 46: The RFID terminal sends the first signature to the RFID terminal management platform;

[0109] Step 47: The RFID terminal management platform verifies the second signature using the public key. After verification, the RFID terminal management platform generates a certificate based on the device information;

[0110] Step 48: The RFID terminal management platform sends the certificate to the RFID terminal.

[0111] The above steps are a technical architecture based on public key between RFID terminal and RFID terminal management platform, which establishes an asymmetric key management center. The RFID terminal management platform issues a dedicated certificate to the RFID terminal to complete the security management of the RFID terminal.

[0112] Step 49: The server generates a third random number;

[0113] Step 50: The server sends a third random number to the RFID terminal;

[0114] Step 51: The RFID terminal signs the third random number using the private key to obtain a first signature;

[0115] Step 52: The RFID terminal sends the certificate, the first signature and the public key to the server;

[0116] Step 53: The server verifies the certificate and the first signature. If the verification is successful, the server generates a first random number and encrypts the first random number using the public key to obtain first encrypted data;

[0117] Step 54: the server sends the first encrypted data to the RFID terminal;

[0118] Step 55: The RFID terminal uses the private key to decrypt the first encrypted data, obtains a first random number, and uses the first random number as link session data. It also generates a second random number and uses the second random number as an initialization vector;

[0119] Step 56: The RFID terminal sends a second random number to the server;

[0120] Step 57: Use the first random number as a link encryption key and the second random number as an initialization vector to conduct a link session with the RFID terminal;

[0121] Step 58: The server sends encrypted instructions to the RFID terminal to conduct a link session.

[0122] In the above steps, first, when the RFID terminal accesses the server, the server verifies the validity of the certificate of the RFID terminal and the first signature obtained by the RFID terminal through the private key signature. Secondly, the server generates a first random number as the link session key for the server to access the RFID terminal this time, encrypts it using the public key to obtain the first encrypted data, and transmits the first encrypted data to the RFID terminal. Finally, after the RFID terminal accesses the server for authentication, the RFID terminal and the server perform data encryption transmission through the link session key and the initialization vector. The embodiment of the present application greatly improves the security of data transmission when the RFID terminal accesses the server, and reduces the possibility of pseudo-terminal access to the server.

[0123] The embodiment of the present application may also provide a data transmission device, which may be applied to a server, and the device includes:

[0124] An access module, used to access a radio frequency identification (RFID) terminal and obtain a public key of the RFID terminal, a certificate of the RFID terminal and a first signature of the RFID terminal;

[0125] A verification module, used for verifying the certificate and the first signature;

[0126] an acquisition module, configured to acquire first encrypted data and transmit the first encrypted data to the RFID terminal when the certificate is legal and the first signature is valid, wherein the first encrypted data is data obtained by encrypting a first random number using the public key, and the first random number is a link session key;

[0127] A first receiving module, configured to receive an initialization vector sent by the RFID terminal, wherein the initialization vector is a second random number generated by the RFID terminal, and the second random number is a random number generated by the RFID terminal after decrypting the first encrypted data based on a private key;

[0128] The first execution module is used to execute a link session with the RFID terminal based on the link session key and the initialization vector.

[0129] Optionally, the acquisition module is used to:

[0130] If the certificate is legal and the first signature is valid, generate the first random number, wherein each time the RFID terminal is accessed, the first random number is regenerated and each time the first random number is different;

[0131] The first encrypted data obtained by encrypting the first random number based on the public key is obtained.

[0132] Optionally, the certificate of the RFID terminal is a certificate generated by the RFID terminal management platform based on the device information of the RFID terminal when the signature authentication with the RFID terminal is passed.

[0133] Another embodiment of the present application may also provide a data transmission device, which may be applied to an RFID terminal, and the device includes:

[0134] A sending module, used for sending the first signature, the certificate and the public key of the RFID terminal to the server;

[0135] A second receiving module is used to receive first encrypted data sent by the server, wherein the first encrypted data is data obtained by encrypting a first random number generated by the server through the public key when the server verifies that the certificate is legal and the first signature is valid, and the first random number is a link session key;

[0136] a decryption module, configured to decrypt the first encrypted data based on the private key;

[0137] A first generating module, used for generating a second random number and sending the second random number to the server, wherein the second random number is an initialization vector;

[0138] The second execution module is used to execute the link session with the server based on the link session key and the initialization vector.

[0139] Optionally, the device is used to:

[0140] Generate a public key and a private key, obtain device information, and send the public key and the device information to the RFID terminal management platform;

[0141] Receiving a fourth random number generated by the RFID terminal management platform;

[0142] Sign the fourth random number based on the private key, obtain a second signature and send it to the RFID device management platform;

[0143] The certificate sent by the RFID terminal management platform is received and written into the certificate, where the certificate is generated by the RFID terminal management platform when verifying that the second signature is valid.

[0144] Optionally, the device information includes authorization information of the RFID tag, and the apparatus is used to:

[0145] Determining the legitimacy of the RFID tag based on the authorization information;

[0146] If the RFID tag is legal, the public key and the device information are sent to the RFID terminal management platform.

[0147] Optionally, the device is used to:

[0148] The RFID terminal acquires and verifies the personal identification code and / or biometric feature of the RFID terminal;

[0149] verifying the personal identification code and / or identifying the biometric feature;

[0150] When the personal identification code verification is passed and / or the biometric feature recognition is passed, the fourth random number is signed based on the private key to obtain the second signature and send it to the RFID device management platform.

[0151] Another embodiment of the present application may also provide a data transmission device, which may be applied to an RFID terminal management platform, and the device includes:

[0152] A third receiving module, used for receiving the public key of the RFID terminal and the device information of the RFID terminal sent by the RFID terminal;

[0153] A second generating module, used for generating and sending a fourth random number to the RFID terminal;

[0154] A third acquisition module is used to obtain a second signature of the RFID terminal and verify the second signature based on the public key, wherein the second signature is a signature result obtained by the RFID terminal signing the fourth random number with a private key;

[0155] A third generating module, configured to generate a certificate of the RFID terminal based on the device information of the RFID terminal when the second signature verification is valid;

[0156] The certificate sending module is used to send the certificate to the RFID terminal.

[0157] It should be noted that the data transmission device provided in the embodiment of the present disclosure can implement all the technical processes in the above-mentioned data transmission method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0158] See also Figure 5 , Figure 5 It is a structural diagram of an electronic device provided in an embodiment of the present application, including a processor 61, a memory 62, and a computer program stored in the memory 62 and executable on the processor. When the computer program is executed by the processor 61, each process of the above-mentioned data transmission method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.

[0159] The embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, each process of the above-mentioned data transmission method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. The computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0160] 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.

[0161] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0162] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A data transmission method, characterized in that: Applied to the server, the method includes: Accessing a radio frequency identification (RFID) terminal and obtaining a public key of the RFID terminal, a certificate of the RFID terminal and a first signature of the RFID terminal, where the first signature is obtained by the RFID terminal signing a third random number generated by the server using a private key of the RFID terminal; verifying the certificate and the first signature; When the certificate is legal and the first signature is valid, obtaining first encrypted data, and transmitting the first encrypted data to the RFID terminal, wherein the first encrypted data is data obtained by encrypting a first random number using the public key, and the first random number is a link session key; Receiving an initialization vector sent by the RFID terminal, wherein the initialization vector is a second random number generated by the RFID terminal, and the second random number is a random number generated by the RFID terminal after decrypting the first encrypted data based on a private key; Based on the link session key and the initialization vector, executing a link session with the RFID terminal; The certificate of the RFID terminal is a certificate generated by the RFID terminal management platform based on the device information of the RFID terminal when the second signature authentication with the RFID terminal is passed; The second signature is obtained by the RFID terminal signing the fourth random number based on the private key when the RFID terminal sends the public key and device information to the RFID terminal management platform and the RFID terminal management platform generates a fourth random number.

2. The method according to claim 1, characterized in that When the certificate is legal and the first signature is valid, obtaining the first encrypted data and transmitting the first encrypted data to the RFID terminal includes: If the certificate is legal and the first signature is valid, generate the first random number, wherein each time the RFID terminal is accessed, the first random number is regenerated and each time the first random number is different; The first encrypted data obtained by encrypting the first random number based on the public key is obtained.

3. A data transmission method, characterized in that: Applied to an RFID terminal, the method comprises: Generate a public key and a private key, obtain device information, and send the public key and the device information to the RFID terminal management platform; receive a fourth random number generated by the RFID terminal management platform; sign the fourth random number based on the private key, obtain a second signature and send it to the RFID terminal management platform; receiving a certificate sent by the RFID terminal management platform and writing the certificate, wherein the certificate is generated by the RFID terminal management platform based on the device information when verifying that the second signature is valid; Sending a first signature, a certificate, and a public key of the RFID terminal to a server, wherein the first signature is obtained by the RFID terminal signing a third random number generated by the server based on the private key of the RFID terminal; Receiving first encrypted data sent by the server, wherein the first encrypted data is data obtained by encrypting a first random number generated by the server through the public key when the server verifies that the certificate is legitimate and the first signature is valid, and the first random number is a link session key; decrypting the first encrypted data based on the private key of the RFID terminal; Generate a second random number and send it to the server, wherein the second random number is an initialization vector; Based on the link session key and the initialization vector, a link session is performed with the server.

4. The method according to claim 3, characterized in that The device information includes authorization information of the RFID tag, and sending the public key and the device information to the RFID terminal management platform includes: Determining the legitimacy of the RFID tag based on the authorization information; If the RFID tag is legal, the public key and the device information are sent to the RFID terminal management platform.

5. The method according to claim 3, characterized in that: The receiving the fourth random number generated by the RFID terminal management platform, signing the fourth random number based on the private key, obtaining the second signature and sending it to the RFID terminal management platform includes: The RFID terminal acquires and verifies the personal identification code and / or biometric feature of the RFID terminal; verifying the personal identification code and / or identifying the biometric feature; When the personal identification code verification is passed and / or the biometric feature recognition is passed, the fourth random number is signed based on the private key to obtain the second signature and send it to the RFID terminal management platform.

6. A data transmission method, characterized in that: Applied to an RFID terminal management platform, the method includes: Receiving the public key of the RFID terminal and the device information of the RFID terminal sent by the RFID terminal; Generate and send a fourth random number to the RFID terminal; Obtaining a second signature of the RFID terminal, and verifying the second signature based on the public key, wherein the second signature is a signature result obtained by the RFID terminal signing the fourth random number using the private key; If the second signature verification is valid, generating a certificate of the RFID terminal based on the device information of the RFID terminal; Sending the certificate to the RFID terminal; Wherein, when the RFID terminal sends the first signature, the certificate and the public key of the RFID terminal to the server, and when the server verifies that the certificate is legal and the first signature is valid, the server sends the first encrypted data obtained by encrypting the first random number by the public key to the RFID terminal; When the RFID terminal uses the private key to decrypt the first encrypted data to obtain the first random number, the RFID terminal uses the generated second random number as the initial vector of the link session, and uses the first random number as the link session key to execute the link session with the server.

7. An electronic device, characterized in that: It comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of a data transmission method according to any one of claims 1 to 6 are implemented.

8. A computer-readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps of a data transmission method according to any one of claims 1 to 6 are implemented.