A data transmission method, device, equipment and medium based on asymmetric encryption

By only encrypting part of the data in public and private key encryption technology, and writing the encrypted data into random pictures for transmission, the problem of low encryption efficiency in the existing technology is solved, efficient and secure data transmission is achieved, and the potential for Threat resistance.

CN118368144BActive Publication Date: 2024-08-27GUANGDONG UNIV OF PETROCHEMICAL TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410781221.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-18
Publication Date
2024-08-27
Estimated Expiration
2044-06-18

AI Technical Summary

Technical Problem

Existing public-private key encryption technology is inefficient when encrypting large amounts of data and cannot encrypt quickly. In extreme cases, it may be 1,000 times slower than symmetric encryption, and cannot effectively deal with potential security threats and attacks.

Method used

By obtaining the public key of the receiving end, the encryption bits and check numbers of the data to be transmitted are calculated, only the encryption bits and check numbers are encrypted, the encrypted data is generated, the encrypted data is written into a randomly generated picture, and the picture and The non-encrypted bits are transmitted to the receiving end to improve encryption and decryption efficiency.

Benefits of technology

It improves the efficiency and security of encryption and decryption, can send a large amount of information safely and reliably in a short time, effectively responds to potential security threats and attacks, and enhances the confidentiality and integrity of data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118368144B
    Figure CN118368144B
Patent Text Reader

Abstract

The present invention discloses a data transmission method based on asymmetric encryption. It includes: obtaining a public key sent by a receiving end, and calculating the encryption bits of the data to be transmitted according to the public key; wherein the data to be transmitted includes encryption bits and non-encryption bits; calculating a first check digit based on the data to be transmitted; using the public key to encrypt the encryption bits and the first check digit to generate encrypted data; writing the encrypted data into a first picture to obtain a second picture; wherein the first picture is a randomly generated picture; transmitting the second picture and the non-encryption bits to the receiving end. The present invention has higher encryption and decryption efficiency, can realize the safe and reliable transmission of a large amount of information in a short time, can effectively deal with potential security threats and attacks, and improves the efficiency and security of encryption and decryption.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a data transmission method, device, equipment and medium based on asymmetric encryption. Background Art

[0002] Protecting the confidentiality of information transmission, as well as authenticating the sender of information and ensuring the integrity of data are the research focuses of modern cryptography. In an asymmetric public key system, encryption and decryption are relatively independent. Encryption and decryption use two different keys. The encryption key can be published to the public and can be used by anyone. The decryption key is known only to the decryptor himself. They are called public key and private key, or public key and private key for short. Among all public key cryptographic systems, the RSA system is the most famous and most used one. For example, in encryption applications, a user always makes a key public, so that the person who needs to send the message encrypts the information with the public key and sends it to the user. Once the information is encrypted, only the user's private key can decrypt it. Through this cryptographic system, illegal users cannot deduce the decryption key based on the published encryption key, which greatly improves the strength of information protection.

[0003] The key may be stolen during the transmission process. The strength, complexity and security of the algorithm depend on the algorithm and the key. However, due to the complexity of the algorithm, the encryption and decryption speed is not as fast as the symmetric encryption and decryption speed. In some extreme cases, it can even be 1000 times slower than the symmetric encryption. The existing public and private key encryption technology is mostly used for encrypting ciphertext with shorter data. In actual use, it is impossible to quickly encrypt large amounts of data, and the problem of low efficiency in the encryption process is serious. Summary of the invention

[0004] The technical problem to be solved by the embodiments of the present invention is to provide a data transmission method based on asymmetric encryption, which can effectively deal with potential security threats and attacks and improve the efficiency and security of encryption and decryption.

[0005] In order to solve the above technical problems, in a first aspect, an embodiment of the present invention provides a data transmission method based on asymmetric encryption, comprising:

[0006] Obtaining a public key sent by the receiving end, and calculating the encryption bits of the data to be transmitted according to the public key; wherein the data to be transmitted includes the encryption bits and the non-encryption bits;

[0007] Calculate a first check number based on the data to be transmitted;

[0008] Encrypt the encryption bit and the first check digit using the public key to generate encrypted data;

[0009] Writing the encrypted data into the first picture to obtain a second picture; wherein the first picture is a randomly generated picture;

[0010] The second picture and the non-encrypted bits are transmitted to a receiving end.

[0011] Furthermore, the method further comprises:

[0012] When it is detected that the sending end is transmitting data to the receiving end for the first time, an initialization operation is performed on the sending end, and the device information of the sending end is sent to the receiving end.

[0013] Further, the step of calculating the encryption bits of the data to be transmitted according to the public key includes:

[0014] Add the last four digits of the public key in sequence to obtain a cumulative sum;

[0015] Multiplying the accumulated sum and the remaining digits after removing the last four digits of the public key in sequence to obtain a product value;

[0016] The encryption bits of the data to be transmitted are obtained according to the product value.

[0017] Further, the calculating a first check digit based on the data to be transmitted includes:

[0018] Counting the total number of bits of the data to be transmitted, and calculating the average value of the data to be transmitted;

[0019] Based on the total number of bits and the average value, a first check digit of the data to be transmitted is calculated according to a preset check digit calculation rule.

[0020] Furthermore, after transmitting the second picture and the non-encrypted bit to the receiving end, the method further includes:

[0021] Receive the verification result returned by the receiving end; wherein the verification result is a second verification number calculated by the receiving end for the second image and the non-encrypted bits, and the verification result is obtained based on the second verification number.

[0022] Further, obtaining a verification result according to the second verification number includes:

[0023] When the first check number is equal to the second check number, the check result is check passed;

[0024] When the first check number is not equal to the second check number, the check result is check failure.

[0025] In order to solve the above technical problems, in a second aspect, an embodiment of the present invention provides a data transmission device based on asymmetric encryption, comprising:

[0026] An encryption bit calculation module, used to obtain the public key of the sender, and calculate the encryption bit of the data to be transmitted according to the public key; wherein the data to be transmitted includes the encryption bit and the non-encryption bit;

[0027] A first check digit calculation module, used to calculate a first check digit based on the data to be transmitted;

[0028] A data encryption module, used to encrypt the encryption bit and the first check digit using the public key to generate encrypted data;

[0029] A picture encryption module, used for writing the encrypted data into a first picture to obtain a second picture; wherein the first picture is a randomly generated picture;

[0030] A data transmission module is used to transmit the second image and the non-encrypted bits to a receiving end.

[0031] In order to solve the above technical problems, in a third aspect, an embodiment of the present invention provides an electronic device, including:

[0032] Memory for storing computer programs;

[0033] A processor, configured to execute the computer program;

[0034] Wherein, when the processor executes the computer program, the data transmission method based on asymmetric encryption as described in any one of the first aspects above is implemented.

[0035] In order to solve the above technical problems, in a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed, the data transmission method based on asymmetric encryption as described in any one of the above first aspects is implemented.

[0036] In order to solve the above technical problems, in a fifth aspect, an embodiment of the present invention provides a computer program product, including computer instructions, which, when executed by a processor, implement the data transmission method based on asymmetric encryption as described in any one of the above first aspects.

[0037] Compared with the prior art, the embodiment of the present invention provides a data transmission method based on asymmetric encryption, which has the following beneficial effects: by obtaining the public key of the sender, and calculating the encryption bits of the data to be transmitted according to the public key; wherein the data to be transmitted includes encryption bits and non-encryption bits; calculating a first check digit based on the data to be transmitted; using the public key to encrypt the encryption bits and the first check digit to generate encrypted data; writing the encrypted data into a first picture to obtain a second picture; wherein the first picture is a randomly generated picture; transmitting the second picture and the non-encryption bits to the receiving end. The present invention has higher encryption and decryption efficiency, can realize the safe and reliable transmission of a large amount of information in a short time, can effectively deal with potential security threats and attacks, and improve the efficiency and security of encryption and decryption. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to more clearly illustrate the technical features of the embodiments of the present invention, the drawings required for use in the embodiments of the present invention will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.

[0039] Figure 1 It is a flow chart of an embodiment of a data transmission method based on asymmetric encryption provided by the present invention;

[0040] Figure 2 It is a structural schematic diagram of an embodiment of a data transmission device based on asymmetric encryption provided by the present invention;

[0041] Figure 3 It is a structural schematic diagram of an embodiment of an electronic device provided by the present invention. DETAILED DESCRIPTION

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

[0043] In a first aspect, an embodiment of the present invention provides a data transmission method based on asymmetric encryption, see Figure 1 , which is a flow chart of an embodiment of a data transmission method based on asymmetric encryption provided by the present invention.

[0044] like Figure 1 As shown, the method comprises the following steps:

[0045] Obtaining a public key sent by the receiving end, and calculating the encryption bits of the data to be transmitted according to the public key; wherein the data to be transmitted includes the encryption bits and the non-encryption bits;

[0046] Calculate a first check number based on the data to be transmitted;

[0047] Encrypt the encryption bit and the first check digit using the public key to generate encrypted data;

[0048] Writing the encrypted data into the first picture to obtain a second picture; wherein the first picture is a randomly generated picture;

[0049] The second picture and the non-encrypted bits are transmitted to a receiving end.

[0050] In a specific implementation, asymmetric encryption refers to a method of encryption and decryption using a public key and a private key, wherein the public key is used to encrypt data, and the private key corresponding to the public key is used to decrypt data. Only the person holding the private key can decrypt the data, and even if the public key is made public, it will not affect the security of the data. The existing encryption method encrypts all the data to be encrypted, which is only applicable to data of a shorter length and cannot quickly encrypt a large amount of data, so the efficiency is low. The present invention only encrypts part of the data to be encrypted. First, the public key is obtained from the receiving end, and the encryption bits of the data to be transmitted are calculated according to the public key, and the other data are non-encrypted bits. Then the check digit of the data to be transmitted is calculated, and the encryption bits and the check digit are encrypted together with the public key to generate encrypted data. The encrypted data is written into a picture, which is a randomly generated picture, which can be a color picture, a grayscale picture or a binary picture. Finally, the picture with the encrypted data and the non-encrypted bits are sent to the receiving end.

[0051] In summary, the present invention obtains the public key of the sender, and calculates the encryption bits of the data to be transmitted according to the public key; wherein the data to be transmitted includes encryption bits and non-encryption bits; a first check digit is calculated based on the data to be transmitted; the encryption bits and the first check digit are encrypted using the public key to generate encrypted data; the encrypted data is written into a first image to obtain a second image; wherein the first image is a randomly generated image; the second image and the non-encryption bits are transmitted to the receiving end. The present invention has higher encryption and decryption efficiency, can realize the safe and reliable transmission of a large amount of information in a short time, can block malicious speculation, effectively interfere with illegal devices and illegal attackers, effectively respond to potential security threats and attacks, and improve the efficiency and security of encryption and decryption.

[0052] In an optional embodiment, the method further includes:

[0053] When it is detected that the sending end is transmitting data to the receiving end for the first time, an initialization operation is performed on the sending end, and the device information of the sending end is sent to the receiving end.

[0054] Specifically, when the sender transmits data to the receiver for the first time, the sender does not perform identity authentication, and the receiver does not have the sender's device information. The sender's device needs to be initialized first, and the receiver generates a key pair. The key pair includes a public key and a private key corresponding to the public key. The receiver sends the public key to the sender's device and keeps the public key and the private key for itself. During the data transmission phase, the sender transmits the device information together with the second image and the non-encrypted transmission bit to the receiver.

[0055] In an optional implementation, the step of calculating the encryption bits of the data to be transmitted according to the public key includes:

[0056] Add the last four digits of the public key in sequence to obtain a cumulative sum;

[0057] Multiplying the accumulated sum and the remaining digits after removing the last four digits of the public key in sequence to obtain a product value;

[0058] The encryption bits of the data to be transmitted are obtained according to the product value.

[0059] Specifically, obtain the digital sequence of the public key, add the last four digits of the public key in sequence to obtain a cumulative sum, multiply the cumulative sum and the remaining digits after removing the last four digits of the public key in sequence to obtain a product value, and determine whether the last two digits of the product value are equal. When the last two digits are not equal, the first encryption digit is the value of the data to be transmitted corresponding to the last digit of the product value, and the second encryption digit is the value of the data to be transmitted corresponding to the second to last digit of the product value; when the last two digits are equal, the first encryption digit is the value of the data to be transmitted corresponding to the last digit of the product value, and the second encryption digit is the value of the data to be transmitted corresponding to the second to last digit of the product value. If the third to last digit is zero, take the number combined by the second to last digit and the fourth to last digit, and so on.

[0060] Exemplarily, when the digital sequence of the public key is 234667133, first calculate the sum of the last four digits, that is, the sum = 7+1+3+3=14, and then calculate the product value, the product value = 14*2*3*4*6*6=12096. At this time, the last two digits of the product value obtained are not equal, so the first encrypted bit is the sixth bit of the data to be transmitted, and the second encrypted bit is the ninth bit of the data to be transmitted.

[0061] In an optional implementation, the calculating a first check number based on the data to be transmitted includes:

[0062] Counting the total number of bits of the data to be transmitted, and calculating the average value of the data to be transmitted;

[0063] Based on the total number of bits and the average value, a first check digit of the data to be transmitted is calculated according to a preset check digit calculation rule.

[0064] Specifically, during the data transmission process, various interferences may cause errors, data may be destroyed or tampered with, and it is necessary to perform mathematical operations on the data to obtain a check number, and add the check number to the transmitted data to ensure the accuracy of the data. First, the total number of bits of the data to be transmitted is counted, and the average value of the data to be transmitted is calculated. According to the preset check number calculation rule, the first check number is calculated. The check number calculation rule is as follows: when the total number of bits of the data to be transmitted is an odd number, the first check number is the sum of the total number of bits and twice the average value; when the total number of bits of the data to be transmitted is an even number, the first check number is the sum of the total number of bits and the average value. For example, when the total number of bits of the data to be transmitted is 31 bits and the average value is 5, the calculated first check number is: 31+5+5=41; when the total number of bits of the data to be transmitted is 30 bits and the average value is 5, the calculated first check number is: 30+5=35.

[0065] In an optional implementation manner, after transmitting the second picture and the non-encrypted bits to the receiving end, the method further includes:

[0066] Receive the verification result returned by the receiving end; wherein the verification result is a second verification number calculated by the receiving end for the second image and the non-encrypted bits, and the verification result is obtained based on the second verification number.

[0067] Specifically, after the receiving end receives the second image and the non-encrypted bits, the receiving end identifies the second image to obtain the encrypted data. The receiving end stores a private key corresponding to the public key, uses the private key to decrypt the encrypted data to obtain the encrypted bits and the first check digit, combines the encrypted bits and the received non-encrypted bits into a decrypted plaintext, and calculates the second check digit according to the check digit calculation rule, calculates the total number of digits and the average of the decrypted plaintext, when the total number of digits of the decrypted plaintext is an odd number, the second check digit is the sum of the total number of digits and twice the average value, when the total number of digits of the decrypted plaintext is an even number, the second check digit is the sum of the total number of digits and the average value, and obtains the verification result according to the first check digit and the second check digit.

[0068] In an optional implementation, obtaining a verification result according to the second verification number includes:

[0069] When the first check number is equal to the second check number, the check result is check passed;

[0070] When the first check number is not equal to the second check number, the check result is check failure.

[0071] Specifically, if the second check digit calculated after decryption is equal to the first check digit calculated before encryption, it means that the data to be transmitted has not been damaged or tampered with, and the verification result is verification passed. The receiving end confirms that the identity of the sending end device is legal and the data is complete, and stores the complete decrypted plaintext data after decryption in the database for subsequent access and analysis. In this way, the legal sending end device can safely transmit and store sensitive information while ensuring the confidentiality and integrity of the data. If the second check digit calculated after decryption is not equal to the first check digit calculated before encryption, it means that an abnormal situation may have occurred during the data transmission process, and the verification result is verification failed. The receiving end has a complete set of exception handling mechanisms and will make corresponding processing in a timely manner, such as recording abnormal events, notifying administrators, or taking quick blocking measures. This exception handling mechanism helps to ensure the security and stability of the system.

[0072] In a second aspect, an embodiment of the present invention provides a data transmission device based on asymmetric encryption, see Figure 2 , which is a structural diagram of an embodiment of a data transmission device based on asymmetric encryption provided by the present invention.

[0073] like Figure 2 As shown, the device comprises:

[0074] The encryption bit calculation module 21 is used to obtain the public key of the sending end, and calculate the encryption bit of the data to be transmitted according to the public key; wherein the data to be transmitted includes the encryption bit and the non-encryption bit;

[0075] A first check number calculation module 22, configured to calculate a first check number based on the data to be transmitted;

[0076] A data encryption module 23, configured to encrypt the encryption bit and the first check digit using the public key to generate encrypted data;

[0077] The picture encryption module 24 is used to write the encrypted data into the first picture to obtain a second picture; wherein the first picture is a randomly generated picture;

[0078] The data transmission module 25 is used to transmit the second picture and the non-encrypted bits to a receiving end.

[0079] In an optional embodiment, the method further includes:

[0080] When it is detected that the sending end is transmitting data to the receiving end for the first time, an initialization operation is performed on the sending end, and the device information of the sending end is sent to the receiving end.

[0081] In an optional implementation, the step of calculating the encryption bits of the data to be transmitted according to the public key includes:

[0082] Add the last four digits of the public key in sequence to obtain a cumulative sum;

[0083] Multiplying the accumulated sum and the remaining digits after removing the last four digits of the public key in sequence to obtain a product value;

[0084] The encryption bits of the data to be transmitted are obtained according to the product value.

[0085] In an optional implementation, the calculating a first check number based on the data to be transmitted includes:

[0086] Counting the total number of bits of the data to be transmitted, and calculating the average value of the data to be transmitted;

[0087] Based on the total number of bits and the average value, a first check digit of the data to be transmitted is calculated according to a preset check digit calculation rule.

[0088] In an optional implementation manner, after transmitting the second picture and the non-encrypted bits to the receiving end, the method further includes:

[0089] Receive the verification result returned by the receiving end; wherein the verification result is a second verification number calculated by the receiving end for the second image and the non-encrypted bits, and the verification result is obtained based on the second verification number.

[0090] In an optional implementation, obtaining a verification result according to the second verification number includes:

[0091] When the first check number is equal to the second check number, the check result is check passed;

[0092] When the first check number is not equal to the second check number, the check result is check failure.

[0093] In a third aspect, an embodiment of the present invention provides an electronic device, see Figure 3 , which is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention.

[0094] like Figure 3 As shown, the device includes:

[0095] A memory 31, used for storing computer programs;

[0096] A processor 32, configured to execute the computer program;

[0097] Wherein, when the processor 32 executes the computer program, the data transmission method based on asymmetric encryption as described in any of the above embodiments is implemented.

[0098] Exemplarily, the computer program may be divided into one or more modules / units, which are stored in the memory 31 and executed by the processor 32 to implement the present invention. The one or more modules / units may be a series of computer program instruction segments capable of implementing specific functions, which are used to describe the execution process of the computer program in the electronic device.

[0099] The processor 32 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0100] The memory 31 can be used to store the computer program and / or module, and the processor 32 realizes various functions of the electronic device by running or executing the computer program and / or module stored in the memory 31, and calling the data stored in the memory 31. The memory 31 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory 31 can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0101] It should be noted that the above electronic device includes, but is not limited to, a processor and a memory. Those skilled in the art can understand that Figure 3 The structural diagram is merely an example of the electronic device described above and does not constitute a limitation on the electronic device, and may include more components than shown in the figure, or a combination of certain components, or different components.

[0102] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed, the data transmission method based on asymmetric encryption described in any of the above embodiments is implemented.

[0103] It should be understood that the present invention implements all or part of the processes in the above-mentioned data transmission method based on asymmetric encryption, and can also be completed by instructing related hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above-mentioned data transmission method based on asymmetric encryption can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the computer-readable medium does not include electric carrier signals and telecommunication signals.

[0104] In a fifth aspect, an embodiment of the present invention further provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the data transmission method based on asymmetric encryption as described in any of the above embodiments.

[0105] The above description is only a preferred embodiment of the present invention, but the protection scope of the present invention is not limited thereto. It should be pointed out that for those skilled in the art, several equivalent obvious variations and / or equivalent substitutions can be made without departing from the technical principles of the present invention. These obvious variations and / or equivalent substitutions should also be regarded as the protection scope of the present invention.

Claims

1. A data transmission method based on asymmetric encryption, characterized in that: include: Obtaining a public key sent by the receiving end, and calculating the encryption bits of the data to be transmitted according to the public key; wherein the data to be transmitted includes the encryption bits and the non-encryption bits; Calculate a first check number based on the data to be transmitted; Encrypt the encryption bit and the first check digit using the public key to generate encrypted data; Writing the encrypted data into the first picture to obtain a second picture; wherein the first picture is a randomly generated picture; transmitting the second picture and the unencrypted bits to a receiving end; The step of calculating the encryption bits of the data to be transmitted according to the public key includes: Add the last four digits of the public key in sequence to obtain a cumulative sum; Multiplying the accumulated sum and the remaining digits after removing the last four digits of the public key in sequence to obtain a product value; The encryption bits of the data to be transmitted are obtained according to the product value.

2. The data transmission method based on asymmetric encryption as claimed in claim 1, characterized in that: The method further comprises: When it is detected that the sending end is transmitting data to the receiving end for the first time, an initialization operation is performed on the sending end, and the device information of the sending end is sent to the receiving end.

3. The data transmission method based on asymmetric encryption according to claim 1, characterized in that: The calculating a first check number based on the data to be transmitted includes: Counting the total number of bits of the data to be transmitted, and calculating the average value of the data to be transmitted; Based on the total number of bits and the average value, a first check digit of the data to be transmitted is calculated according to a preset check digit calculation rule.

4. The data transmission method based on asymmetric encryption according to claim 1, characterized in that: After transmitting the second picture and the non-encrypted bits to the receiving end, the method further includes: Receive the verification result returned by the receiving end; wherein the verification result is a second verification number calculated by the receiving end for the second image and the non-encrypted bits, and the verification result is obtained based on the second verification number.

5. The data transmission method based on asymmetric encryption as claimed in claim 4, characterized in that: The obtaining a verification result according to the second verification number includes: When the first check number is equal to the second check number, the check result is check passed; When the first check number is not equal to the second check number, the check result is check failure.

6. A data transmission device based on asymmetric encryption, characterized in that: include: An encryption bit calculation module, used to obtain the public key of the sender, and calculate the encryption bit of the data to be transmitted according to the public key; wherein the data to be transmitted includes the encryption bit and the non-encryption bit; A first check digit calculation module, used to calculate a first check digit based on the data to be transmitted; A data encryption module, used to encrypt the encryption bit and the first check digit using the public key to generate encrypted data; A picture encryption module, used for writing the encrypted data into a first picture to obtain a second picture; wherein the first picture is a randomly generated picture; A data transmission module, used for transmitting the second picture and the non-encrypted bits to a receiving end; The encryption bit calculation module is also used for: Add the last four digits of the public key in sequence to obtain a cumulative sum; Multiplying the accumulated sum and the remaining digits after removing the last four digits of the public key in sequence to obtain a product value; The encryption bits of the data to be transmitted are obtained according to the product value.

7. An electronic device, characterized in that: include: Memory for storing computer programs; A processor, configured to execute the computer program; Wherein, when the processor executes the computer program, the data transmission method based on asymmetric encryption as described in any one of claims 1 to 5 is implemented.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed, the data transmission method based on asymmetric encryption as described in any one of claims 1 to 5 is implemented.

9. A computer program product, characterized in that It comprises computer instructions, which, when executed by a processor, implement the data transmission method based on asymmetric encryption as described in any one of claims 1 to 5.