Data encryption transmission method and system

By combining AES and RSA encryption methods, using RSA public key to encrypt the AES key and decrypt it through RSA private key, the problems of data insecurity and slow encryption and decryption caused by key leakage are solved, and efficient and secure data transmission is achieved .

CN118944859AInactive Publication Date: 2024-11-12BEIJING WIDE TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202410831336.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-25
Publication Date
2024-11-12
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing single encryption methods of AES and RSA are not secure when keys are leaked, and RSA encryption and decryption speed is slow, making them not suitable for big data transmission.

Method used

Combining AES and RSA for data encryption transmission, using RSA public key to encrypt the AES key, and decrypting the AES key through RSA private key for data transmission, ensuring data security and improving transmission efficiency.

Benefits of technology

It improves the efficiency and security of data encryption transmission, avoids data insecurity caused by key leakage, and is suitable for big data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118944859A_ABST
    Figure CN118944859A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of data security, and particularly discloses a data encryption transmission method and system, and the data encryption transmission method applied to a communication front end comprises the steps: determining a communication rear end corresponding to data request information, and obtaining an RSA public key in an RSA key pair generated by the communication rear end; generating an AES (Advanced Encryption Standard) key corresponding to the data request information, encrypting the data request information to obtain encrypted transmission data, and encrypting the AES key by using the RSA public key to obtain an encrypted AES key; and sending the encrypted transmission data and the encrypted AES key to a communication rear end to receive encrypted target data corresponding to data request information fed back by the communication rear end, and decrypting the encrypted target data to obtain target data corresponding to the data request information. According to the invention, the data encryption transmission is carried out by combining the AES and the RSA, so that the data encryption transmission efficiency is improved, and the data transmission is safer.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data security technology, and in particular to a data encryption transmission method and system. Background Art

[0002] At present, single encryption methods such as AES and RAS are usually used for data transmission. However, single encryption methods generally have some problems: 1) In the AES encryption method, the key is shared by both parties. If the key is leaked, all data encrypted using the key will no longer be secure. 2) In the RSA encryption method, the encryption and decryption speed is slower than that of AES encryption, and it is not suitable for encrypting large amounts of data.

[0003] Therefore, it is urgent to provide a technical solution to solve the above problems. Summary of the invention

[0004] In order to solve the above technical problems, the present invention provides a data encryption transmission method and system.

[0005] In a first aspect, the present invention provides a data encryption transmission method, which is applied to a communication front end. The technical solution of the method is as follows:

[0006] Determine the communication backend corresponding to the data request information, and obtain the RSA public key in the RSA key pair generated by the communication backend;

[0007] Generate an AES key corresponding to the data request information and encrypt the data request information to obtain encrypted transmission data, and use the RSA public key to encrypt the AES key to obtain an encrypted AES key;

[0008] The encrypted transmission data and the encrypted AES key are sent to the communication backend to receive the encrypted target data corresponding to the data request information fed back by the communication backend, and the encrypted target data is decrypted to obtain the target data corresponding to the data request information; wherein the communication backend uses the RSA private key in the RSA key pair to decrypt the encrypted AES key, obtain the AES key and decrypt the encrypted transmission data to obtain the data request information, and uses the AES key to encrypt the target data corresponding to the data request information to obtain the encrypted target data corresponding to the data request information.

[0009] The beneficial effects of a data encryption transmission method of the present invention are as follows:

[0010] The method of the present invention improves the efficiency of data encryption transmission by combining AES and RSA to perform data encryption transmission, making data transmission safer.

[0011] Based on the above solution, the data encryption transmission method of the present invention can also be improved as follows.

[0012] In an optional manner, the step of sending the encrypted transmission data and the encrypted AES key to the communication backend includes:

[0013] Determine whether the communication link between the communication front end and the communication back end is connected, and obtain a determination result;

[0014] When the judgment result is yes, the encrypted transmission data and the encrypted AES key are sent to the communication backend.

[0015] In an optional manner, the step of decrypting the encrypted target data to obtain the target data corresponding to the data request information includes:

[0016] The encrypted target data is decrypted using the AES key to obtain the target data corresponding to the data request information.

[0017] In an optional manner, the communication backend regenerates the RSA key pair every preset time period.

[0018] In a second aspect, the present invention provides a data encryption transmission method, which is applied to a communication backend, and the technical solution of the method is as follows:

[0019] Receive the encrypted transmission data and the encrypted AES key sent by the communication front end; wherein the communication front end generates an AES key corresponding to the data request information and encrypts the data request information to obtain the encrypted transmission data, and uses the RSA public key in the RSA key pair generated by the communication back end to encrypt the AES key to obtain the encrypted AES key;

[0020] Decrypting the encrypted AES key using the RSA private key in the RSA key pair to obtain the AES key and decrypting the encrypted transmission data to obtain the data request information;

[0021] The target data corresponding to the data request information is encrypted using the AES key to obtain the encrypted target data corresponding to the data request information and send it to the communication front end so that the communication front end decrypts the encrypted target data to obtain the target data corresponding to the data request information.

[0022] The beneficial effects of a data encryption transmission method of the present invention are as follows:

[0023] The method of the present invention improves the efficiency of data encryption transmission by combining AES and RSA to perform data encryption transmission, making data transmission safer.

[0024] Based on the above solution, the data encryption transmission method of the present invention can also be improved as follows.

[0025] In an optional manner, the step of receiving the encrypted transmission data and the encrypted AES key sent by the communication front end includes:

[0026] Determine whether the communication link between the communication front end and the communication back end is connected, and obtain a determination result;

[0027] When the judgment result is yes, the encrypted transmission data and the encrypted AES key sent by the communication front end are received.

[0028] In an optional manner, the step of the communication front end decrypting the encrypted target data to obtain the target data corresponding to the data request information includes:

[0029] The communication front end uses the AES key to decrypt the encrypted target data to obtain the target data corresponding to the data request information.

[0030] In an optional manner, the communication backend regenerates the RSA key pair every preset time period.

[0031] In a third aspect, the present invention provides a data encryption transmission system, the technical solution of which is as follows:

[0032] A data encryption transmission system, comprising: a communication front end and a communication back end;

[0033] The communication front end is used to: determine the communication back end corresponding to the data request information, and obtain the RSA public key in the RSA key pair generated by the communication back end; generate an AES key corresponding to the data request information and encrypt the data request information to obtain encrypted transmission data, and use the RSA public key to encrypt the AES key to obtain an encrypted AES key; send the encrypted transmission data and the encrypted AES key to the communication back end;

[0034] The communication backend is used to: use the RSA private key in the RSA key pair to decrypt the encrypted AES key, obtain the AES key and decrypt the encrypted transmission data to obtain the data request information, use the AES key to encrypt the target data corresponding to the data request information, obtain the encrypted target data corresponding to the data request information and send it to the communication front end;

[0035] The communication front end is also used to: decrypt the encrypted target data to obtain the target data corresponding to the data request information.

[0036] The beneficial effects of a data encryption transmission system of the present invention are as follows:

[0037] The system of the present invention performs data encryption transmission by combining AES and RSA, thereby improving the efficiency of data encryption transmission and making data transmission more secure.

[0038] Based on the above solution, the data encryption transmission system of the present invention can also be improved as follows.

[0039] In an optional manner, the communication backend regenerates the RSA key pair every preset time period.

[0040] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] The accompanying drawings are only used to illustrate the embodiments and are not to be considered as limiting the present invention. In addition, the same reference symbols are used to represent the same components throughout the accompanying drawings. In the accompanying drawings:

[0042] Figure 1 A schematic diagram of a flow chart of a first embodiment of a data encryption transmission method of the present invention;

[0043] Figure 2 A schematic diagram of a flow chart of a second embodiment of a data encryption transmission method of the present invention;

[0044] Figure 3 The figure is a schematic diagram of the structure of an embodiment of a data encryption transmission system of the present invention. DETAILED DESCRIPTION

[0045] Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present invention are shown in the drawings, it should be understood that the present invention can be implemented in various forms and should not be limited to the embodiments set forth herein.

[0046] Figure 1 The figure shows a flow chart of a first embodiment of a data encryption transmission method provided by the present invention, and the data encryption transmission method is applied to a communication front end. Figure 1 As shown, the following steps are included:

[0047] S110, determining the communication backend corresponding to the data request information, and obtaining the RSA public key in the RSA key pair generated by the communication backend.

[0048] The data request information indicates the request information generated for obtaining the target data. For example, when the target data is user information, the data request information is the request information for obtaining the user information. There is no restriction on the type of the target data. Every preset time period, the communication backend regenerates the RSA key pair, and the RSA key pair includes: an RSA public key and an RSA private key. The preset time period is set according to actual needs, such as one day, one week, etc., and there is no restriction here.

[0049] Specifically, the communication backend corresponding to the data request information is determined, and the RSA public key in the RSA key pair generated by the communication backend is obtained.

[0050] It should be noted that the communication front end can be connected to multiple communication back ends, and is specifically determined based on the communication back end where the target data corresponding to the data request information is located. After determining the communication back end, the communication front end obtains the RSA public key in the RSA key pair generated by the communication back end.

[0051] S120, generating an AES key corresponding to the data request information and encrypting the data request information to obtain encrypted transmission data, and using the RSA public key to encrypt the AES key to obtain an encrypted AES key.

[0052] Among them, the AES key is only for one data request information. The communication front end generates different AES keys according to different data request information. That is, the communication front end must generate a new AES key each time it makes a data request to ensure the real-time and security of the key.

[0053] Specifically, the communication front end generates an AES key corresponding to the data request information, and uses the AES key to encrypt the data request information to obtain encrypted transmission data, and uses the RSA public key to encrypt the AES key to obtain an encrypted AES key.

[0054] S130, sending the encrypted transmission data and the encrypted AES key to the communication backend to receive the encrypted target data corresponding to the data request information fed back by the communication backend, and decrypting the encrypted target data to obtain the target data corresponding to the data request information.

[0055] Among them, the communication backend uses the RSA private key in the RSA key pair to decrypt the encrypted AES key, obtains the AES key and decrypts the encrypted transmission data to obtain data request information, uses the AES key to encrypt the target data corresponding to the data request information, and obtains the encrypted target data corresponding to the data request information.

[0056] The communication link between the communication front end and the communication back end is used to transmit the encrypted transmission data and the encrypted AES key.

[0057] Specifically, the communication front end determines whether the communication link between the communication front end and the communication back end is connected, and obtains a judgment result; when the judgment result is yes, the communication front end sends the encrypted transmission data and the encrypted AES key to the communication back end. The communication back end uses the RSA private key in the stored RSA key pair to decrypt the encrypted AES key to obtain the AES key; the communication back end uses the AES key to decrypt the encrypted transmission data to obtain data request information. The communication front end receives the encrypted target data corresponding to the data request information fed back by the communication back end, and uses the AES key to decrypt the encrypted target data to obtain the target data corresponding to the data request information.

[0058] It should be noted that when the judgment result is no, the communication link between the communication front end and the communication back end is repaired, and after the repair is completed, the encrypted transmission data and the encrypted AES key are sent to the communication back end.

[0059] The technical solution of this embodiment improves the efficiency of data encryption transmission by combining AES and RSA to perform data encryption transmission, making data transmission more secure.

[0060] Figure 2 The figure shows a flow chart of a second embodiment of a data encryption transmission method provided by the present invention, which is applied to a communication backend. Figure 2 As shown, the following steps are included:

[0061] S210, receiving the encrypted transmission data and the encrypted AES key sent by the communication front end.

[0062] Among them, the communication front end generates an AES key corresponding to the data request information and encrypts the data request information to obtain the encrypted transmission data, and uses the RSA public key in the RSA key pair generated by the communication back end to encrypt the AES key to obtain the encrypted AES key.

[0063] S220. Decrypt the encrypted AES key using the RSA private key in the RSA key pair to obtain the AES key and decrypt the encrypted transmission data to obtain the data request information.

[0064] S230. Use the AES key to encrypt the target data corresponding to the data request information, obtain the encrypted target data corresponding to the data request information and send it to the communication front end, so that the communication front end decrypts the encrypted target data to obtain the target data corresponding to the data request information.

[0065] In an optional manner, the step of receiving the encrypted transmission data and the encrypted AES key sent by the communication front end includes:

[0066] Determine whether the communication link between the communication front end and the communication back end is connected, and obtain a determination result;

[0067] When the judgment result is yes, the encrypted transmission data and the encrypted AES key sent by the communication front end are received.

[0068] In an optional manner, the step of the communication front end decrypting the encrypted target data to obtain the target data corresponding to the data request information includes:

[0069] The communication front end uses the AES key to decrypt the encrypted target data to obtain the target data corresponding to the data request information.

[0070] In an optional manner, the communication backend regenerates the RSA key pair every preset time period.

[0071] The technical solution of this embodiment improves the efficiency of data encryption transmission by combining AES and RSA to perform data encryption transmission, making data transmission more secure.

[0072] For the parameters and steps in the data encryption transmission method of this embodiment, reference may be made to the parameters and steps in the first embodiment of the data encryption transmission method described above, and no further details will be given here.

[0073] Figure 3 FIG. 3 is a schematic diagram showing a structure of an embodiment of a data encryption transmission system 300 provided by the present invention. Figure 3 As shown, the system 300 includes: a communication front end 310 and a communication back end 320;

[0074] The communication front end 310 is used to: determine the communication back end corresponding to the data request information, obtain the RSA public key in the RSA key pair generated by the communication back end; generate the AES key corresponding to the data request information and encrypt the data request information to obtain encrypted transmission data, and use the RSA public key to encrypt the AES key to obtain an encrypted AES key; send the encrypted transmission data and the encrypted AES key to the communication back end 320;

[0075] The communication backend 320 is used to: use the RSA private key in the RSA key pair to decrypt the encrypted AES key, obtain the AES key and decrypt the encrypted transmission data to obtain the data request information, use the AES key to encrypt the target data corresponding to the data request information, obtain the encrypted target data corresponding to the data request information and send it to the communication frontend 310;

[0076] The communication front end 310 is also used to: decrypt the encrypted target data to obtain the target data corresponding to the data request information.

[0077] In an optional manner, the communication backend 320 regenerates the RSA key pair every preset time period.

[0078] The technical solution of this embodiment improves the efficiency of data encryption transmission by combining AES and RSA to perform data encryption transmission, making data transmission more secure.

[0079] The above parameters and steps for each module to implement corresponding functions in the data encryption transmission system 300 of this embodiment can refer to the parameters and steps in the first embodiment or the second embodiment of the data encryption transmission method above, and will not be repeated here.

[0080] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. Similarly, in order to simplify the present invention and help understand one or more of the various inventive aspects, in the above description of exemplary embodiments of the present invention, the various features of the embodiments of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. Wherein, the claims that follow the specific embodiment are hereby expressly incorporated into the specific embodiment, wherein each claim itself is a separate embodiment of the present invention.

[0081] It should be noted that the above embodiments illustrate the present invention rather than limit it, and that those skilled in the art may devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets shall not be construed as a limitation on the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present invention may be implemented by means of hardware comprising a number of different elements and by means of a suitably programmed computer. In a unit claim enumerating a number of devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc. does not indicate any order. These words may be interpreted as names. The steps in the above embodiments, unless otherwise specified, should not be understood as limitations on the order of execution.

Claims

1. A data encryption transmission method, applied to a communication front end, characterized in that: include: Determine the communication backend corresponding to the data request information, and obtain the RSA public key in the RSA key pair generated by the communication backend; Generate an AES key corresponding to the data request information and encrypt the data request information to obtain encrypted transmission data, and use the RSA public key to encrypt the AES key to obtain an encrypted AES key; The encrypted transmission data and the encrypted AES key are sent to the communication backend to receive the encrypted target data corresponding to the data request information fed back by the communication backend, and the encrypted target data is decrypted to obtain the target data corresponding to the data request information; wherein the communication backend uses the RSA private key in the RSA key pair to decrypt the encrypted AES key, obtain the AES key and decrypt the encrypted transmission data to obtain the data request information, and uses the AES key to encrypt the target data corresponding to the data request information to obtain the encrypted target data corresponding to the data request information.

2. The data encryption transmission method according to claim 1, characterized in that: The step of sending the encrypted transmission data and the encrypted AES key to the communication backend comprises: Determine whether the communication link between the communication front end and the communication back end is connected, and obtain a determination result; When the judgment result is yes, the encrypted transmission data and the encrypted AES key are sent to the communication backend.

3. The data encryption transmission method according to claim 1, characterized in that: The step of decrypting the encrypted target data to obtain the target data corresponding to the data request information includes: The encrypted target data is decrypted using the AES key to obtain the target data corresponding to the data request information.

4. The data encryption transmission method according to any one of claims 1 to 3, characterized in that: The communication backend regenerates the RSA key pair every preset time period.

5. A data encryption transmission method, applied to a communication backend, characterized in that: include: Receive the encrypted transmission data and the encrypted AES key sent by the communication front end; wherein the communication front end generates an AES key corresponding to the data request information and encrypts the data request information to obtain the encrypted transmission data, and uses the RSA public key in the RSA key pair generated by the communication back end to encrypt the AES key to obtain the encrypted AES key; Decrypting the encrypted AES key using the RSA private key in the RSA key pair to obtain the AES key and decrypting the encrypted transmission data to obtain the data request information; The target data corresponding to the data request information is encrypted using the AES key to obtain the encrypted target data corresponding to the data request information and send it to the communication front end so that the communication front end decrypts the encrypted target data to obtain the target data corresponding to the data request information.

6. The data encryption transmission method according to claim 5, characterized in that: The steps of receiving the encrypted transmission data and the encrypted AES key sent by the communication front end include: Determine whether the communication link between the communication front end and the communication back end is connected, and obtain a determination result; When the judgment result is yes, the encrypted transmission data and the encrypted AES key sent by the communication front end are received.

7. The data encryption transmission method according to claim 5, characterized in that: The step of the communication front end decrypting the encrypted target data to obtain the target data corresponding to the data request information includes: The communication front end uses the AES key to decrypt the encrypted target data to obtain the target data corresponding to the data request information.

8. The data encryption transmission method according to any one of claims 5 to 7, characterized in that: The communication backend regenerates the RSA key pair every preset time period.

9. A data encryption transmission system, characterized in that: include: Communication front end and communication back end; The communication front end is used to: determine the communication back end corresponding to the data request information, and obtain the RSA public key in the RSA key pair generated by the communication back end; generate an AES key corresponding to the data request information and encrypt the data request information to obtain encrypted transmission data, and use the RSA public key to encrypt the AES key to obtain an encrypted AES key; send the encrypted transmission data and the encrypted AES key to the communication back end; The communication backend is used to: use the RSA private key in the RSA key pair to decrypt the encrypted AES key, obtain the AES key and decrypt the encrypted transmission data to obtain the data request information, use the AES key to encrypt the target data corresponding to the data request information, obtain the encrypted target data corresponding to the data request information and send it to the communication front end; The communication front end is also used to: decrypt the encrypted target data to obtain the target data corresponding to the data request information.

10. The data encryption transmission system according to claim 9, characterized in that: The communication backend regenerates the RSA key pair every preset time period.

Citation Information

Patent Citations

  • Method for front-end and rear-end data split encryption

    CN108833452A

  • Data transmission method and system based on hybrid encryption algorithm

    CN110535868A

  • Secure transmission method and device, computer equipment and storage medium

    CN114124440A