Data transmission method and device, computer device and storage medium
By generating a first key and hash value for user payment data, and combining encryption algorithms with blockchain transmission, the problem of traditional encryption methods being easily cracked is solved, thus improving the security and protection of data transmission.
Patent Information
- Application Number
- CN202410342733.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-25
- Publication Date
- 2025-12-12
- Estimated Expiration
- 2044-03-25
AI Technical Summary
Traditional data encryption transmission methods are easily deciphered by malicious clients, resulting in poor data security protection during data transmission.
By generating a first key and a first hash value for user payment data, encrypting the user payment data using a first encryption algorithm to generate ciphertext data, and then encrypting the first key using a second encryption algorithm, the ciphertext data and hash value are transmitted using blockchain to improve the decryption difficulty and security of the data.
This increases the difficulty of decrypting user payment data and enhances its security protection, making it more difficult for malicious clients to obtain user payment data, and comprehensively improves the data security protection during data transmission.
Smart Images

Figure CN118199989B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of big data and information security protection, and particularly relates to a data transmission method and device, computer equipment and a storage medium. BACKGROUND
[0002] In recent years, bank customer information theft events occur frequently at home and abroad, and data security incidents often occur during data transmission. To ensure data transmission security, encryption of data transmission is of the utmost importance. Among them, the user payment data of the provident fund payment information transmitted between the bank and the provident fund center is basically the personal data of the user, so adding data transmission encryption means in the provident fund payment information transmission process can effectively prevent data leakage, theft and tampering, and is a common means to ensure data security. To ensure the confidentiality of data transmission, the data needs to be encrypted before transmission, otherwise the data will be transmitted in plaintext, which will face huge security risks. Therefore, how to encrypt and transmit data information is the current research focus.
[0003] The traditional data encryption transmission method is to encrypt the data to be transmitted and then transmit the data, but the traditional encryption method can be collected by malicious clients and decrypted, resulting in poor data security protection effect during data transmission. SUMMARY
[0004] Therefore, it is necessary to provide a data transmission method, device, computer equipment, computer readable storage medium and computer program product to solve the above technical problems.
[0005] In a first aspect, the present application provides a data transmission method. The method comprises:
[0006] obtaining provident fund payment information of a user, and based on user payment data in the provident fund payment information, generating a first key of the user payment data and a first hash value corresponding to the user payment data;
[0007] encrypting the user payment data by the first key and a first encryption algorithm to obtain ciphertext data corresponding to the user payment data, and encrypting the first key by a second encryption algorithm to obtain an encryption key of the first key;
[0008] send the submission query request message containing the ciphertext data and the encryption key to the provident fund center client, and send the first hash value to the provident fund center client through the blockchain; the submission query request message and the first hash value are used to instruct the provident fund center client to query the provident fund submission data of the user, and feed back a provident fund submission message containing submission ciphertext data corresponding to the provident fund submission data and a second hash value corresponding to the provident fund submission data;
[0009] identify the provident fund submission data of the user based on the provident fund submission message and the second hash value.
[0010] Optionally, the generating, based on the user payment data in the provident fund payment information, of the first key of the user payment data and the first hash value corresponding to the user payment data comprises:
[0011] generating a string of preset characters as the first key of the user payment data through a key generation strategy;
[0012] identifying a data string message of the user payment data, and performing hash encryption processing on the data string message through a hash algorithm to obtain the first hash value corresponding to the user payment data.
[0013] Optionally, the identifying, based on the provident fund submission message and the second hash value, of the provident fund submission data of the user comprises:
[0014] performing decryption processing on the submission ciphertext data through a first decryption algorithm corresponding to the first encryption algorithm based on the first key to obtain decrypted provident fund submission data, and calculating a verification first hash value corresponding to the decrypted provident fund submission data through a hash algorithm;
[0015] judging whether the second hash value is consistent with the verification first hash value, and taking the decrypted provident fund submission data as the provident fund submission data of the user in the case where the second hash value is consistent with the verification first hash value.
[0016] Optionally, in the case where the second hash value is not consistent with the verification first hash value, the method further comprises:
[0017] sending a retransmission request message to the provident fund center client; the retransmission request message is used to instruct the provident fund center client to again feed back a provident fund submission message containing submission ciphertext data corresponding to the provident fund submission data and a second hash value corresponding to the provident fund submission data;
[0018] Return to execute based on the first key, through the first decryption algorithm corresponding to the first encryption algorithm, the payment ciphertext data is decrypted, and the decrypted public accumulation payment data is obtained. When the decrypted public accumulation payment data is correct, the decrypted public accumulation payment data is used as the public accumulation payment data of the user.
[0019] In a second aspect, the present application provides a data transmission method. The method comprises:
[0020] The bank client sends a payment query request message, and parses the ciphertext data in the payment query request message, the first hash value in the payment query request message, and the encryption key in the payment query request message. The ciphertext data is generated by the first key and the first encryption algorithm, the first hash value is generated by the user payment data, and the encryption key is obtained by encrypting the first key by the second encryption algorithm;
[0021] Based on the first hash value, the encryption key and the ciphertext data are decrypted to obtain the second key and the user payment data, and based on the user payment data, the public accumulation payment data corresponding to the user payment data is queried;
[0022] Based on the public accumulation payment data and the second key, the payment ciphertext data corresponding to the public accumulation payment data and the second hash value corresponding to the public accumulation payment data are generated;
[0023] The public accumulation payment message containing the payment ciphertext data corresponding to the public accumulation payment data is sent to the bank client, and the second hash value corresponding to the public accumulation payment data is sent to the bank client through the block chain.
[0024] Optionally, the decryption processing of the encryption key and the ciphertext data based on the first hash value to obtain the second key and the user payment data comprises:
[0025] The encryption key is decrypted by the second decryption algorithm corresponding to the second encryption algorithm to obtain the second key, and the ciphertext data is decrypted by the first decryption algorithm corresponding to the first encryption algorithm through the second key to obtain the decrypted user payment data;
[0026] The verification first hash value corresponding to the decrypted user payment data is calculated by the hash algorithm, and in the case that the verification first hash value is the same as the first hash value, the decrypted user payment data is used as the user payment data.
[0027] Optionally, the generating, based on the second key and the fund contribution data, the fund contribution ciphertext data corresponding to the fund contribution data and the second hash value corresponding to the fund contribution data comprises:
[0028] The fund contribution data is encrypted by the second key and the first encryption algorithm to obtain the fund contribution ciphertext data corresponding to the fund contribution data.
[0029] The fund contribution data string message corresponding to the fund contribution data is identified, and the fund contribution data string message is encrypted by a hash algorithm to obtain the second hash value corresponding to the fund contribution data.
[0030] In a third aspect, the present application also provides a data transmission system. The system comprises a bank client and a fund center client.
[0031] The bank client is wirelessly connected to the fund center client.
[0032] The bank client is configured to obtain fund contribution information of a user, generate a first key of user contribution data in the fund contribution information of the user and a first hash value corresponding to the user contribution data based on the user contribution data, encrypt the user contribution data by the first key and a first encryption algorithm to obtain ciphertext data corresponding to the user contribution data, and encrypt the first key by a second encryption algorithm to obtain an encryption key of the first key. The bank client is further configured to send a contribution query request message containing the ciphertext data and the encryption key to the fund center client, and send the first hash value to the fund center client through a block chain.
[0033] The fund center client is configured to receive the contribution query request message sent by the bank client, and parse the ciphertext data in the contribution query request message, the first hash value in the contribution query request message, and the encryption key in the contribution query request message. The fund center client is further configured to decrypt the encryption key and the ciphertext data based on the first hash value to obtain a second key and user contribution data, query fund contribution data corresponding to the user contribution data based on the user contribution data, generate fund contribution ciphertext data corresponding to the fund contribution data and a second hash value corresponding to the fund contribution data based on the fund contribution data and the second key, send a fund contribution message containing the fund contribution ciphertext data corresponding to the fund contribution data to the bank client, and send the second hash value corresponding to the fund contribution data to the bank client through a block chain.
[0034] The bank client is further configured to receive the public accumulation fund payment message and the second hash value sent by the public accumulation fund center client, and identify the public accumulation fund payment data of the user based on the public accumulation fund payment message and the second hash value.
[0035] In a fourth aspect, the present application provides a data transmission device. The device comprises:
[0036] The acquisition module is configured to acquire the public accumulation fund payment information of the user, and generate a first key of the user payment data and a first hash value corresponding to the user payment data based on the user payment data in the public accumulation fund payment information.
[0037] The encryption module is configured to encrypt the user payment data by the first key and a first encryption algorithm to obtain ciphertext data corresponding to the user payment data, and encrypt the first key by a second encryption algorithm to obtain an encryption key of the first key.
[0038] The first sending module is configured to send a payment query request message containing the ciphertext data and the encryption key to a public accumulation fund center client, and send the first hash value to the public accumulation fund center client through a block chain. The payment query request message and the first hash value are used to instruct the public accumulation fund center client to query the public accumulation fund payment data of the user, and feed back a public accumulation fund payment message containing payment ciphertext data corresponding to the public accumulation fund payment data and a second hash value corresponding to the public accumulation fund payment data.
[0039] The identification module is configured to identify the public accumulation fund payment data of the user based on the public accumulation fund payment message and the second hash value.
[0040] Optionally, the acquisition module is specifically configured to:
[0041] Generate a string of preset characters as the first key of the user payment data by a key generation strategy.
[0042] Identify a data string message of the user payment data, and perform hash encryption processing on the data string message by a hash algorithm to obtain the first hash value corresponding to the user payment data.
[0043] Optionally, the identification module is specifically configured to:
[0044] Decrypt the payment ciphertext data by a first decryption algorithm corresponding to the first encryption algorithm based on the first key to obtain decrypted public accumulation fund payment data, and calculate a verification first hash value corresponding to the decrypted public accumulation fund payment data by a hash algorithm.
[0045] determining whether the second hash value is consistent with the verification first hash value, and in the case that the second hash value is consistent with the verification first hash value, taking the decrypted public accumulation payment data as the public accumulation payment data of the user.
[0046] Optionally, in the case that the second hash value is consistent with the verification first hash value, the device further comprises:
[0047] a retransmission module configured to send a retransmission request message to the public accumulation center client, wherein the retransmission request message is used to instruct the public accumulation center client to feed back again a public accumulation payment message containing the payment ciphertext data corresponding to the public accumulation payment data and the second hash value corresponding to the public accumulation payment data;
[0048] an iteration module configured to return to execute a step of decrypting the payment ciphertext data by a first decryption algorithm corresponding to the first encryption algorithm based on the first key, until the decrypted public accumulation payment data is correct, and then take the decrypted public accumulation payment data as the public accumulation payment data of the user.
[0049] In a fifth aspect, the present application further provides a data transmission device. The device comprises:
[0050] a first receiving module configured to receive a payment query request message sent by a bank client, and parse ciphertext data in the payment query request message, a first hash value in the payment query request message, and an encryption key in the payment query request message; the ciphertext data is generated by a first key and a first encryption algorithm, the first hash value is generated by user payment data, and the encryption key is obtained by encrypting the first key by a second encryption algorithm;
[0051] a decryption module configured to decrypt the encryption key and the ciphertext data based on the first hash value to obtain a second key and user payment data, and query public accumulation payment data corresponding to the user payment data based on the user payment data;
[0052] a generation module configured to generate payment ciphertext data corresponding to the public accumulation payment data and a second hash value corresponding to the public accumulation payment data based on the public accumulation payment data and the second key;
[0053] a second sending module configured to send a public accumulation payment message containing the payment ciphertext data corresponding to the public accumulation payment data to the bank client, and send the second hash value corresponding to the public accumulation payment data to the bank client through a block chain.
[0054] Optionally, the decryption module is specifically used for:
[0055] decrypting the encryption key through a second decryption algorithm corresponding to the second encryption algorithm to obtain a second key, and decrypting the ciphertext data through the second key and a first decryption algorithm corresponding to the first encryption algorithm to obtain decrypted user payment data;
[0056] calculating a verification first hash value corresponding to the decrypted user payment data through a hash algorithm, and taking the decrypted user payment data as user payment data in a case where the verification first hash value is the same as a first hash value.
[0057] Optionally, the generation module is specifically used for:
[0058] encrypting the public accumulation fund payment data through the second key and the first encryption algorithm to obtain payment ciphertext data corresponding to the public accumulation fund payment data;
[0059] identifying payment data string messages corresponding to the public accumulation fund payment data, and encrypting the payment data string messages through a hash algorithm to obtain a second hash value corresponding to the public accumulation fund payment data.
[0060] In a sixth aspect, the present application provides a computer device. The computer device comprises a memory and a processor, the memory stores a computer program, and the processor implements the steps of the method in any one of the first aspect and the second aspect when executing the computer program.
[0061] In a seventh aspect, the present application provides a computer readable storage medium. A computer program is stored on the computer readable storage medium, and the computer program is executed by a processor to implement the steps of the method in any one of the first aspect and the second aspect.
[0062] In an eighth aspect, the present application provides a computer program product. The computer program product comprises a computer program, and the computer program is executed by a processor to implement the steps of the method in any one of the first aspect and the second aspect.
[0063] The aforementioned data transmission method, apparatus, computer equipment, and storage medium acquire a user's housing provident fund payment information and, based on the user payment data in the housing provident fund payment information, generate a first key for the user payment data and a first hash value corresponding to the user payment data; encrypt the user payment data using the first key and a first encryption algorithm to obtain ciphertext data corresponding to the user payment data, and encrypt the first key using a second encryption algorithm to obtain an encryption key for the first key; send a payment query request message containing the ciphertext data and the encryption key to the housing provident fund center client, and send the first hash value to the housing provident fund center client via blockchain; the payment query request message and the first hash value are used to instruct the housing provident fund center client to query the user's housing provident fund payment data, and return a housing provident fund payment message containing the ciphertext data corresponding to the housing provident fund payment data and a second hash value corresponding to the housing provident fund payment data; and identify the user's housing provident fund payment data based on the housing provident fund payment message and the second hash value. This solution encrypts user payment data by combining a first encryption algorithm and a key, then encrypts the key using a second encryption algorithm. Finally, after generating a first hash value for the user payment data, the solution transmits the payment query request message to the housing provident fund center. This increases the decryption difficulty and security of the user payment data. Furthermore, by transmitting the ciphertext data, encryption key, and first hash value through separate channels, the solution increases the difficulty for malicious clients to obtain the user payment data. Specifically, for a malicious client to completely obtain the user's payment data, it needs to simultaneously obtain the ciphertext data, encryption key, first hash value, the decryption algorithm corresponding to the ciphertext data, and the decryption algorithm corresponding to the encryption key. Therefore, this solution significantly increases the difficulty for malicious clients to obtain user payment data, thereby comprehensively improving the data security protection during data transmission. Attached Figure Description
[0064] Figure 1 This is a flowchart illustrating a data transmission method in one embodiment;
[0065] Figure 2 This is a flowchart illustrating the data transmission method in another embodiment;
[0066] Figure 3 This is a flowchart illustrating the data transmission system in one embodiment;
[0067] Figure 4 This is a flowchart illustrating a data transmission interaction example in one embodiment;
[0068] Figure 5A structural block diagram of a data transmission device in one embodiment;
[0069] Figure 6 A structural block diagram of a data transmission device in another embodiment;
[0070] Figure 7 An internal structural diagram of a computer device in one embodiment. DETAILED DESCRIPTION
[0071] For the purpose, technical solutions and advantages of the present application to be more clear, the present application is further described in detail below in combination with the drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and do not limit the present application.
[0072] The data transmission method provided by the embodiment of the present application can be applied to the application environment of personal data transmission. The method can be applied to a terminal, a server, or a system including a terminal and a server, and is realized through the interaction of the terminal and the server. The terminal can be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, etc. The terminal encrypts the user payment data by combining a first encryption algorithm and a key, then encrypts the key by a second encryption algorithm, and then transmits the payment query request message to the public accumulation center after generating the first hash value of the user payment data, thereby improving the decryption difficulty of the user payment data and the security protection effect of the user payment data. In addition, the ciphertext data, the encryption key, and the first hash value are transmitted through different channels, which improves the difficulty of malicious clients obtaining the user payment data. In order to completely obtain the user payment data of the user, the malicious client needs to obtain the ciphertext data, the encryption key, the first hash value, the decryption algorithm corresponding to the ciphertext data, the decryption algorithm corresponding to the encryption key, etc. Therefore, the present scheme greatly improves the difficulty of malicious clients obtaining the user payment data, thereby comprehensively improving the data security protection effect in the data transmission process.
[0073] In one embodiment, as shown in Figure 1 A data transmission method is provided, and the terminal corresponding to the bank client is taken as an example to illustrate the method, which includes the following steps:
[0074] In step S101, the user's public accumulation payment information is obtained, and based on the user payment data in the public accumulation payment information, the first key of the user payment data and the first hash value corresponding to the user payment data are generated.
[0075] In this embodiment, the terminal obtains the user's public accumulation fund payment information after obtaining the user's authorization. The public accumulation fund payment information is the payment data of the user to the public accumulation fund center, which includes the user's personal data (such as name, age, ID number, gender, and working unit), the user's payment amount, and the client of the payment public accumulation fund center. Then, the terminal generates a first key of the user's payment data and a first hash value corresponding to the user's payment data based on the user's payment data in the public accumulation fund payment information. The first key is a 16-bit string key. The user's payment data includes the user's personal data and the payment amount, and the specific generation process will be described in detail later.
[0076] In step S102, the user's payment data is encrypted by the first key and the first encryption algorithm to obtain the ciphertext data corresponding to the user's payment data, and the first key is encrypted by the second encryption algorithm to obtain the encryption key of the first key.
[0077] In this embodiment, the terminal encrypts the user's payment data by the first key and the first encryption algorithm to obtain the ciphertext data corresponding to the user's payment data, and encrypts the first key by the second encryption algorithm to obtain the encryption key of the first key. The first encryption algorithm is the AES (Advanced Encryption Standard) encryption algorithm, and the second encryption algorithm is the RSA encryption algorithm (Ron Rivest, Adi Shamir, and Leonard Adleman). The ciphertext data is Encode_DATA, and the encryption key is Encode_KEY.
[0078] In step S103, the payment and query request message containing the ciphertext data and the encryption key is sent to the public accumulation fund center client, and the first hash value is sent to the public accumulation fund center client through the block chain.
[0079] The payment and query request message and the first hash value are used to instruct the public accumulation fund center client to query the user's public accumulation fund payment data and feed back the public accumulation fund payment message containing the payment ciphertext data corresponding to the public accumulation fund payment data and the second hash value corresponding to the public accumulation fund payment data.
[0080] In this embodiment, the terminal sends the submission query request message containing the ciphertext data and the encryption key to the provident fund center client, and sends the first hash value to the provident fund center client through the blockchain. The blockchain includes the bank client, the provident fund center clients, and the third-party notary agency client. The terminal sends the submission query request message and the first hash value to the provident fund center client through the blockchain and the conventional data transmission channel.
[0081] In step S104, the user's provident fund submission data is identified based on the provident fund submission message and the second hash value.
[0082] In this embodiment, the terminal identifies the user's provident fund submission data based on the provident fund submission message and the second hash value. The specific identification process will be described in detail later.
[0083] Based on the above scheme, the user's payment data is encrypted by combining the first encryption algorithm and the key, and then the key is encrypted by the second encryption algorithm. Then, the first hash value of the user's payment data is generated, and the submission query request message is transmitted to the provident fund center, thereby improving the decryption difficulty of the user's payment data and the security protection effect of the user's payment data. In addition, the ciphertext data, the encryption key, and the first hash value are transmitted through different channels, which improves the difficulty of malicious clients obtaining the user's payment data. In order to completely obtain the user's payment data, the malicious client needs to obtain the ciphertext data, the encryption key, the first hash value, the decryption algorithm corresponding to the ciphertext data, the decryption algorithm corresponding to the encryption key, and the like. Therefore, the present scheme greatly improves the difficulty of malicious clients obtaining the user's payment data, thereby comprehensively improving the data security protection effect in the data transmission process.
[0084] Optionally, based on the user's payment data in the provident fund payment information, the first key of the user's payment data and the first hash value corresponding to the user's payment data are generated, including: generating a string of preset characters as the first key of the user's payment data through a key generation strategy; identifying the data string message of the user's payment data, and performing hash encryption processing on the data string message through a hash algorithm to obtain the first hash value corresponding to the user's payment data.
[0085] In this embodiment, the terminal generates a string of preset characters as the first key of the user's payment data through a key generation strategy. The key generation strategy is a generation strategy of a 16-bit string key.
[0086] Then, the terminal identifies the data string message of the user's payment data, and performs hash encryption processing on the data string message through a hash algorithm to obtain the first hash value corresponding to the user's payment data.
[0087] Based on the above scheme, by generating a random key before each transmission, the data security protection effect of each data transmission process is improved.
[0088] Optionally, based on the public accumulation payment message and the second hash value, the public accumulation payment data of the user is identified, including: based on the first key, the first encryption algorithm corresponding to the first decryption algorithm is used to decrypt the payment ciphertext data to obtain decrypted public accumulation payment data, and a hash algorithm is used to calculate a verification first hash value corresponding to the decrypted public accumulation payment data; it is judged whether the second hash value and the verification first hash value are consistent, and in the case that the second hash value and the verification first hash value are consistent, the decrypted public accumulation payment data is taken as the public accumulation payment data of the user.
[0089] In this embodiment, the terminal decrypts the payment ciphertext data based on the first key through the first decryption algorithm corresponding to the first encryption algorithm, i.e., the AES decryption algorithm, to obtain decrypted public accumulation payment data, and calculates a verification first hash value corresponding to the decrypted public accumulation payment data through a hash algorithm.
[0090] Then, the terminal judges whether the decrypted public accumulation payment data is correct based on the second hash value and the verification first hash value, and in the case that the decrypted public accumulation payment data is correct, the decrypted public accumulation payment data is taken as the public accumulation payment data of the user. Wherein, when the second hash value is the same as the verification first hash value, the decrypted public accumulation payment data is correct; when the second hash value is different from the verification first hash value, the decrypted public accumulation payment data is incorrect.
[0091] Based on the above scheme, by using the decryption algorithm to decrypt the ciphertext and using the hash algorithm to verify the data, the security protection effect of the public accumulation payment data is improved.
[0092] Optionally, in the case that the second hash value and the verification first hash value are not consistent, the method further includes: sending a retransmission request message to the public accumulation center client; the retransmission request message is used to instruct the public accumulation center client to feed back the public accumulation payment message containing the payment ciphertext data corresponding to the public accumulation payment data and the second hash value corresponding to the public accumulation payment data again; returning to the step of decrypting the payment ciphertext data based on the first key through the first decryption algorithm corresponding to the first encryption algorithm to obtain the decrypted public accumulation payment data, until the decrypted public accumulation payment data is correct, and then taking the decrypted public accumulation payment data as the public accumulation payment data of the user.
[0093] In this embodiment, the terminal sends a retransmission request message to the provident fund center client. The retransmission request message is used to instruct the provident fund center client to again feed back the provident fund payment message containing the payment ciphertext data corresponding to the provident fund payment data and the second hash value corresponding to the provident fund payment data.
[0094] After the terminal reacquires the payment ciphertext data and the second hash value, the terminal returns to perform a step of decrypting the payment ciphertext data based on the first key by a first decryption algorithm corresponding to the first encryption algorithm, until the decrypted provident fund payment data is correct, and then the decrypted provident fund payment data is taken as the provident fund payment data of the user.
[0095] Based on the above scheme, the data is iteratively acquired in the case of incorrect verification by the hash algorithm, which not only improves the difficulty of malicious clients to acquire the provident fund payment data and improves the security protection effect of the provident fund payment data, but also avoids data anomalies of the acquired provident fund payment data through hash verification, and improves the acquisition accuracy of the acquired provident fund payment data.
[0096] In one embodiment, as shown in Figure 2 A data transmission method is provided, and the terminal corresponding to the provident fund center client is taken as an example for illustration, including the following steps:
[0097] Step S201, receiving the payment query request message sent by the bank client, and parsing the ciphertext data in the payment query request message, the first hash value in the payment query request message, and the encryption key in the payment query request message.
[0098] The ciphertext data is generated by the first key and the first encryption algorithm, the first hash value is generated by the user payment data, and the encryption key is obtained by encrypting the first key by the second encryption algorithm.
[0099] In this embodiment, the terminal receives the payment query request message sent by the bank client, and parses the ciphertext data in the payment query request message, the first hash value in the payment query request message, and the encryption key in the payment query request message. In one embodiment, the payment query request message is an encrypted message encrypted by the national secret algorithm, and the terminal decrypts the encrypted message by the decryption algorithm corresponding to the national secret algorithm to obtain the ciphertext data in the payment query request message, the first hash value in the payment query request message, and the encryption key in the payment query request message.
[0100] Step S202, based on the first hash value, the encrypted key and the ciphertext data are decrypted to obtain the second key and the user payment data, and based on the user payment data, the public accumulation fund payment data corresponding to the user payment data is queried.
[0101] In this embodiment, the terminal decrypts the encrypted key and the ciphertext data based on the first hash value to obtain the second key and the user payment data, and queries the public accumulation fund payment data corresponding to the user payment data based on the user payment data. The specific decryption process will be described in detail later, wherein the second key has the same key string as the first key.
[0102] Step S203, based on the public accumulation fund payment data and the second key, the payment ciphertext data corresponding to the public accumulation fund payment data and the second hash value corresponding to the public accumulation fund payment data are generated.
[0103] In this embodiment, the terminal generates the payment ciphertext data corresponding to the public accumulation fund payment data and the second hash value corresponding to the public accumulation fund payment data based on the public accumulation fund payment data and the second key. The way of generating the payment ciphertext data is the same as the way of generating the ciphertext data, and the way of generating the second hash value is the same as the way of generating the first hash value, which will not be described in detail.
[0104] Step S204, the public accumulation fund payment message containing the payment ciphertext data corresponding to the public accumulation fund payment data is sent to the bank client, and the second hash value corresponding to the public accumulation fund payment data is sent to the bank client through the blockchain.
[0105] In this embodiment, the terminal sends the public accumulation fund payment message containing the payment ciphertext data corresponding to the public accumulation fund payment data to the bank client, and sends the second hash value corresponding to the public accumulation fund payment data to the bank client through the blockchain. The blockchain is the same as the blockchain corresponding to the first hash value sent by the bank client.
[0106] Based on the above scheme, the second key and the user payment data are respectively decrypted by combining the first decryption algorithm corresponding to the first encryption algorithm and the second decryption algorithm corresponding to the second encryption algorithm, and then the data is verified by the first hash value, which improves the security protection effect of the transmitted user payment data.
[0107] Optionally, based on the first hash value, the encrypted key and the ciphertext data are decrypted to obtain a second key and user payment data, including: the encrypted key is decrypted by a second decryption algorithm corresponding to a second encryption algorithm to obtain the second key, and the ciphertext data is decrypted by the second key and a first decryption algorithm corresponding to a first encryption algorithm to obtain decrypted user payment data; a verification first hash value corresponding to the decrypted user payment data is calculated by a hash algorithm, and in the case that the verification first hash value is the same as the first hash value, the decrypted user payment data is taken as the user payment data.
[0108] In this embodiment, the terminal decrypts the encrypted key by a second decryption algorithm corresponding to a second encryption algorithm to obtain a second key, and decrypts the ciphertext data by the second key and a first decryption algorithm corresponding to a first encryption algorithm to obtain decrypted user payment data. Then, the terminal calculates a verification first hash value corresponding to the decrypted user payment data by a hash algorithm, and in the case that the verification first hash value is the same as the first hash value, the decrypted user payment data is taken as the user payment data.
[0109] Based on the above scheme, after decryption by two decryption algorithms, data verification is performed by the first hash value, which improves the data transmission effect.
[0110] Optionally, based on the public accumulation payment data and the second key, payment ciphertext data corresponding to the public accumulation payment data and a second hash value corresponding to the public accumulation payment data are generated, including: the public accumulation payment data is encrypted by the second key and a first encryption algorithm to obtain the payment ciphertext data corresponding to the public accumulation payment data; a payment data string message corresponding to the public accumulation payment data is identified, and the payment data string message is encrypted by a hash algorithm to obtain the second hash value corresponding to the public accumulation payment data.
[0111] In this embodiment, the terminal encrypts the public accumulation payment data by the second key and a first encryption algorithm to obtain the payment ciphertext data corresponding to the public accumulation payment data. Then, the terminal identifies a payment data string message corresponding to the public accumulation payment data, and encrypts the payment data string message by a hash algorithm to obtain the second hash value corresponding to the public accumulation payment data.
[0112] Based on the above scheme, after the payment ciphertext data is encrypted, the payment data string message of the payment ciphertext data is hashed and encrypted, which improves the security protection effect of the payment ciphertext data.
[0113] In one embodiment, as shown in FIG. 3, Figure 3 a data transmission system is provided, which includes a bank client 310 and a public accumulation center client 320:
[0114] The bank client 310 is wirelessly connected with the public accumulation center client 320.
[0115] The bank client 310 is configured to acquire public accumulation payment information of a user, generate a first key of user payment data and a first hash value corresponding to the user payment data based on user payment data in the public accumulation payment information, encrypt the user payment data by the first key and a first encryption algorithm to obtain ciphertext data corresponding to the user payment data, and encrypt the first key by a second encryption algorithm to obtain an encryption key of the first key. The bank client 310 is further configured to send a payment query request message containing the ciphertext data and the encryption key to the public accumulation center client 320, and send the first hash value to the public accumulation center client 320 through a block chain.
[0116] The public accumulation center client 320 is configured to receive the payment query request message sent by the bank client 310, and parse the ciphertext data in the payment query request message, the first hash value in the payment query request message, and the encryption key in the payment query request message. The public accumulation center client 320 is further configured to decrypt the encryption key and the ciphertext data based on the first hash value to obtain a second key and user payment data, query public accumulation payment data corresponding to the user payment data based on the user payment data, generate payment ciphertext data corresponding to the public accumulation payment data and a second hash value corresponding to the public accumulation payment data based on the public accumulation payment data and the second key, and send a public accumulation payment message containing the payment ciphertext data corresponding to the public accumulation payment data to the bank client 310, and send the second hash value corresponding to the public accumulation payment data to the bank client 310 through a block chain.
[0117] The bank client 310 is further configured to receive the public accumulation payment message and the second hash value sent by the public accumulation center client 320, and identify the public accumulation payment data of the user based on the public accumulation payment message and the second hash value.
[0118] The application also provides a data transmission interaction example, as shown in Figure 4 The specific processing process includes the following steps:
[0119] In step S401, the public accumulation payment information of a user is acquired, and user payment data in the public accumulation payment information is based.
[0120] In step S402, a string of preset characters is generated as a first key of user payment data by a key generation strategy.
[0121] Step S403, identify the data string message of the user payment data, and through the hash algorithm, the hash encryption processing is carried out on the data string message, and the first hash value corresponding to the user payment data is obtained.
[0122] Step S404, through the first key and the first encryption algorithm, the user payment data is encrypted to obtain the ciphertext data corresponding to the user payment data, and the second encryption algorithm is used to encrypt the first key to obtain the encryption key of the first key.
[0123] Step S405, the payment query request message containing the ciphertext data and the encryption key is sent to the public accumulation fund center client, and the first hash value is sent to the public accumulation fund center client through the block chain.
[0124] Step S406, receiving the payment query request message sent by the bank client, and parsing the ciphertext data in the payment query request message, the first hash value in the payment query request message, and the encryption key in the payment query request message.
[0125] Step S407, the encryption key is decrypted by the second decryption algorithm corresponding to the second encryption algorithm to obtain the second key, and the ciphertext data is decrypted by the first decryption algorithm corresponding to the first encryption algorithm to obtain the decrypted user payment data.
[0126] Step S408, the verification first hash value corresponding to the decrypted user payment data is calculated by the hash algorithm, and in the case that the verification first hash value is the same as the first hash value, the decrypted user payment data is taken as the user payment data.
[0127] Step S409, based on the user payment data, the public accumulation fund payment data corresponding to the user payment data is queried.
[0128] Step S410, through the second key and the first encryption algorithm, the public accumulation fund payment data is encrypted to obtain the payment ciphertext data corresponding to the public accumulation fund payment data.
[0129] Step S411, identify the payment data string message corresponding to the public accumulation fund payment data, and through the hash algorithm, the encryption processing is carried out on the payment data string message, and the second hash value corresponding to the public accumulation fund payment data is obtained.
[0130] Step S412, the public accumulation fund payment message containing the payment ciphertext data corresponding to the public accumulation fund payment data is sent to the bank client, and the second hash value corresponding to the public accumulation fund payment data is sent to the bank client through the block chain.
[0131] Step S413, based on the first key, the ciphertext data is decrypted by a first decryption algorithm corresponding to the first encryption algorithm to obtain decrypted public accumulation payment data, and a verification first hash value corresponding to the decrypted public accumulation payment data is calculated by a hash algorithm.
[0132] Step S414, it is judged whether the second hash value is consistent with the verification first hash value, and in the case that the second hash value is consistent with the verification first hash value, the decrypted public accumulation payment data is taken as the public accumulation payment data of the user.
[0133] It should be understood that, although each step in the flowchart involved in each embodiment as described above is displayed in sequence according to the arrow, these steps are not necessarily executed in sequence according to the arrow. Unless explicitly stated herein, the execution of these steps is not strictly limited in sequence, and these steps can be executed in other sequences. Moreover, at least part of the steps in the flowchart involved in each embodiment as described above can include multiple steps or multiple stages, which are not necessarily executed at the same time, but can be executed at different times, and the execution sequence of these steps or stages is not necessarily sequential, but can be executed in rotation or alternation with at least part of other steps or steps or stages in other steps.
[0134] Based on the same inventive concept, the embodiments of the present application also provide a data transmission device for implementing the above-mentioned data transmission method. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme described in the above method, so the specific limitations in one or more data transmission device embodiments provided below can refer to the limitations of the data transmission method in the above text, which will not be described here.
[0135] In one embodiment, as shown in Figure 5 a data transmission device is provided, comprising: an acquisition module 510, an encryption module 520, a first sending module 530 and an identification module 540, wherein:
[0136] The acquisition module 510 is configured to acquire public accumulation payment information of a user, and generate a first key of user payment data in the public accumulation payment information and a first hash value corresponding to the user payment data based on the user payment data.
[0137] The encryption module 520 is configured to encrypt the user payment data by the first key and a first encryption algorithm to obtain ciphertext data corresponding to the user payment data, and encrypt the first key by a second encryption algorithm to obtain an encrypted key of the first key.
[0138] The first sending module 530 is configured to send a payment query request message containing the ciphertext data and the encryption key to the provident fund center client and send the first hash value to the provident fund center client through a block chain; the payment query request message and the first hash value are used to instruct the provident fund center client to query the provident fund payment data of the user and feed back a provident fund payment message containing payment ciphertext data corresponding to the provident fund payment data and a second hash value corresponding to the provident fund payment data;
[0139] The identification module 540 is configured to identify the provident fund payment data of the user based on the provident fund payment message and the second hash value.
[0140] Optionally, the obtaining module 510 is specifically configured to:
[0141] generate a string of preset characters as the first key of the user payment data through a key generation strategy;
[0142] identify a data string message of the user payment data and perform hash encryption processing on the data string message through a hash algorithm to obtain the first hash value corresponding to the user payment data.
[0143] Optionally, the identification module 540 is specifically configured to:
[0144] perform decryption processing on the payment ciphertext data through a first decryption algorithm corresponding to a first encryption algorithm based on the first key to obtain decrypted provident fund payment data and calculate a verification first hash value corresponding to the decrypted provident fund payment data through a hash algorithm;
[0145] determine whether the second hash value is consistent with the verification first hash value, and in the case where the second hash value is consistent with the verification first hash value, take the decrypted provident fund payment data as the provident fund payment data of the user.
[0146] Optionally, in the case where the second hash value is consistent with the verification first hash value, the device further includes:
[0147] The retransmission module is configured to send a retransmission request message to the provident fund center client; the retransmission request message is used to instruct the provident fund center client to feed back a provident fund payment message containing payment ciphertext data corresponding to the provident fund payment data and a second hash value corresponding to the provident fund payment data again;
[0148] An iteration module is configured to return to a step of performing decryption processing on the payment ciphertext data based on the first key by a first decryption algorithm corresponding to the first encryption algorithm until the decrypted provident fund payment data is correct, and then take the decrypted provident fund payment data as the provident fund payment data of the user.
[0149] Based on the same inventive concept, the embodiments of the present application also provide a data transmission device for implementing the above-mentioned data transmission method. The implementation scheme of the device for solving the problem is similar to the implementation scheme described in the above method, so the specific limitations in one or more data transmission device embodiments provided below can refer to the limitations of the data transmission method in the foregoing, which will not be described here again.
[0150] In one embodiment, as shown in Figure 6 A data transmission device is provided, comprising a first receiving module 610, a decryption module 620, a generation module 630, and a second sending module 640, wherein:
[0151] The first receiving module 610 is configured to receive a payment query request message sent by a bank client, and parse ciphertext data in the payment query request message, a first hash value in the payment query request message, and an encryption key in the payment query request message. The ciphertext data is generated by a first key and a first encryption algorithm, the first hash value is generated by user payment data, and the encryption key is obtained by encrypting the first key by a second encryption algorithm;
[0152] The decryption module 620 is configured to decrypt the encryption key and the ciphertext data based on the first hash value to obtain a second key and user payment data, and query provident fund payment data corresponding to the user payment data based on the user payment data;
[0153] The generation module 630 is configured to generate payment ciphertext data corresponding to the provident fund payment data and a second hash value corresponding to the provident fund payment data based on the provident fund payment data and the second key.
[0154] The second sending module 640 is configured to send a provident fund payment message containing the payment ciphertext data corresponding to the provident fund payment data to the bank client, and send the second hash value corresponding to the provident fund payment data to the bank client through a block chain.
[0155] Optionally, the decryption module 620 is specifically configured to:
[0156] The encrypted key is decrypted by a second decryption algorithm corresponding to the second encryption algorithm to obtain a second key, and the ciphertext data is decrypted by the second key and a first decryption algorithm corresponding to the first encryption algorithm to obtain decrypted user payment data.
[0157] A verification first hash value corresponding to the decrypted user payment data is calculated by a hash algorithm, and in a case where the verification first hash value is the same as a first hash value, the decrypted user payment data is taken as user payment data.
[0158] Optionally, the generation module 630 is specifically configured to:
[0159] The public accumulation payment data is encrypted by the second key and the first encryption algorithm to obtain payment ciphertext data corresponding to the public accumulation payment data.
[0160] A payment data string message corresponding to the public accumulation payment data is identified, and the payment data string message is encrypted by a hash algorithm to obtain a second hash value corresponding to the public accumulation payment data.
[0161] The modules in the data transmission apparatus can be all or part realized by software, hardware and combinations thereof. The modules can be embedded in or independent of a processor in a computer device in a hardware form, or stored in a memory in a computer device in a software form, so as to be called and executed by a processor to perform operations corresponding to the modules.
[0162] In one embodiment, a computer device is provided, which can be a terminal, and an internal structure diagram thereof can be as shown in FIG. 1. Figure 7 The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected by a system bus. The processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for running the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is configured to perform wired or wireless communication with an external terminal. The wireless communication can be achieved by WIFI, mobile cellular network, NFC (near field communication) or other technologies. The computer program is executed by the processor to implement a data transmission method. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen. The input device of the computer device can be a touch layer overlaid on the display screen, or a key, trackball or touchpad arranged on the computer device shell, or an external keyboard, touchpad or mouse, etc.
[0163] Those skilled in the art can understand that Figure 7 The structure shown in the figure is only a block diagram of part of the structure related to the scheme of the present application, and does not constitute a limitation on the computer device to which the scheme of the present application is applied. The specific computer device can include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0164] In one embodiment, a computer device is provided, including a memory and a processor, the memory stores a computer program, and the processor implements the steps of the method of any one of the first aspect and the second aspect when executing the computer program.
[0165] In one embodiment, a computer readable storage medium is provided, which stores a computer program, and the computer program implements the steps of the method of any one of the first aspect and the second aspect when executed by a processor.
[0166] In one embodiment, a computer program product is provided, including a computer program, and the computer program implements the steps of the method of any one of the first aspect and the second aspect when executed by a processor.
[0167] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in the present application are all information and data authorized by the user or authorized by all parties.
[0168] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer readable storage medium, and when the computer program is executed, the processes of the above-mentioned embodiments of the methods can be included. Any reference to memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical storage, high-density embedded non-volatile memory, resistive memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration but not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc. The database involved in the embodiments provided in the present application can include at least one of a relational database and a non-relational database. The non-relational database can include a distributed database based on a block chain, etc., without being limited thereto. The processor involved in the embodiments provided in the present application can be a general-purpose processor, a central processing unit, a graphics processing unit, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., without being limited thereto.
[0169] Any combination of the technical features of the above embodiments can be made. In order to make the description simple, all possible combinations of the technical features in the above embodiments are not described, however, as long as the combination of the technical features does not exist, it should be considered as the scope of the present application.
[0170] The above embodiments only express several implementation manners of the present application, and the description is more specific and detailed, but it should not be understood as a limitation on the scope of the patent of the present application. It should be pointed out that for ordinary skilled in the art, without departing from the concept of the present application, a number of modifications and improvements can be made, which are all within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the appended claims.
Claims
1. A data transmission method, characterized in that, The method includes: Obtain the user's housing provident fund payment information, and based on the user payment data in the housing provident fund payment information, generate a first key for the user payment data and a first hash value corresponding to the user payment data; The user payment data is encrypted using the first key and the first encryption algorithm to obtain the ciphertext data corresponding to the user payment data. The first key is then encrypted using the second encryption algorithm to obtain the encryption key of the first key. A payment inquiry request message containing the encrypted data and the encryption key is sent to the housing provident fund center client, and the first hash value is sent to the housing provident fund center client via the blockchain; the payment inquiry request message and the first hash value are used to instruct the housing provident fund center client to query the user's housing provident fund payment data, and to return a housing provident fund payment message containing the payment encrypted data corresponding to the housing provident fund payment data, and the second hash value corresponding to the housing provident fund payment data; Based on the housing provident fund payment message and the second hash value, the user's housing provident fund payment data is identified.
2. The method according to claim 1, characterized in that, The step of generating a first key for the user payment data and a first hash value corresponding to the user payment data based on the user payment data in the housing provident fund payment information includes: A key generation strategy is used to generate a string of preset characters, and this string is used as the first key for the user's payment data. The data string message of the user's payment data is identified, and the data string message is hashed and encrypted using a hash algorithm to obtain the first hash value corresponding to the user's payment data.
3. The method according to claim 1, characterized in that, The step of identifying the user's housing provident fund contribution data based on the housing provident fund contribution message and the second hash value includes: Based on the first key, the encrypted data of the housing provident fund payment is decrypted using the first decryption algorithm corresponding to the first encryption algorithm to obtain decrypted housing provident fund payment data, and the verification first hash value corresponding to the decrypted housing provident fund payment data is calculated using a hash algorithm. Determine whether the second hash value is consistent with the first verification hash value, and if the second hash value is consistent with the first verification hash value, use the decrypted housing provident fund payment data as the user's housing provident fund payment data.
4. The method according to claim 3, characterized in that, If the second hash value is inconsistent with the first hash value used for verification, the method further includes: A retransmission request message is sent to the housing provident fund center client; the retransmission request message is used to instruct the housing provident fund center client to send back the housing provident fund payment message again, which includes the ciphertext data corresponding to the housing provident fund payment data and the second hash value corresponding to the housing provident fund payment data; The process returns to the first key and uses the first decryption algorithm corresponding to the first encryption algorithm to decrypt the ciphertext data of the housing provident fund payment, until the decrypted housing provident fund payment data is correct. Then, the decrypted housing provident fund payment data is used as the user's housing provident fund payment data.
5. A data transmission method, characterized in that, The method includes: The system receives a payment inquiry request message sent by a bank client and parses the encrypted data, the first hash value, and the encryption key in the payment inquiry request message. The encrypted data is generated using the first key and a first encryption algorithm, the first hash value is generated using user payment data, and the encryption key is obtained by encrypting the first key using a second encryption algorithm. Based on the first hash value, the encryption key and the ciphertext data are decrypted to obtain the second key and the user payment data. Based on the user payment data, the corresponding housing provident fund payment data is queried. Based on the housing provident fund contribution data and the second key, generate the ciphertext data corresponding to the housing provident fund contribution data and the second hash value corresponding to the housing provident fund contribution data; The housing provident fund payment message, which contains the ciphertext data corresponding to the housing provident fund payment data, is sent to the bank client, and the second hash value corresponding to the housing provident fund payment data is sent to the bank client via blockchain.
6. The method according to claim 1, characterized in that, The step of decrypting the encryption key and the ciphertext data based on the first hash value to obtain the second key and user payment data includes: The encryption key is decrypted using the second decryption algorithm corresponding to the second encryption algorithm to obtain the second key. The encrypted data is then decrypted using the second key and the first decryption algorithm corresponding to the first encryption algorithm to obtain the decrypted user payment data. The first verification hash value corresponding to the decrypted user payment data is calculated using a hash algorithm. If the first verification hash value is the same as the first hash value, the decrypted user payment data is used as the user payment data.
7. The method according to claim 1, characterized in that, The step of generating ciphertext data corresponding to the housing provident fund contribution data and a second hash value corresponding to the housing provident fund contribution data based on the housing provident fund contribution data and the second key includes: The provident fund payment data is encrypted using the second key and the first encryption algorithm to obtain the ciphertext data corresponding to the provident fund payment data. Identify the payment data string message corresponding to the housing provident fund payment data, and encrypt the payment data string message using a hash algorithm to obtain the second hash value corresponding to the housing provident fund payment data.
8. A data transmission system, characterized in that, The system includes a bank client and a housing provident fund center client: The bank's client is wirelessly connected to the housing provident fund center's client. The bank client is used to obtain the user's housing provident fund payment information, and based on the user payment data in the housing provident fund payment information, generate a first key for the user payment data and a first hash value corresponding to the user payment data; The user payment data is encrypted using the first key and the first encryption algorithm to obtain ciphertext data corresponding to the user payment data. The first key is then encrypted using the second encryption algorithm to obtain an encryption key for the first key. A payment query request message containing the ciphertext data and the encryption key is sent to the housing provident fund center client. The first hash value is also sent to the housing provident fund center client via the blockchain. The housing provident fund center client is used to receive a payment inquiry request message sent by the bank client, and to parse the encrypted data, the first hash value, and the encryption key in the payment inquiry request message. Based on the first hash value, the encryption key and the ciphertext data are decrypted to obtain the second key and the user payment data. Based on the user payment data, the corresponding housing provident fund payment data is queried. Based on the housing provident fund contribution data and the second key, generate the ciphertext data corresponding to the housing provident fund contribution data and the second hash value corresponding to the housing provident fund contribution data; send the housing provident fund contribution message containing the ciphertext data corresponding to the housing provident fund contribution data to the bank client, and send the second hash value corresponding to the housing provident fund contribution data to the bank client through the blockchain; The bank client is also used to receive the housing provident fund payment message and the second hash value sent by the housing provident fund center client, and to identify the user's housing provident fund payment data based on the housing provident fund payment message and the second hash value.
9. A data transmission device, characterized in that, The device includes: The acquisition module is used to acquire the user's housing provident fund payment information, and based on the user payment data in the housing provident fund payment information, generate a first key for the user payment data and a first hash value corresponding to the user payment data; The encryption module is used to encrypt the user payment data using the first key and the first encryption algorithm to obtain the ciphertext data corresponding to the user payment data, and to encrypt the first key using the second encryption algorithm to obtain the encryption key of the first key. The first sending module is used to send a payment query request message containing the encrypted data and the encryption key to the housing provident fund center client, and to send the first hash value to the housing provident fund center client through the blockchain; the payment query request message and the first hash value are used to instruct the housing provident fund center client to query the user's housing provident fund payment data, and to return a housing provident fund payment message containing the payment encrypted data corresponding to the housing provident fund payment data, and a second hash value corresponding to the housing provident fund payment data; The identification module is used to identify the user's housing provident fund payment data based on the housing provident fund payment message and the second hash value.
10. A data transmission device, characterized in that, The device includes: The first receiving module is used to receive a payment inquiry request message sent by a bank client, and parse the encrypted data, the first hash value, and the encryption key in the payment inquiry request message; the encrypted data is generated by the first key and the first encryption algorithm, the first hash value is generated by the user's payment data, and the encryption key is obtained by encrypting the first key using the second encryption algorithm. The decryption module is used to decrypt the encryption key and the ciphertext data based on the first hash value to obtain the second key and the user payment data, and to query the housing provident fund payment data corresponding to the user payment data based on the user payment data. The generation module is used to generate, based on the housing provident fund payment data and the second key, the payment ciphertext data corresponding to the housing provident fund payment data and the second hash value corresponding to the housing provident fund payment data; The second sending module is used to send a housing provident fund payment message containing the ciphertext data corresponding to the housing provident fund payment data to the bank client, and to send the second hash value corresponding to the housing provident fund payment data to the bank client through the blockchain.
11. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 4 or 5 to 7.
12. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 4 or 5 to 7.
13. A computer program product, comprising a computer program, characterized in that, When executed by a processor, the computer program implements the steps of the method according to any one of claims 1 to 4 or 5 to 7.
Citation Information
Patent Citations
Data management method and device applied to block chain
CN111369236A
Data processing method and system applied to payment information
CN113706137A