Information security transmission method

By selecting different security levels and verification methods during information transmission, the problem of users being unable to choose security levels independently is solved, enabling diverse transmission of data files and ensuring security, thereby improving the efficiency and security of transmission.

CN115915484BActive Publication Date: 2026-11-24UNIV OF ELECTRONIC SCI & TECH OF CHINA CHENGDU COLLEGE
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211315186.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-26
Publication Date
2026-11-24
Estimated Expiration
2042-10-26

AI Technical Summary

Technical Problem

Existing information transmission methods cannot allow users to choose different security levels according to their needs, resulting in a mismatch between efficiency and security during transmission.

Method used

By selecting the security level of the data file on the first terminal, determining the verification method of the communication connection, and using the corresponding encoding method to encode and decode the data file, including low-level, medium-level, and high-level modes, the data is transmitted using Bluetooth, WiFi, and near-field communication modules, respectively.

Benefits of technology

It enables users to select the appropriate security level based on the data file transmission requirements, ensuring the diversity and security of file transmission and improving the efficiency and security of users' independent information transmission choices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115915484B_ABST
    Figure CN115915484B_ABST
Patent Text Reader

Abstract

This invention discloses a secure information transmission method. The method includes: a first terminal selecting a security level for data file transmission based on different data files; the first terminal selecting a corresponding verification method for establishing a communication connection with a second terminal based on the selected security level; after the first and second terminals establish a communication connection, the first terminal encodes the data file according to the selected security level using an encoding method and sends it to the second terminal; the second terminal receives the encoded data file, decodes it, and obtains the data file transmitted by the first terminal. This invention selects different security levels for different data files, thereby enabling reasonable file transmission based on data file transmission requirements. Users can independently choose the efficiency and / or security of information transmission as needed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of information transmission technology, and in particular to a method for secure information transmission. Background Technology

[0002] Information transmission is the process of sending commands or data from one end to another via a channel, where they are received. Transmission media can be wired or wireless. Wired media uses telephone lines or dedicated cables; wireless media utilizes networks, Bluetooth, radio, microwave, and satellite technologies. The security of information during transmission is of paramount importance.

[0003] Existing information transmission typically uses a fixed transmission method with the same security level. Users cannot choose different security levels according to their own needs to rationally select the efficiency and / or security of information transmission. Summary of the Invention

[0004] The main technical problem solved by this invention is to provide a method for secure information transmission, which addresses the issue that users cannot choose different security levels according to their own needs in order to rationally select the efficiency and / or security of information transmission.

[0005] To solve the above-mentioned technical problems, one technical solution adopted by the present invention is to provide an information security transmission method, comprising the following steps:

[0006] Based on different data files, the first terminal selects the security level for the data file transmission;

[0007] The first terminal selects the corresponding verification method for establishing a communication connection between the first terminal and the second terminal based on the selected security level.

[0008] After the first terminal and the second terminal establish a communication connection, the first terminal encodes the data file according to the selected security level and the corresponding encoding method and sends it to the second terminal. After receiving the encoded data file, the second terminal performs corresponding decoding to obtain the data file transmitted by the first terminal.

[0009] Preferably, the security level includes a low-level mode, a medium-level mode, and a high-level mode; the corresponding transmitted data files include low-level files, medium-level files, and high-level files.

[0010] Preferably, the low-level mode is selected, and a communication connection is established through the Bluetooth module and / or WiFi module built into the first terminal and the second terminal.

[0011] Preferably, after the first terminal and the second terminal establish a connection, the first terminal encodes the low-level file. The method for encoding the low-level file is as follows:

[0012] The first terminal sets a1, a2, and a3 to be the end information of the low-level file, x to be the information segment to be hidden in the low-level file, x1 and x2 to be the end information in x, and y i Mark the position of the information segment x to be hidden, where i is the number of embedding loops, and its value range is... This indicates rounding up; b1, b2, and b3 are the values ​​after embedding the hidden information.

[0013] The following encoded information is generated, which includes the encoding carrier and position marker information:

[0014]

[0015] In the formula: These are the inverses of a1, a2, and a3, respectively.

[0016] After receiving the encoded information, the second terminal decodes the encoded information using the following formula.

[0017]

[0018] Preferably, the images in the low-level file are encoded using the following method;

[0019] The first terminal sets the size of the image to be transmitted to M×N and divides it into (M / c)×(N / c) blocks of size c×c. Set m=M / c, n=N / c, and c is the number of blocks that can be freely selected when dividing the image. The larger c is, the higher the processing efficiency and the lower the encryption effect. The smaller c is, the lower the processing efficiency and the higher the encryption effect. The number of blocks can be freely selected as needed.

[0020] Divide the divided blocks evenly into d 2 There are (m / d) × (n / d) small particles, where d ≥ 2, representing the number of freely chosen particles when dividing them.

[0021] Randomly select a P i As the starting block, randomly select a particle P from the starting block. i,j As the starting particle, a new image with the same size, block division, and grain size as the original image is reconstructed; using P i,j Starting from each block, select a particle with the same index j. For example, if i = 5 and j = 7, then select P. 5,7 P 6,7 P 7,7 , ..., P 2,7 P 1,7 ; fill the new image with a matrix of size d×d in sequence; then j=j+1, fill the second matrix of size b×b, and so on;

[0022] Select two prime numbers p and q (1<p<q<255), obtain sets R1, R2, R3 and R4 according to the quadratic residue theorem, and then randomly select r1, r2, r3 and r4 from the sets to form a new set R'; the image size is M×N, and any pixel p mn ∈R t , 1≤t≤4, t∈Z, select (14,) from R', and then multiply r t and p mn , that is, C=r t ×p mn , and then calculate the values of four roots M1, M2, M3 and M4; then according to r t value, select one M t from the four roots as M; in this way, the set M is used as the pixel value of the new image;

[0023] Set the value of as the pixel of the new image;

[0024] According to r=r t (1≤t≤4, t∈Z), select the corresponding new pixel value of the new image

[0025] , so as to obtain a new image NEW M*N (M≥N) which is not only uniformly scrambled, but also has its corresponding pixel values changed, to cover the original image;

[0026] After receiving the new image, the second terminal decodes the new image in the following manner;

[0027] Read NEW M*N (M≥N), calculate and obtain according to

[0028] Calculate four roots M1, M2, M3 and M4 of ;

[0029] According to that M is one root of , obtain the r value, and according to the r value, obtain

[0030]

[0031] After the original pixel values are recovered, fill the values in the key c, d, i, j value matrix into a d×d matrix starting from Pi, j , and continue to fill into a particle with j=j+1 after the matrix is filled, and so on, so that the scrambled image can be finally recovered.

[0032] ​​Preferably, the first terminal selects the intermediate mode, and the Bluetooth module and / or WiFi module built into the first terminal and the second terminal establish a communication connection. Then, the first terminal sends a communication request to the second terminal. After receiving the communication request, the second terminal randomly generates a verification code. After the first terminal enters the verification code, a communication connection with the second terminal is established.

[0033] Preferably, the intermediate file is divided into multiple groups of symbols to be encoded, and a selected symbol is chosen from each group of symbols to be encoded and XORed to obtain the encoded symbol;

[0034] Perform an XOR operation on the selected symbols in each group of symbols to be encoded to obtain the encoded symbol L and the encoding matrix G.

[0035]

[0036] In the formula: "1" indicates that the symbol is selected at this position, i.e., the symbol is selected; "0" is used for unselected positions, and so on to form the encoding matrix G; P er The channel deletion probability is represented by m, where m ≥ k.

[0037] The symbol to be encoded can be obtained by multiplying the symbol to be encoded by G;

[0038] The number of selection symbols can be one or more; the number of selection symbols is determined according to the degree distribution function:

[0039]

[0040] In the formula: μ(d) is the degree distribution function, ρ(d) is the ideal solitary wave distribution, τ(d) is the basic utilization distribution, and Z = ∑ d (ρ(d)+τ(d)),

[0041]

[0042] In the formula: k represents the number of symbols to be compiled, and d represents the number of selected symbols; δ represents the probability of decoding failure, and c is a constant;

[0043] The selection symbol when the number of selection symbols is 1 is used as the decoding signal. When the second terminal receives the decoding signal, it starts decoding.

[0044] The second terminal only begins decoding upon receiving the decoding signal. The decoding process is performed on the first k / (1-P) of the encoding matrix based on the number of symbols selected in the encoding matrix G. er The columns are rearranged to obtain G1, which is divided into:

[0045]

[0046] In the formula: where G 11 For a matrix where the number of selection symbols is not 1, the number of rows and columns... Among them G 12 For decoding the signal matrix, rows and columns The decoding signal matrix G 12 The number of symbols in the decoded signal can be determined from the column number as kμ(1) / (1-P). er )indivual;

[0047] The time t1 at which the decoded signal first appears satisfies:

[0048]

[0049] Where: μ(1) represents the probability of the decoded signal, and T represents each symbol period;

[0050] k / (1-P) in the encoding matrix er )+1 to m / (1-P er The first column remains unchanged, resulting in G2. Merging the two matrices yields the rearranged encoding matrix G'.

[0051]

[0052] The first k / (1-P) of the encoding matrix er In the recombined encoding matrix, the decoded signals are concentrated in t1-k / (1-P) er Between ), the number of encoded symbols in the decoded signal satisfies kμ(1) / (1-P) er );

[0053] The specific decoding method of the second terminal is as follows:

[0054] (1) After receiving the encoded symbol, the second terminal attempts to find the encoded symbol of the decoded signal; after finding the encoded symbol of the decoded signal, it assigns the value of the encoded symbol to the symbol to be encoded and disconnects the connection between the two; if it is not found, the decoding process fails.

[0055] (2) Then find the other encoded symbols connected to the symbol to be encoded, perform an XOR operation on them, and disconnect the association. The result is the value of the symbol to be encoded.

[0056] (3) Repeat the above process until all the symbols to be translated are translated.

[0057] Preferably, the specific steps for the authentication communication between the first terminal and the second terminal are as follows:

[0058] The first terminal sends a communication request, which includes an ID and an instruction to request the second terminal to play audio; the communication request can be sent via Wi-Fi or based on audio encoding.

[0059] After receiving the instruction from the first terminal, the second terminal calls its speaker to play an audio verification signal. The microphones of both the second and first terminals receive this signal at different times; the reception times of the first and second terminals are recorded as T. A1 and T B1 ;

[0060] After receiving and recognizing the audio verification signal played by the second terminal, the first terminal also sends a response signal; then the first terminal plays the audio verification signal, and both the first and second terminals will receive the signal, recording their respective times as T. A2 and T B2 ;

[0061] The first terminal reports its arrival time T A1 and T A2 The data is encrypted and hashed before being transmitted to the second terminal.

[0062] After receiving the data, the second terminal first decrypts it, then verifies whether the hash values ​​are equal to perform identity verification. The main calculation process is as follows: ΔT=ΔT′ A -ΔT B In the formula: ΔT′ A =0.5v(ΔT) A -ΔT B ), ΔT B =T B2 -T B1 , T′ A2 , T′ A1 T respectively A1 and T A2 The value is encrypted and hashed.

[0063] Set a time threshold; authentication succeeds when ΔT is less than the time threshold, and fails otherwise.

[0064] If the second terminal successfully authenticates the first terminal, the second terminal sends its encrypted time parameter and hash value to the first terminal; the first terminal also authenticates the second terminal, and after successful authentication, a communication connection is established.

[0065] Preferably, the distance between the first terminal and the second terminal can be expressed as:

[0066] Distance AB=0.5·v·[(T B1 -T A1 )+(T A2 -T B2 )]

[0067] =0.5v(ΔT) A -ΔT B )

[0068] =0.5vΔT

[0069] The distance between the first terminal and the second terminal is set to no more than 2 meters.

[0070] Preferably, after the communication authentication between the first terminal and the second terminal is successful, the encoding is performed again based on the intermediate file encoding, and the time when the decoded signal first appears on the second terminal is delayed.

[0071] The beneficial effects of this invention are: this invention selects different security levels according to different data files, thereby enabling reasonable file transmission based on the data file transmission requirements, ensuring diverse choices during file transmission. Each security level corresponds to a different verification method, which ensures the security of the communication connection between the first terminal and the second terminal. Furthermore, each security level has its corresponding encoding and decoding methods, further ensuring the secure transmission of data files. Users can independently choose the efficiency and / or security of information transmission as needed. Attached Figure Description

[0072] Figure 1 This is a flowchart according to an embodiment of the present invention;

[0073] Figure 2 This is a flowchart illustrating the establishment of a communication connection in a low-level mode according to an embodiment of the present invention;

[0074] Figure 3 This is a flowchart illustrating the establishment of a communication connection in a secondary mode according to an embodiment of the present invention;

[0075] Figure 4 This is a flowchart of establishing a communication connection in advanced mode according to an embodiment of the present invention. Detailed Implementation

[0076] To facilitate understanding of the present invention, a more detailed description is provided below with reference to the accompanying drawings and specific embodiments. Preferred embodiments of the invention are shown in the drawings. However, the invention can be implemented in many different forms and is not limited to the embodiments described herein. Rather, these embodiments are provided to provide a thorough and complete understanding of the disclosure of the invention.

[0077] It should be noted that, unless otherwise defined, all technical and scientific terms used in this specification have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains. The terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the invention. The term "and / or" as used in this specification includes any and all combinations of one or more of the associated listed items.

[0078] Figure 1 An embodiment of the information security transmission method of the present invention is shown, including:

[0079] Step S1: Select the security level for data file transmission within the first terminal based on the different data files;

[0080] Step S2: The first terminal selects the corresponding verification method for establishing a communication connection between the first terminal and the second terminal based on the selected security level;

[0081] Step S3: After the first terminal and the second terminal establish a communication connection, the first terminal encodes the data file according to the selected security level and the corresponding encoding method and sends it to the second terminal. After receiving the encoded data file, the second terminal performs the corresponding decoding to obtain the data file transmitted by the first terminal.

[0082] This invention selects different security levels based on different data files, thereby enabling reasonable file transmission according to data file transmission requirements and ensuring diverse options during file transfer. Each security level corresponds to a different verification method, which ensures the security of the communication connection between the first and second terminals. Furthermore, each security level has its corresponding encoding and decoding methods, further ensuring secure data file transmission. Users can independently choose the efficiency and / or security of information transmission as needed.

[0083] The first terminal and / or the second terminal can be a desktop computer, a portable computer, a network server, a PDA (Personal Digital Assistant), a mobile phone, a smart bracelet, a smartwatch, a tablet computer, a wireless terminal device, a communication device, or an embedded device, etc. This embodiment of the invention does not limit the type of the first terminal and / or the second terminal.

[0084] The security levels include low-level, medium-level, and high-level modes. Data files include low-level files, medium-level files, and high-level files.

[0085] Low-level mode is used to transmit low-level files containing less privacy information. Low-level files include data files of the types of documents, images, videos, and audio. Low-level files contain less privacy content and do not include a large amount of personal information or other privacy-related content.

[0086] Intermediate mode is used to transfer intermediate-level files containing a significant amount of private information and / or with general access permissions. Intermediate-level files can access data files within the first and / or second terminals. Intermediate-level files can be data files containing private content, such as documents, images, videos, and audio files, or data files such as installers and plugins that can access data files within the first and / or second terminals.

[0087] Advanced mode is used to transfer high-level files containing a significant amount of private information and / or files requiring control permissions. High-level files can be data files containing private content, such as documents, images, videos, and audio files. Alternatively, they can be data files such as installers or plugins that allow control over or modification of data files on the first and / or second terminals.

[0088] The first terminal establishes a communication connection with the second terminal based on different security levels.

[0089] When the low-level mode is selected, a communication connection is established through the communication units such as the Bluetooth module and WiFi module built into the first and second terminals. For example... Figure 2 As shown, the first terminal sends a communication request to the second terminal. After the second terminal confirms receipt of the communication request and sends a signal back to the first terminal, the first terminal and the second terminal establish a communication connection.

[0090] After the first terminal and the second terminal establish a connection, the first terminal encodes the low-level file to obtain low-level encoding information, and then sends the low-level encoding information to the second terminal. The second terminal confirms receipt of the low-level encoding information, decodes the low-level encoding information, and obtains the low-level file transmitted from the first terminal.

[0091] The method for encoding low-level files is as follows:

[0092] The first terminal sets a1, a2, and a3 to the end information of a low-level file, x to the information segment to be hidden in the low-level file, x1 and x2 to the end information in x, and y to... i Mark the position of the information segment x to be hidden, where i is the number of embedding loops, and its value range is... This indicates rounding up, and b1, b2, and b3 represent the values ​​after embedding hidden information.

[0093] The following encoding information is generated, which includes the encoding carrier and location marker information:

[0094]

[0095] In the formula: These are the inverses of a1, a2, and a3, respectively.

[0096] After receiving the above encoded information, the second terminal decodes the encoded information.

[0097]

[0098] Extract the encoding carrier and position marker information according to the above formula. Modify the changed bits according to the correspondence in Table 1 to obtain the low-level file transmitted by the first terminal.

[0099]

[0100]

[0101] The above method allows for quick and simple encryption of low-level files before they can be sent to a second terminal, offering advantages in efficiency and speed, thus making data file transmission highly efficient.

[0102] In daily use, image transmission is a frequent scenario. Images often contain certain private information, such as the time, location, and people involved in the shooting. To ensure good processing efficiency while protecting privacy during image transmission, it is preferable to configure separate settings for the transmission of images in low-level files.

[0103] For images in low-level files, the following method is preferred for transmission.

[0104] The first terminal sets the size of the image to be transmitted to M×N and divides it into (M / c)×(N / c) blocks of size c×c. Set m=M / c, n=N / c, and c is the number of blocks that can be freely selected when dividing the image. The larger c is, the higher the processing efficiency and the lower the encryption effect. The smaller c is, the lower the processing efficiency and the higher the encryption effect. The number of blocks can be freely selected as needed.

[0105] Divide the divided blocks evenly into d 2 There are (m / d) × (n / d) small particles, where d ≥ 2, representing the number of particles that can be freely chosen when dividing them.

[0106] Randomly select a P i As the starting block, randomly select a particle P from the starting block. i,j Using P as the starting particle, a new image with the same size, block division, and grain size as the original image is reconstructed. i,j Starting from each block, select a particle with the same index j. For example, if i = 5 and j = 7, then select P. 5,7 P6,7 , P 7,7 , ..., P 2,7 , P 1,7 are sequentially filled into the new image in the form of a d×d matrix. Then j=j+1, and the second b×b matrix is filled in, and so on.

[0107] Two prime numbers p and q (1<p<q<255) are selected, and sets R1, R2, R3, R4 are obtained according to the quadratic residue theorem, and then r1, r2, r3, r4 are randomly selected from the sets to form a new set R'. The image size is M×N, and any pixel p mn ∈R t , 1≤t≤4, t∈Z, (14,) is selected from R', and then r t is multiplied by p mn , that is, C=r t ×p mn , and then the values of the four roots M1, M2, M3, and M4 are calculated. Then according to the r t value, one of the four roots M t is taken as M. In this way, the set M is used as the pixel value of the new image.

[0108] Set the value, is the pixel of the new image.

[0109] According to r=r t (1≤t≤4, t∈Z) select

[0110] corresponding to the new pixel value of the new image, so that a new image NEW is obtained which is not only uniformly scrambled but also has the corresponding pixel value changed M*N (M≥N) covers the original image.

[0111] After receiving the new image, the second terminal decodes the new image in the following manner.

[0112] Read NEW M*N (M≥N), by calculating according to obtained by calculation

[0113] Calculate the four roots of , M1, M2, M3, M4.

[0114] According to M is one of the roots, the r value is obtained,

[0115] According to the r value, get

[0116] After recovering the original pixel values, the values ​​in the matrix of keys c, d, i, and j are used to fill in the values ​​of P. i,j Starting with a d×d matrix, once it is filled, continue filling up to the particle j = j+1, and so on, until the scrambled image can be restored.

[0117] The above method allows for the transmission of images from low-level files, providing a certain level of security while offering good processing efficiency, thus making data file transmission highly efficient.

[0118] When the first terminal selects the intermediate mode, such as Figure 3 As shown, the first terminal and the second terminal establish a communication connection through their built-in Bluetooth module, WiFi module, and other communication units. Then, the first terminal sends a communication request to the second terminal. After receiving the communication request, the second terminal randomly generates a verification code. The first terminal enters the verification code and establishes a communication connection with the second terminal, and then encodes the intermediate file.

[0119] The method for encoding intermediate-level files is as follows:

[0120] The first terminal divides the intermediate file into multiple groups of symbols to be encoded. It selects a symbol from each group and performs an XOR operation to obtain an encoded symbol. This encoded symbol is then sent to the second terminal via a communication channel. Upon receiving the decoding signal from the encoded symbol, the second terminal decodes it. After decoding, the second terminal sends the decoding completion information back to the first terminal. The first terminal then sends the next group of symbols to be encoded, repeating the above steps until all symbols to be encoded have been sent to the second terminal. This completes the secure transmission of the intermediate file.

[0121] The intermediate-level file is divided into multiple groups of symbols to be encoded. Select symbols from each group of symbols to be encoded and perform XOR calculation to obtain encoded symbols.

[0122] The number of symbols that can be selected can be one or more.

[0123] The number of selection symbols can be determined based on the degree distribution function:

[0124]

[0125] In the formula: μ(d) is the degree distribution function, ρ(d) is the ideal solitary wave distribution, τ(d) is the basic utilization distribution, and Z = ∑ d (ρ(d)+τ(d)),

[0126]

[0127] In the formula: k represents the number of symbols to be compiled, and d represents the number of selected symbols. δ represents the probability of decoding failure, and c is a constant.

[0128] Preferably, the number of selection symbols is one. The selection symbol when the number of selection symbols is one is used as the decoding signal, that is, when the second terminal receives the decoding signal, decoding begins.

[0129] Perform an XOR operation on the selected symbols in each group of symbols to be encoded to obtain the encoded symbol L and the encoding matrix G.

[0130]

[0131] In the formula: "1" indicates that the symbol is selected at this position, i.e., the symbol is selected; "0" is used for unselected positions, and so on to form the encoding matrix G; P er represents the channel deletion probability; m represents the number of symbols involved in correct decoding, m≥k.

[0132] The encoded symbol can be obtained by multiplying the symbol to be encoded by G.

[0133] The number of columns in the matrix above is related to the number of symbols required for decoding. During the decoding process, only correct encoded symbols can participate in the decoding. If an error occurs in the encoded symbol received by the second terminal, the symbol is deleted. If decoding requires m correct symbols, considering the influence of the channel's deletion probability, the actual number of received symbols is m / (1-P). er ) , the corresponding encoding matrix is ​​m / (1-P er )List.

[0134] The second terminal only begins decoding upon receiving the decoding signal. The decoding process is performed on the first k / (1-P) of the encoding matrix based on the number of symbols selected in the encoding matrix G. er The columns are rearranged to obtain G1, which is divided into:

[0135]

[0136] In the formula: where G 11 For a matrix where the number of selection symbols is not 1, the number of rows and columns... Among them G 12 For decoding the signal matrix, rows and columns The decoding signal matrix G 12 The number of symbols in the decoded signal can be determined from the column number as kμ(1) / (1-P). er )indivual.

[0137] The time t1 at which the decoded signal first appears satisfies:

[0138]

[0139] Where μ(1) represents the probability of the decoded signal, and T represents each symbol period.

[0140] To ensure that the decoding overhead does not increase, k / (1-P) in the encoding matrix... er )+1 to m / (1-P er The first column remains unchanged, resulting in G2. Merging the two matrices yields the rearranged encoding matrix G'.

[0141]

[0142] The first k / (1-P) of the encoding matrix er In the recombined encoding matrix, the decoded signals are concentrated in t1-k / (1-P) er Between ), the number of encoded symbols in the decoded signal satisfies kμ(1) / (1-P) er This method of delayed decoding signals simultaneously delays the arrival time of the decoding signals from both the second terminal and the eavesdropper, thus delaying the start time of decoding. When both receive a large number of almost identical encoded symbols, it makes it difficult for the eavesdropper to recover the intermediate file information before the second terminal, thereby reducing the eavesdropper's interception efficiency.

[0143] The specific method for decoding on the second terminal is as follows:

[0144] (1) After receiving the encoded symbol, the second terminal attempts to find the encoded symbol of the decoded signal. Upon finding the encoded symbol of the decoded signal, it assigns the value of the encoded symbol to the symbol to be encoded and disconnects the connection between the two. If not found, the decoding process fails.

[0145] (2) Then find other encoded symbols connected to these symbols to be encoded, and perform XOR operation on them to reduce the degree value and break the association. The result is the value of the symbol to be encoded.

[0146] (3) Repeat the above process until all the symbols to be encoded are translated;

[0147] (4) The information transmission performance can be obtained by analyzing the decoding results. If the intermediate files sent by the first terminal are correctly recovered, it means that the decoding is successful; otherwise, it means that the decoding has failed.

[0148] The first terminal encodes the intermediate file using the above method, and the second terminal decodes it accordingly, thereby ensuring the efficiency and security of the intermediate file during transmission.

[0149] When the first terminal selects the advanced mode, near-field communication is used to ensure that the first and second terminals are within an approved distance range.

[0150] Both the first and second terminals are equipped with speakers and microphones. First, the speaker on the first terminal plays test audio, and the microphone on the first terminal records the audio, with the recording time denoted as T.A1 At the same time, the microphone on the second terminal will also record audio T. B1 After the test audio from the first terminal finishes playing, the second terminal plays the test audio. Similarly, the first and second terminals record the arrival time of the audio as T. A2 T B2 Next, the first terminal and the second terminal calculate the time difference between the arrival of the two audio signals, then exchange the time difference values, and finally calculate the distance between the first terminal and the second terminal based on indoor positioning technology.

[0151] Commonly used indoor positioning technologies include those based on Angle of Arrival (AOA), Signal Strength Index (RSSI), Time of Arrival (TOA), and Time Difference of Arrival (TDOA), with the latter being preferred.

[0152] like Figure 4 As shown, the specific steps for authentication communication between the first terminal and the second terminal are as follows:

[0153] (1) The first terminal sends a communication request, which includes an ID and a command to request the second terminal to play audio. This communication request can be sent via Wi-Fi or audio-based encoding.

[0154] (2) After receiving the instruction from the first terminal, the second terminal calls the speaker to play an audio verification signal. The microphones of both the second terminal and the first terminal will receive the signal at different times. The reception time of the first terminal and the second terminal is recorded as T. A1 and T B1 .

[0155] (3) After receiving and recognizing the audio verification signal played by the second terminal, the first terminal also sends a response signal. Then, the first terminal plays the audio verification signal, and both the first and second terminals will receive the signal. The respective times are recorded as T. A2 and T B2 .

[0156] (4) The first terminal reports its arrival time T A1 and T A2 It is encrypted and hashed before being transmitted to the second terminal.

[0157] (5) After receiving the data, the second terminal first decrypts it, then verifies whether the hash values ​​are equal to ensure that the data has not been tampered with during the communication transmission. After confirming that the data has not been tampered with, it finally performs identity verification. The main calculation process is as follows: ΔT=ΔT′ A -ΔT B In the formula: ΔT′ A =0.5v(ΔT) A -ΔT B ), ΔT B =T B2 -T B1 , T′ A2 , T′ A1 T respectively A1 and T A2 The value is encrypted and hashed.

[0158] Set a time threshold. When ΔT is less than the time threshold, authentication is successful; otherwise, authentication fails.

[0159] (6) If the second terminal successfully authenticates the first terminal, the second terminal will send its encrypted time parameter and hash value to the first terminal, just like the first terminal in step 5. The first terminal will also authenticate the second terminal. After successful authentication, both parties can proceed with subsequent operations.

[0160] Preferably, the distance between the first terminal and the second terminal can be expressed as:

[0161] Distance AB =0.5·v·[(T B1 -T A1 )+(T A2 -T B2 )]

[0162] =0.5v(ΔT) A -ΔT B )

[0163] =0.5vΔT

[0164] Preferably, the distance between the first terminal and the second terminal is set to no more than 2 meters. If the distance exceeds 2 meters after delay calculation, authentication fails.

[0165] After the communication authentication between the first and second terminals is successful, encoding is performed again based on the intermediate file encoding. After obtaining the time of the first appearance of the decoded signal as described above, the second terminal performs decoding. In the high-level file encoding, the time when these decoded signals first appear on the second terminal is further delayed, thus delaying the time when the eavesdropper receives the decoded signal.

[0166] Let the number of symbols to be encoded be k, and the probability distribution of the decoded signal corresponding to the symbols to be encoded be μ1(1). Secondary encoding based on the decoded signal is implemented by rearranging the continuous decoded signal twice, and its encoding matrix G′ is... degree-1 as follows:

[0167]

[0168] Where: m' represents the number of correct symbols required to recover the decoded signal, and its value is uncertain, determined by the number of correct symbols required for secondary decoding; G' 11 The undecoded signal matrix has the following rows and columns: G' 12 The decoded signal matrix has rows and columns. μ2(1) represents the probability of decoding the signal during secondary encoding; G'2 is the probability of decoding the signal in the secondary encoding matrix kμ1(1) / (1-P er ) 2 +1 to m′ / (1-P) er )List.

[0169] According to the formula The decoded signal is then encoded to obtain a secondary code.

[0170] The initial number of symbols for the secondary encoding is kμ1(1) / (1-P) er The encoded words are also arranged according to their degree. The second terminal starts decoding the secondary encoding at time t2.

[0171]

[0172] Therefore, the time t at which the second terminal begins decoding the combined encoded symbol and the secondary encoding is obtained as follows:

[0173] t = t1 + t2

[0174] This further delays the decoding time of the second terminal, further reducing the probability that the eavesdropper will decode before the second terminal. This further enhances the security of information transmission.

[0175] The decoding process is as follows:

[0176] The second terminal receives the decoding signal, and at time t1, it begins to receive secondary encoding and decodes the secondary encoding. According to the position recorded by the decoding signal, it recovers the decoding signal of the encoded symbol and decodes it together with the received decoding signal. It continues to receive encoded symbols and decode them simultaneously until k symbols to be encoded are recovered. It sends the decoding completion signal of this group to the first terminal and stops sending the encoded symbol words of this group.

[0177] The first terminal continues to encode the next group of symbols to be encoded and sends it to the second terminal. The second terminal repeats the decoding process until all the symbols of the code groups are recovered.

[0178] In advanced mode, the first terminal uses two encoding operations. The first encoding involves encoding k symbols for the first terminal, which are then sent to the second terminal. The second encoding yields kμ1(1) / (1-P). er The encoded symbols of ) consecutive decoded signals, through G′ degree-1 The encoding process is repeated, resulting in a secondary encoding that is then sent to the second terminal. For the second terminal, the received data at time t1 is the encoded symbol; however, since there is no decoding signal, decoding of the encoded symbol is impossible. Starting from time t1, the second terminal receives the secondary encoding, decodes it, recovers the decoding signal of the encoded symbol, and then sends a decoding request to the first terminal, requesting continued transmission of encoded symbols. Simultaneously, the decoding signals of these recovered encoded symbols participate in the decoding of all received encoded symbols until the encoded signal is recovered. The second terminal then sends a decoding completion signal to the first terminal, indicating the decoding is finished.

[0179] In advanced mode, only near-field communication is allowed to ensure security. It also performs further encryption on top of intermediate mode to ensure secure information transmission, making the transmission of data files highly secure.

[0180] This invention selects different security levels based on different data files, thereby enabling reasonable file transmission according to data file transmission requirements and ensuring diverse options during file transfer. Each security level corresponds to a different verification method, which ensures the security of the communication connection between the first and second terminals. Furthermore, each security level has its corresponding encoding and decoding methods, further ensuring secure data file transmission. Users can independently choose the efficiency and / or security of information transmission as needed.

[0181] The above are merely embodiments of the present invention and do not limit the patent scope of the present invention. Any equivalent structural transformations made based on the content of the present invention specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of the present invention.

Claims

1. A method for secure information transmission, characterized in that, Including the following steps: Based on different data files, the first terminal selects the security level for the data file transmission; the security level includes low-level mode, medium-level mode, and high-level mode; the corresponding data files to be transmitted include low-level files, medium-level files, and high-level files. The low-level mode is used to transmit low-level files containing less privacy information; the medium-level mode is used to transmit medium-level files containing more privacy information and / or with general access permissions; the high-level mode is used to transmit high-level files containing more privacy information and / or with control permissions. The first terminal selects the corresponding verification method for establishing a communication connection between the first terminal and the second terminal based on the selected security level. When the low-level mode is selected, a communication connection is established through the Bluetooth module and / or WiFi module built into the first terminal and the second terminal. When the medium mode is selected, the Bluetooth and / or WiFi modules built into the first terminal and the second terminal establish a communication connection. Then, the first terminal sends a communication request to the second terminal. After receiving the communication request, the second terminal randomly generates a verification code. After the first terminal enters the verification code, a communication connection is established with the second terminal. When the advanced mode is selected, near-field communication is used to ensure that the first and second terminals are within an approved distance range and to conduct authenticated communication. After the first terminal and the second terminal establish a communication connection, the first terminal encodes the data file according to the selected security level and the corresponding encoding method and sends it to the second terminal. The method for encoding low-level files is as follows: The first terminal setting , , Here, x represents the end information of the low-level file, and x represents the information segment to be hidden in the low-level file. This is the end information in x. Mark the position of the information segment x to be hidden, where i is the number of embedding loops, and its value range is... , Indicates rounding up. After embedding hidden information; The following encoded information is generated, which includes the encoding carrier and position marker information: In the formula: , , They are respectively The opposite; The images in the low-level file are encoded using the following method; The first terminal sets the size of the image to be transmitted to M×N and divides it into... There are c×c blocks of size, with m=M / c and n=N / c, where c is the number of blocks that can be freely chosen when dividing the blocks. The larger c is, the higher the processing efficiency but the lower the encryption effect, and the smaller c is, the lower the processing efficiency but the higher the encryption effect. The number of blocks can be freely chosen as needed. Divide the divided blocks evenly. indivual Small particles, d≥2, are the number of freely chosen when dividing small particles; Randomly select a piece As the starting block, one particle is randomly selected from the starting block. As the starting particle, a new image with the same size, block division, and grain size as the original image is reconstructed; Starting from a point, select a particle with the same index j from each block, such as... Then choose ; fill the new image with a matrix of size d×d in sequence; then j=j+1, fill in the second matrix of size d×d, and so on; Select two prime numbers p and q (1 < p < q < 255), and obtain a set according to the quadratic residue theorem , then randomly select from the set to form a new set ; the image size is M×N, and any pixel , select from , then multiply and , which is , then calculate the values of the four roots of ; then select one of the four roots according to the value of as the new pixel value M; This way, set M will be used as the pixel values ​​of the new image; set up The value, For the pixels of the new image; according to choose ; Corresponding to the new pixel values ​​of the new image, this results in a new image that is not only uniformly scrambled but also has its corresponding pixel values ​​altered. Overwrite the original image; The method for encoding intermediate-level files is as follows: The first terminal divides the intermediate file into multiple groups of symbols to be encoded, selects a symbol from each group of symbols to be encoded, performs an XOR operation, and obtains the encoded symbol; the encoded symbol is then sent to the second terminal through the communication channel. After receiving the decoding signal from the encoded symbol, the second terminal decodes the encoded symbol. After decoding, the second terminal sends the decoding completion information back to the first terminal. The first terminal then sends the next set of symbols to be encoded, and repeats the above steps until all symbols to be encoded are sent to the second terminal, thus completing the secure transmission of the intermediate file. The intermediate-level file is divided into multiple groups of symbols to be encoded. A selected symbol is chosen from each group of symbols to be encoded and XORed to obtain the encoded symbol. The number of selection symbols can be one or more; the number of selection symbols is determined according to the degree distribution function. In the formula: The degree distribution function, For an ideal solitary wave distribution, Based on distribution, , In the formula: Indicates the number of symbols to be compiled. Indicates the number of selection symbols; , Indicates the probability of decoding failure. It is a constant; The selection symbol when the number of selection symbols is 1 is used as the decoding signal. When the second terminal receives the decoding signal, it starts decoding. Perform an XOR operation on the selected symbols from each group of symbols to be encoded to obtain the encoded symbol L and the encoding matrix. ; In the formula: "1" indicates that the symbol is selected at this position, i.e., the symbol is selected; the unselected position is represented by "0", and so on to form the encoding matrix. ; Indicates the probability of channel deletion; This indicates the number of symbols that participated in the correct decoding. ≥ ; Symbols to be compiled and Multiplying them together yields the encoded symbol. The second terminal only begins decoding upon receiving the decoding signal, and adjusts the encoding matrix G according to the number of symbols selected. Column rearrangement yields , Based on the number of selection symbols in each column: In the formula: For a matrix where the number of selection symbols is not 1, the number of rows and columns... ;in For decoding the signal matrix, rows and columns The decoding signal matrix The number of symbols in the decoded signal can be determined from the column number. indivual; The time of the first occurrence of the decoded signal satisfy: in: This represents the probability of decoding the signal. Indicates each symbol period; In the encoding matrix to The columns remain unchanged, resulting in Merging the two matrices yields the rearranged encoding matrix. : Before the encoding matrix The decoded signals in the recombined encoding matrix are concentrated in Between, the number of encoded symbols in the decoded signal satisfies ; When the first terminal selects the advanced mode, the specific steps for authentication communication between the first terminal and the second terminal are as follows: The first terminal sends a communication request, which includes an ID and an instruction to request the second terminal device to play audio; the communication request can be sent via Wi-Fi or based on audio encoding. Upon receiving the instruction from the first terminal, the second terminal activates its speaker to play an audio verification signal. Both the second and first terminals' microphones receive this signal at different times; the reception times of the first and second terminals are recorded respectively. and ; After receiving and recognizing the audio verification signal played by the second terminal, the first terminal also sends a response signal; then the first terminal plays the audio verification signal, and both the first and second terminals receive the signal, recording their respective times. and ; The first terminal reports its arrival time. and The data is encrypted and hashed before being transmitted to the second terminal. After receiving the data, the second terminal first decrypts it, then verifies whether the hash values ​​are equal, and performs identity verification. The main calculation process is as follows: In the formula: , , They are respectively and The value is encrypted and hashed. Set a time threshold, when Authentication succeeds when the time threshold is exceeded; otherwise, authentication fails. After the communication authentication between the first terminal and the second terminal is successful, the encoding is performed again based on the intermediate file encoding, and the time when the decoded signal first appears on the second terminal is delayed. If the second terminal successfully authenticates the first terminal, the second terminal sends its encrypted time parameter and hash value to the first terminal; the first terminal also authenticates the second terminal, and after successful authentication, a communication connection is established. After receiving the encoded data file, the second terminal performs corresponding decoding to obtain the data file transmitted by the first terminal.

2. The information security transmission method according to claim 1, characterized in that, For the low-level file, after receiving the encoded information, the second terminal decodes the encoded information using the following formula. .

3. The information security transmission method according to claim 1, characterized in that, For the aforementioned low-level file, after receiving a new image, the second terminal decodes the new image in the following manner; Read According to Calculated : calculate The four roots, ; According to M is The value of r is obtained from one of the roots; Based on the value of r, we get ; After recovering the original pixel values, the values ​​in the key matrix c, d, i, j are used to fill in the values ​​of the original pixels. Starting with a d×d matrix, once it is filled, continue filling up to the particle j=j+1, and so on, until the scrambled image can be restored.

4. The information security transmission method according to claim 1, characterized in that, For the intermediate-level file, the specific decoding method of the second terminal is as follows: (1) After receiving the encoded symbol, the second terminal attempts to find the encoded symbol of the decoded signal; after finding the encoded symbol of the decoded signal, it assigns the value of the encoded symbol to the symbol to be encoded and disconnects the connection between the two. If not found, the decoding process fails; (2) Then find the other encoded symbols connected to the symbol to be encoded, perform an XOR operation on them, and disconnect the association. The result is the value of the symbol to be encoded. (3) Repeat the above process until all the symbols to be translated are translated.

5. The information security transmission method according to claim 1, characterized in that, The distance between the first terminal and the second terminal can be expressed as: The distance between the first terminal and the second terminal is set to no more than 2 meters. If the distance exceeds 2 meters after time delay calculation, the authentication fails.

Citation Information

Patent Citations

  • Reliable file transmission protocol with selectable safety levels

    CN103856304A