Method and device for secure processing of electronic documents

By monitoring input device operations, it determines and encrypts screen capture or screen recording operations under the Linux system, solving the problem of screen capture and recording control on the Linux platform, achieving security protection for encrypted documents and improving user experience.

CN112307528BActive Publication Date: 2024-09-24BEIJING WONDERSOFT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011340298.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-25
Publication Date
2024-09-24
Estimated Expiration
2040-11-25

AI Technical Summary

Technical Problem

On the Linux platform, it is difficult to identify and control screen capture/recording operations, leading to the risk of leaking the content of encrypted documents. Existing technology cannot effectively prevent screen capture or screen recording of non-encrypted content, resulting in poor user experience.

Method used

By monitoring the operation information of the input device, determining whether to perform a screenshot or recording operation, obtaining the relevant screen area, and encrypting the content to be protected, using hook functions to intercept the image saving function, creating a background form to cover the content to be protected, and realizing Linux Encryption of screenshots or screen recording operations under the system.

Benefits of technology

It effectively prevents the leakage of screenshots or screen recordings of encrypted document content, improves user experience, allows users to view non-encrypted content, and enhances data security protection under Linux systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112307528B
    Figure CN112307528B
Patent Text Reader

Abstract

The present application discloses a method and device for securely processing electronic documents. The method comprises: in the process of the computer input device performing an operation on the interface, monitoring the operation information of the input device, wherein the operation information at least includes operation status information and operation position information; in the process of monitoring the operation information of the input device, determining whether the input device performs a screenshot operation or a screen recording operation; in the case where the input device performs a screenshot operation or a screen recording operation, obtaining the screen area corresponding to the screenshot operation or the screen recording operation, and encrypting the content to be protected in the screen area. Through the present application, the problem that it is difficult to encrypt the screen recording or screenshot operation under the LINUX system in the related art is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data encryption technology, and in particular to a method and device for securely processing electronic documents. Background Art

[0002] Electronic documents are an important medium for people to communicate and collaborate in work and life. They are very convenient to edit and circulate. Compared with traditional paper documents, they are low-cost, easy to transport, and greatly facilitate information exchange between various collaborating parties. While convenient, the security issues of electronic document circulation are also very prominent. At present, most data is stored in computers in the form of electronic documents. The leakage of electronic documents poses a great threat to normal production and life.

[0003] In order to avoid electronic document leakage, electronic document protection products have appeared on the Windows platform, which can encrypt documents containing sensitive data without affecting the normal use of users. Specifically, after the user opens the encrypted file, the system screenshot / screen recording operation can be prohibited, effectively preventing the encrypted document content from being leaked in the form of pictures or videos after the screenshot or screen recording operation, thereby protecting the security of electronic documents.

[0004] However, on the Linux platform, there is no interface function specifically for screen recording or screenshots, and it is difficult to identify screenshot / recording operations, thereby being unable to control the leakage of encrypted document content through screenshot or recording operations. At the same time, electronic document protection products on the Windows platform can only prevent users who are not authorized to access electronic documents from recording or screenshots, making it impossible for users to obtain non-encrypted content, resulting in a poor user experience.

[0005] With regard to the problem in the related art that it is difficult to encrypt screen recording or screenshot operations under the LINUX system, no effective solution has been proposed yet. Summary of the invention

[0006] The present application provides a method and device for securely processing electronic documents to solve the problem in the related art that it is difficult to encrypt screen recording or screenshot operations under a LINUX system.

[0007] According to one aspect of the present application, a method for securely processing electronic documents is provided. The method includes: in the process of an input device of a computer performing an operation on an interface, monitoring the operation information of the input device, wherein the operation information at least includes operation status information and operation position information; in the process of monitoring the operation information of the input device, determining whether the input device performs a screenshot operation or a screen recording operation; in the case where the input device performs a screenshot operation or a screen recording operation, obtaining a screen area corresponding to the screenshot operation or the screen recording operation, and encrypting the content to be protected in the screen area.

[0008] Optionally, during the process of the computer's input device performing an operation on the interface, before monitoring the operation information of the input device, the method also includes: starting the computer's operating system, and starting a process associated with the screenshot operation or the screen recording operation; injecting a hook function into the memory space of the started process, wherein the hook function is used to monitor the interface function called by the input device when the process is running, and control the execution behavior of the interface function.

[0009] Optionally, the input device is a mouse. In the process of monitoring the operation information of the input device, determining whether the input device performs a screenshot operation or a screen recording operation includes: when monitoring the mouse to sequentially call a lock mouse pointer function and a release mouse pointer function, determining that the mouse performs a screenshot operation or a screen recording operation.

[0010] Optionally, when the input device performs a screenshot operation or a screen recording operation, obtaining the screen area corresponding to the screenshot operation or the screen recording operation includes: obtaining first position information corresponding to the cursor when the mouse calls a lock mouse pointer function, and obtaining second position information corresponding to the cursor when the mouse calls a release mouse pointer function; determining the screen area based on the first position information and the second position information, and calling an image save function to save the screen area.

[0011] Optionally, encrypting the content to be protected in the screen area includes: intercepting an image saving function, and determining whether there is content to be protected in the screen area obtained by the image saving function; if there is content to be protected in the screen area, covering the content to be protected, and saving the screen area after covering the content to be protected.

[0012] Optionally, when there is content to be protected in the screen area, covering the content to be protected includes: determining at least one area to be protected corresponding to the content to be protected in the screen area, and determining the position and size of the area to be protected; creating a background window that matches the size of the area to be protected, and covering the background window above the position of the area to be protected.

[0013] Optionally, the operating system of the computer is a Linux system.

[0014] According to another aspect of the present application, a device for securely processing electronic documents is provided. The device includes: a monitoring unit, which is used to monitor the operation information of the input device when the input device of the computer performs an operation on the interface, wherein the operation information at least includes operation status information and operation position information; a judgment unit, which is used to judge whether the input device performs a screenshot operation or a screen recording operation during the process of monitoring the operation information of the input device; and an acquisition unit, which is used to acquire the screen area corresponding to the screenshot operation or the screen recording operation when the input device performs the screenshot operation or the screen recording operation, and encrypt the content to be protected in the screen area.

[0015] According to another aspect of an embodiment of the present invention, a nonvolatile storage medium is provided. The nonvolatile storage medium includes a stored program. When the program is executed, the device where the nonvolatile storage medium is located is controlled to execute a method for securely processing electronic documents.

[0016] According to another aspect of an embodiment of the present invention, an electronic device is provided, comprising a processor and a memory; the memory stores computer-readable instructions, and the processor is used to execute the computer-readable instructions, wherein a method for securely processing electronic documents is executed when the computer-readable instructions are executed.

[0017] Through this application, the following steps are adopted: in the process of the computer input device performing an operation on the interface, the operation information of the input device is monitored, wherein the operation information at least includes operation status information and operation position information; in the process of monitoring the operation information of the input device, it is determined whether the input device performs a screenshot operation or a screen recording operation; in the case where the input device performs a screenshot operation or a screen recording operation, the screen area corresponding to the screenshot operation or the screen recording operation is obtained, and the content to be protected in the screen area is encrypted, thereby solving the problem in the related art that it is difficult to encrypt the screen recording or screen capture operation under the LINUX system. By monitoring the operation information of the input device to determine whether the screenshot operation or the screen recording operation is performed, and encrypting the content to be protected in the screen area, the effect of encrypting the screen recording or screen capture operation under the LINUX system is achieved. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0019] Figure 1 is a flowchart of a method for securely processing an electronic document provided in an embodiment of the present application;

[0020] Figure 2is a flowchart of an optional method for securely processing electronic documents provided according to an embodiment of the present application;

[0021] Figure 3 is a flowchart of an optional method for securely processing electronic documents provided according to an embodiment of the present application;

[0022] Figure 4 is a schematic diagram of a secure processing device for electronic documents provided according to an embodiment of the present application. DETAILED DESCRIPTION

[0023] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0024] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0025] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0026] In order to solve the problem that the leakage of electronic documents in the related art poses a threat to normal production and life, the following solutions have emerged in the related art:

[0027] Electronic document protection products with screenshot and recording control functions on the Windows platform install screenshot and recording control modules to intercept screenshot and recording operations and reject unauthorized operations. Specifically, the screenshot and recording control module uses inlinehook technology to hook the system's screenshot and recording key API functions, such as BitBlt, StretchBlt, etc., to implement the relevant control functions of screenshot and recording, effectively preventing the system screenshot or recording operations from leaking document content and ensuring authorized access to encrypted documents.

[0028] However, there are still many operating systems that are secondary developed based on the Linux system. Under the Linux system, the graphical interface is implemented based on the X Window System. The system architecture and graphical interface implementation method of Linux are different from those of Windows, and there are no key screenshot and recording functions such as BitBlt and StretchBlt. The screenshot and recording control solution on the Windows platform cannot be implemented on the Linux system, making it difficult to encrypt the screen recording or screenshot operations under the LINUX system.

[0029] Based on this, the present application hopes to provide a solution that can solve the above-mentioned technical problems, the details of which will be described in the subsequent embodiments.

[0030] For the convenience of description, some nouns or terms involved in the embodiments of the present application are explained below:

[0031] Hook technology: also called hook function. Before the system calls the function, the hook program captures the message first, and the hook function gets control first. At this time, the hook function can process the execution behavior of the function and force the end of the message transmission.

[0032] X Window System: Abbreviated as X, or X11, or X-Windows. It is called X because X comes after W in the alphabet, and W is the GUI system used by MIT before X. It is called X11 because in 1987, the X Window System had evolved to the 11th version, and all subsequent Xs are based on the X11 version.

[0033] According to an embodiment of the present application, a method for securely processing an electronic document is provided.

[0034] Figure 1 FIG. 1 is a flow chart of a method for securely processing an electronic document according to an embodiment of the present application. Figure 1 As shown, the method comprises the following steps:

[0035] Step S102, while the computer input device is performing an operation on the interface, monitoring the operation information of the input device, wherein the operation information at least includes operation state information and operation position information.

[0036] Specifically, the input device can be a mouse or a keyboard, and the operation information of the input device can include operation status information such as keyboard input operation, mouse click operation, drag operation, and release click operation. It can also include the position information of the cursor on the interface during keyboard input, and the position information of the cursor on the interface when the mouse is clicked, dragged, and released.

[0037] Monitoring the operation information of the input device can be achieved through a hook function. Optionally, in the secure processing method of electronic documents provided in an embodiment of the present application, before monitoring the operation information of the input device while the computer's input device performs an operation on the interface, the method also includes: starting the computer's operating system and starting a process associated with the screenshot operation or the screen recording operation; injecting the hook function into the memory space of the started process, wherein the hook function is used to monitor the interface function called by the input device when the process is running, and control the execution behavior of the interface function.

[0038] Specifically, after the computer's operating system is started, and after the user starts the document reader and the screen capture and recording software, the inlinehook module (hook function module) is injected into the internal space of the started process through the injection module to monitor and control the interface functions called in the process.

[0039] Optionally, in the method for securely processing electronic documents provided in an embodiment of the present application, the operating system of the computer is a Linux system.

[0040] Specifically, when the computer operating system is a Linux system, the interface function corresponding to the graphics operation program is stored in a basic library libX11 library or an Xcb library, and the API function in the libX11 / Xcb library is hooked through the Inlinhook module.

[0041] Specifically, the hook API functions may include XGrabPointer (lock mouse pointer function), XUngrabPointer (release mouse pointer function), XNextEvent (message event loop function in libX11 library), xcb_wait_for_event (message event loop function in Xcb library), XGetImage (image acquisition function in libX11 library), xcb_get_image (image acquisition function in Xcb library), XCopyArea (area acquisition function in libX11 library), xcb_copy_area (area acquisition function in Xcb library)

[0042] Step S104, in the process of monitoring the operation information of the input device, determining whether the input device performs a screenshot operation or a screen recording operation.

[0043] It should be noted that since there is no dedicated screen recording or screenshot interface function in the Linux system, the combination of interface functions called by the input device when implementing interface operations, that is, the type and order of the called interface functions, can be used to determine whether the input device performs a screenshot operation or a screen recording operation.

[0044] Optionally, in the method for securely processing electronic documents provided in an embodiment of the present application, the input device is a mouse, and in the process of monitoring the operation information of the input device, determining whether the input device performs a screenshot operation or a screen recording operation includes: when it is monitored that the mouse sequentially calls a lock mouse pointer function and a release mouse pointer function, determining that the mouse performs a screenshot operation or a screen recording operation.

[0045] It should be noted that the combination of interface functions called by the mouse can be analyzed through the message event loop function to determine whether the mouse performs a screenshot operation or a screen recording operation.

[0046] Specifically, if you click the mouse at the first position first, call the lock mouse pointer function (such as XGrabPointer), display the cross cursor corresponding to the screenshot on the display interface, and drag the mouse to the second position, call the release mouse pointer function (such as XUngrabPointer), and release the mouse, then a screenshot operation is completed.

[0047] In the process of completing the screenshot operation, the message event loop function (such as XNextEvent or xcb_wait_for_event) obtains the mouse and calls the lock mouse pointer function and the release mouse pointer function in sequence, thereby determining that the mouse performs the screenshot operation.

[0048] It should be noted that the judgment method of screen recording operation is similar to that of screenshot operation. The video file obtained by screen recording operation is a collection of images obtained by multi-frame screenshot operation.

[0049] Step S106, when the input device performs a screenshot operation or a screen recording operation, obtain a screen area corresponding to the screenshot operation or the screen recording operation, and encrypt the content to be protected in the screen area.

[0050] Specifically, the screen area corresponding to the screenshot operation or screen recording operation can be obtained by intercepting an image saving function (such as XGetImage or xcb_get_image) or an area saving function (such as XCopyArea or xcb_copy_area), and then the content to be protected in the screen area is first encrypted, and then the processed screen area is saved.

[0051] The method for securely processing electronic documents provided in the embodiment of the present application monitors the operation information of the input device during the process of the computer input device performing an operation on the interface, wherein the operation information includes at least operation status information and operation position information; in the process of monitoring the operation information of the input device, determines whether the input device performs a screenshot operation or a screen recording operation; in the case where the input device performs a screenshot operation or a screen recording operation, obtains the screen area corresponding to the screenshot operation or the screen recording operation, and encrypts the content to be protected in the screen area, thereby solving the problem in the related art that it is difficult to encrypt the screen recording or the screen capture operation under the LINUX system. By monitoring the operation information of the input device, it is determined whether the screenshot operation or the screen recording operation is performed, and the content to be protected in the screen area is encrypted, thereby achieving the effect of encrypting the screen recording or the screen capture operation under the LINUX system.

[0052] Optionally, in the method for securely processing electronic documents provided in an embodiment of the present application, when the input device performs a screenshot operation or a screen recording operation, obtaining the screen area corresponding to the screenshot operation or the screen recording operation includes: obtaining first position information corresponding to the cursor when the mouse calls a lock mouse pointer function, and obtaining second position information corresponding to the cursor when the mouse calls a release mouse pointer function; determining the screen area based on the first position information and the second position information, and calling an image save function to save the screen area.

[0053] Specifically, when intercepting the mouse pointer locking function (such as XGrabPointer), not only the mouse click status is obtained, but also the first position information corresponding to the cursor is obtained. When intercepting the mouse pointer releasing function (such as XUngrabPointer), not only the mouse release click status is obtained, but also the second position information corresponding to the cursor is obtained.

[0054] Furthermore, the event message loop function (such as XNextEvent / xcb_wait_for_event) is intercepted, and the first position and the second position are determined as vertices of the diagonal line of the screen area, thereby capturing the screen area captured by the mouse movement.

[0055] After obtaining the screen area, the screen area cannot be saved directly. Optionally, in the security processing method of electronic documents provided in the embodiment of the present application, encryption processing of the content to be protected in the screen area includes: intercepting the image saving function, and determining whether there is content to be protected in the screen area obtained by the image saving function; if there is content to be protected in the screen area, covering the content to be protected, and saving the screen area after covering the content to be protected.

[0056] Specifically, the image saving function (such as XGetImage or xcb_get_image) can be intercepted to obtain the captured screen area. The area saving function (such as XCopyAreauxcb_copy_area function) can also be intercepted to obtain the captured screen area and cover the content to be protected in the screen area to achieve encryption of the content to be protected.

[0057] The content to be protected may exist in different positions of the screen area. Optionally, in the method for secure processing of electronic documents provided in an embodiment of the present application, when there is content to be protected in the screen area, covering the content to be protected includes: determining at least one area to be protected corresponding to the content to be protected in the screen area, and determining the position and size of the area to be protected; creating a background window that matches the size of the area to be protected, and covering the background window above the position of the area to be protected.

[0058] Specifically, each area to be protected corresponds to an encrypted document window to be protected. After the encrypted document window to be protected is enumerated in the screen area, a black background window attached to this window is created according to the size and position information of the window to be protected, and the original window is covered to achieve the screenshot and recording control effect.

[0059] Through the embodiments of the present application, not only the displayed content of the encrypted electronic document is protected, but also the user can view the non-encrypted content, which improves the user experience compared to the method of refusing to take screenshots in the related art.

[0060] Figure 2 FIG. 1 is a schematic diagram of another method for securely processing electronic documents according to an embodiment of the present application. Figure 2 As shown, the method includes:

[0061] First, after entering the desktop operating system corresponding to the LINUX system, log in to the account system, and after verification, synchronize the confidentiality level and ciphertext usage permission policy, and manually encrypt the specified type of files.

[0062] Furthermore, when the file is double-clicked to open, the screenshot and recording software is opened at the same time, and whether the screenshot and recording operation of the above document is allowed is determined according to whether the file is encrypted or not. If the screenshot and recording operation is allowed, the screenshot and recording is saved. Otherwise, the screenshot and recording operation of the above file content is rejected, and a check is made as to whether the system is exited. If so, the system is exited.

[0063] Among them, if the LINUX system is installed with a file transparent encryption and decryption system, such as Figure 3As shown, after the user starts the software, such as the document reader and the screen capture and recording software, the injection module injects the inlinehook module into the internal space of the started process, and hooks the API functions in the libX11 / Xcb library (XGrabPointer, XUngrabPointer, XNextEvent, xcb_wait_for_event, XGetImage, xcb_get_image, XCopyArea, xcb_copy_area) through the Inlinhook module.

[0064] Specifically, the XGrabPointer function or the XUngrabPointer function is intercepted to obtain the change of the current mouse state and the mouse position information, and the XNextEvent function or the xcb_wait_for_event function is intercepted to capture the screen area operation selected by the mouse movement.

[0065] Furthermore, check whether it is a screenshot or screen recording operation. If so, and the file needs to be transparently encrypted, intercept XGetImage, xcb_get_image, XCopyArea, and xcb_copy_area functions to implement control over the screenshot or screen recording data. Specifically, after enumerating the encrypted document window to be protected, create a black background window attached to this window according to the size and position information of the window to be protected, and cover the original window to achieve the screenshot or screen recording control effect.

[0066] If transparent encryption of the file is not required, complete the normal screenshot and screen recording operation and store the image or video file information on the disk.

[0067] Through the embodiments of the present application, the inline hook technology is used to intercept the API functions related to the libx11 / libxcb library, and by analyzing the x11 protocol communication process, the screenshot and recording operation process is identified, thereby realizing the operational control of the screenshot and recording, solving the problem that the screenshot and recording of the Linux operating system cannot be controlled.

[0068] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0069] The embodiment of the present application also provides a secure processing device for electronic documents. It should be noted that the secure processing device for electronic documents in the embodiment of the present application can be used to execute the secure processing method for electronic documents provided in the embodiment of the present application. The secure processing device for electronic documents provided in the embodiment of the present application is introduced below.

[0070] Figure 4 Schematic diagram of a secure processing device for electronic documents according to an embodiment of the present application. Figure 4 As shown, the device includes: a monitoring unit 10, a judging unit 20 and an acquiring unit 30.

[0071] Specifically, the monitoring unit 10 is used to monitor the operation information of the input device when the input device of the computer performs an operation on the interface, wherein the operation information at least includes operation state information and operation position information.

[0072] The judgment unit 20 is used to judge whether the input device performs a screen capture operation or a screen recording operation during the process of monitoring the operation information of the input device.

[0073] The acquisition unit 30 is used to acquire the screen area corresponding to the screen capture operation or the screen recording operation when the input device performs the screen capture operation or the screen recording operation, and encrypt the content to be protected in the screen area.

[0074] The secure processing device for electronic documents provided in the embodiment of the present application monitors the operation information of the input device of the computer during the process of the input device of the computer performing an operation on the interface through the monitoring unit 10, wherein the operation information includes at least operation status information and operation position information; the judgment unit 20 judges whether the input device performs a screenshot operation or a screen recording operation during the process of monitoring the operation information of the input device; the acquisition unit 30 acquires the screen area corresponding to the screenshot operation or the screen recording operation when the input device performs the screenshot operation or the screen recording operation, and encrypts the content to be protected in the screen area, thereby solving the problem in the related art that it is difficult to encrypt the screen recording or the screen capture operation under the LINUX system, and determines the execution of the screenshot operation or the screen recording operation by monitoring the operation information of the input device, and encrypts the content to be protected in the screen area, thereby achieving the effect of encrypting the screen recording or the screen capture operation under the LINUX system.

[0075] Optionally, in the secure processing device for electronic documents provided in the embodiment of the present application, the device also includes: a starting unit, used to start the computer's operating system and start a process associated with the screenshot operation or the screen recording operation before monitoring the operation information of the input device during the process of the computer's input device performing an operation on the interface; an injection unit, used to inject a hook function into the memory space of the started process, wherein the hook function is used to monitor the interface function called by the input device when the process is running, and control the execution behavior of the interface function.

[0076] Optionally, in the secure processing device for electronic documents provided in an embodiment of the present application, the input device is a mouse, and the monitoring unit 10 includes: a first determination module, for determining that the mouse performs a screenshot operation or a screen recording operation when it is monitored that the mouse calls a lock mouse pointer function and a release mouse pointer function in sequence.

[0077] Optionally, in the secure processing device for electronic documents provided in an embodiment of the present application, the acquisition unit 30 includes: an acquisition module, used to acquire first position information corresponding to the cursor when the mouse calls a lock mouse pointer function, and acquire second position information corresponding to the cursor when the mouse calls a release mouse pointer function; a second determination module, used to determine the screen area based on the first position information and the second position information, and call an image save function to save the screen area.

[0078] Optionally, in the secure processing device for electronic documents provided in the embodiment of the present application, the acquisition unit 30 also includes an encryption module for encrypting the content to be protected in the screen area, and the encryption module includes: an interception module for intercepting the image saving function and determining whether there is content to be protected in the screen area acquired by the image saving function; a covering module for covering the content to be protected when there is content to be protected in the screen area, and saving the screen area after covering the content to be protected.

[0079] Optionally, in the security processing device for electronic documents provided in the embodiment of the present application, the covering module includes: a determining sub-module, used to determine at least one area to be protected corresponding to the content to be protected in the screen area, and determine the position and size of the area to be protected; a creating sub-module, used to create a background window that matches the size of the area to be protected, and cover the background window above the position of the area to be protected.

[0080] Optionally, in the secure processing device for electronic documents provided in the embodiment of the present application, the operating system of the computer is a Linux system.

[0081] The electronic document security processing device includes a processor and a memory. The monitoring unit 10, the judging unit 20 and the acquiring unit 30 are stored in the memory as program units. The processor executes the program units stored in the memory to realize corresponding functions.

[0082] The processor includes a kernel, which retrieves the corresponding program unit from the memory. One or more kernels can be set, and the problem of difficulty in encrypting the screen recording or screenshot operation under the LINUX system in the related technology can be solved by adjusting the kernel parameters.

[0083] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.

[0084] An embodiment of the present application further provides a non-volatile storage medium, the non-volatile storage medium including a stored program, wherein when the program is executed, the device where the non-volatile storage medium is located is controlled to execute a method for securely processing electronic documents.

[0085] The embodiment of the present application also provides an electronic device, comprising a processor and a memory; the memory stores computer-readable instructions, and the processor is used to run the computer-readable instructions, wherein when the computer-readable instructions are run, a method for securely processing an electronic document is executed. The electronic device in this article can be a server, a PC, a PAD, a mobile phone, etc.

[0086] 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.

[0087] 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 embodiments of 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 generate 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.

[0088] 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.

[0089] 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.

[0090] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0091] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0092] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0093] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0094] 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 on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0095] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

Claims

1. A method for securely processing electronic documents, characterized in that: include: During the process of the input device of the computer performing an operation on the interface, monitoring the operation information of the input device, wherein the operation information at least includes operation state information and operation position information, wherein the operating system of the computer is a Linux system; In the process of monitoring the operation information of the input device, determining whether the input device performs a screen capture operation or a screen recording operation; When the input device performs a screenshot operation or a screen recording operation, obtaining a screen area corresponding to the screenshot operation or the screen recording operation, and encrypting the content to be protected in the screen area; Wherein, the input device is a mouse. In the process of monitoring the operation information of the input device, judging whether the input device performs a screenshot operation or a screen recording operation includes: when it is monitored that the mouse sequentially calls the lock mouse pointer function and the release mouse pointer function, determining that the mouse performs a screenshot operation or a screen recording operation; determining that the mouse performs a screenshot operation or a screen recording operation includes: when the message event loop function obtains that the mouse sequentially calls the lock mouse pointer function and the release mouse pointer function, determining that the mouse performs the screenshot operation or the screen recording operation.

2. The method according to claim 1, characterized in that: During the process of the input device of the computer performing an operation on the interface, before monitoring the operation information of the input device, the method further includes: Starting the operating system of the computer and starting a process associated with the screenshot operation or the screen recording operation; A hook function is injected into the memory space of the started process, wherein the hook function is used to monitor the interface function called by the input device when the process is running, and control the execution behavior of the interface function.

3. The method according to claim 1, characterized in that: When the input device performs a screenshot operation or a screen recording operation, obtaining a screen area corresponding to the screenshot operation or the screen recording operation includes: Acquire first position information corresponding to the cursor when the mouse calls the lock mouse pointer function, and acquire second position information corresponding to the cursor when the mouse calls the release mouse pointer function; The screen area is determined based on the first position information and the second position information, and an image saving function is called to save the screen area.

4. The method according to claim 3, characterized in that Encrypting the content to be protected in the screen area includes: intercepting the image saving function, and determining whether the to-be-protected content exists in the screen area acquired by the image saving function; In the case that the content to be protected exists in the screen area, the content to be protected is covered, and the screen area after covering the content to be protected is saved.

5. The method according to claim 2, characterized in that: When the content to be protected exists in the screen area, covering the content to be protected includes: In the screen area, determining at least one area to be protected corresponding to the content to be protected, and determining the position and size of the area to be protected; A background window matching the size of the area to be protected is created, and the background window is covered above the position of the area to be protected.

6. A secure processing device for electronic documents, characterized in that: include: A monitoring unit, used for monitoring operation information of the input device of the computer during the process of the input device of the computer performing an operation on the interface, wherein the operation information at least includes operation state information and operation position information, wherein the operating system of the computer is a Linux system; A determination unit, configured to determine whether the input device performs a screen capture operation or a screen recording operation during monitoring the operation information of the input device; an acquisition unit, configured to acquire a screen area corresponding to the screen capture operation or the screen recording operation when the input device performs the screen capture operation or the screen recording operation, and encrypt the content to be protected in the screen area; The input device is a mouse. In the process of monitoring the operation information of the input device, judging whether the input device performs a screenshot operation or a screen recording operation includes: when it is monitored that the mouse sequentially calls the lock mouse pointer function and the release mouse pointer function, determining that the mouse performs the screenshot operation or the screen recording operation; determining that the mouse performs the screenshot operation or the screen recording operation includes: when the message event loop function obtains that the mouse sequentially calls the lock mouse pointer function and the release mouse pointer function, determining that the mouse performs the screenshot operation or the screen recording operation.

7. A non-volatile storage medium, characterized in that: The non-volatile storage medium includes a stored program, wherein when the program is executed, the device where the non-volatile storage medium is located is controlled to execute the method for securely processing electronic documents according to any one of claims 1 to 5.

8. An electronic device, characterized in that: It comprises a processor and a memory, wherein the memory stores computer-readable instructions, and the processor is used to execute the computer-readable instructions, wherein the computer-readable instructions, when executed, execute the method for securely processing electronic documents as described in any one of claims 1 to 5.