Method and device for preventing display data from being tampered and electronic equipment

By calculating and comparing the verification value of the interface image between the generator and the display output module, the problem that the display image is easily tampered with in the prior art is solved, and the security and consistency of the display image are achieved.

CN120670211APending Publication Date: 2025-09-19FUZHOU ROCKCHIP SEMICON
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510587401.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-08
Publication Date
2025-09-19

AI Technical Summary

Technical Problem

The existing technology makes it difficult to effectively detect whether the displayed image has been tampered with when multiple systems share a display screen or multiple applications display content simultaneously. In particular, in scenarios where multiple systems/multiple applications are operating simultaneously, the security and consistency of the displayed image cannot be guaranteed.

Method used

By obtaining the first interface image generated by the generator and calculating its verification value, obtaining the second interface image generated by the display output module and calculating its verification value, and comparing the consistency of the two verification values, it is decided whether to output the second interface image.

Benefits of technology

Ensure that the image sent to the display screen by the display output module is consistent with the generator's expectations, prevent the display data from being tampered with, and improve the security and reliability of the displayed image.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120670211A_ABST
    Figure CN120670211A_ABST
Patent Text Reader

Abstract

The invention discloses a method and device for preventing display data from being tampered and electronic equipment. The method comprises the following steps: acquiring a first interface image generated by a generator, and calculating a first check value corresponding to the first interface image; obtaining a second interface image to be output for the generator by a display output module based on the first interface image, and calculating a second verification value corresponding to the second interface image; and comparing the second verification value with the first verification value, and according to a comparison result, enabling the display output module to output the second interface image or preventing the display output module from outputting the second interface image. According to the method, the verification process is executed in the last step before display, so that the problem that the data is tampered after verification is avoided, and the final display result is ensured to conform to the expectation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of system security, and in particular to a method and device for preventing display data from being tampered with, and electronic equipment. Background Art

[0002] As a medium that directly displays content to users, ensuring that the images displayed on the display are consistent with the application's requirements is a crucial factor in determining system security. Existing monitoring interfaces require external servers to verify consistency or require monitoring programs to be embedded directly within the original system, inherently introducing the risk of data leakage. Summary of the Invention

[0003] The present invention provides a method and device for preventing display data from being tampered with, and an electronic device, which can realize security verification of display data.

[0004] In one aspect of the present invention, a method for preventing display data tampering is provided. The method includes: obtaining a first interface image generated by a generator and calculating a first check value corresponding to the first interface image; obtaining a second interface image to be output by a display output module for the generator based on the first interface image and calculating a second check value corresponding to the second interface image; and comparing the second check value with the first check value, and, based on the comparison result, causing the display output module to output the second interface image or to prevent the display output module from outputting the second interface image.

[0005] In another aspect of the present invention, a device for preventing display data tampering is provided. The device includes: a first calculation module configured to obtain a first interface image generated by a generator and calculate a first verification value corresponding to the first interface image; a second calculation module configured to obtain a second interface image to be output by a display output module for the generator based on the first interface image and calculate a second verification value corresponding to the second interface image; and a control module configured to compare the second verification value with the first verification value and, based on the comparison result, cause the display output module to output the second interface image or prevent the display output module from outputting the second interface image.

[0006] In another aspect of the present invention, an electronic device is provided, comprising a memory configured to store information associated with an image, and at least one processor electrically coupled to the memory and configured to execute the above-mentioned method for preventing display data tampering.

[0007] According to the technical solution of the present invention, a first interface image generated by a generator is obtained and a first verification value corresponding to the first interface image is calculated; a second interface image based on the first interface image by a display output module is obtained, and a second verification value corresponding to the second interface image is calculated, the first verification value is compared with the second verification value, and whether the display output module outputs the second interface image is controlled according to the comparison result; the second interface image in the display output module is the image to be output to the display interface, and a verification process is performed in the last step before display to avoid the problem of data tampering after the verification is completed, thereby ensuring that the final display result meets expectations, and in the case where multiple generators are displayed through one screen, the first interface images corresponding to the multiple generators eventually need to be displayed on the display output module, and obtaining the second interface image in the display output module for calculation of the verification value can also ensure that objects to be verified are not missed in the case of multiple generators. BRIEF DESCRIPTION OF THE DRAWINGS

[0008] Figure 1 is a flow chart of a method for preventing display data tampering according to an embodiment of the present invention; Figure 2 This is a flowchart of preventing display data tampering in a single-generator scenario according to an embodiment of the present invention; Figure 3 This is a flowchart of preventing display data tampering in a multi-generator scenario according to an embodiment of the present invention; Figure 4 Schematic diagram of the structure of a device for preventing display data tampering according to an embodiment of the present invention; Figure 5 Schematic diagram of data flow in a single-generator scenario of a device for preventing display data tampering according to an embodiment of the present invention; Figure 6 A schematic diagram of data flow in a multi-generator scenario of a device for preventing display data tampering according to an embodiment of the present invention; Figure 7 Schematic diagram of the structure of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0009] To illustrate the technical content, achieved objectives and effects of the present invention in detail, the following description is given in conjunction with the embodiments and accompanying drawings.

[0010] In the existing technology, when multiple systems share a display screen or multiple applications display content on the display screen at the same time, it is usually necessary to embed a specific detection module in the native system or access the specific content generated by the system or application, which reduces security.

[0011] Existing technologies rely on Android system activity component detection or backend server link whitelisting to verify that the displayed image is consistent with expectations. This relies on specific systems and components and is unaware of tampering with the displayed image stored in memory after the system decodes it, resulting in low security. Furthermore, in scenarios where multiple systems or multiple applications are operating simultaneously, effective display image detection is impossible, making it impossible to guarantee that the displayed image is consistent with expectations.

[0012] In order to solve at least the above-mentioned technical problems, the present disclosure provides a method for preventing display data from being tampered with. According to the present disclosure, after the generator generates the first interface image, it generates a first verification value corresponding to the first interface image, obtains the second interface image to be output by the generator based on the first interface image in the display output module, calculates the second verification value corresponding to the second interface image, and determines whether to output the second interface image based on the comparison result of the first verification value and the second verification value. In this way, according to the embodiment of the present disclosure, it can ensure that the second interface image sent to the display screen for display by the display output module is consistent with the first interface image expected to be displayed, and the display output module receives the characteristics of the images sent by multiple generators, and establishes a verification process before displaying. Only after passing the verification can the display output module send the image for display, so as to avoid missing the object to be determined and ensure that the final displayed image meets expectations.

[0013] In some embodiments, when an application uses the image drawing module to draw or modify a system interface, it simultaneously uses the CRC (Cyclic Redundancy Check) calculation module to obtain the CRC value of the current interface image data. The application then saves the basic information of the current system interface and the CRC value to the memory module DDR. The application then configures the image information of the current interface to the video output processor (VOP). Based on the application configuration, the video output processor (VOP) retrieves the image data from the memory unit and uses the CRC calculation module to calculate the CRC value, comparing it with the obtained CRC value. The CRC check is performed after the VOP synthesizes the image. If the two values ​​match, the current system interface has not been tampered with, and the VOP begins sending image data to the display module for display on the screen. If the two values ​​do not match, the current system interface has been tampered with, and the VOP pauses displaying the application's new image data and notifies the application layer for further action. The application layer can shut down the display to prevent the user from seeing unexpected images.

[0014] Hereinafter, the technical solutions according to the present disclosure will be described with reference to specific embodiments and in conjunction with the accompanying drawings.

[0015] Figure 1FIG. 1 is a flow chart illustrating a method 100 for preventing display data from being tampered with according to an embodiment of the present disclosure. Figure 1 , the method 100 includes the following steps 102 to 106.

[0016] In step 102, a first interface image generated by a generator is obtained, and a first verification value corresponding to the first interface image is calculated. In some embodiments, the generator includes an application or an operating system. In this way, display image verification is adapted for multiple systems sharing a common interface, as well as for multiple applications within a single system.

[0017] In some embodiments, calculating the first verification value corresponding to the first interface image includes: obtaining pixel values ​​corresponding to each pixel in the first interface image, and calculating the first verification value corresponding to the first interface image based on the pixel values ​​in the first interface image. In this way, the calculation of the first verification value is achieved with the help of digitized pixel values, and the first interface image is converted into a numerical representation of the first verification value, so that the subsequent comparison step can be achieved. The pixel values ​​of different images will not be completely consistent, so the calculated first verification value will be different for different images, thereby completing the consistency check before display.

[0018] In some embodiments, calculating the first verification value corresponding to the first interface image based on the pixel values ​​in the first interface image includes: calculating the first verification value based on the pixel values ​​in the first interface image using a consistency verification algorithm. In this way, the first verification value is obtained using the consistency verification algorithm, and while digitizing the first interface image, it is possible to minimize the situation where different first interface images obtain the same numerical value, thereby improving the accuracy of subsequent comparison results of the first verification value and the second verification value.

[0019] In some embodiments, the consistency check algorithm includes a CRC algorithm or a hash value algorithm. In this way, the consistency check of the first interface image and the second interface image is implemented using an existing mature consistency check algorithm, with high computational efficiency and low latency. The calculation method for the remaining second check values ​​and the check values ​​corresponding to other images can be the same as the process for calculating the first check value for the first interface image, and will not be repeated here.

[0020] In some embodiments, obtaining the first interface image generated by the generator includes obtaining the first interface image modified or drawn by at least one generator. In this manner, the first check value is calculated whenever the generator changes the display interface and is displayed. The calculation is not required when the display interface remains unchanged, thereby reducing the number of first check value calculations.

[0021] In step 104 , a second interface image to be outputted by a display output module to the generator based on the first interface image is obtained, and a second verification value corresponding to the second interface image is calculated.

[0022] In some embodiments, the display output module is configured to synthesize the received images to generate a synthesized image. In some embodiments, after synthesizing, the display output module outputs the synthesized image to a display device for display. In some embodiments, the second interface image to be output by the display output module is based on the first interface image received with the generator.

[0023] In step 106, the second verification value is compared with the first verification value, and according to the result of the comparison, the display output module is enabled to output the second interface image or the display output module is prevented from outputting the second interface image.

[0024] In some embodiments, causing the display output module to output the second interface image or preventing the display output module from outputting the second interface image based on the result of the comparison includes: if the second check value matches the first check value, determining that the first interface image has not been tampered with, and causing the display output module to output the second interface image to the generator for display based on the second interface image; and if the second check value does not match the first check value, determining that the first interface image has been tampered with, and causing the display output module to turn off outputting the second interface image to prevent display based on the second interface image. In this way, the second interface image is displayed only when the second check value matches the first check value. If they do not match, it means that the first interface image has been tampered with. At this time, the output of the second interface image is turned off, avoiding security issues caused by the display of unknown information and improving the security of the display.

[0025] In some embodiments, the display output module is configured to synthesize and output images, and according to the comparison result, causing the display output module to output the second interface image or preventing the display output module from outputting the second interface image includes: if the second check value matches the first check value, determining that the display output module has not synthesized the first interface image with other images, and causing the display output module to output the second interface image in response to the generator for display based on the second interface image; and if the second check value does not match the first check value, determining that the display output module has synthesized the first interface image with other images, and causing the display output module to stop outputting the second interface image to prevent display based on the second interface image. In this way, if the second check value does not match the first check value, in the case of multiple generators, it is also possible that the display output module synthesized the first interface images generated by multiple generators, making it impossible to determine whether the content has been tampered with. Therefore, even in the case of possible tampering, the display is blocked, further improving the security of the displayed image.

[0026] In some embodiments, calculating the first check value corresponding to the first interface image includes calculating the first check value corresponding to each first interface image generated by each generator. Furthermore, obtaining the second interface image to be output by the display output module for the generator based on the first interface image and calculating the second check value corresponding to the second interface image includes obtaining the second interface image corresponding to each generator in the display output module and calculating the second check value corresponding to each second interface image. Furthermore, comparing the second check value with the first check value includes obtaining the first check value and the second check value corresponding to the same generator and determining whether the first check value is the same as the second check value. In this manner, when there are multiple generators, the first and second check values ​​are compared using the same generator as an anchor point, avoiding the problem of incorrect comparisons leading to incorrect judgment results when multiple generators submit images for display. Furthermore, based on the comparison results, the generator corresponding to the abnormal image can be accurately identified and a specific alert can be issued. Generator information, such as a unique identifier, is sent during the display process, and this is not further limited in this embodiment.

[0027] In some embodiments, calculating the first verification value corresponding to the first interface image includes: obtaining a first window image specified by the generator on the first interface image, and calculating a first verification value corresponding to the first window image of the first interface image. In addition, obtaining a second interface image to be output by the display output module for the generator based on the first interface image, and calculating a second verification value corresponding to the second interface image includes: obtaining a second window image corresponding to the first window image on the second interface image in the display output module, and calculating a second verification value corresponding to the second window image of the second interface image. In this way, the range of calculating the first verification value is the same as that of the first interface image, ensuring the accuracy of the comparison result, and only calculating the verification value of the window specified in the first interface image of the generator, focusing on windows with higher security requirements, such as the payment code window, thereby reducing the amount of calculation while ensuring security and avoiding excessive delay in displaying the image.

[0028] In some embodiments, calculating a first check value corresponding to the first interface image includes: obtaining a coordinate range modified by the generator on the first interface image, and calculating a first check value corresponding to a first range image within the coordinate range of the first interface image. Furthermore, obtaining a second interface image to be output by the display output module for the generator based on the first interface image, and calculating a second check value corresponding to the second interface image includes: obtaining a second range image corresponding to the coordinate range on the second interface image in the display output module, and calculating a second check value corresponding to the second range image of the second interface image. In this way, coordinate ranges modified by generators with high security requirements can be checked before display, preventing situations where other generators modify pixels in the same coordinate range, resulting in a final display result that is inconsistent with the display result expected by the target generator. For example, situations where a QR code for a payment or collection is overwritten or modified by another application can be promptly detected. Therefore, when multiple generators' first interface images need to be displayed, the probability of the first interface image being properly displayed can be increased while ensuring security, thereby ensuring a good display effect.

[0029] Figure 2 1 is a flow chart showing a method for preventing display data tampering in a single-generator scenario according to an embodiment of the present disclosure. Figure 2 , the method includes steps 201 to 205.

[0030] In step 201, when the generator (application / system) generates a first interface image through the image drawing module GPU, the first calculation module obtains a first verification value of the first interface image, and associates the basic information of the first interface image (data format, resolution, bit depth, etc.) with the first verification value and saves it to a storage module (such as DDR, double data rate synchronous dynamic random access memory).

[0031] In some embodiments, the first interface image is stored in memory and includes the pixel values ​​of all pixels therein. For example, if the format of the first interface image is RGB888, then each component of the RGB value of each pixel corresponds to 0x00-0xff data stored in the memory. The calculation module obtains the specific RGB and performs CRC calculation. The result of the calculation corresponds to a CRC value. Generally speaking, if the content of an image data remains unchanged, the CRC value calculated by the calculation module is fixed. The storage method of other images is the same, and different display formats such as YUV can be used according to specific display requirements, which is not limited here.

[0032] In step 202, the generator sends the first interface image and configuration to the display output module VOP. The configuration can be the calculation range of the first verification code, such as the complete first interface image displayed on the screen, the image within the coordinate range, or the image in the window corresponding to the generator.

[0033] In step 203, the display output module obtains the first interface image from the storage unit according to the configuration of the generator to obtain the second interface image, and obtains the second verification value of the second interface image through the second calculation module. The second calculation module here can be the same as the first calculation module, because the same algorithm needs to be used to calculate the verification value. The second calculation module here can also be a second calculation module set in the display output module, which only needs to be the same as the consistency verification algorithm of the first calculation module. In this way, the number of data transmissions is reduced, thereby improving the efficiency of the verification value calculation.

[0034] In some embodiments, the first calculation module and the second calculation module may be calculation modules for confirming data consistency, such as PAXOS (a consistency algorithm) and MD5.

[0035] In step 204, the first verification value and the second verification value are compared. If the two are consistent, it means that the current system interface has not been tampered with, and the display output module is allowed to send the second interface image to the display module for display on the display screen; if the two are inconsistent, it means that the current system interface has been tampered with, and the display output module suspends displaying the second display image and notifies the application layer.

[0036] In step 205, the application layer turns off the display to prevent the user from seeing unexpected images.

[0037] Figure 3 1 is a flow chart showing a method for preventing display data tampering in a multi-generator scenario according to an embodiment of the present disclosure. Figure 3 , the method includes steps 301 to 305.

[0038] In step 301, when the system OS1 and the applications therein as the generators and the system OS2 and the applications therein generate a first interface image through the image drawing module GPU, the first calculation module obtains a first verification value of the first interface image, and associates the basic information of the first interface image (data format, resolution, bit depth, generator identifier, etc.) with the first verification value and saves it to a storage module (such as DDR, double data rate synchronous dynamic random access memory).

[0039] In step 302, the generator sends the first interface image and configuration to the display output module VOP (Video Out Processor). In this embodiment, the configuration can be the calculation range of the first verification code, such as the complete first interface image displayed on the screen, the image within the coordinate range, or the image within the window corresponding to the generator.

[0040] In step 303, the display output module retrieves the first interface image from the storage unit based on the generator configuration to obtain a second interface image generated by the same generator. The second calculation module then obtains a second checksum value for the second interface image. The second calculation module can be identical to the first calculation module, as the same algorithm is required to calculate the checksum value. The generator identifier can be used to determine whether the first and second interface images correspond to the same generator.

[0041] In some embodiments, security authentication can be performed after synthesizing windows generated by all generators. To avoid situations where the second check value obtained by calculating the entire window after synthesis does not correspond to the first check value corresponding to a single generator, separate calculations can be performed for the regions corresponding to different generators after window synthesis. That is, for the window obtained after window synthesis, the window region corresponding to each generator is obtained, and the second check value is calculated for each region. This is compared with the first check value corresponding to the generator to determine the consistency of the synthesized window.

[0042] For example, a car's dashboard displays a complete image, potentially including instrument graphics, warning logos, and navigation information. The warning logo is a component of the overall image and is particularly important for safety. Therefore, we can perform safety authentication on a specific area of ​​the synthesized complete image (the warning logo area). This means comparing the first and second checksums for this area, which requires higher security.

[0043] In step 304, the first verification value and the second verification value are compared. If the two are consistent, it means that the current system interface has not been tampered with, and the display output module is allowed to send the second interface image to the display module for display on the display screen; if the two are inconsistent, it means that the current system interface has been tampered with, and the display output module suspends displaying the second display image and notifies the application layer.

[0044] In step 305, the application layer turns off the display to prevent the user from seeing unexpected images.

[0045] According to another aspect of the present invention, Figure 4 FIG. 4 is a block diagram showing an apparatus 400 for preventing display data from being tampered with according to an embodiment of the present invention. Figure 4 The device 400 includes a first calculation module 402, a second calculation module 404 and a control module 406.

[0046] The first calculation module 402 is configured to obtain a first interface image generated by a generator and calculate a first verification value corresponding to the first interface image.

[0047] The second calculation module 404 is configured to obtain a second interface image to be output by the display output module to the generator based on the first interface image, and calculate a second verification value corresponding to the second interface image.

[0048] The control module 406 is configured to compare the second verification value with the first verification value, and enable the display output module to output the second interface image or prevent the display output module from outputting the second interface image according to the comparison result.

[0049] It should be understood that the first calculation module 402 , the second calculation module 404 and the control module 406 may be further configured to respectively execute the corresponding steps or actions in the methods described in the above embodiments, which will not be described in detail here.

[0050] Figure 5 1 is a schematic diagram showing the data flow of a device for preventing display data tampering in a single-generator scenario according to an embodiment of the present invention. Figure 5After the generator 411 generates the first interface image through the image drawing module 413, it sends it to the first calculation module 402 to calculate the first verification value, and at the same time sends the first verification value and basic information to the storage module 414 for storage, and at the same time sends a message to the display output module 412 to guide it to obtain the second interface image from the storage module 414 according to the configuration. After obtaining the second interface image, the second verification value is obtained through the second calculation module 404. The judgment module 415 determines whether the first verification value and the second verification value are consistent. If they are consistent, the display output module 412 continues to display the image and sends the second interface image to the display module 416 for display. Otherwise, the subsequent display steps are not performed and the judgment module 415 sends a message to the generator to prompt it to regenerate the first interface image.

[0051] Figure 6 1 is a schematic diagram showing the data flow of a device for displaying data tampering in a multi-generator scenario according to an embodiment of the present invention. Figure 6 , the generator 411 includes two independent systems OS0 and OS1. Each system includes multiple applications, and the application can also serve as a generator alone. After the generator generates the first interface image through the image drawing module 413, it sends it to the first calculation module 402 to calculate the first verification value, and at the same time sends the first verification value and basic information to the storage module 414 for storage, and at the same time sends a message to the display output module 412 to guide it to obtain the second interface image from the storage module 414 according to the configuration. After obtaining the second interface image, the second verification value is obtained through the second calculation module 404, and the judgment module 415 determines whether the first verification value and the second verification value are consistent. If they are consistent, the display output module 412 continues the display processing and sends the second interface image to the display module 416 for display. Otherwise, the subsequent display steps are not performed and the judgment module 415 sends a message to the generator to prompt it to regenerate the first interface image.

[0052] According to yet another aspect of the present invention, Figure 7 Schematic diagram of an electronic device 500 according to an embodiment of the present invention. Figure 7 The electronic device 500 includes a memory 502, at least one processor 504, and a computer program stored in the memory and executable on the processor. The memory is configured to store information associated with an image. When the processor executes the computer program, the steps of the method for preventing display data tampering described above are implemented.

[0053] In summary, in the method, device, and electronic device for preventing display data tampering provided by the present invention, after the generator generates a first interface image for display, a first check value corresponding to the first interface image is calculated; before the display output module receives the first interface image and processes it to generate a second interface image for display, a second check value is obtained from the display output module to calculate the second check value. By comparing the first check value and the second check value to see if they are consistent, it is determined whether the interface has been tampered with or is at risk of tampering. In this way, a consistency judgment is performed before the image is officially displayed to ensure that the image entering the display processing is the correct image, which greatly reduces the possibility of image tampering. Moreover, the verification judgment is performed after the generator generates and stores the image, which can detect tampering during the image storage process. At the same time, the calculation of the check value can be limited to the window corresponding to the generator or a specific coordinate range, which can reduce the amount of calculation while accurately locating the key application or system that requires security testing. Moreover, when multiple generators need to display at the same time, the interface image generated or modified by other generators can be prevented from being displayed on the target generator by setting the interface image of the target generator to be verified.

[0054] The above descriptions are merely embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent transformations made using the contents of the present invention's description and drawings, or directly or indirectly applied in related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A method for preventing display data from being tampered with, characterized in that: include: Acquire a first interface image generated by a generator, and calculate a first verification value corresponding to the first interface image; Acquire a second interface image to be output to the generator by a display output module based on the first interface image, and calculate a second verification value corresponding to the second interface image; as well as The second check value is compared with the first check value, and according to the result of the comparison, the display output module is enabled to output the second interface image or the display output module is prevented from outputting the second interface image.

2. The method according to claim 1, wherein Enabling the display output module to output the second interface image or preventing the display output module from outputting the second interface image according to a result of the comparison includes: If the second check value matches the first check value, determining that the first interface image has not been tampered with, and causing the display output module to output the second interface image to the generator for display based on the second interface image; and If the second verification value does not match the first verification value, it is determined that the first interface image has been tampered with, and the display output module is caused to turn off output of the second interface image to prevent the user from displaying based on the second interface image.

3. The method according to claim 1, characterized in that The display output module is used to synthesize and output images. Wherein causing the display output module to output the second interface image or preventing the display output module from outputting the second interface image according to the comparison result includes: If the second check value matches the first check value, determining that the display output module does not synthesize the first interface image with other images, and causing the display output module to output the second interface image in response to the generator for display based on the second interface image; and If the second check value does not match the first check value, it is determined that the display output module has synthesized the first interface image with other images, and the display output module is turned off to output the second interface image to prevent it from being used for display based on the second interface image.

4. The method according to claim 1, wherein Calculating the first verification value corresponding to the first interface image includes: respectively calculating the first verification value corresponding to the first interface image generated by each of the generators, Wherein, obtaining the second interface image to be output by the display output module for the generator based on the first interface image, and calculating the second verification value corresponding to the second interface image includes: obtaining the second interface image corresponding to each of the generators in the display output module, and calculating the second verification value corresponding to each of the second interface images respectively; Comparing the second verification value with the first verification value includes: obtaining the first verification value and the second verification value corresponding to the same generator, and determining whether the first verification value is the same as the second verification value.

5. The method according to claim 1, wherein Calculating a first check value corresponding to the first interface image includes: acquiring a first window image specified by the generator on the first interface image, and calculating a first check value corresponding to the first window image of the first interface image, Wherein, obtaining the second interface image to be output by the display output module for the generator based on the first interface image and calculating the second verification value corresponding to the second interface image includes: obtaining the second window image corresponding to the first window image on the second interface image in the display output module, and calculating the second verification value corresponding to the second window image of the second interface image.

6. The method according to claim 1, wherein calculating a first verification value corresponding to the first interface image comprises: Acquire the coordinate range modified by the generator on the first interface image, and calculate a first check value corresponding to the first range image within the coordinate range of the first interface image, Wherein, obtaining the second interface image to be output by the display output module for the generator based on the first interface image and calculating the second verification value corresponding to the second interface image includes: obtaining a second range image corresponding to the coordinate range on the second interface image in the display output module, and calculating a second verification value corresponding to the second range image of the second interface image.

7. The method according to any one of claims 1 to 6, characterized in that Calculating a first verification value corresponding to the first interface image includes: Obtaining pixel values ​​corresponding to respective pixels in the first interface image; and The first verification value corresponding to the first interface image is calculated according to the pixel values ​​in the first interface image.

8. The method according to claim 7, characterized in that Calculating the first verification value corresponding to the first interface image according to the pixel values ​​in the first interface image includes: The first verification value is calculated according to the pixel values ​​in the first interface image through a consistency verification algorithm.

9. The method according to claim 8, characterized in that The consistency check algorithm includes a CRC algorithm or a hash value algorithm.

10. The method according to claim 1, characterized in that Acquiring the first interface image generated by the generator includes: The first interface image modified or drawn by at least one generator is acquired.

11. The method according to claim 1 or 10, characterized in that The generator includes an application program or an operating system.

12. A device for preventing display data from being tampered with, characterized in that: include: A first calculation module is configured to obtain a first interface image generated by a generator and calculate a first verification value corresponding to the first interface image; A second calculation module is configured to obtain a second interface image to be output to the generator by the display output module based on the first interface image, and calculate a second verification value corresponding to the second interface image; as well as The control module is configured to compare the second verification value with the first verification value, and according to the result of the comparison, enable the display output module to output the second interface image or enable the display output module to prevent the output of the second interface image.

13. An electronic device, characterized in that: include: a memory configured to store information associated with the image; as well as At least one processor is electrically coupled to the memory and is configured to perform the method according to any one of claims 1 to 11.