Data security transmission method and device based on data coding and storage medium
By dividing information strips and encoding virtual stereoscopic images on face images, the problem of easy cracking of fixed keys is solved, and higher data transmission security is achieved.
Patent Information
- Application Number
- CN202510021038.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-07
- Publication Date
- 2025-04-25
AI Technical Summary
In the prior art, fixed keys are easily cracked, resulting in security risks in facial image transmission.
By dividing the face image into multiple information strips, initially encoded, and recoded based on the distributed position of the virtual stereoscopic image, the difficulty of information being cracked is increased.
It improves the security of data transmission and increases the difficulty of stealers to obtain effective information.
Smart Images

Figure CN119893002A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information transmission security technology, and in particular to a data security transmission method, device and storage medium based on data coding. Background Art
[0002] As one of the user's identity authentication information, face images are widely used in user authorization authentication. When using face images for identity authentication, the collected face images are usually transmitted to a cloud database through the network to match with the user's face template image, or the face template image in the cloud database is transmitted to the terminal to match with the face image collected by the terminal.
[0003] At present, a fixed key is usually used to encrypt and transmit the collected face image or face template image. However, with this data transmission method, once the key is cracked, the face image will be directly stolen. Therefore, there is a certain security risk in using a fixed key method to transmit face images. Summary of the invention
[0004] The present invention provides a data security transmission method, device and storage medium based on data coding, which are used to solve the defects in the prior art that fixed keys are easy to be cracked and transmission data are easy to be stolen, and realize data security transmission.
[0005] The present invention provides a data security transmission method based on data coding, comprising the following steps.
[0006] Dividing the face image into a plurality of information strips, and encoding the information strips to obtain an initial encoding sequence; constructing a virtual stereogram based on the information strip; Based on the initial encoding sequence and the distribution position of the information strips on the virtual stereogram, the information strips are encoded to obtain a re-encoded sequence; The virtual stereogram, the primary encoding sequence and the re-encoded sequence are transmitted.
[0007] According to a data security transmission method based on data encoding provided by the present invention, before transmitting the virtual stereogram, the initial encoding sequence and the re-encoding sequence, the method further includes: The re-encoded sequence is encrypted; wherein the transmitted re-encoded sequence is the encrypted re-encoded sequence.
[0008] According to a data security transmission method based on data encoding provided by the present invention, a virtual stereogram is constructed based on the information strip, comprising: A virtual stereogram is constructed based on the information bar and the random number bar; the random number bar is an invalid data bar with the same shape as the information bar.
[0009] According to a data security transmission method based on data encoding provided by the present invention, a virtual stereogram is constructed based on the information strip and the random number strip, including: Dividing the security strips into multiple groups; the security strips include the information strips and the random number strips; Based on each set of safety strips, a different virtual stereogram is constructed.
[0010] According to a data security transmission method based on data encoding provided by the present invention, a virtual stereogram is constructed based on the information strip and the random number strip, including: dividing the security strip into a first information strip and a second information strip; A virtual hemispherical surface is constructed based on the first information piece, and a virtual spherical surface is constructed based on the second information piece; the virtual hemispherical surface and the virtual spherical surface have different diameters.
[0011] According to a data security transmission method based on data encoding provided by the present invention, based on the initial encoding sequence and the distribution position of the information strip on the virtual stereogram, the information strip is encoded to obtain a re-encoded sequence, including: According to the arrangement order of the information bars in the initial encoding sequence, the relative position of each information bar on the virtual stereogram and the positioning reference is determined in sequence, and the relative position is encoded to obtain the re-encoding sequence.
[0012] According to a data security transmission method based on data encoding provided by the present invention, the relative position is represented by the number of interval bars, and the number of interval bars is the number of security bars spaced between the information bar and the positioning reference in a preset direction.
[0013] According to a data security transmission method based on data encoding provided by the present invention, the positioning reference is pre-set information, which is stored in the transmitting end and the receiving end respectively.
[0014] The present invention also provides a data security transmission device based on data encoding, comprising the following modules: A primary encoding module, used for dividing the face image into a plurality of information strips, and encoding the information strips to obtain a primary encoding sequence; A virtual stereogram construction module, used for constructing a virtual stereogram based on the information strip; A re-encoding module, configured to encode the information strips based on the initial encoding sequence and the distribution positions of the information strips on the virtual stereogram to obtain a re-encoded sequence; A transmission module is used to transmit the virtual stereogram, the initial encoding sequence and the re-encoding sequence.
[0015] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method for secure data transmission based on data encoding as described above is implemented.
[0016] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the data security transmission method based on data encoding as described above is implemented.
[0017] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements any of the above-mentioned data security transmission methods based on data encoding.
[0018] The data security transmission method, device and storage medium based on data coding provided by the present invention divides a face image into multiple information strips, performs preliminary coding on the information strips, then constructs a virtual stereogram based on the information strips, and recodes the information strips based on the preliminary coding sequence and the virtual stereogram. By dividing the face image, pre-coding the divided data and re-coding based on the virtual stereogram, the present invention increases the difficulty of information being cracked and ensures the security of data transmission. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0020] Figure 1 This is one of the flow charts of the data security transmission method based on data encoding provided in an embodiment of the present invention.
[0021] Figure 2 This is one of the schematic diagrams of the bending form of the safety strip provided in the embodiment of the present invention.
[0022] Figure 3 This is the second schematic diagram of the bending form of the safety strip provided in the embodiment of the present invention.
[0023] Figure 4 This is one of the schematic diagrams of the method of intercepting and dividing a face image provided by an embodiment of the present invention.
[0024] Figure 5 This is the second schematic diagram of the method for intercepting and dividing a facial image provided by an embodiment of the present invention.
[0025] Figure 6This is the second flow chart of the data security transmission method based on data encoding provided in an embodiment of the present invention.
[0026] Figure 7 It is a structural schematic diagram of a data security transmission device based on data encoding provided in an embodiment of the present invention.
[0027] Figure 8 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0028] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are 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.
[0029] Combine the following Figure 1-Figure 6 The present invention describes a data security transmission method based on data encoding.
[0030] Figure 1 is one of the flow charts of the data security transmission method based on data encoding provided by an embodiment of the present invention, such as Figure 1 As shown, the method mainly includes the following steps: Step 101: Divide the face image into multiple information strips, and encode the information strips to obtain an initial encoding sequence.
[0031] Step 102: construct a virtual stereogram based on the information strip.
[0032] Step 103: Encode the information strips based on the initial encoding sequence and the distribution positions of the information strips on the virtual stereogram to obtain a re-encoded sequence.
[0033] Step 104: Transmit the virtual stereogram, the initial encoding sequence, and the re-encoding sequence.
[0034] The embodiment of the present invention increases the difficulty of decrypting the facial image and ensures the security of data transmission by dividing the facial image into multiple information strips, initially encoding the information strips, and re-encoding them based on a virtual stereogram.
[0035] It should be noted that the face image in the embodiment of the present invention can be a face image collected by the user terminal or a face template image stored in a cloud database. The data security transmission method provided in the embodiment of the present invention can be applied to both user terminals and cloud servers.
[0036] In some embodiments of the present invention, before the data transmission in step 104, a step of encrypting the re-encoded sequence is also included. The re-encoded sequence transmitted in step 104 is an encrypted re-encoded sequence. Of course, in other embodiments of the present invention, the initial encoding sequence can also be encrypted before transmission.
[0037] In some embodiments of the present invention, when constructing a virtual stereogram in step 102, the information used to construct the virtual stereogram includes, in addition to the multiple information strips divided from the face image, random strips, which are data strips used for confusion. They have the same shape as the above-mentioned information strips, but the content information they contain is invalid information. That is to say, the embodiment of the present invention mixes the above-mentioned information strips with multiple random strips before constructing the virtual stereogram. The introduction of random strips achieves the effect of confusing the information strips, and increases the difficulty for the thief to distinguish valid information by increasing the amount of invalid information obtained by the thief.
[0038] Here we call the database obtained by mixing the above-mentioned information strips with multiple random number strips a security information library, and the information strips and random number strips are collectively referred to as security strips. In some embodiments of the present invention, the security strips are divided into multiple groups, and different virtual stereograms (spheres, hemispheres, cubes, and non-cubes) are constructed based on each group of security strips. For example, the security strips are divided into three groups, of which one group can be used to construct a virtual spherical surface, one group can be used to construct a virtual cube, and one group can be used to construct a virtual hemisphere. It should be noted that the virtual stereogram described in this article refers to the outer surface of the virtual stereogram.
[0039] Since the recoding of the information bar is performed based on the position of the information bar in the virtual stereogram, the recoding based on multiple virtual stereograms will increase the complexity of the recoding sequence to a certain extent, thereby increasing the difficulty of cracking the transmitted data.
[0040] In addition, the recoded sequence is determined based on the positional relationship between the information strip and the positioning reference. The positioning references of different virtual stereograms are different, and the positioning references are not transmitted. Therefore, third parties cannot obtain the positioning references, and it is very difficult to decipher the recoded sequence. Moreover, the more virtual stereograms are constructed, the more positioning references there are, and the more difficult it is to decipher.
[0041] It should be noted that the construction process of the above virtual stereogram is essentially a bending process of the safety strip. Constructing a virtual spherical surface is to bend the safety strip into an arc. Figure 2 As shown; constructing a virtual cube is similar to constructing a sphere, which is to bend the safety strip, as shown in Figure 3 As shown. Among them, Figure 2 and Figure 3This is just an example, and the number of safety bars on the virtual stereogram can be set according to actual needs.
[0042] It is understandable that, whether it is a sphere, a hemisphere or a cube, this stereogram has no starting point from the graphical appearance, and it is very difficult for a third party to obtain the positioning reference.
[0043] Specifically, in some embodiments of the present invention, the above-mentioned security strip is divided into two groups, which are respectively referred to as the first information strip and the second information strip. Both the first information strip and the second information strip contain not only the information strips obtained by dividing the above-mentioned face image, but also random strips used for confusion. When constructing a virtual stereogram, the first information strip and the second information strip are respectively bent differently, that is, the first information strip and the second information strip have different bending radians. Specifically, the first information strip can be used to construct an external hemispherical surface, and the second information strip can be used to construct an internal spherical surface. Among them, the radius of the external hemispherical surface can be equal to the diameter of the internal spherical surface.
[0044] In some embodiments of the present invention, step 103 encodes the information strips based on the initial encoding sequence and the distribution positions of the information strips on the virtual stereogram to obtain a re-encoded sequence. The specific operation process may be as follows: According to the arrangement order of the information strips in the initial coding sequence, the relative position of each information strip on the virtual stereogram and the positioning reference on the virtual stereogram is determined in turn, and the relative position is encoded to obtain a re-coding sequence.
[0045] The following is an example of constructing two virtual stereograms of a hemispherical surface and a spherical surface.
[0046] We divide all the safety strips into two groups. The safety strips used to construct the hemispherical surface are called the first information strips, which contain both partial information strips obtained from the face image and random number strips. The safety strips used to construct the spherical surface are called the second information strips, which also contain both another partial information strip obtained from the face image and random number strips.
[0047] The first re-encoding method can be as follows: According to the predetermined order of each information strip in the initial coding sequence, the order of the effective information strips (ie, the information strips obtained by dividing the face image) in the first information strip and the second information strip is determined, and re-coding is performed in sequence.
[0048] For example, a face image is divided into 10 lines, namely [A, B, C, D, E, F, G, H, I, J], and the initial coding sequence is [!, @, #, $, %, ^, &, *, ~, +]. Among them, the initial coding of A is !, the initial coding of B is @, the initial coding of C is #, the initial coding of D is $, the initial coding of E is %, the initial coding of F is ^, the initial coding of G is &, the initial coding of H is *, the initial coding of I is ~, and the initial coding of J is +.
[0049] When re-encoding, first determine the first code ! in the initial coding sequence, and then determine in which virtual stereogram A corresponding to ! is distributed. For example, A is distributed on the virtual hemisphere. Then, according to the position of A on the virtual hemisphere, A is re-encoded as 0x, where 0 is the code of the virtual hemisphere and x is the position code of A on the virtual hemisphere. For example, if the position code is represented by 8, then the re-encoding of A is 08. Next, determine the second code @ in the initial coding sequence, and determine in which virtual stereogram B corresponding to @ is distributed. For example, B is distributed on the virtual sphere. Then, according to the position of B on the virtual sphere, B is re-encoded as 1y, where 1 is the code of the virtual sphere and y is the position code of B on the virtual sphere. For example, if the position code is represented by 3, then the re-encoding of B is 13. Next, determine the third code # in the initial coding sequence, and in which virtual stereogram the C corresponding to # is distributed. For example, C is distributed on the virtual hemisphere. Then, according to the position of C on the virtual hemisphere, C is recoded as 0x, where 0 is the code of the virtual hemisphere, and x is the position code of C on the virtual hemisphere. For example, the position code is represented by 15, then the recoding of C is 015, ..., and in this way, determine in turn on which virtual stereogram the information strip corresponding to the initial coding sequence [!, @, #, $, %, ^, &, *, ~, +] is located, as well as its position in the virtual stereogram, and then obtain the recoding sequence [08, 13, 015, ...] in sequence, which is consistent with the order in the initial coding sequence.
[0050] In some embodiments of the present invention, when dividing the face image, it can be cut into multiple information strips in parallel in one direction, such as Figure 4 When initially encoding, the encoding order may be the order in which the face images are captured.
[0051] Of course, the order of the initial coding sequence may not follow the order in which the face images are captured, as long as the order of the initial coding is known to the receiving end. For example, the order of the initial coding sequence may be in reverse order of the capture order (for example, the face image capture order is A, B, C, D, E, F, G, H, I, J, and the reverse order is J, I, H, G, F, E, D, C, B, A), or it may be the order of the face image from the middle to the left to the right (for example, the face image capture order is A, B, C, D, E, F, G, H, I, J, and the middle - to the left - to the right is F, G, H, I, J, E, D, C, B, A).
[0052] In other embodiments of the present invention, there may be other ways to segment the facial image, such as: Figure 5 As shown, the face image is first equally cut into four blocks, namely, upper left, upper right, lower left, and lower right. Then, each block is cut into parallel information strips. During the initial encoding, the information strips A, B, C, D, E, F, G, H, I, J, K, and L in each block can be encoded in the order of upper left, upper right, lower left, and lower right. Of course, encoding can also be performed in other orders, and the present invention does not limit this. In other words, the present invention can have many specific ways of cutting and dividing the face image information strips, and there can also be many specific ways of initial encoding. The present invention does not limit this.
[0053] The second re-encoding method can be as follows: We use the first few information strips in the initial coding sequence to construct a virtual hemispherical surface, and the last few information strips to construct a virtual spherical surface. For example, we still divide the face image into 10 strips, the first 6 strips are used to construct a virtual hemispherical surface, and the last 4 strips are used to construct a virtual spherical surface. Of course, in addition to the 10 information strips intercepted from the face image mentioned above, the security strips used to construct the virtual hemispherical surface and the virtual spherical surface also include random strips used for interference, and the number of random strips can be much larger than the number of information strips intercepted from the face image mentioned above. Of course, this division needs to be known to both the sender and the receiver.
[0054] In this case, we also use [!, @, #, $, %, ^, &, *, ~, +] to represent the initial coding sequence, which are respectively the initial coding of A, B, C, D, E, F, G, H, I, J. When re-encoding, we only need to determine the positions of the information bars A, B, C, D, E, F, G, H, I, J in their respective virtual stereograms, without encoding the virtual stereograms again.
[0055] For example, [A, B, C, D, E, F] are distributed on a virtual hemisphere, and [G, H, I, J] are distributed on a virtual sphere. The positions of A, B, C, D, E, and F in the virtual hemisphere are represented by 15, 3, 7, 13, 22, and 37, respectively, and the positions of G, H, I, and J in the virtual sphere are represented by 19, 5, 13, and 6, respectively. Then, the re-encoding sequence of the embodiment of the present invention is [15, 3, 7, 13, 22, 37, 19, 5, 13, 6].
[0056] The following describes how to encode information based on its position in the virtual stereogram.
[0057] The information strip is encoded based on the relative position of the information strip and the positioning reference on the virtual stereogram. Specifically, the relative position can be represented by the number of safety strips spaced between the information strip and the positioning reference.
[0058] We also take the construction of two virtual stereograms, a virtual hemispherical surface and a virtual spherical surface, as examples to illustrate.
[0059] The positioning reference is also called the starting line. A positioning bar is set at the starting line of each virtual stereogram. The positioning bar in the virtual hemispherical surface is called the first positioning bar, which is randomly selected from the first information bar. The positioning bar in the virtual spherical surface is called the second positioning bar, which is randomly selected from the second information bar.
[0060] In the first encoding method described above, for example, the initial encoding is still [!, @, #, $, %, ^, &, *, ~, +], which are the initial encodings of the information strips [A, B, C, D, E, F, G, H, I, J]. When re-encoding, first look at which virtual stereogram the information strip A corresponding to the first code ! in the initial encoding sequence is on. For example, A is distributed on the virtual hemisphere, and there are 8 safety strips between it and the first positioning strip, then the re-encoding of A is 8, where 0 represents the virtual hemisphere, and 8 represents the number of safety strips between the first positioning strips. Then look at which virtual stereogram the information strip B corresponding to the second code @ in the initial encoding sequence is on. For example, B is distributed on the virtual sphere, and there are 3 safety strips between it and the second positioning strip, then the re-encoding of A is 13, where 1 represents the virtual sphere, and 3 represents the number of safety strips between it and the second positioning strip. And so on, until the information strip corresponding to the last code in the initial encoding sequence is re-encoded and stops. It should be noted that if information bar D is the first positioning bar, its re-encoding is 00, and if information bar F is the second positioning bar, its re-encoding is 10.
[0061] In the second encoding method described above, for example, the initial encoding is still [!, @, #, $, %, ^, &, *, ~, +], which are the initial encodings of the information strips [A, B, C, D, E, F, G, H, I, J] respectively. Due to the pre-setting, the first 6 information strips are distributed on the virtual hemisphere, and the last 4 information strips are distributed on the virtual sphere. When re-encoding, first, see how many safety strips are there between the information strip A corresponding to the first code in the initial encoding sequence! and the first positioning strip, for example, 4, then the re-encoding of A is 4. Then see how many safety strips are there between the information strip B corresponding to the second code @ in the initial encoding sequence and the first positioning strip, and so on, until the information strip corresponding to the last code in the initial encoding sequence is re-encoded and stops. In this encoding method, there is no code representing a virtual stereogram in the re-encoded sequence.
[0062] A specific example is introduced below to illustrate the above embodiment of the present invention.
[0063] like Figure 6 As shown, a data information secure transmission method based on data encoding includes the following steps: Step 601: Acquire a face template image, and cut the face template image into a plurality of information strips in a predetermined direction, number the information strips in a predetermined order and obtain numbering information, construct security information based on the information strips and random number strips, and divide the security information into a first information strip and a second information strip; Step 602: construct an external spherical surface based on the first information strip, and construct an internal spherical surface based on the second information strip, wherein one of the first information strips is a first positioning strip, and one of the second information strips is a second positioning strip, the external spherical surface and the internal spherical surface constitute an information body, and the central axes of the first positioning strip and the second positioning strip are both directly opposite to the starting line, and the number of intervals between each first information strip and the first positioning strip is obtained based on the numbering information and the first encrypted information is obtained, and the number of intervals between each second information strip and the second positioning strip is obtained based on the numbering information and the second encrypted information is obtained; Step 603: Send the encrypted information body to the receiving end via the transmission channel, and the receiving end restores the face template image information based on the first encryption information, the second encryption information, and the numbering information.
[0064] As described in the above steps 601-603, by encrypting the data at the sending end (mobile end), the information strips to be sent are mixed with a large number of random numbers and then distributed on the virtual sphere, so that the virtual stereogram is transmitted in the transmission channel, which increases the difficulty of obtaining all the information on the virtual stereogram. Even if the information of the virtual stereogram is obtained, it is difficult to crack and obtain an effective information source, thereby improving the security factor.
[0065] The above step 601 specifically includes: obtaining a face image and converting it into a face template image, intercepting the face template image into a plurality of information strips in a predetermined direction, adjacent information strips are parallel to each other, and when numbering the information strips, the predetermined order of the numbers is the order in which the face template image is intercepted. Obtaining random number strips, the random number strips have the same shape as the information strips, the random number strips are invalid information added, and constructing security information based on the random number strips and the information strips. Performing bending processing on the security information, bending the security information from a horizontal state into an arc, there are two types of bending arcs, the security information belonging to the first bending arc is the first information strip, and the security information belonging to the second bending arc is the second information strip, the first information strip is semicircular, and the second information strip is circular.
[0066] In this way, the face template image is divided into a large number of information strips, which facilitates the hiding and deformation of information. By bending the information strips, the difficulty of information identification and theft is increased. A large number of random numbers are added to the information strips, which increases the difficulty of identifying and determining valid information after theft.
[0067] The above step 602 specifically includes: a first semicircular information strip forms an external spherical surface, a second circular information strip forms an internal spherical surface, the radius of the external spherical surface is equal to the diameter of the internal spherical surface, the first positioning strip is used to position and sort the first information strip on the external spherical surface, the second positioning strip is used to position and sort the second information strip on the internal spherical surface, the information body is composed of the internal spherical surface and the external spherical surface, the central axis of the first positioning strip and the second positioning strip on the information body is always directly opposite to the starting line, and the positions of the first positioning strip and the second positioning strip are determined by the starting line. Both the external spherical surface and the internal spherical surface are three-dimensional models, and more internal models or external models can be added on the basis of the external spherical surface and the internal spherical surface, which can be set according to the data transmission requirements.
[0068] There are a large number of random numbers distributed on the virtual sphere, which increases the interference information, increases the amount of invalid information obtained by the thief, and increases the difficulty for the thief to distinguish valid information. The position of the starting line is set by the coder, and the information of the starting line will not be transmitted through the transmission channel, but only stored at the sending and receiving ends.
[0069] The position of each first information strip in the face template image is determined based on the numbering information, the number of intervals between the first information strip and the first positioning strip is determined in a predetermined direction, the first information strip is renumbered according to the number of intervals, the renumbered numbers are encrypted and the first encrypted information is obtained.
[0070] The order of the first information strip and the second information strip is determined according to the predetermined order of numbers. For example, the first information strip is the first information strip in the predetermined order, and the number of strips between the first information strip and the first positioning strip is determined to be 3, that is, the first information strip is renumbered as 3, and the number 3 is renumbered for encryption. Then, the second information strip in the predetermined order is found, and so on, until all the information strips are renumbered, and an encrypted information about the positional relationship between the first information strip and the second information strip is formed.
[0071] The number of intervals between the second information strip and the second positioning strip is determined in a predetermined direction, the second information strip is renumbered according to the number of intervals, and the renumbered numbers are encrypted to obtain second encrypted information.
[0072] The complete face template image can be obtained by restoring the first information strip and the second information strip to be straight and combining them in sequence.
[0073] Both the sending end and the receiving end have an encryptor, and the encryptors of the sending end and the receiving end correspond to each other, and the renumbered numbers are processed by the encryptors.
[0074] As described above, the two groups of information carriers are transformed from plane strips into three-dimensional spheres. The two three-dimensional spheres are of different sizes. The external sphere is placed outside the internal sphere. The encryption methods of the external sphere and the internal sphere are different. It is necessary to extract and decrypt the effective information on the external sphere and the internal sphere respectively, which greatly increases the difficulty of cracking the effective information. The positions of the first positioning bar and the second positioning bar are determined by the starting line, and the positions of the first information bar and the second information bar are determined by the first positioning bar, the second positioning bar and the renumbered number. The position of the effective information is determined by the positional relationship between the information body and the starting line when it is stationary, and the starting line exists at the sending end and the receiving end, which improves the security of information transmission and interpretation.
[0075] The above step 603 includes: including: the transmission channel is an information channel connecting the sending end and the receiving end, after receiving the data information, the receiving end obtains the first information item based on the first encryption information and the encryptor, obtains the second information item based on the second encryption information and the encryptor, and obtains the face template image based on the first information item, the second information item, and the numbering information. The sending end and the receiving end reserve a unified encryptor, so that the receiving end can restore the received encrypted information into the face template image, improve the security factor of information reception and decryption, and reduce the risk of being stolen.
[0076] The embodiment of the present invention encodes data at the transmitting end, mixes the information strips to be sent with a large number of random number strips and distributes them on the virtual sphere, so that the virtual stereogram is transmitted in the transmission channel. In the transmission channel, the difficulty of obtaining all the information on the virtual stereogram is increased. Even if the information of the virtual stereogram is obtained, it is difficult to crack and obtain an effective information source, thereby improving the safety factor.
[0077] The following is a description of the data security transmission device based on data coding provided by the present invention. The data security transmission device based on data coding described below and the data security transmission method based on data coding described above can be referred to each other. Figure 7 As shown, the data security transmission device based on data encoding includes: The initial encoding module 701 is used to divide the face image into multiple information strips and encode the information strips to obtain an initial encoding sequence; A virtual stereogram constructing module 702, configured to construct a virtual stereogram based on the information strip; A re-encoding module 703, configured to encode the information strips based on the initial encoding sequence and the distribution positions of the information strips on the virtual stereogram to obtain a re-encoded sequence; The transmission module 704 is used to transmit the virtual stereogram, the initial encoding sequence and the re-encoding sequence.
[0078] As for how each module in the device specifically works, reference can be made to the data security transmission method based on data encoding described above, and no further details will be given here.
[0079] Figure 8 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 8 As shown, the electronic device may include: a processor 810, a communication interface 820, a memory 830 and a communication bus 840, wherein the processor 810, the communication interface 820 and the memory 830 communicate with each other through the communication bus 840. The processor 810 may call the logic instructions in the memory 830 to execute a data security transmission method based on data encoding, the method comprising: dividing a face image into a plurality of information strips, encoding the information strips to obtain an initial encoding sequence; constructing a virtual stereogram based on the information strips; encoding the information strips based on the initial encoding sequence and the distribution position of the information strips on the virtual stereogram to obtain a re-encoding sequence; transmitting the virtual stereogram, the initial encoding sequence and the re-encoding sequence. As for a more specific method, reference may be made to the data security transmission method based on data encoding described above, which will not be repeated here.
[0080] In addition, the logic instructions in the above-mentioned memory 830 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0081] On the other hand, the present invention also provides a computer program product, which includes a computer program, which can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the data security transmission method based on data encoding provided by the above methods, the method comprising: dividing a face image into multiple information strips, and encoding the information strips to obtain an initial encoding sequence; constructing a virtual stereogram based on the information strips; encoding the information strips based on the initial encoding sequence and the distribution position of the information strips on the virtual stereogram to obtain a re-encoding sequence; transmitting the virtual stereogram, the initial encoding sequence and the re-encoding sequence. As for a more specific method, reference can be made to the data security transmission method based on data encoding described above, which will not be repeated here.
[0082] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the data security transmission method based on data encoding provided by the above methods, the method comprising: dividing a face image into a plurality of information strips, and encoding the information strips to obtain an initial encoding sequence; constructing a virtual stereogram based on the information strips; encoding the information strips based on the initial encoding sequence and the distribution positions of the information strips on the virtual stereogram to obtain a re-encoding sequence; transmitting the virtual stereogram, the initial encoding sequence, and the re-encoding sequence. As for a more specific method, reference may be made to the data security transmission method based on data encoding described above, which will not be repeated here.
[0083] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0084] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0085] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A data security transmission method based on data encoding, characterized in that: include: Dividing the face image into a plurality of information strips, and encoding the information strips to obtain an initial encoding sequence; constructing a virtual stereogram based on the information strip; Based on the initial encoding sequence and the distribution position of the information strips on the virtual stereogram, the information strips are encoded to obtain a re-encoded sequence; The virtual stereogram, the primary encoding sequence and the re-encoded sequence are transmitted.
2. The data security transmission method according to claim 1, characterized in that: Before transmitting the virtual stereogram, the primary encoding sequence and the re-encoding sequence, the method further includes: The re-encoded sequence is encrypted; wherein the transmitted re-encoded sequence is the encrypted re-encoded sequence.
3. The data security transmission method according to claim 1, characterized in that: Constructing a virtual stereogram based on the information strips, comprising: A virtual stereogram is constructed based on the information bar and the random number bar; the random number bar is an invalid data bar with the same shape as the information bar.
4. The data security transmission method according to claim 3, characterized in that: Based on the information strips and the random number strips, a virtual stereogram is constructed, including: Dividing the security strips into multiple groups; the security strips include the information strips and the random number strips; Based on each set of safety strips, a different virtual stereogram is constructed.
5. The data security transmission method according to claim 4, characterized in that: Based on the information strips and the random number strips, a virtual stereogram is constructed, including: dividing the security strip into a first information strip and a second information strip; A virtual hemispherical surface is constructed based on the first information piece, and a virtual spherical surface is constructed based on the second information piece; the virtual hemispherical surface and the virtual spherical surface have different diameters.
6. The data security transmission method according to claim 1, characterized in that: Based on the initial encoding sequence and the distribution position of the information strips on the virtual stereogram, the information strips are encoded to obtain a re-encoded sequence, including: According to the arrangement order of the information strips in the initial encoding sequence, the relative position of each information strip on the virtual stereogram and the positioning reference is determined in sequence, and the relative position is encoded to obtain the re-encoding sequence.
7. The data security transmission method according to claim 6, characterized in that: The relative position is represented by the number of interval bars, where the number of interval bars is the number of safety bars between the information bar and the positioning reference in a preset direction.
8. The data security transmission method according to claim 6 or 7, characterized in that: The positioning reference is pre-set information, which is stored in the transmitting end and the receiving end respectively.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the data security transmission method based on data encoding as described in any one of claims 1 to 8 is implemented.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the data security transmission method based on data encoding as claimed in any one of claims 1 to 8 is implemented.