Data processing method and device, equipment, storage medium and program product

By introducing interference area and pixel value verification mechanisms in data transmission, the problem of tampering in data transmission is solved, and the security and integrity of data are improved.

CN119155053APending Publication Date: 2024-12-17MASHANG CONSUMER FINANCE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410814104.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-20
Publication Date
2024-12-17

AI Technical Summary

Technical Problem

During the data transmission process, how to ensure the security of data and prevent data from being tampered with, especially when facing the threat of malicious theft and tampering.

Method used

By introducing an interference area in the carrier picture, the non-interference area is indicated and determined using the sum of pixel values, the data to be transmitted is written into the non-interference area, and the pre-stored pixel value and position information is verified to verify whether the data has been tampered with, ensuring that the data is transmitted Integrity.

Benefits of technology

It effectively improves the security of data transmission, reduces the risk of attackers stealing and tampering with data, and ensures the integrity and accuracy of data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119155053A_ABST
    Figure CN119155053A_ABST
Patent Text Reader

Abstract

The invention provides a data processing method and device, equipment, a storage medium and a program product, relates to the technical field of information security, and is used for improving the security of data transmission, the data processing method is applied to first equipment, and the first equipment obtains a first pixel value according to carrier information and a first pixel value from second equipment, the first pixel value is used for indicating the sum of pixel values required to be met by one interference area; generating a first carrier picture according to the carrier information; determining a non-interference area from the first carrier picture according to the first pixel value, and writing the to-be-transmitted data into the non-interference area to obtain a second carrier picture; and sending the second carrier picture to a second device, so that the second device processes the to-be-transmitted data in the second carrier picture according to the first pixel value and pre-stored position information of the interference area.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of information security technology, and more particularly to a data processing method, device, equipment, storage medium and program product. Background Art

[0002] In the Internet age, data transmission has become an indispensable means of communication in daily life. However, with the development of technology, the problem of malicious theft and leakage of transmitted data has gradually become prominent. Whether it is for enterprises or individuals, data theft or tampering will cause serious losses. Therefore, how to ensure the security of data and prevent data tampering during data transmission has become an urgent problem to be solved. Summary of the invention

[0003] The present application provides a data processing method, apparatus, device, storage medium and program product for improving the security of data transmission.

[0004] In a first aspect, an embodiment of the present application provides a data processing method, which is applied to a first device; the method includes: receiving carrier information and a first pixel value from a second device, wherein the first pixel value is used to indicate the sum of pixel values ​​that an interference area must satisfy; generating a first carrier picture based on the carrier information; determining a non-interference area from the first carrier picture based on the first pixel value, and writing the data to be transmitted into the non-interference area to obtain a second carrier picture; and sending the second carrier picture to the second device.

[0005] In the embodiment of the present application, the second device indicates the interference area in the carrier image through the first pixel value, reducing the risk of the attacker directly obtaining the location information of the interference area by intercepting the interactive information between the second device and the first device. In addition, after the first device sends the second carrier image with written data to the second device, since the first device and the second device have a consensus on writing data in the non-interference area, correspondingly, no data is written in the interference area, and no data is written in the interference area, which means that the pixel value of the interference area will not change. Therefore, the second device can determine whether the sum of the pixel values ​​of the interference area in the second carrier image is the same as the first pixel value based on the pre-stored first pixel value of the interference area and the pre-stored location information of the interference area, thereby determining whether the data in the second carrier image has been tampered with. It can be seen that through the above method, the embodiment of the present application can realize data tamper-proofing, which is conducive to improving the security of data transmission.

[0006] In a second aspect, an embodiment of the present application provides another data processing method, which is applied to a second device; the method includes: sending carrier information and a first pixel value to a first device, the carrier information being used to generate a first carrier image, the first pixel value being used to indicate the sum of pixel values ​​that must be satisfied as an interference area; receiving a second carrier image from the first device, and processing the data to be transmitted in the second carrier image based on the second carrier image, the first pixel value and the pre-stored location information of the interference area.

[0007] In a third aspect, an embodiment of the present application provides a data processing device, which is applied to a first device; the data processing device includes: a transceiver module, which is used to receive carrier information and a first pixel value from a second device, wherein the first pixel value is used to indicate the sum of pixel values ​​that an interference area must satisfy; a generation module, which is used to generate a first carrier image according to the carrier information; a determination module, which is used to determine a non-interference area from the first carrier image according to the first pixel value, and write the data to be transmitted into the non-interference area to obtain a second carrier image; the transceiver module is also used to send the second carrier image to the second device.

[0008] In a fourth aspect, an embodiment of the present application provides another data processing device, which is applied to a second device; the data processing device includes: a transceiver module, used to send carrier information and a first pixel value to the first device, the carrier information is used to generate a first carrier image, and the first pixel value is used to indicate the sum of pixel values ​​that an interference area must satisfy; the transceiver module is also used to receive a second carrier image from the first device; a processing module, used to process the data to be transmitted in the second carrier image according to the second carrier image, the first pixel value and the pre-stored position information of the interference area.

[0009] In a fifth aspect, an embodiment of the present application provides a data processing device, comprising: at least one processor, and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the at least one processor implements the method described in the first and second aspects above by executing the instructions stored in the memory.

[0010] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions. When the computer instructions are executed on a computer, the computer executes the method described in the first and second aspects above.

[0011] In a seventh aspect, an embodiment of the present application provides a computer program product, comprising computer instructions, which, when executed on a computer, enables the methods described in the first and second aspects above to be implemented.

[0012] Regarding the beneficial effects of the second to seventh aspects, reference can be made to the contents described in the first aspect above and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Figure 1 A schematic diagram of an application scenario of a data processing method provided in an embodiment of the present application;

[0014] Figure 2 A schematic diagram of a data processing method provided in an embodiment of the present application Figure 1 ;

[0015] Figure 3 A schematic diagram of cutting an initial carrier image provided in an embodiment of the present application Figure 1 ;

[0016] Figure 4 A schematic diagram of cutting an initial carrier image provided in an embodiment of the present application Figure 2 ;

[0017] Figure 5 A schematic diagram of an interference area provided in an embodiment of the present application Figure 1 ;

[0018] Figure 6 A schematic diagram of an interference area provided in an embodiment of the present application Figure 2 ;

[0019] Figure 7 A schematic diagram of writing first data provided in an embodiment of the present application;

[0020] Figure 8 A schematic diagram of a data processing method provided in an embodiment of the present application Figure 2 ;

[0021] Fig. 9 A schematic diagram of a data processing method provided in an embodiment of the present application Figure 3 ;

[0022] Fig.10 A schematic diagram of the structure of a data processing device provided in an embodiment of the present application;

[0023] Fig.11 A schematic diagram of the structure of another data processing device provided in an embodiment of the present application;

[0024] Fig.12 A schematic diagram of the structure of a data processing device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0025] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.

[0026] It should be noted that the brief description of terms in this application is only for the convenience of understanding the embodiments described below, and is not intended to limit the embodiments of this application. Unless otherwise specified, these terms should be understood according to their common and usual meanings.

[0027] The terms "first", "second", "third", etc. in the specification and claims of this application and the above drawings are used to distinguish similar or similar objects or entities, and do not necessarily mean to limit a specific order or sequence, unless otherwise noted. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances.

[0028] The terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover but not exclude inclusion, for example, a product or device comprising a list of components is not necessarily limited to all the components expressly listed but may include other components not expressly listed or inherent to such product or device.

[0029] The term "module" refers to any known or later developed hardware, software, firmware, artificial intelligence, fuzzy logic, or combination of hardware and / or software code that is capable of performing the functions associated with that element.

[0030] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application 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 replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

[0031] For the convenience of explanation, the above description has been made in conjunction with specific embodiments. However, the above exemplary discussion is not intended to be exhaustive or limit the embodiments to the specific forms disclosed above. Based on the above teachings, various modifications and variations can be obtained. The selection and description of the above embodiments are to better explain the principles and practical applications, so that those skilled in the art can better use the embodiments and various different variations of the embodiments suitable for specific use considerations.

[0032] In order to facilitate understanding of the technical solutions provided by the embodiments of the present application, the background technology related to the embodiments of the present application is first introduced here.

[0033] Data transmission promotes the rapid transfer and sharing of information, but with the development of science and technology, there are still many security issues in the data transmission process, such as data leakage, data tampering, data loss, illegal access, etc. In some cases, attackers tamper with the transmitted data for their own selfish interests and make profits from it. For the data recipient, carrying out corresponding work based on the tampered data will not only affect the normal operation of the enterprise, but may even cause significant property losses.

[0034] In view of this, an embodiment of the present application provides a data processing method, in which a first device receives carrier information and a first pixel value from a second device, wherein the first pixel value is used to indicate the sum of pixel values ​​of an interference area. The first device can generate a first carrier image based on the carrier information, and determine a non-interference area from the first carrier image based on the first pixel value, and write the data to be transmitted into the non-interference area. The first device sends the second carrier image to the second device, and the second device determines whether the sum of pixel values ​​of the interference area in the second carrier image is the same as the first pixel value based on the pre-stored first pixel value and the position information of the interference area, thereby determining whether the data in the second carrier image has been tampered with, so as to improve the security of data transmission.

[0035] In order to better understand the embodiments of the present application, the application scenarios applicable to the embodiments of the present application are described below.

[0036] Please refer to Figure 1 , is a schematic diagram of an application scenario of a data processing method provided in an embodiment of the present application. Figure 1 As shown, the scenario includes a first device 101 and a second device 102, and the first device 101 and the second device 102 can be communicatively connected via a network. The network is used to provide a medium for a communication link between the first device 101 and the second device 102. The network may include various connection types, such as a wired communication link, a wireless communication link, etc., which is not limited in the embodiments of the present application.

[0037] The first device 101 and the second device 102 may refer to devices with data processing capabilities and data interaction requirements, such as servers and / or terminal devices, and the terminal devices may be vehicle-mounted devices, user equipment (UE), mobile devices, terminals, cellular phones, cordless phones, personal digital assistants (PDAs), handheld devices, computing devices, wearable devices, etc. It should be noted that Figure 1The example is only taken as follows: the first device 101 is a server and the second device 102 is a computer.

[0038] In some embodiments, when the second device 102 needs to obtain data in the first device 101, the second device 102 may send the carrier information and the first pixel value to the first device 101, and the first device 101 generates a first carrier picture according to the carrier information, and determines a non-interference area from the first carrier picture according to the first pixel value, writes the data to be transmitted into the non-interference area of ​​the first carrier picture, that is, obtains a second carrier picture, and sends the second carrier picture to the second device 102. The second device 102 processes the data to be transmitted in the second carrier picture based on the pre-stored first pixel value and the location information of the interference area.

[0039] The following will be combined Figure 2 A schematic diagram of a data processing method shown in FIG. Figure 1 , the data processing method provided in the embodiment of the present application is described in detail.

[0040] Please refer to Figure 2 , which is a flow chart of a data processing method provided in an embodiment of the present application Figure 1 . Figure 2 The embodiment shown is applicable to Figure 1 The following is an application scenario in which the first device executes Figure 2 The steps shown are explained below. Figure 2 The first device involved is, for example, Figure 1 The first device 101 is shown, Figure 2 The second device involved is, for example, Figure 1 A second device 102 is shown.

[0041] S201, a first device receives carrier information and a first pixel value from a second device, where the first pixel value is used to indicate a total pixel value that an interference area must satisfy.

[0042] The carrier information is used to generate a carrier image that carries the data to be transmitted. Exemplarily, the carrier information may be a code for generating an image, such as a hypertext markup language (HTML) code.

[0043] S202: The first device generates a first carrier picture according to the carrier information.

[0044] The first device can directly use the image generated by the carrier information as the first carrier image. For example, taking the carrier information as HTML code, the first device can generate an HTML page according to the HTML code and convert the HTML page into the first carrier image.

[0045] In a possible implementation, the first device may generate an initial carrier image according to the carrier information, and cut the initial carrier image to obtain a first carrier image of the first size. Specifically, the first device generates an initial carrier image of the second size according to the carrier information, and then cuts the initial carrier image according to the cutting rule to obtain a first carrier image of the first size. The length of the second size is the same as the length of the first size, but the width is different; or the width of the second size is the same as the width of the first size, but the length is different.

[0046] Among them, the cutting rule may be pre-stored in the first device. The cutting rule may be a fixed cutting rule, or the cutting rule may correspond to the size of the initial carrier image, that is, a cutting rule set is pre-stored in the first device. The cutting rule set includes the correspondence between the size and the cutting rule. In other words, when the cutting rule is a fixed cutting rule, the first device uses the same cutting rule to cut the initial carrier image of any size. When the cutting rule corresponds to the size of the initial carrier image, the first device can determine the cutting rule corresponding to the second size from the pre-stored cutting rule set according to the second size, and cut the initial carrier image. It should be noted that the cutting rules corresponding to different sizes may be the same or different, and the embodiment of the present application is not limited to this.

[0047] For example, please refer to Figure 3 , is a schematic diagram of cutting an initial carrier image provided in an embodiment of the present application. Figure 3 As shown, Figure 3 The initial carrier image of the second size is included, wherein the second size is 500*800; Figure 3 The dotted lines in are used to illustrate the cutting lines for cutting the initial carrier image. Figure 3 Including Figure (a) and Figure (b), Figure (a) shows that the first size of the first carrier image obtained by cutting is 500*650, that is, the width of the first size is the same as the width of the second size, but the length is different. Figure (b) shows that the first size of the first carrier image obtained by cutting is 400*800, that is, the length of the first size is the same as the length of the second size, but the width is different.

[0048] In one possible implementation, the number of first pixel values ​​is N, where N is a positive integer greater than 2. In this implementation, the first device may cut the initial carrier image into M sub-images according to the cutting rule, where M is a positive integer greater than 2; and select candidate sub-images from the M sub-images according to the N first pixel values, wherein the candidate sub-images include at least one interference area, and the number of candidate sub-images is less than or equal to M. After the first device determines the candidate sub-images, it may splice the candidate sub-images according to the splicing rule to obtain the first carrier image. The splicing rule is pre-configured in the first device, and the splicing rule can be set according to actual needs. The embodiment of the present application does not limit this. For example, the splicing rule indicates that the candidate sub-images are spliced ​​in descending order of the sum of the pixel values.

[0049] In some cases, the width of any sub-image among the M sub-images is the same as the width of the initial carrier image, but the length is different; or, the length of any sub-image is the same as the length of the initial carrier image, but the width is different.

[0050] For example, please refer to Figure 4 , Figure 4 A schematic diagram of cutting an initial carrier image provided in an embodiment of the present application Figure 2 .like Figure 4 As shown, Figure 4 The figure includes Figure (a) and Figure (b), wherein the dotted lines shown in Figure (a) and Figure (b) are cutting lines. The cutting method shown in Figure (a) is vertical cutting, and the cutting obtains sub-picture 1, sub-picture 2, sub-picture 3, sub-picture 4 and sub-picture 5. The widths of sub-picture 1, sub-picture 2, sub-picture 3, sub-picture 4 and sub-picture 5 are the same as the width of the initial carrier picture, but the lengths are different. The cutting method shown in Figure (b) is horizontal cutting, and the cutting obtains sub-picture 6, sub-picture 7 and sub-picture 8. The lengths of sub-picture 6, sub-picture 7 and sub-picture 8 are the same as the length of the initial carrier picture, but the widths are different.

[0051] The following describes a method in which the first device obtains candidate sub-pictures by screening the N first pixel values.

[0052] The first device may determine the minimum number of interference regions that must be included in a candidate sub-image according to a preset quantity relationship between the image size and the interference regions and the second size.

[0053] Specifically, the first device may calculate the width value of the second size and the first fixed value, and use the calculation result as the minimum number of interference areas that the candidate sub-image must include. Alternatively, the first device may calculate the length value of the second size and the first fixed value, and use the calculation result as the minimum number of interference areas that the candidate sub-image must include. The calculation result may refer to the result of multiplying the width value (or length value) by the first fixed value. The first fixed value is pre-configured in the first device, and the first fixed value can be set according to actual needs. For example, the first fixed value can be 0.01, 0.02, etc., which is not limited in the embodiments of the present application.

[0054] After the first device determines the minimum number based on the above method, it can determine the number of interference areas included in each sub-picture according to the N first pixel values, and use the sub-picture whose number of interference areas meets the minimum number requirement as a candidate sub-picture.

[0055] Specifically, the first device may calculate the third size of the interference area based on the preset mapping relationship between the image size and the area size of the interference area, and the first size. The first device may specifically use the result of the operation of the width value in the first size and the second fixed value as the first width value, and the length value in the first size as the first length value, and the first width value and the first length value as the third size. Alternatively, the first device may use the result of the operation of the length value in the first size and the second fixed value as the first length value, and the width value in the first size as the second width value, and the first length value and the first width value as the third size. Among them, the operation result may specifically refer to the result calculated by multiplication. The second fixed value can be set according to actual needs, and the embodiment of the present application is not limited to this. For example, the second fixed value is set to 0.01.

[0056] It should be noted that the above-mentioned method for calculating the size of the interference area is only a part of the method for calculating the third size based on the first size. In actual application, the third size of the interference area is also obtained by deformation calculation based on the embodiments of the present application, and the embodiments of the present application are no longer listed one by one here.

[0057] In another possible implementation, the third size of the interference area may be pre-configured in the first device. The third size may be set according to actual needs, and the present application embodiment does not limit this. For example, in order to reduce the complexity of the first device determining the interference area, the width of the interference area may be set to 1 pixel unit, and the length of the interference area may be the same as the length of the first carrier image. To facilitate understanding of the size description of the interference area provided in the present application embodiment, please refer to Figure 5 A schematic diagram of an interference area shown Figure 1 .like Figure 5As shown, the first carrier image is a 500*800 image, where 500 is the width of the first carrier image and 800 is the length of the first carrier image. Figure 5 A small square in the image is represented as a pixel unit in the first carrier image. Figure 5 The area marked with “×” is the interference area, and the width of the interference area is 1 pixel unit and the length is 800.

[0058] The first device determines all areas that meet the third size from the M sub-pictures according to the third size of the interference area, and calculates the sum of the pixel values ​​of each area among all the areas that meet the third size. When the sum of the pixel values ​​of an area satisfies any pixel value of the N first pixel values, the area can be determined as an interference area. Based on this, the first device can select the sub-pictures whose number of interference areas meets the minimum number in the M sub-pictures as candidate sub-pictures, and splice the candidate sub-pictures based on the preset splicing rules to obtain the first carrier picture.

[0059] The first device calculates the sum of the pixel values ​​of each area in all areas, which may be to determine the sum of the pixel values ​​of all pixel blocks in each area as the sum of the pixel values ​​of each area. The pixel value of a pixel block may refer to the sum of the pixel values ​​of at least one channel of multiple color channels and transparency (alpha, A), and the multiple color channels include red (red, R), green (green, G), and blue (blue, B) channels. At least one channel can be set according to actual needs, and the embodiments of the present application are not limited to this.

[0060] For example, the pixel value of any one of the four channels may be selected to calculate the sum of the pixel values. Alternatively, the pixel values ​​of all four channels may be used to calculate the sum of the pixel values. It should be understood that if the pixel values ​​of multiple channels are selected to calculate the sum of the pixel values, the pixel value of a pixel block is the sum of the pixel values ​​of the multiple channels.

[0061] For example, the pixel value of a pixel block is calculated based on the pixel values ​​of the above four RGBA channels, and the pixel values ​​of the four channels in pixel block 1 are 246, 3, 178, and 99 respectively. Then, the pixel value of pixel block 1 is 246+3+178+99=526.

[0062] It should be noted that in the embodiment of the present application, there may be a situation where the sum of pixel values ​​of multiple regions is the same. In this case, when the sum of pixel values ​​satisfies any pixel value of the N first pixel values, the regions with the same sum of pixel values ​​are all regarded as interference regions. In other words, one first pixel value may indicate one or more interference regions.

[0063] Exemplary, combined Figure 6 Schematic representation of the interference area shown Figure 2 , taking the first pixel value as 457 and the size of the interference area as 1*800 as an example, the manner in which the first device determines the interference area is illustrated.

[0064] like Figure 6 As shown in the figure, an arrow on the right side of the sub-image indicates an area, the size of which is 1*800, and the numerical values ​​behind the arrow are used to indicate the number of the area and the sum of the pixel values, for example, "1,271" indicates that the sum of the pixel values ​​of area 1 is 271. Figure 6 It can be seen that the areas determined by the first device include {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12}; correspondingly, the sums of the pixel values ​​of these areas are 271, 368, 324, 457, 463, 511, 422, 389, 368, 341, 401, 297. The first device can determine that the sum of the pixel values ​​of area 4 is equal to the first pixel value based on the first pixel value of 457, so the first device determines area 4 as an interference area.

[0065] In a possible implementation manner, among all the regions of the sub-image, there are multiple regions satisfying the first pixel value, and the first device may determine the multiple regions as interference regions together.

[0066] Exemplary, continue to combine Figure 6 Schematic representation of the interference area shown Figure 2 Taking the first pixel value of 368 as an example, the first device can determine that the sum of the pixel values ​​of area 2 and area 9 is equal to the first pixel value based on the first pixel value 368. Therefore, the first device determines area 2 and area 9 as interference areas.

[0067] S203: The first device determines a non-interference area from the first carrier image according to the first pixel value, and writes the data to be transmitted into the non-interference area to obtain a second carrier image.

[0068] The data to be transmitted may be in various forms such as text, pictures, videos, audios, etc., which is not limited in this embodiment of the present application.

[0069] The first device can calculate the third size of the interference area according to the preset mapping relationship between the image size and the area size of the interference area, and the first size. According to the third size, a candidate area that meets the third size is determined from the first carrier image, and the sum of the pixel values ​​of the candidate area is calculated. If it is determined that the sum of the pixel values ​​of the candidate area satisfies the first pixel value, the candidate area is determined as an interference area, and the area outside the interference area in the first carrier image is determined as a non-interference area. Among them, the calculation method of the sum of the pixel values ​​of the candidate area determined by the first device can correspond to the calculation method of the sum of the pixel values ​​of the area determined by the first device in the previous text, and the calculation method of the third size determined by the first device can correspond to the calculation method of the third size determined by the first device in the previous text, which will not be repeated here.

[0070] In a possible implementation manner, the first carrier picture is formed by splicing the candidate sub-pictures. In this implementation manner, the first device may use the interference region determined when determining the candidate sub-picture as the interference region in the first carrier picture.

[0071] After determining the interference area and the non-interference area in the first carrier picture, the first device may write the data to be transmitted into the non-interference area to obtain the second carrier picture. The specific manner in which the first device writes the data to be transmitted into the first carrier picture is described below.

[0072] The first device may convert the data to be transmitted into first data of a target format, and perform addition and subtraction operations on the first data and the pixel value of the target channel according to a preset first operation rule, so as to write the first data into a non-interference area of ​​the first carrier image, wherein the target format is, for example, binary, octal, hexadecimal, etc.

[0073] Preferably, in order to avoid a large change in the pixel value of the first carrier picture after the first data is written into the first carrier picture, the target format may be set to binary.

[0074] Exemplarily, if the data to be transmitted is “Chinese characters”, then after being converted into binary data, the first data is “11100100 10111111 10100010 11101001 11100100 10011111”.

[0075] The first operation rule indicates that the pixel values ​​of the first data and the target channel are added or subtracted according to the target format. For example, if the target format is binary, the first operation rule may indicate that if the binary digit is 1, the pixel value is added by 1, and if the binary digit is 0, the pixel value is subtracted by 1.

[0076] The target channel may include at least one of a plurality of color value channels and a transparency channel, which may be specifically set according to actual needs, and the embodiments of the present application do not limit this. For example, when the amount of data to be transmitted is large, the target channel may include a plurality of color value channels and a transparency channel. When the amount of data to be transmitted is small, the target channel may be any one of a plurality of color value channels, or a transparency channel. Among them, when the number of channels included in the target channel is multiple, the order in which data is written to each channel may be pre-configured in the first device and the second device. For example, the target channel includes four channels of RGBA, and the pre-configured writing order is RGBA. Among them, the specific interpretation of RGBA may correspond to the content described above, and will not be repeated here.

[0077] For example, the following is combined Figure 7 A schematic diagram of a first carrier image and a second carrier image is shown, taking the target channels including four RGBA channels, the writing order is RGBA, the target format is binary format, and writing the first data "1110" into a pixel as an example to illustrate the way in which the first device writes the first data into the first carrier image.

[0078] like Figure 7 As shown, the pixel value of the R channel of pixel 1 is 100, the pixel value of the G channel is 200, the pixel value of the B channel is 50, and the pixel value of the A channel is 20. The first device writes "1110" into the pixel value of the RGBA channel of pixel 1 according to the rule that if the binary digit is 1, the pixel value is increased by 1, and if the binary digit is 0, the pixel value is decreased by 1. After writing "1110", the pixel values ​​of the RGBA channel of pixel 1 are 101, 201, 51, and 19 respectively.

[0079] In a possible implementation, before the first device writes the data to be transmitted into the first carrier image, the first device may also perform an initialization operation on the first carrier image. After the data to be transmitted is written into the initialized first carrier image (i.e., the second carrier image), the pixel value of each channel in the second carrier image still meets the preset standard, and the preset standard is used to indicate the pixel value range of each color value channel and transparency channel. Specifically, the pixel value range of the color value channel is 0-255, and the pixel value range of the transparency channel is 0-100.

[0080] In this implementation, the first device can also avoid the interference area when initializing the first carrier image. Alternatively, in order to further confuse the attacker, the first device also performs an initialization operation on the interference area when initializing the first carrier image, so that the attacker cannot simply determine the interference area based on the pixel value changes of the first carrier image and the second carrier image obtained by interception, which increases the difficulty for the attacker to destroy the data integrity in the second carrier image, which is conducive to improving the security of data transmission.

[0081] The following takes the target format being binary as an example to describe in detail the specific method of initializing the first carrier image by the first device.

[0082] The first device traverses the pixel values ​​of each pixel block in the first carrier image, which includes the pixel values ​​of multiple color channels and the pixel values ​​of the transparency channel, and determines whether the pixel value of each channel of each pixel block is the same as the boundary value of the corresponding channel. If the same, the pixel value that is the same as the boundary value is modified according to the second operation rule, and then the initialized first carrier image is obtained. Among them, the boundary values ​​of the color value channel are 0 and 255, and the boundary values ​​of the transparency channel are 0 and 100. Specifically, when the pixel value is 0, it is added by one, when the pixel value of the color value is 255, it is subtracted by one; when the boundary value of the transparency channel is 100, it is subtracted by one.

[0083] Exemplarily, taking the RGBA values ​​of pixel 2 in the first carrier image as 255, 0, 0, 100 respectively, the first device determines that the pixel value of the R channel is the same as the boundary value 255 of the color channel, then the pixel value of the R channel is subtracted by one, and the pixel value of the R channel after initialization is 254; the first device determines that the pixel values ​​of the G and B channels are the same as the boundary value 0 of the color channel, then the pixel values ​​of the G and B channels are added by one, and the pixel values ​​of the G and B channels after initialization are 1 and 1; the first device determines that the pixel value of the A channel is the same as the boundary value 100 of the transparency channel, then the pixel value of the A channel is subtracted by one, and the pixel value of the A channel after initialization is 99. In summary, the RGBA pixel values ​​of pixel 2 after initialization are 254, 1, 1, 99 respectively.

[0084] S204: The first device sends a second carrier picture to the second device.

[0085] In a possible implementation, before the first device sends the second carrier image to the second device, it can also verify whether the interference area in the second carrier image is mistakenly written into the data to be transmitted. Specifically, the first device determines whether the sum of the pixel values ​​of the interference area in the second carrier image is the same as the first pixel value. If they are the same, it is determined that the data to be transmitted is not written into the interference area; if they are different, it is determined that the data to be transmitted is mistakenly written into the interference area. In the case where the first device determines that the data to be transmitted is mistakenly written into the interference area, the second carrier image is discarded and the above step S203 is re-executed. Through this implementation, the possibility of the second device misjudging the second carrier image as being tampered with due to the error in the writing area of ​​the data to be transmitted of the first device can be reduced, thereby improving the accuracy of data transmission.

[0086] Correspondingly, the second device receives the second carrier image from the first device, and then the second device can process the data to be transmitted in the second carrier image according to the first pixel value and the pre-stored location information of the interference area. The content of the second device processing the data to be transmitted in the second carrier image according to the first pixel value and the pre-stored location information of the interference area will be combined with Figure 8 A schematic diagram of a data processing method shown in FIG. Figure 2 , which is described in detail below.

[0087] Please refer to Figure 8 , which is a flow chart of a data processing method provided in an embodiment of the present application Figure 2 . Figure 8 The embodiment shown is applicable to Figure 1 The following is an application scenario in which the second device executes Figure 8 The steps shown are explained below. Figure 8 The first device involved is, for example, Figure 1 The first device 101 is shown, Figure 8 The second device involved is, for example, Figure 1 A second device 102 is shown.

[0088] S801, the second device sends carrier information and a first pixel value to the first device, the carrier information is used to generate a first carrier image, and the first pixel value is used to indicate the total pixel value that an interference area must satisfy.

[0089] The carrier information is used to generate a carrier image that carries the transmission data between the first device and the second device. Exemplarily, the carrier information can be a code for generating an image, such as a hypertext markup language (HTML) code. In an embodiment of the present application, the carrier information is used to generate a first carrier image.

[0090] The first pixel value may be determined by the second device according to the carrier information. Specifically, the second device generates a first carrier image according to the carrier information, determines an interference area from the first carrier image, and determines the first pixel value according to the sum of pixel values ​​in the interference area. For ease of understanding, the specific calculation method for determining the first pixel value by the second device is described below.

[0091] Among them, the specific way in which the second device generates the first carrier image according to the carrier information can correspond to the specific way in which the first device generates the first carrier image according to the carrier information mentioned above, and the embodiment of the present application is not limited to this.

[0092] In a possible implementation, the first carrier image is obtained by splicing candidate sub-images. In this implementation, the second device may select the candidate sub-image from the M sub-images randomly or according to a pre-stored selection rule, which is not limited in the present application. The splicing order may be pre-configured in the second device, and the splicing order is the same as the splicing order in the first device.

[0093] After the second device obtains the first carrier image, it can determine the first pixel value from the first carrier image.

[0094] Specifically, the second device may determine all areas that meet the third size from the first carrier image according to the third size of the interference area, form a first area set, and calculate the sum of pixel values ​​of each area in the first area set. The second device randomly selects the sum of one or more pixel values ​​as the first pixel value, and accordingly, the area corresponding to the first pixel value is the interference area. Alternatively, the second device randomly selects one or more areas from the first area set as the interference area, and takes the sum of the pixel values ​​of the interference area as the first pixel value. Among them, the third size of the interference area may correspond to the content described in the previous text, which will not be repeated here. The way in which the second device determines the sum of pixel values ​​of the area may correspond to the way in which the first device determines the sum of pixel values ​​of the area in the previous text, which will not be repeated here.

[0095] In one possible implementation, the first carrier image is obtained by splicing candidate sub-images. In this implementation, the second device can determine the minimum number of interference areas that must be included as a candidate sub-image based on the preset quantitative relationship between the image size and the interference area and the second size, or in other words, the minimum number is the number of first pixel values ​​that must be included in a candidate sub-image. The second device determines the minimum number of first pixel values ​​from the candidate sub-image based on the calculated minimum number and the third size of the interference area. Correspondingly, the area corresponding to the minimum number of first pixel values ​​is the interference area in the candidate sub-image. Among them, the way the second device determines the minimum number can correspond to the way the first device determines the minimum number mentioned above, and will not be repeated here.

[0096] Since there can be multiple candidate sub-images and each candidate sub-image includes the minimum number of first pixel values, the number of first pixel values ​​included in the first carrier image spliced ​​together from multiple candidate sub-images can be N, where N is a positive integer greater than 2.

[0097] It should be noted that in order to ensure the uniqueness of the N first pixel values ​​in multiple candidate sub-images, when the second device determines the minimum number of first pixel values ​​in each candidate sub-image, it needs to ensure that any sub-image in the M sub-images other than the multiple candidate sub-images does not include the above-mentioned minimum number of first pixel values.

[0098] S802, the second device receives the second carrier picture from the first device, and processes the data to be transmitted in the second carrier picture according to the second carrier picture, the first pixel value and the pre-stored position information of the interference area.

[0099] The position information of the interference area may specifically refer to the specific coordinate position or pixel position of the interference area in the second carrier image.

[0100] The second device may determine whether the second carrier image has been tampered with based on the first pixel value and the pre-stored location information of the interference area, and specifically may determine whether the data to be transmitted in the second carrier image has been tampered with. If the second device determines that the second carrier image has been tampered with, the second carrier image is discarded; if the second device determines that the second carrier image has not been tampered with, the data to be transmitted is obtained from the second carrier image.

[0101] Specifically, the second device may determine the interference area from the second carrier image according to the location information of the interference area, and calculate the sum of the pixel values ​​of the interference area. For the convenience of description, the sum of the pixel values ​​of the interference area is referred to as the second pixel value below. If the second device determines that the second pixel value is not equal to the first pixel value, it is determined that the second carrier image has been tampered with. If the second device determines that the second pixel value is equal to the first pixel value, it is determined that the second carrier image has not been tampered with. Among them, the specific way in which the second device calculates the sum of the pixel values ​​of the interference area can correspond to the content described above, and will not be repeated here.

[0102] In a possible implementation, after the first device performs an initialization operation on the first carrier image, the data to be transmitted is written. In this implementation, before calculating the sum of pixel values ​​of the interference area in the second carrier image, the second device needs to perform an operation opposite to the initialization operation, restore the interference area in the second carrier image to a state before initialization, and calculate the second pixel value based on the restored interference area.

[0103] When the second device determines that the second carrier image has not been tampered with, the second device can read the first data from the second carrier image based on the pre-stored first operation rule. After the second device converts the format of the first data, it can obtain the data transmitted by the first device. The specific process of the second device reading the first data from the second carrier image can correspond to the process of the first device writing the first data into the first carrier image, which will not be repeated here.

[0104] Through the above method, before the first device interacts with the second device, the second device indicates the interference area in the carrier image through the sum of pixel values ​​to achieve confusion for data thieves, and based on the change of the sum of pixel values ​​in the interference area, it can be determined whether the data in the second carrier image has been tampered with by the attacker, thereby achieving data tamper-proofing and improving the security of data transmission.

[0105] It should be understood that in order to ensure consistency in data processing between the first device and the second device, the first device and the second device should be configured with the same processing rules, such as splicing rules, cutting rules, etc.

[0106] In order to more clearly illustrate the data interaction process between the first device and the second device, Fig. 9 A schematic diagram of a data processing method shown in FIG. Figure 3 , illustrating the interaction process between the first device and the second device.

[0107] Please refer to Fig. 9 , which is a flow chart of a data processing method provided in an embodiment of the present application Figure 3 .or, Fig. 9 It can be called an interaction flow chart between the first device and the second device. Fig. 9 The embodiment shown is applicable to Figure 1 The application scenario shown, Fig. 9 The first device involved is, for example, Figure 1 The first device 101 is shown, Fig. 9 The second device involved is, for example, Figure 1 A second device 102 is shown.

[0108] S901, the second device sends carrier information and a first pixel value to the first device, where the first pixel value is used to indicate the sum of pixel values ​​of an interference area.

[0109] Among them, the content of the carrier information can correspond to the content described above, and the way in which the second device determines the first pixel value can correspond to the content described above, which will not be repeated here.

[0110] S902: The first device generates a first carrier picture according to the carrier information.

[0111] Among them, the first device generates the content of the first carrier picture according to the carrier information, which can correspond to the content described above and will not be repeated here.

[0112] S903: The first device determines a non-interference area from the first carrier image according to the first pixel value, and writes the data to be transmitted into the non-interference area to obtain a second carrier image.

[0113] The manner in which the first device determines the non-interference area and writes the data to be transmitted into the non-interference area may correspond to the contents described above, and will not be described in detail here.

[0114] S904: The first device sends a second carrier picture to the second device.

[0115] Correspondingly, the second device receives the second carrier image from the first device.

[0116] S905: The second device processes the data to be transmitted in the second carrier image according to the first pixel value and the pre-stored position information of the interference area.

[0117] Among them, the way in which the second device processes the data to be transmitted in the second carrier image according to the first pixel value and the pre-stored position information of the interference area can correspond to the content described above, and will not be repeated here.

[0118] Based on the same inventive concept, an embodiment of the present application provides a data processing device, which is used to implement the functions of the first device mentioned above, and correspondingly, can also implement the steps performed by the first device mentioned above.

[0119] Please refer to Fig.10 , is a schematic diagram of the structure of a data processing device provided in an embodiment of the present application. Fig.10 As shown, the data processing device 1000 includes a transceiver module 1001 , a generation module 1002 and a determination module 1003 .

[0120] Exemplarily, the transceiver module 1001 is used to receive carrier information and a first pixel value from a second device, wherein the first pixel value is used to indicate the sum of pixel values ​​that an interference area must satisfy; the generation module 1002 is used to generate a first carrier image based on the carrier information; the determination module 1003 is used to determine a non-interference area from the first carrier image based on the first pixel value, and write the data to be transmitted into the non-interference area to obtain a second carrier image; the transceiver module 1001 is also used to send the second carrier image to the second device.

[0121] In one possible implementation, the size of the first carrier image is a first size; the generation module 1002 is specifically used to: generate an initial carrier image of a second size according to the carrier information, wherein the length in the second size is the same as the length of the first size, but the width is different; or, the width in the second size is the same as the width in the first size, but the length is different; and cut the initial carrier image according to the cutting rule to obtain the first carrier image.

[0122] In one possible implementation, the number of first pixel values ​​is N, where N is a positive integer greater than 2; the generation module 1002 is specifically used to: cut the initial carrier image into M sub-images according to a cutting rule, where M is a positive integer greater than 2; screen candidate sub-images from the M sub-images according to the N first pixel values, where the candidate sub-images include at least one interference area, and the number of candidate sub-images is less than or equal to M; and splice the candidate sub-images according to the splicing rule to obtain a first carrier image.

[0123] In one possible implementation, the generation module 1002 is specifically used to: determine the minimum number of interference areas that must be included as a candidate sub-image based on a preset quantity relationship between the image size and the interference area and a second size; determine the number of interference areas included in each sub-image based on N first pixel values; and select a sub-image whose number of interference areas meets the minimum quantity requirement as a candidate sub-image.

[0124] In one possible implementation, the generation module 1002 is specifically used to: perform an operation on the width of the second size and the first fixed value, and use the operation result as the minimum number of interference areas that the candidate sub-image must include; or, perform an operation on the length of the second size and the first fixed value, and use the operation result as the minimum number of interference areas that the candidate sub-image must include.

[0125] In one possible implementation, the size of the first carrier image is a first size; the determination module 1003 is specifically used to: calculate a third size based on a preset mapping relationship between the image size and the area size of the interference area, and the first size; determine a candidate area that meets the third size from the first carrier image based on the third size, and calculate the sum of pixel values ​​of the candidate area; if the sum of pixel values ​​of the candidate area satisfies the first pixel value, determine the candidate area as an interference area; and determine an area outside the interference area in the first carrier image as a non-interference area.

[0126] In a possible implementation, the determination module 1003 is specifically used to: use the result of the operation of the width value in the first dimension and the second fixed value as the first width value, and use the length value in the first dimension as the first length value, and use the first width value and the first length value as the third dimension; or use the result of the operation of the length value in the first dimension and the second fixed value as the first length value, and use the width value in the first dimension as the first width value, and use the first length value and the first width value as the third dimension.

[0127] Based on the same inventive concept, an embodiment of the present application provides another data processing device, which is used to implement the functions of the second device mentioned above, and correspondingly, can also implement the steps performed by the second device mentioned above.

[0128] Please refer to Fig.11 , is a schematic diagram of the structure of a data processing device provided in an embodiment of the present application. Fig.11 As shown, the data processing device 1100 includes a transceiver module 1101 and a processing module 1102 .

[0129] Exemplarily, the transceiver module 1101 is used to send carrier information and a first pixel value to a first device, the carrier information is used to generate a first carrier image, and the first pixel value is used to indicate the total pixel value that an interference area must satisfy; the transceiver module 1101 is also used to receive a second carrier image from the first device; the processing module 1102 is used to process the data to be transmitted in the second carrier image according to the second carrier image, the first pixel value and the pre-stored position information of the interference area.

[0130] In a possible implementation, the processing module 1102 is specifically used to: determine whether the second carrier image has been tampered with based on the first pixel value and the position information of the pre-stored interference area; if the second carrier image has been tampered with, discard the second carrier image; if the second carrier image has not been tampered with, obtain the data to be transmitted from the second carrier image.

[0131] In one possible implementation, the processing module 1102 is specifically used to: determine the interference area from the second carrier image based on the position information of the interference area, and calculate the sum of pixel values ​​of the interference area; if the sum of pixel values ​​of the interference area is the same as the first pixel value, it is determined that the second carrier image has not been tampered with; if the sum of pixel values ​​of the interference area is different from the first pixel value, it is determined that the second carrier image has been tampered with.

[0132] Please refer to Fig.12 , is a schematic diagram of the structure of a data processing device provided in an embodiment of the present application. Fig.12 As shown, the data processing device 1200 includes at least one processor 1201 and a memory 1202 communicatively connected to the at least one processor 1201 .

[0133] The processor 1201 may be a general-purpose processor or a dedicated processor. The processor 1201 may include, for example, a baseband processor or a central processing unit. The baseband processor may be used to process communication protocols and communication data. The central processing unit may be used to control the data processing device 1200, execute software programs and / or process data. Different processors may be independent devices or may be arranged in one or more processing circuits, for example, integrated in one or more dedicated integrated circuits.

[0134] In one embodiment, the memory 1202 stores instructions that can be executed by at least one processor 1201. The at least one processor 1201 implements the functions of the first device as described above by executing the instructions stored in the memory, and accordingly, can also implement the steps performed by the first device as described above.

[0135] In this implementation, the data processing device 1200 can also implement the functions of the previous data processing device 1000, and at least one processor 1201 in the data processing device 1200 can also implement the functions of the previous text transceiver module 1001, the generation module 1002 and the determination module 1003.

[0136] In another embodiment, the memory 1202 stores instructions that can be executed by at least one processor 1201, and the at least one processor 1201 implements the functions of the second device as described above by executing the instructions stored in the memory, and accordingly, can also implement the steps performed by the second device as described above.

[0137] In this implementation, the data processing device 1200 can also implement the functions of the aforementioned data processing apparatus 1100 , and at least one processor 1201 in the data processing device 1200 can also implement the functions of the aforementioned transceiver module 1101 and the processing module 1102 .

[0138] Based on the same inventive concept, an embodiment of the present application provides a computer-readable storage medium, which stores computer instructions. When the computer instructions are executed on a computer, the computer executes any of the data processing methods described above, for example, Figure 2 , Figure 8 or Fig. 9 The data processing method shown.

[0139] Based on the same inventive concept, an embodiment of the present application provides a computer program product, which includes computer instructions. When the computer program product is run on a computer, the computer program product performs any of the above data processing methods, for example, Figure 2 , Figure 8 or Fig. 9 The data processing method shown is implemented.

[0140] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0141] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0142] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0143] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0144] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A data processing method, It is characterized in that Applied to a first device; the method comprises: Receiving carrier information and a first pixel value from a second device, wherein the first pixel value is used to indicate a total pixel value that an interference area must satisfy; Generate a first carrier picture according to the carrier information; Determine a non-interference area from the first carrier picture according to the first pixel value, and write the data to be transmitted into the non-interference area to obtain a second carrier picture; The second carrier picture is sent to the second device.

2. The method according to claim 1, It is characterized in that The size of the first carrier image is a first size; and generating the first carrier image according to the carrier information includes: Generate an initial carrier image of a second size according to the carrier information, wherein the length of the second size is the same as the length of the first size, but the width is different; or the width of the second size is the same as the width of the first size, but the length is different; The initial carrier image is cut according to a cutting rule to obtain the first carrier image.

3. The method according to claim 2, It is characterized in that The number of the first pixel values ​​is N, where N is a positive integer greater than 2; The initial carrier image is cut according to the cutting rule to obtain the first carrier image, including: According to the cutting rule, the initial carrier image is cut into M sub-images, where M is a positive integer greater than 2; According to the N first pixel values, screening candidate sub-pictures from the M sub-pictures, the candidate sub-pictures including at least one interference region, and the number of the candidate sub-pictures is less than or equal to M; The candidate sub-images are spliced ​​according to a splicing rule to obtain the first carrier image.

4. The method according to claim 3, It is characterized in that The step of selecting a candidate sub-picture from the M sub-pictures according to the N first pixel values ​​includes: Determining the minimum number of interference regions that must be included in a candidate sub-image according to a preset quantity relationship between the image size and the interference regions and the second size; Determining the number of interference areas included in each sub-picture according to the N first pixel values; A sub-picture whose number of interference regions meets the minimum number requirement is taken as a candidate sub-picture.

5. The method according to claim 4, It is characterized in that The determining, based on a preset relationship between the image size and the interference regions, of the minimum number of interference regions required to be included in a candidate sub-image comprises: Calculate the width of the second size and the first fixed value, and use the calculation result as the minimum number of interference areas that the candidate sub-picture must include; or, The length of the second size is calculated with the first fixed value, and the calculation result is used as the minimum number of interference areas that the candidate sub-picture must include.

6. The method according to claim 1, It is characterized in that The size of the first carrier image is a first size; and determining a non-interference area from the first carrier image according to the first pixel value includes: Calculating a third size according to a preset mapping relationship between the image size and the area size of the interference area, and the first size; According to the third size, determining a candidate area that meets the third size from the first carrier image, and calculating the sum of pixel values ​​of the candidate area; If the sum of the pixel values ​​of the candidate area satisfies the first pixel value, the candidate area is determined as an interference area; and the area outside the interference area in the first carrier image is determined as a non-interference area.

7. The method according to claim 6, It is characterized in that The calculating the third size according to a preset mapping relationship between the picture size and the area size of the interference area, and the first size, includes: The calculation result of the width value in the first size and the second fixed value is used as the first width value, and the length value in the first size is used as the first length value, and the first width value and the first length value are used as the third size; or, The operation result of the length value in the first size and the second fixed value is used as the first length value, and the width value in the first size is used as the first width value, and the first length value and the first width value are used as the third size.

8. A data processing method, It is characterized in that Applied to a second device; the method comprises: Sending carrier information and a first pixel value to a first device, where the carrier information is used to generate a first carrier picture, and the first pixel value is used to indicate a total pixel value that an interference area must satisfy; A second carrier picture is received from the first device, and data to be transmitted in the second carrier picture is processed according to the second carrier picture, the first pixel value and the pre-stored position information of the interference area.

9. The method according to claim 8, It is characterized in that The processing of the data to be transmitted in the second carrier picture according to the second carrier picture, the first pixel value and the pre-stored position information of the interference area includes: Determining whether the second carrier image has been tampered with according to the first pixel value and the pre-stored position information of the interference area; If the second carrier image has been tampered with, discarding the second carrier image; If the second carrier image has not been tampered with, the data to be transmitted is obtained from the second carrier image.

10. The method according to claim 9, It is characterized in that The determining, according to the first pixel value and the pre-stored position information of the interference area, whether the second carrier image has been tampered with includes: According to the position information of the interference area, determine the interference area from the second carrier image, and calculate the sum of pixel values ​​of the interference area; If the sum of the pixel values ​​of the interference area is the same as the first pixel value, it is determined that the second carrier image has not been tampered with; If the sum of the pixel values ​​of the interference area is different from the first pixel value, it is determined that the second carrier image has been tampered with.

11. A data processing device, It is characterized in that Applied to a first device; the data processing device comprises: A transceiver module, used for receiving carrier information and a first pixel value from a second device, wherein the first pixel value is used for indicating a total pixel value that an interference area needs to satisfy; A generating module, used for generating a first carrier image according to the carrier information; A determination module, configured to determine a non-interference area from the first carrier image according to the first pixel value, and write the data to be transmitted into the non-interference area to obtain a second carrier image; The transceiver module is further used to send the second carrier picture to the second device.

12. A data processing device, It is characterized in that Applied to a second device; the data processing device comprises: A transceiver module, configured to send carrier information and a first pixel value to a first device, wherein the carrier information is used to generate a first carrier image, and the first pixel value is used to indicate a total pixel value that an interference area needs to satisfy; The transceiver module is further used to receive a second carrier image from the first device; A processing module is used to process the data to be transmitted in the second carrier image according to the second carrier image, the first pixel value and the pre-stored position information of the interference area.

13. A data processing device, It is characterized in that include: at least one processor, and a memory communicatively coupled to the at least one processor; The memory stores instructions that can be executed by the at least one processor, and the at least one processor implements the method according to any one of claims 1 to 10 by executing the instructions stored in the memory.

14. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer instructions, and when the computer instructions are executed on a computer, the computer is caused to execute the method according to any one of claims 1 to 10.

15. A computer program product, It is characterized in that The invention comprises computer instructions, which, when executed on a computer, enable the method according to any one of claims 1 to 10 to be implemented.