A method and device for adding watermark

By dynamically detecting and matching watermark parameters in the business system of the user terminal, the combination of watermark and business system is realized, which solves the problems of tedious watermark addition and poor universality in the existing technology, and improves the efficiency of watermark addition and data security. .

CN111931135BActive Publication Date: 2024-10-29BEIJING WONDERSOFT TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202010880638.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-08-27
Publication Date
2024-10-29
Estimated Expiration
2040-08-27

AI Technical Summary

Technical Problem

The watermark adding process in the existing technology is cumbersome, has poor universality, and cannot be integrated with third-party systems, resulting in low data security protection efficiency and high operating costs.

Method used

By detecting sensitive data access operations in the user terminal's business system, obtain system attributes and match watermark parameters, dynamically add a watermark window to the browsing page, use the watermark interface and watermark management system for authentication and parameter acquisition, and support watermark parameters of different business systems Configuration to achieve dynamic combination of watermark and business system.

Benefits of technology

It improves the universality and efficiency of adding watermarks, simplifies the process, reduces operating costs, ensures data security and avoids the need for client installation on the terminal.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111931135B_ABST
    Figure CN111931135B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention provides a method and device for adding a watermark, which can be applied to a user terminal. The user terminal may include at least one different business system. The user terminal can obtain the system properties of the target business system and the watermark parameters matching the system properties in response to detecting an access operation to sensitive data of the target business system. Then, the browsing page corresponding to the current sensitive data can be determined, and a corresponding watermark window can be added to the browsing page according to the watermark parameters. Thus, the user terminal can match watermarks according to different business systems and add different watermarks, which solves the problem that watermarks and business systems cannot be dynamically combined, improves the universality of watermark adding, and simplifies the process of watermark adding while ensuring data security, thereby improving the efficiency of watermark adding.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of computer security, and in particular to a watermark adding method and a watermark adding device. Background Art

[0002] As various industries pay more and more attention to data, data security issues have also received greater attention from data users. Data security, as an important branch of information security, has also developed rapidly to meet the application needs of different industries. Among them, screen watermarks, as a relatively mature means of data security protection and deterrence, can prevent criminals from leaking sensitive file information by using mobile phones to take photos, screenshots, etc. At present, the main method is to install clients on user terminals of enterprises and institutions, and add watermarks to user terminals through clients, so as to prevent data leakage through watermarks. However, in the above method, since the watermark is based on the client, it is necessary to install the corresponding control client on the user terminal, and the implementation and deployment is more labor-intensive and time-consuming. In addition, due to the configuration differences between different user terminals, it is easy to cause poor client adaptability and poor universality. Summary of the invention

[0003] In view of the above problems, an embodiment of the present invention provides a method for adding a watermark to solve the problems in the prior art that the watermark adding process is cumbersome, has poor universality, and cannot be combined with a third-party system.

[0004] Correspondingly, the embodiment of the present invention further provides a watermark adding device to ensure the implementation and application of the above method.

[0005] In order to solve the above problem, an embodiment of the present invention discloses a watermark adding method, which is applied to a user terminal, wherein the user terminal includes at least one service system, and the method includes:

[0006] In response to detecting an access operation to sensitive data of a target business system, obtaining system properties of the target business system and watermark parameters matching the system properties;

[0007] Determine the current browsing page of the target business system;

[0008] According to the watermark parameters, a corresponding watermark window is added to the browsing page.

[0009] Optionally, the target business system includes a watermark interface, and the step of obtaining, in response to detecting an access operation to sensitive data of the target business system, system properties of the target business system and watermark parameters matching the system properties includes:

[0010] In response to detecting an access operation to sensitive data of a target business system, obtaining a system attribute of the target business system, and generating a watermark parameter acquisition request corresponding to the system attribute;

[0011] The watermark parameter acquisition request is sent to a preset watermark management system through the watermark interface, and the watermark management system is used to authenticate the target business system according to the system attributes and send the watermark parameters for the watermark parameter acquisition request to the target business system.

[0012] Optionally, in response to detecting an access operation to sensitive data of a target business system, obtaining a system property of the target business system and generating a watermark parameter acquisition request corresponding to the system property includes:

[0013] In response to detecting an access operation to sensitive data of a target business system, determining whether a preset watermark parameter exists locally;

[0014] If the preset watermark parameters do not exist locally in the target business system, the system properties of the target business system are obtained, and a watermark parameter acquisition request corresponding to the system properties is generated.

[0015] Optionally, the target business system includes a watermark generation file, and adding a corresponding watermark window to the browsing page according to the watermark parameters includes:

[0016] By using the watermark generation file, a first watermark window corresponding to the watermark parameters is added to the browsing page.

[0017] Optionally, the target business system includes at least a watermark interface, and the step of obtaining, in response to detecting an access operation to sensitive data of the target business system, system properties of the target business system and watermark parameters matching the system properties includes:

[0018] In response to detecting an access operation to a target business system, detecting whether a watermark plug-in exists in the target business system;

[0019] If the watermark plug-in exists in the target business system, obtaining system properties of the target business system and generating a watermark parameter acquisition request corresponding to the system properties;

[0020] The watermark parameter acquisition request is sent to a preset watermark management system through the watermark interface, and the watermark management system is used to authenticate the target business system according to the system attributes and send the watermark parameters for the watermark parameter acquisition request to the target business system.

[0021] Optionally, the watermark plug-in includes at least a watermark management process, the watermark management process includes at least a watermark query thread, and the method further includes:

[0022] The watermark query thread is enabled through the watermark management process to generate a watermark query request for the current watermark window;

[0023] Sending the watermark query request to the watermark management system, and obtaining the watermark update parameters for the watermark query request sent by the watermark management system;

[0024] The current watermark window in the browsing page is updated to a target watermark window corresponding to the watermark update parameter.

[0025] Optionally, the watermark window includes at least one of a text watermark window, a ciphertext watermark window, a QR code watermark window, a picture watermark window and a Braille watermark window.

[0026] The embodiment of the present invention further discloses a watermark adding device, which is applied to a user terminal, wherein the user terminal includes at least one service system, and the device includes:

[0027] A watermark parameter acquisition module, configured to, in response to detecting an access operation to sensitive data of a target business system, acquire system properties of the target business system and watermark parameters matching the system properties;

[0028] A browsing page determination module, used to determine the current browsing page of the target business system;

[0029] The watermark window adding module is used to add a corresponding watermark window in the browsing page according to the watermark parameters.

[0030] Optionally, the target service system includes a watermark interface, and the watermark parameter acquisition module includes:

[0031] A first acquisition request generation submodule, configured to, in response to detecting an access operation to sensitive data of a target business system, acquire system properties of the target business system and generate a watermark parameter acquisition request corresponding to the system properties;

[0032] The first acquisition request sending submodule is used to send the watermark parameter acquisition request to a preset watermark management system through the watermark interface. The watermark management system is used to authenticate the target business system according to the system properties and send the watermark parameters for the watermark parameter acquisition request to the target business system.

[0033] Optionally, the first acquisition request generation submodule is specifically used to:

[0034] An access operation response submodule, used to determine whether a preset watermark parameter exists locally in response to detecting an access operation to sensitive data of a target business system;

[0035] If the preset watermark parameters do not exist locally in the target business system, the system properties of the target business system are obtained, and a watermark parameter acquisition request corresponding to the system properties is generated.

[0036] Optionally, the target business system includes a watermark generation file, and the watermark window adding module is specifically used to:

[0037] By using the watermark generation file, a first watermark window corresponding to the watermark parameters is added to the browsing page.

[0038] Optionally, the target service system includes at least a watermark interface, and the watermark parameter acquisition module includes:

[0039] A watermark plug-in detection submodule, configured to detect whether a watermark plug-in exists in the target business system in response to detecting an access operation to the target business system;

[0040] A second acquisition request generation submodule is used to obtain system properties of the target business system if the watermark plug-in exists in the target business system, and generate a watermark parameter acquisition request corresponding to the system properties;

[0041] The second acquisition request sending submodule is used to send the watermark parameter acquisition request to a preset watermark management system through the watermark interface. The watermark management system is used to authenticate the target business system according to the system properties and send the watermark parameters for the watermark parameter acquisition request to the target business system.

[0042] Optionally, the watermark plug-in includes at least a watermark management process, the watermark management process includes at least a watermark query thread, and the device further includes:

[0043] A watermark query request generating module, used to enable the watermark query thread through the watermark management process and generate a watermark query request for the current watermark window;

[0044] A watermark update parameter acquisition module, used to send the watermark query request to the watermark management system, and obtain the watermark update parameters for the watermark query request sent by the watermark management system;

[0045] The watermark window updating module is used to update the current watermark window in the browsing page to a target watermark window corresponding to the watermark update parameter.

[0046] Optionally, the watermark window includes at least one of a text watermark window, a ciphertext watermark window, a QR code watermark window, a picture watermark window and a Braille watermark window.

[0047] The embodiment of the present invention further discloses an electronic device, including:

[0048] one or more processors; and

[0049] One or more machine-readable media having instructions stored thereon, when executed by the one or more processors, cause the electronic device to perform one or more of the above methods.

[0050] The embodiment of the present invention further discloses one or more machine-readable media having instructions stored thereon, which, when executed by one or more processors, enable the processors to execute one or more of the above methods.

[0051] The embodiments of the present invention include the following advantages:

[0052] In an embodiment of the present invention, it can be applied to a user terminal, which may include at least one different business system. The user terminal can respond to detecting an access operation to sensitive data of the target business system, obtain the system properties of the target business system, and the watermark parameters that match the system properties, and then determine the browsing page corresponding to the current sensitive data, and add a corresponding watermark window to the browsing page according to the watermark parameters. The user terminal can then match watermarks according to different business systems and add different watermarks, thereby solving the problem that watermarks and business systems cannot be dynamically combined, improving the universality of watermark addition, and while ensuring data security, simplifying the process of watermark addition and improving the efficiency of watermark addition. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] Figure 1 It is a flow chart of steps of an embodiment of a method for adding a watermark of the present invention;

[0054] Figure 2 It is a flow chart of steps of an embodiment of a method for adding a watermark of the present invention;

[0055] Figure 3 It is a flow chart of steps of an embodiment of a method for adding a watermark of the present invention;

[0056] Figure 4 is a schematic diagram of a scene in which a watermark is added in an embodiment of the present invention;

[0057] Figure 5 is a schematic diagram of a scene in which a watermark is added in an embodiment of the present invention;

[0058] Figure 6is a schematic diagram of a scene in which a watermark is added in an embodiment of the present invention;

[0059] Figure 7 It is a structural block diagram of an embodiment of a watermark adding device of the present invention. DETAILED DESCRIPTION

[0060] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0061] To facilitate understanding and explanation, the technical terms appearing in the embodiments of the present invention are first explained below:

[0062] Process: A process can be an application running in a terminal. For example, if the terminal can be a PC terminal, the process can be a browser, document writing software, instant messaging software, etc. running on the PC terminal. Each application can correspond to one process or multiple processes. A process can include a process running in the foreground or a process running in the background.

[0063] Thread: A thread is an entity of a process and the basic unit of CPU scheduling and dispatching. It is a basic unit that is smaller than a process and can run independently. A thread basically does not own system resources, but only has some resources that are essential for operation (such as a program counter, a set of registers and a stack), but it can share all the resources owned by the process with other threads belonging to the same process. A thread can create and cancel another thread; multiple threads in the same process can execute concurrently.

[0064] Digital Watermark: A protective information embedded in a carrier file using a computer algorithm. Digital watermark technology is a content-based, non-cryptographic computer information hiding technology. It embeds some identification information (i.e., digital watermark) directly into a digital carrier (including multimedia, documents, software, etc.) or indirectly (modifies the structure of a specific area), without affecting the use value of the original carrier, and is not easy to be detected and modified again. But it can be identified and recognized by the producer. Through this information hidden in the carrier, it is possible to confirm the content creator, purchaser, transmit secret information, or determine whether the carrier has been tampered with. Digital watermarking is an effective way to protect information security, achieve anti-counterfeiting traceability, and copyright protection.

[0065] Browser plug-in: A plug-in is a program written in accordance with certain standard application program interfaces. Many software programs have plug-ins, and there are countless types of plug-ins. For example, in IE (Internet Explorer, web browser), after installing the relevant plug-in, the web browser can directly call the plug-in program to process specific types of files.

[0066] Front-end JS: JavaScript ("JS" for short) is a lightweight, interpreted or just-in-time compiled high-level programming language with function priority. It is famous as a scripting language for developing web pages. JavaScript is a dynamic scripting language based on prototype programming and multiple paradigms, and supports object-oriented, imperative and declarative (such as functional programming) styles. Usually JavaScript scripts are embedded in HTML to realize their own functions.

[0067] Business system: a software that can reflect most of the functions of enterprise management (including decision-making, planning, organization, leadership, monitoring and analysis, etc.), can provide real-time, relevant, accurate and complete data, and can provide managers with a basis for decision-making. For example, it can include different business systems such as enterprise document management, financial management, workshop management, purchase and sales management, asset management, cost management, human resources management, supply chain management, etc. For enterprises and institutions, in order to better manage the enterprise, it is often necessary to manage data through business systems. The sensitive data of the enterprise involved in the business system needs to be protected.

[0068] As an example, with the rapid development of the Internet and computer technology, while people's daily life is becoming more convenient, it also brings a lot of troubles to people. The most common situation is that after decorating a house, various decoration companies will call to recommend decoration. Therefore, the security protection of users' personal sensitive information and user privacy has been increasingly valued by major enterprises and institutions, especially in the financial industry. In response to this, industries and products related to data security have emerged and have begun to be widely used in various industries to protect users' personal sensitive information.

[0069] According to statistics, most of the leakage of users' personal sensitive information is leaked by people inside enterprises and institutions. Therefore, the key point of data leakage prevention is to prevent active leakage. First, employees of enterprises and institutions should be made aware of data security and take the initiative to protect personal information for users. Second, technical means should be used to warn employees of enterprises and institutions not to actively leak users' personal sensitive information for personal gain in their daily work. The main technology for actively warning office staff not to leak sensitive information is digital watermark technology, which adds warning watermarks to files containing sensitive information or devices that can operate sensitive information to remind operators not to leak sensitive information.

[0070] At present, most watermark technologies tend to add watermarks to files containing sensitive information, or add screen watermarks on devices that can operate sensitive information. The methods are relatively cumbersome, requiring modification of all files of enterprises and institutions or installation of client-type control software on all devices. The actual operation cost is too high, and it cannot be combined with third-party business systems.

[0071] Therefore, one of the core concepts of the embodiments of the present invention is to interface watermark addition with the business system, obtain system properties of the business system when it is detected that a user is accessing sensitive data, and obtain watermark parameters matching the system properties through the watermark interface provided by the business system, and then add a watermark window corresponding to the watermark parameters to the page currently browsed by the user. This allows, while protecting data security, to dynamically add watermarks to different business systems, thereby improving the universality of watermark addition, and to obtain watermark parameters through the watermark interface provided by the business system, thereby avoiding the problem of installing the client on the terminal that needs to be monitored, reducing operating costs, and simplifying the process of watermark addition.

[0072] Specifically, refer to Figure 1 , shows a flow chart of a method for adding a watermark according to an embodiment of the present invention, which may specifically include the following steps:

[0073] Step 101, in response to detecting an access operation to sensitive data of a target business system, obtaining system properties of the target business system and watermark parameters matching the system properties;

[0074] In the embodiment of the present invention, the user terminal may be a terminal used by employees or visitors in an enterprise or institution, and may include a PC terminal, a mobile terminal, and the like. Optionally, a terminal connected to a dedicated network of an enterprise or institution may be used as a corresponding user terminal, or a terminal installed with a business system used by the enterprise or institution may be used as a corresponding user terminal, and the present invention does not limit this. The user terminal may include at least one business system, through which the corresponding sensitive data of the enterprise or institution may be accessed.

[0075] In a specific implementation, users can access and process data through a business system. The business system can obtain the system properties of the business system in response to detecting access operations to sensitive data of the target business system, so as to obtain watermark parameters that match the system properties. Different business systems can correspond to different data processing functions and unique system properties. Different watermark parameters can be configured for different business systems without the need for the business system to adjust itself. For example, for business system one, watermark parameter ① can be configured, for business system two, watermark parameter ② can be configured, for business system three, watermark parameter ③ can be configured, and so on. Different watermark parameters can be used for different business systems, thereby improving the universality of watermark addition.

[0076] Step 102, determining the current browsing page of the target business system;

[0077] In the embodiment of the present invention, the business system needs to locate the page that the user is currently browsing, so as to determine the page that the user is browsing, so as to add a corresponding watermark.

[0078] In a specific implementation, for a business system, when a user opens the business system, it can be regarded as the user is accessing sensitive data, and the page presented by the business system can be used as the page that needs to add a watermark window. In addition, the page involving sensitive data in the business system can also be used as the page that needs to add a watermark window.

[0079] In one example, in a business system, an enumeration function can be used to obtain the visual top-level windows opened by users in the business system. It should be noted that a top-level window is a visible top-level window, and there can be multiple top-level windows. A visible window displayed in the business system can be a top-level window, and multiple sub-windows can be nested in the top-level window. For example, if the business system displays the corresponding data page in the form of a browser, the browser corresponds to a visible parent window, and each opened web page can be used as a sub-window under the parent window; a text writing software corresponds to a parent window, and each opened file can be used as a text window. Users can close the parent window to close all sub-windows together, or they can close one of the sub-windows separately.

[0080] Specifically, after the business system enumerates all top-level windows, it can obtain the handles of each top-level window, determine the window class name of the top-level window from the window handle, and compare the window class name with the preset class name involving sensitive data, thereby determining whether the page browsed by the user is a page involving sensitive data, so as to use the currently browsed page as the page to be watermarked. In addition, when the user opens the business system, the page presented by the business system can be used as the page to be watermarked, and the present invention is not limited to this.

[0081] Step 103: Add a corresponding watermark window in the browsing page according to the watermark parameters.

[0082] After determining the page the user is currently browsing, a corresponding watermark window can be added to the browsed page based on the watermark parameters. When the business system detects that the user is accessing sensitive data, the watermark parameters that match the business system are obtained. While ensuring data security, different watermark parameters can be used for different business systems, thereby improving the universality of watermark addition.

[0083] The watermark parameters may be display parameters of the watermark, which may include watermark content, font style, font size, font color, and watermark display position, etc. Different business systems may be configured with different watermark parameters, which is not limited in the present invention.

[0084] In an embodiment of the present invention, it can be applied to a user terminal, which may include at least one different business system. The user terminal can respond to detecting an access operation to sensitive data of the target business system, obtain the system properties of the target business system, and the watermark parameters that match the system properties, and then determine the browsing page corresponding to the current sensitive data, and add a corresponding watermark window to the browsing page according to the watermark parameters. The user terminal can then match watermarks according to different business systems and add different watermarks, thereby solving the problem that watermarks and business systems cannot be dynamically combined, improving the universality of watermark addition, and while ensuring data security, simplifying the process of watermark addition and improving the efficiency of watermark addition.

[0085] Reference Figure 2 , shows a flow chart of steps of an embodiment of a method for adding a watermark of the present invention, which is applied to a user terminal. The user terminal may include at least one business system. The business system may include a watermark interface and a watermark generation file. Specifically, the following steps may be included:

[0086] Step 201, in response to detecting an access operation to sensitive data of a target business system, obtaining system attributes of the target business system, and generating a watermark parameter acquisition request corresponding to the system attributes;

[0087] In an embodiment of the present invention, a watermark interface can be provided in the business system, and the watermark interface can be a dynamic digital watermark API (Application Programming Interface). Through the dynamic digital watermark API, a digital watermark can be automatically drawn on the page of the business system when a user accesses the business system, thereby simplifying the process of adding watermarks and improving the efficiency of adding watermarks.

[0088] In a specific implementation, the business system can communicate with the watermark management system through a watermark interface. The business system can obtain system properties in response to detecting an access operation to sensitive data in the system, and generate a watermark parameter acquisition request corresponding to the system properties, so as to send the watermark parameter acquisition request to the watermark management system to obtain matching watermark parameters.

[0089] In an optional embodiment of the present invention, when the business system detects an access operation to sensitive data, it can determine whether there are preset watermark parameters locally. The preset watermark parameters can be default watermark parameters stored locally. In one case, if the user terminal is offline (disconnected from the Internet) and cannot obtain the watermark parameters from the watermark management system through networking, the locally stored default watermark parameters can be used to add a watermark to the business system. That is, when the business system cannot normally obtain the watermark parameters from the watermark management system, the watermark can be added using the locally stored default watermark parameters. In another case, the business system obtains system properties and generates a watermark parameter acquisition request corresponding to the system properties, so that the watermark parameter acquisition request is sent to the watermark management system through the watermark interface to obtain the corresponding watermark parameters.

[0090] Step 202: sending the watermark parameter acquisition request to a preset watermark management system through the watermark interface, wherein the watermark management system is used to authenticate the target business system according to the system attributes and send the watermark parameters corresponding to the watermark parameter acquisition request to the target business system;

[0091] In the specific implementation, the business system and the watermark management system can exchange data through the watermark interface. When the watermark management system receives the watermark parameter acquisition request sent by the business system, it can parse the watermark parameter acquisition request to obtain the system properties, and authenticate the business system based on the system properties to determine whether the user is allowed to access the data. If the authentication is successful, the watermark parameters corresponding to the system properties can be queried and sent to the business system so that the corresponding watermark can be added in the business system to ensure the security of data access.

[0092] Step 203, determining the current browsing page of the target business system;

[0093] In a specific implementation, for a business system, when a user opens the business system, it can be regarded as the user is accessing sensitive data, and the page presented by the business system can be used as the page that needs to add a watermark window. In addition, the page involving sensitive data in the business system can also be used as the page that needs to add a watermark window.

[0094] Step 204: adding a first watermark window corresponding to the watermark parameters to the browsing page through a watermark generation file.

[0095] In a specific implementation, the watermark generation file can be a standard file that encapsulates the front-end JS watermark drawing code. Through this standard file, the display effect and compatibility of the business system can be included. Before calling the watermark generation file, the business system can request relevant watermark parameters from the watermark management system through the watermark interface, and after obtaining the watermark parameters, add a watermark window to the current browsing page of the business system through the watermark generation file. By tightly coupling the watermark generation file with the business system, watermarks can be added according to different business systems while ensuring the display effect and compatibility of the business system, thereby improving the universality of watermark addition, simplifying the watermark adding process, and improving the efficiency of watermark adding.

[0096] In an embodiment of the present invention, it can be applied to a user terminal, which may include at least one different business system. The user terminal can respond to detecting an access operation to sensitive data of the target business system, obtain the system properties of the target business system, and the watermark parameters that match the system properties, and then determine the browsing page corresponding to the current sensitive data, and add a corresponding watermark window to the browsing page according to the watermark parameters. The user terminal can then match watermarks according to different business systems and add different watermarks, thereby solving the problem that watermarks and business systems cannot be dynamically combined, improving the universality of watermark addition, and while ensuring data security, simplifying the process of watermark addition and improving the efficiency of watermark addition.

[0097] Reference Figure 3 , shows a flow chart of steps of an embodiment of a method for adding a watermark of the present invention, which is applied to a user terminal. The user terminal may include at least one service system, and the service system may include a watermark interface. Specifically, the following steps may be included:

[0098] Step 301, in response to detecting an access operation to a target business system, detecting whether a watermark plug-in exists in the target business system;

[0099] In an embodiment of the present invention, when the business system detects that a user accesses the business system, it can first detect whether a corresponding watermark plug-in is installed in the business system. The watermark plug-in can be a plug-in generated by encapsulating the watermark drawing and monitoring code into a browser plug-in, which can be used for watermark drawing and monitoring of the business system.

[0100] Step 302: if the target business system has the watermark plug-in, then obtaining the system properties of the target business system and generating a watermark parameter acquisition request corresponding to the system properties;

[0101] In the specific implementation, if the watermark plug-in is not installed in the business system, a prompt will be given to install the plug-in, otherwise access to the business system will not be allowed; if the watermark plug-in has been installed in the business system, the system properties will be obtained, and a watermark parameter acquisition request corresponding to the system properties will be generated to obtain watermark parameters that match the business system.

[0102] Step 303: Send the watermark parameter acquisition request to a preset watermark management system through a watermark interface, and the watermark management system is used to authenticate the target business system according to the system attributes and send the watermark parameters for the watermark parameter acquisition request to the target business system;

[0103] In the specific implementation, the business system and the watermark management system can exchange data through the watermark interface. When the watermark management system receives the watermark parameter acquisition request sent by the business system, it can parse the watermark parameter acquisition request to obtain the system properties, and authenticate the business system based on the system properties to determine whether the user is allowed to access the data. If the authentication is successful, the watermark parameters corresponding to the system properties can be queried and sent to the business system so that the corresponding watermark can be added in the business system to ensure the security of data access.

[0104] Step 304, determining the current browsing page of the target business system;

[0105] In a specific implementation, for a business system, when a user opens the business system, it can be regarded as the user is accessing sensitive data, and the page presented by the business system can be used as the page that needs to add a watermark window. In addition, the page involving sensitive data in the business system can also be used as the page that needs to add a watermark window.

[0106] Step 305: Add a corresponding watermark window to the browsing page according to the watermark parameters.

[0107] After determining the page the user is currently browsing, a corresponding watermark window can be added to the browsed page based on the watermark parameters. When the business system detects that the user is accessing sensitive data, the watermark parameters that match the business system are obtained. While ensuring data security, different watermark parameters can be used for different business systems, thereby improving the universality of watermark addition.

[0108] In an optional embodiment of the present invention, the watermark plug-in may at least include a watermark management process, and the watermark management process may at least include a watermark query thread, wherein the watermark management process may be used to manage the drawing and monitoring of watermarks, and the watermark query thread may be used to implement the watermark monitoring function in the watermark management process. In a specific implementation, the watermark query thread may be enabled through the watermark management process, a watermark query request for the current watermark window may be generated, and the watermark query request may be sent to the watermark management system, and the watermark update parameters for the watermark query request sent by the watermark management system may be obtained, and then the current watermark window in the browsing page may be updated to a target watermark window corresponding to the watermark update parameters, and information may be exchanged with the watermark management system in real time through the watermark query thread. If the watermark parameters in the watermark management system are changed, the business system may update the watermark window accordingly, thereby ensuring the real-time nature of the watermark.

[0109] Specifically, after the watermark management system receives the watermark query request sent by the business system, it can query the watermark parameters of the watermark window currently displayed by the business system. If there is a change, the watermark update parameters are generated so that the business system can update the watermark window in real time; if there is no change, the watermark query request is replied to inform the business system that the watermark parameters have not changed and the current watermark window is maintained.

[0110] In an embodiment of the present invention, it can be applied to a user terminal, which may include at least one different business system. The user terminal can respond to detecting an access operation to sensitive data of the target business system, obtain the system properties of the target business system, and the watermark parameters that match the system properties, and then determine the browsing page corresponding to the current sensitive data, and add a corresponding watermark window to the browsing page according to the watermark parameters. The user terminal can then match watermarks according to different business systems and add different watermarks, thereby solving the problem that watermarks and business systems cannot be dynamically combined, improving the universality of watermark addition, and while ensuring data security, simplifying the process of watermark addition and improving the efficiency of watermark addition.

[0111] In order to enable those skilled in the art to better understand the technical solution of the embodiment of the present invention, the embodiment of the present invention is described and explained by an example below:

[0112] Reference Figure 4, shows a schematic diagram of a watermark adding scenario in an embodiment of the present invention, at least one business system may be installed in a user terminal, such as an OA system, an HR system, a financial system, and a credit reporting system, etc., and the user terminal may include a PC terminal, a mobile terminal, and a portable terminal, etc. Then, when employees of enterprises and institutions access the business system in the user terminal and access the business system containing sensitive information, the business system may call the digital watermark interface and send the system attributes of the business system to the dynamic digital watermark management system (hereinafter referred to as the watermark management system), wherein the system attributes may include the system identifier, the system version, the system category, etc., then the watermark management system may match according to the system attributes, determine whether the watermark template has been configured for the business system in advance, and perform an authorization check on the business system to check whether it is allowed to add a watermark in the window of the business system, etc. When the match is successful and the check is completed, and it is determined that there are watermark parameters corresponding to the business system and that the watermark can be added to the window of the business system, the watermark management system can obtain the corresponding watermark parameters and return them to the business system. After the business system receives the watermark parameters, it can call the corresponding digital watermark interface to automatically draw a digital watermark window on the page, so that the user terminal can match watermarks according to different business systems and add different watermarks, which solves the problem that watermarks and business systems cannot be dynamically combined, improves the universality of watermark addition, and simplifies the process of watermark addition while ensuring data security, thereby improving the efficiency of watermark addition.

[0113] The digital watermark interface can support drawing in http mode and webservice mode, that is, the watermark can be drawn by front-end JS mode or by downloading browser plug-ins. For example, the interface name may include:

[0114] String WS_WaterMarkInit(String ServerIp,String ServerSignStr)

[0115] String WS_ShowWaterMark(String strOtherInfo)

[0116] String WS_HideWaterMark()

[0117] In the specific implementation, for the watermark drawing method of front-end JS, you can refer to Figure 5, shows a schematic diagram of the scene of adding watermarks in an embodiment of the present invention, and encapsulates the drawing code of the front-end JS watermark as a standard file, so that the business system can call the standard file to generate a watermark window. For example, when a user accesses data containing sensitive information in the business system, the business system calls WS_ShowWaterMark to generate a watermark template request. In one case, if the watermark template request cannot be sent to the watermark management system, the business system can use the default watermark template stored locally, draw a watermark window, and then display the watermark window on the front-end JS interface; in another case, the business system can send the watermark template request to the watermark management system through the digital watermark interface, and the watermark management system can parse the watermark template request, obtain the system properties, and authenticate the business system according to the system properties. If the authentication fails, it returns the information of denying access; if the authentication is successful, an authorization check is performed, and after the authorization is successful, the watermark template parameters corresponding to the business system are queried, and the watermark template parameters are returned, so that the business system can call the standard file to draw the corresponding watermark window according to the watermark template parameters. Moreover, during the process of displaying the watermark, the watermark protection thread can be enabled to monitor the watermark window to prevent the watermark from being tampered with and ensure the stability of the watermark window.

[0118] In addition, for the watermark drawing method of the browser plug-in, you can refer to Figure 6 , showing a schematic diagram of the scene of adding watermarks in an embodiment of the present invention, the watermark drawing and monitoring code can be encapsulated in a browser plug-in. When a user accesses a business system, the business system can first check whether the watermark plug-in is installed. If the watermark plug-in is not installed, the user is prompted to download and install the watermark plug-in, otherwise the user is not allowed to access the business system; if the watermark plug-in is installed, the business system can send a watermark template request to the watermark management system through the digital watermark interface, perform authentication and authorization in the watermark management system, and obtain the corresponding watermark parameters, and then call the WS_ShowWaterMark method to start the watermark management process in the plug-in. While displaying the watermark window, the page is monitored through the watermark management process, the watermark template query thread is enabled, and information is exchanged with the watermark management system, so that after the watermark management system updates the watermark parameters, the watermark window in the business system is updated in time, thereby ensuring the real-time nature of the watermark.

[0119] It should be noted that the browser plug-in form is similar to the pseudo-client method. When users access the business system, they need to install a browser plug-in first. The plug-in here can be a web page type plug-in or a plug-in similar to a terminal program. For example, for a plug-in in the form of a terminal program, a client can be installed on the user's terminal first. This client will inject a controlled DLL into the browser process. This process requires the user's administrator privileges to install and use it. In the browser plug-in watermark adding method, the watermark can be drawn by monitoring the browser's access request and page window.

[0120] Among them, the watermark window includes at least one of a text watermark window, a ciphertext watermark window, a QR code watermark window, a picture watermark window and a Braille watermark window. For a text watermark, if the front-end JS watermark is used, a new div can be created through canvas to realize the drawing of the text watermark; if the plug-in watermark is used, the watermark can be drawn in the browser window through GDI (Graphics Device Interface), and the direction, position, spacing, color, size, content, etc. of the watermark text can be set. The ciphertext watermark is to encrypt the text watermark content with MD5, and then draw the encrypted text on the watermark window to prevent the user from deciphering the watermark content. The QR code watermark is to convert the text watermark content into a QR code, so that the QR code is drawn on the watermark window instead of the text watermark. It can be used to add attribution tags to pages and documents, for example, in the four corners and other locations that do not affect normal page browsing, for screenshot tracing. The picture watermark is to draw the corresponding picture on the watermark window, which is equivalent to the page background, and the transparency of the picture is set to achieve the effect of not affecting reading and use. Braille watermark is a watermark designed with reference to Braille. It is drawn on the watermark screen in the form of dots, and the watermark content is confirmed by the arrangement relationship between dots. The actual watermark content is hidden without affecting the user's visual effect.

[0121] Optionally, for files downloaded in the business system, the embodiment of the present invention also supports injecting watermarks into the files, such as supporting office documents and PDF documents. Specifically, the business system can provide an API for watermark injection, and the watermark injection is implemented by passing the file to the dynamic digital watermark management system, which injects the digital watermark, and then returns the file.

[0122] In the dynamic digital watermark management system, the same or different watermark templates can be configured for different business systems. At the same time, the current status of the watermark template can be viewed, and the watermark template can be modified. After the modification, if the business system uses a browser plug-in, the plug-in and the dynamic digital watermark management system can use socket communication to achieve real-time update of the watermark display style. For the front-end js method, the user needs to re-access the business system to initialize the display before the update can be realized.

[0123] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0124] Reference Figure 7 , shows a structural block diagram of an embodiment of a watermark adding device of the present invention, which is applied to a user terminal. The user terminal includes at least one business system, which may specifically include the following modules:

[0125] The watermark parameter acquisition module 701 is used to acquire the system properties of the target business system and the watermark parameters matching the system properties in response to detecting an access operation to sensitive data of the target business system;

[0126] A browsing page determination module 702 is used to determine the current browsing page of the target business system;

[0127] The watermark window adding module 703 is used to add a corresponding watermark window in the browsing page according to the watermark parameters.

[0128] In an optional embodiment of the present invention, the target service system includes a watermark interface, and the watermark parameter acquisition module 701 includes:

[0129] A first acquisition request generation submodule, configured to, in response to detecting an access operation to sensitive data of a target business system, acquire system properties of the target business system and generate a watermark parameter acquisition request corresponding to the system properties;

[0130] The first acquisition request sending submodule is used to send the watermark parameter acquisition request to a preset watermark management system through the watermark interface. The watermark management system is used to authenticate the target business system according to the system properties and send the watermark parameters for the watermark parameter acquisition request to the target business system.

[0131] In an optional embodiment of the present invention, the first acquisition request generation submodule is specifically used for:

[0132] An access operation response submodule, used to determine whether a preset watermark parameter exists locally in response to detecting an access operation to sensitive data of a target business system;

[0133] If the preset watermark parameters do not exist locally in the target business system, the system properties of the target business system are obtained, and a watermark parameter acquisition request corresponding to the system properties is generated.

[0134] In an optional embodiment of the present invention, the target service system includes a watermark generation file, and the watermark window adding module 703 is specifically used for:

[0135] By using the watermark generation file, a first watermark window corresponding to the watermark parameters is added to the browsing page.

[0136] In an optional embodiment of the present invention, the target service system at least includes a watermark interface, and the watermark parameter acquisition module 701 includes:

[0137] A watermark plug-in detection submodule, configured to detect whether a watermark plug-in exists in the target business system in response to detecting an access operation to the target business system;

[0138] A second acquisition request generation submodule is used to obtain system properties of the target business system if the watermark plug-in exists in the target business system, and generate a watermark parameter acquisition request corresponding to the system properties;

[0139] The second acquisition request sending submodule is used to send the watermark parameter acquisition request to a preset watermark management system through the watermark interface. The watermark management system is used to authenticate the target business system according to the system properties and send the watermark parameters for the watermark parameter acquisition request to the target business system.

[0140] In an optional embodiment of the present invention, the watermark plug-in includes at least a watermark management process, the watermark management process includes at least a watermark query thread, and the device further includes:

[0141] A watermark query request generating module, used to enable the watermark query thread through the watermark management process and generate a watermark query request for the current watermark window;

[0142] A watermark update parameter acquisition module, used to send the watermark query request to the watermark management system, and obtain the watermark update parameters for the watermark query request sent by the watermark management system;

[0143] The watermark window updating module is used to update the current watermark window in the browsing page to a target watermark window corresponding to the watermark update parameter.

[0144] In an optional embodiment of the present invention, the watermark window includes at least one of a text watermark window, a ciphertext watermark window, a QR code watermark window, a picture watermark window and a Braille watermark window.

[0145] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0146] An embodiment of the present invention further provides an electronic device, including:

[0147] one or more processors; and

[0148] One or more machine-readable media having instructions stored thereon, when executed by the one or more processors, enable the electronic device to perform the method described in the embodiment of the present invention.

[0149] The embodiment of the present invention further provides one or more machine-readable media having instructions stored thereon, which, when executed by one or more processors, enable the processors to execute the method described in the embodiment of the present invention.

[0150] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0151] It should be understood by those skilled in the art that the embodiments of the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take 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, EEPROM, Flash, and eMMC, etc.) containing computer-usable program codes.

[0152] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks 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 terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal 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.

[0153] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including 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.

[0154] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement 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.

[0155] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.

[0156] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal 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, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0157] The above is a detailed introduction to a watermark adding method and a watermark adding device provided by the present invention. Specific examples are used in this article to illustrate the principle and implementation mode of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation mode and application scope. In summary, the content of this specification should not be understood as limiting the present invention.

Claims

1. A method for adding a watermark, characterized in that: Applied to a user terminal, the user terminal includes at least one service system, and the method includes: In response to detecting an access operation to sensitive data of a target business system, obtaining system properties of the target business system and watermark parameters matching the system properties, wherein the target business system includes a watermark interface and a watermark plug-in, the system properties at least include a system identifier, a system version, and a system category, the watermark parameters are display parameters of the watermark, at least include watermark content, font style, font size, font color, and watermark display position, and the watermark interface is used for the target business system to send a watermark parameter acquisition request corresponding to the system properties to a watermark management system and obtain the watermark parameters; Determine the current browsing page of the target business system, the browsing page is determined by comparing the window class name with a preset class name involving sensitive data, the window class name is determined by the target business system from handles of all top-level windows obtained; According to the watermark parameters, a corresponding watermark window is added to the browsing page; The watermark plug-in at least includes a watermark management process, the watermark management process at least includes a watermark query thread, and the method further includes: The watermark query thread is enabled through the watermark management process to generate a watermark query request for the current watermark window; Sending the watermark query request to the watermark management system, and obtaining the watermark update parameters for the watermark query request sent by the watermark management system; The current watermark window in the browsing page is updated to a target watermark window corresponding to the watermark update parameter.

2. The method according to claim 1, characterized in that The step of acquiring, in response to detecting an access operation to sensitive data of a target business system, system properties of the target business system and watermark parameters matching the system properties comprises: In response to detecting an access operation to sensitive data of a target business system, obtaining a system attribute of the target business system, and generating a watermark parameter acquisition request corresponding to the system attribute; The watermark parameter acquisition request is sent to a preset watermark management system through the watermark interface, and the watermark management system is used to authenticate the target business system according to the system attributes and send the watermark parameters for the watermark parameter acquisition request to the target business system.

3. The method according to claim 2, characterized in that The step of acquiring the system attributes of the target business system in response to detecting the access operation to sensitive data of the target business system and generating a watermark parameter acquisition request corresponding to the system attributes includes: In response to detecting an access operation to sensitive data of a target business system, determining whether a preset watermark parameter exists locally; If the preset watermark parameters do not exist locally in the target business system, the system properties of the target business system are obtained, and a watermark parameter acquisition request corresponding to the system properties is generated.

4. The method according to claim 2 or 3, characterized in that: The target business system includes a watermark generation file, and adding a corresponding watermark window in the browsing page according to the watermark parameters includes: By using the watermark generation file, a first watermark window corresponding to the watermark parameters is added to the browsing page.

5. The method according to claim 1, characterized in that The target business system at least includes a watermark interface, and the response to detecting an access operation to sensitive data of the target business system, obtaining system properties of the target business system and watermark parameters matching the system properties, includes: In response to detecting an access operation to a target business system, detecting whether a watermark plug-in exists in the target business system; If the watermark plug-in exists in the target business system, obtaining system properties of the target business system and generating a watermark parameter acquisition request corresponding to the system properties; The watermark parameter acquisition request is sent to a preset watermark management system through the watermark interface, and the watermark management system is used to authenticate the target business system according to the system attributes and send the watermark parameters for the watermark parameter acquisition request to the target business system.

6. The method according to claim 1, characterized in that The watermark window includes at least one of a text watermark window, a ciphertext watermark window, a QR code watermark window, a picture watermark window and a Braille watermark window.

7. A watermark adding device, characterized in that: Applied to a user terminal, the user terminal includes at least one service system, and the device includes: A watermark parameter acquisition module, used for, in response to detecting an access operation to sensitive data of a target business system, acquiring system properties of the target business system, and watermark parameters and watermark plug-ins matching the system properties, wherein the system properties at least include a system identifier, a system version, and a system category, the target business system includes a watermark interface, the watermark parameters are display parameters of the watermark, and at least include watermark content, font style, font size, font color, and watermark display position, and the watermark interface is used for the target business system to send a watermark parameter acquisition request corresponding to the system properties to a watermark management system and acquire the watermark parameters; A browsing page determination module, used to determine the current browsing page of the target business system, wherein the browsing page is determined by comparing a window class name with a preset class name involving sensitive data, wherein the window class name is determined by the target business system from handles of all top-level windows obtained; A watermark window adding module, used for adding a corresponding watermark window in the browsing page according to the watermark parameters; The watermark plug-in at least includes a watermark management process, the watermark management process at least includes a watermark query thread, and the device further includes: A watermark query request generating module, used to enable the watermark query thread through the watermark management process and generate a watermark query request for the current watermark window; A watermark update parameter acquisition module, used to send the watermark query request to the watermark management system, and obtain the watermark update parameters for the watermark query request sent by the watermark management system; The watermark window updating module is used to update the current watermark window in the browsing page to a target watermark window corresponding to the watermark update parameter.

8. An electronic device, characterized in that: include: one or more processors; and One or more machine-readable media having instructions stored thereon, when executed by the one or more processors, cause the electronic device to perform one or more of the methods of claims 1-6.

9. One or more machine-readable media having instructions stored thereon, which when executed by one or more processors cause the processors to perform one or more of the methods of claims 1-6.

Citation Information

Patent Citations

  • Control method and device of webpage operation

    CN105631359A

  • Identity recognition-based data processing method, device and system

    CN106803042A

  • Method and system for automatically obtaining watermark parameters based on data characteristics

    CN109101791A

  • Watermark adding method and device

    CN111382399A