Watermark adding method and device

By adding a watermark to the data to be processed during the data reading process, the problem of the inability to accurately determine the data leaker in the prior art is solved, and rapid traceability and management during data leakage is achieved.

CN119598425APending Publication Date: 2025-03-11HANGZHOU ALICLOUD FEITIAN INFORMATION TECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202311169325.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-09-11
Publication Date
2025-03-11

AI Technical Summary

Technical Problem

The prior art is difficult to accurately and quickly determine the data breach party during data reading, resulting in the inability to effectively terminate the data breach incident.

Method used

When the data reader reads the data, it is generated by responding to its reading instruction and determining the corresponding watermark information, converting it into watermark characters, and adding it to the data according to preset rules. This watermark character is used to extract and parse the data when it is leaked to determine the party that the data is leaked.

Benefits of technology

It can quickly and accurately determine the data leaker during data leakage, achieve the purpose of accurate traceability, and improve the efficiency of data security management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119598425A_ABST
    Figure CN119598425A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a watermark adding method and device, and the method comprises the steps: responding to a reading instruction of a data reader for to-be-processed data, and determining watermark information corresponding to the data reader; based on a watermark conversion rule corresponding to the data reading party, converting the watermark information into watermark characters; adding the watermark character to the to-be-processed data according to a preset adding rule, obtaining target data and sending the target data to the data reading party; wherein the target data corresponds to watermark adding information, and the watermark adding information is used for determining a data leakage party. Under the condition that a data leakage event occurs, the watermark adding information can be obtained by performing watermark extraction and translation on the leaked data, and then the data leakage party of the leaked data is determined based on the watermark adding information, so that the purpose of accurate traceability is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present specification relate to the field of computer technology, and in particular to a watermark adding method. Background Art

[0002] With the development of computer technology, all walks of life pay more and more attention to data security. After data is generated and stored, it may be read by multiple parties. After the first reader reads the data at the data source, there is a possibility that the second reader reads the data at the first reader. In the data reading relationship network, any party may have the risk of data leakage due to improper management or handling. After the data is leaked, since the data is not marked when the data reader reads the data, it is impossible to accurately and quickly determine the data leaker, resulting in the inability to terminate the data leakage incident. Therefore, a more effective watermarking method is urgently needed to solve this problem. Summary of the invention

[0003] In view of this, an embodiment of this specification provides a watermark adding method. One or more embodiments of this specification also relate to a watermark adding device, a data detection method, a data detection device, a computing device, a computer readable storage medium and a computer program to solve the technical defects existing in the prior art.

[0004] According to a first aspect of an embodiment of this specification, a watermark adding method is provided, comprising:

[0005] In response to a read instruction of the data to be processed by the data reader, determining watermark information corresponding to the data reader;

[0006] Based on the watermark conversion rule corresponding to the data reader, convert the watermark information into watermark characters;

[0007] Add the watermark character to the data to be processed according to a preset adding rule, obtain the target data and send it to the data reader;

[0008] The target data corresponds to watermark adding information, and the watermark adding information is used to determine the data leakage party.

[0009] According to a second aspect of the embodiments of this specification, a watermark adding device is provided, including:

[0010] A determination module, configured to determine watermark information corresponding to the data reader in response to a read instruction of the data to be processed by the data reader;

[0011] A conversion module, configured to convert the watermark information into watermark characters based on a watermark conversion rule corresponding to the data reader;

[0012] The adding module is configured to add the watermark character to the data to be processed according to a preset adding rule, obtain the target data and send it to the data reader; wherein the target data corresponds to the watermark adding information, and the watermark adding information is used to determine the data leakage party.

[0013] According to a third aspect of an embodiment of this specification, a data detection method is provided, including:

[0014] In the case that at least two data readers read the target data and the target data is leaked, a target watermark character is extracted from the leaked target data; wherein the target data read by each data reader has different watermarking information corresponding to the target data; and the target data read by each data reader is generated based on the watermarking method;

[0015] Converting the target watermark character into target watermark information based on the watermark conversion rule;

[0016] A data leaking party is determined among at least two data readers based on the target watermark information.

[0017] According to a fourth aspect of the embodiments of this specification, a data detection device is provided, including:

[0018] The extraction module is configured to extract target watermark characters from the leaked target data when at least two data readers read the target data and the target data is leaked; wherein the watermarking information corresponding to the target data read by each data reader is different; and the target data read by each data reader is generated based on the watermarking method;

[0019] A conversion module, configured to convert the target watermark character into target watermark information based on the watermark conversion rule;

[0020] A determination module is configured to determine a data leakage party among at least two data readers based on the target watermark information. According to a fifth aspect of the embodiments of this specification, a computing device is provided, including:

[0021] Memory and processor;

[0022] The memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions. When the computer-executable instructions are executed by the processor, the steps of the above method are implemented.

[0023] According to a sixth aspect of the embodiments of this specification, a computer-readable storage medium is provided, which stores computer-executable instructions, and the instructions implement the steps of the above method when executed by a processor.

[0024] According to a seventh aspect of the embodiments of this specification, a computer program is provided, wherein when the computer program is executed in a computer, the computer is caused to execute the steps of the above method.

[0025] One embodiment of the present specification determines the watermark information corresponding to the data reader in response to the data reader's read instruction for the data to be processed; based on the watermark conversion rule corresponding to the data reader, converts the watermark information into watermark characters; adds the watermark characters to the data to be processed according to the preset adding rules, obtains the target data and sends it to the data reader; wherein the target data corresponds to the watermark adding information, and the watermark adding information is used to determine the data leaking party. When the data reader reads the data to be processed, the watermark information corresponding to the data reader is added to the data to be processed, thereby achieving the watermark adding target data for the data to be processed. Furthermore, in the event of a data leakage incident, the watermark adding information can be obtained by extracting and translating the watermark of the leaked data, and then the data leaking party of the leaked data can be determined based on the watermark adding information, thereby achieving the purpose of accurate tracing. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 This is a schematic diagram of adding a watermark according to a method for adding a watermark provided by an embodiment of this specification;

[0027] Figure 2 is a flow chart of a watermark adding method provided by an embodiment of this specification;

[0028] Figure 3 is a process flow chart of a watermark adding method provided by an embodiment of this specification;

[0029] Figure 4 This is a schematic diagram of a scenario of a watermark adding method provided by an embodiment of this specification;

[0030] Figure 5 It is a structural schematic diagram of a watermark adding device provided by an embodiment of this specification;

[0031] Figure 6 is a flow chart of a data detection method provided by an embodiment of this specification;

[0032] Figure 7 is a structural schematic diagram of a data detection device provided by an embodiment of this specification;

[0033] Figure 8 It is a structural block diagram of a computing device provided by an embodiment of this specification. DETAILED DESCRIPTION

[0034] Many specific details are described in the following description to facilitate a full understanding of this specification. However, this specification can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of this specification, so this specification is not limited to the specific implementation disclosed below.

[0035] The terms used in one or more embodiments of this specification are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of this specification. The singular forms of "a", "said" and "the" used in one or more embodiments of this specification and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in one or more embodiments of this specification refers to and includes any or all possible combinations of one or more associated listed items.

[0036] It should be understood that although the terms first, second, etc. may be used to describe various information in one or more embodiments of this specification, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of this specification, the first may also be referred to as the second, and similarly, the second may also be referred to as the first. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0037] In addition, it should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in one or more embodiments of this specification are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0038] First, the terms involved in one or more embodiments of this specification are explained.

[0039] Zero-width character: A non-printable Unicode character with a byte width of 0. It is invisible in browsers and general text editors, but it does exist. It takes up space when getting the length of a string and represents a character that controls a function.

[0040] Communication platforms usually provide data query and export services for customers. However, the risk of data leakage caused by data query and export is difficult for communication platforms to estimate. Platforms cannot stop providing data query and export services to customers because of concerns about data leakage. However, platforms must also respond and troubleshoot problems quickly when data leakage occurs. Therefore, platforms urgently need a solution to add tags to SMS data text to facilitate identification of the source of SMS content export or query.

[0041] Figure 1 This is a schematic diagram of watermarking of a watermarking method provided by an embodiment of the specification; when a data reader submits a read instruction to the data to be processed, the watermark information corresponding to the data reader is determined. Based on the watermark conversion rule corresponding to the data reader, the watermark information is converted into a watermark character, which is a zero-width character. The watermark character can be added to the data to be processed in a steganographic manner. The steganographic manner means that the watermark character occupies a byte position, but the watermark character is not printed, and the watermark character is invisible to the naked eye. The watermark character is added to the data to be processed according to the preset adding rule, and the target data containing the steganographic zero-width character is obtained and sent to the data reader. If the target data is leaked, the watermark character in the target data can be extracted, and then the watermark adding information corresponding to the target data is determined. The watermark adding information can indicate the data reader corresponding to the target data, and the data reader corresponding to the target data is the data leaking party. By adding invisible characters to the data to be processed, tracing and verification can be achieved when data leakage occurs, so as to deal with the data leakage problem in a timely and rapid manner. Improve the speed and accuracy of the data leaking party.

[0042] In this specification, a watermark adding method is provided. This specification also relates to a watermark adding device, a data detection method, a data detection device, a computing device, and a computer-readable storage medium, which are described in detail one by one in the following embodiments.

[0043] See also Figure 2 , Figure 2 A flow chart of a watermark adding method provided according to an embodiment of the present specification is shown, which specifically includes the following steps.

[0044] Step 202: In response to a read instruction of the data to be processed by the data reader, determine watermark information corresponding to the data reader.

[0045] Specifically, the data reader can be any demander who has a need to read data. When the party being read is a data platform, the data reader can be any demander who has a supply-demand relationship or a cooperative relationship with the data platform. The data reader can be a supplier system or a user who uses the services provided by the data platform. Accordingly, the data to be processed is the data generated or stored by the data platform, that is, the data that the data reader needs to obtain. The watermark information is equivalent to a specific corresponding relationship between the data readers. The watermark information corresponding to each data reader is different. Therefore, different data readers can be distinguished by the watermark information. The watermark information can be characters such as letters, numbers, symbols, Chinese characters, and can be text content such as words and sentences composed of Chinese characters. The watermark information can also be symbols such as line breaks and space characters.

[0046] Based on this, after receiving the reading instruction submitted by the data reader for the data to be processed, the watermark information corresponding to the data reader is determined, or the watermark information is constructed for the data reader based on the attribute information of the data reader, which is used to add a watermark to the data to be processed corresponding to the data reader based on the watermark information.

[0047] Furthermore, considering that any data reader needs to add a watermark to the read data when reading data, and in order to make the added watermark play a role in distinguishing the data readers, each data reader corresponds to different watermark information, and when the data reader is connected to the data source, the watermark information is recorded in the watermark record table, which is specifically implemented as follows:

[0048] In response to a connection request submitted by a data reader, watermark information and adding rules corresponding to the data reader are determined; the watermark information and the adding rules are recorded in a watermark recording table, and the watermark recording table is preset with the watermark conversion rules.

[0049] Specifically, the connection request is used to establish a connection relationship with the data source, and then read the data to be processed from the data source; the data source can be a data platform or cloud platform that provides services; the watermark record table is used to store the name, attributes, serial number and other information of each data reader, as well as the watermark information and addition rules corresponding to the data reader.

[0050] Based on this, when the data reader establishes a connection with the data source, it sends a connection request to the data source. In response to the connection request submitted by the data reader, the watermark information corresponding to the data reader is determined based on the data reader's attributes, name, serial number and other information, and an adding rule is formulated for the data reader. The serial number, watermark information and adding rule of the data reader are recorded in the watermark record table. At the same time, the watermark record table is preset with a watermark conversion rule, which is used to add a watermark to the read data when any data reader reads the data.

[0051] For example, when a supplier reads the communication information records stored in the cloud platform, the cloud platform is the data source and the supplier is the data reader. A connection is established between the supplier and the cloud platform, and the cloud platform provides services to the supplier. When a connection is established between the supplier and the cloud platform, watermark information "AB" is set for the supplier, and the watermark adding rule of the supplier is determined: two binary characters are grouped together, and two bytes are added to the read data starting from the first byte. The watermark information and watermark adding rules are stored in the watermark record table of the cloud platform.

[0052] To summarize, in response to a connection request submitted by a data reader, the watermark information and adding rules corresponding to the data reader are determined; the watermark information and adding rules are recorded in a watermark record table, so that the watermark information and adding rules corresponding to each data reader are different, thereby distinguishing each data reader and facilitating tracing in the event of a data leak.

[0053] Step 204: based on the watermark conversion rule corresponding to the data reader, convert the watermark information into watermark characters.

[0054] Specifically, after determining the watermark information corresponding to the data reader in response to the read instruction of the data reader for the processed data, the watermark information can be converted into watermark characters based on the watermark conversion rule corresponding to the data reader, wherein the watermark conversion rule refers to a zero-width character mapping rule, which is used to realize the conversion of the watermark information; the watermark character is the information obtained by converting the watermark information into a zero-width character; the watermark information is converted in sequence according to the information content corresponding to the watermark information and the arrangement information of the information content. For example, if the watermark information is "abc", the letters a, b and c are converted in sequence according to the watermark conversion rule to obtain the conversion characters corresponding to the letters a, b and c respectively, and the watermark characters are composed of the conversion characters corresponding to the letters a, b and c in alphabetical order.

[0055] Based on this, after determining the watermark information corresponding to the data reader in response to the read instruction of the data reader to be processed, the watermark conversion rule corresponding to the data reader is obtained to convert the watermark information. At least one character information included in the watermark information is determined, and the at least one character information is converted in sequence according to the arrangement order in the watermark information, so as to convert the watermark information into a watermark character.

[0056] In practical applications, the watermark conversion rule can be pre-set corresponding to the data source. The data reader reads the data to be processed at the data source. When any data reader reads the data at the data source, it converts the data according to the watermark conversion rule. The watermark character is a zero-width character and can be added to the data to be processed in a steganographic manner.

[0057] Furthermore, considering that the watermark information can be in any form such as text or characters, in view of the diversity of watermark information, before converting the watermark information into watermark characters, it is also necessary to convert the watermark information into identification information with a unified expression form, which is specifically implemented as follows:

[0058] The watermark conversion rule corresponding to the data reader is obtained, and the watermark information is converted into identification information; the identification information is converted using the watermark conversion rule to obtain the watermark character.

[0059] Specifically, the identification information may be a binary character or an identification character with a unified expression form. When the identification information is a binary character, the binary character may be mapped to a zero-width character. For example, when the watermark information is A, the binary representation corresponding to A is 1000001, and 1000001 is the binary identification information corresponding to the watermark information A. The identification character with a unified expression form may be an octal character, a decimal character, or symbols such as △, ○, and □.

[0060] Based on this, the watermark conversion rule corresponding to the data reader is obtained. The watermark information is converted according to the watermark conversion rule. The watermark information is converted into identification information. The characters in the identification information are converted using the watermark conversion rule to obtain the watermark characters.

[0061] Using the above example, we obtain the watermark conversion rule that the zero-width character \u200B corresponds to the binary number 0, and the zero-width character \u200C corresponds to the binary number 1. The watermark information "AB" is converted into the binary identification information "10000011000010". Based on the watermark conversion rule, the binary identification information "10000011000010" is converted into the watermark characters "\u200C\u200B\u200B\u200B\u200B\u200B\u200B\u200B\u200B\u200B\u200B\u200B\u200B\u200B".

[0062] To summarize, after the watermark information is converted into identification information, the identification information is converted based on the watermark conversion rule, so that the watermark information is represented by zero-width characters, so that after the watermark characters are added to the data to be processed, they are invisible and have no effect on the reading of the data to be processed after the watermark is added, thereby improving the visual experience.

[0063] Furthermore, considering that the watermark information only contains letters, numbers, and words, the watermark characters obtained after the watermark information is converted are relatively simple and have low recognition. In order to increase the diversity of watermark information, paragraph marks can be incorporated into the watermark information, which is specifically implemented as follows:

[0064] Determine the character conversion rule and the paragraph mark conversion rule included in the watermark conversion rule; convert the characters in the identification information based on the character conversion rule, and convert the paragraph marks in the identification information based on the paragraph mark conversion rule to obtain the watermark character corresponding to the identification information.

[0065] Specifically, the paragraph character can be a space character, a line break character, or other symbols; correspondingly, the paragraph character conversion rule represents the conversion relationship between the paragraph character and the watermark character corresponding to the paragraph character, and is used to convert the paragraph character into the watermark character corresponding to the paragraph character. The paragraph character conversion rule can be customized according to actual needs, for example, mapping the space character to the zero-width character \u200E and mapping the line break character to the zero-width character \u200F; in the character conversion rule, the character is the binary character 0 or 1.

[0066] Based on this, character conversion rules and paragraph mark conversion rules included in the watermark conversion rules are determined. Characters and paragraph marks in the identification information are determined, the characters in the identification information are converted based on the character conversion rules, and the paragraph marks in the identification information are converted based on the paragraph mark conversion rules, and the zero-width characters obtained by the conversion are spliced ​​according to the arrangement order of the characters and paragraph marks in the identification information to obtain the watermark characters corresponding to the identification information.

[0067] Using the above example, if there is a space character between A and B in the watermark information "AB", the space character will be converted into a zero-width character \u200E. Therefore, the watermark character corresponding to the watermark information "AB" is "\u200C\u200B\u200B\u200B\u200B\u200B\u200C\u200E\u200C\u200B\u200B\u200B\u200B\u200B\u200C\u200B". Then, the above watermark character is added to the data to be processed, so as to add a steganographic watermark to the data to be processed.

[0068] In summary, by converting the characters in the identification information based on the character conversion rules and converting the paragraph marks in the identification information based on the paragraph mark conversion rules, watermark characters corresponding to the identification information are obtained, the diversity of the watermark characters is improved, and the recognition of the watermark characters is further improved.

[0069] Furthermore, considering that the types of zero-width characters included in the watermark characters are relatively single, in order to improve the recognition of the data to be processed read by different data readers, the watermark characters can be split and added to different positions of the data to be processed, which is specifically implemented as follows:

[0070] The combination information and position information of the watermark characters are determined based on the preset adding rule; the watermark characters are added to the data to be processed based on the combination information and the position information, and the target data is obtained and sent to the data reader.

[0071] Specifically, the combination information refers to the combination information corresponding to the watermark characters, for example, two zero-width characters in the watermark characters are combined as a group; the position information is the byte position information of the zero-width characters in the watermark characters added to the data to be processed; for example, for the data to be processed "My name is Li Si", the position information can be the front and back positions of any Chinese characters.

[0072] Based on this, the combination information and position information of the watermark character are determined based on the preset adding rules. After the sub-characters in the watermark character, i.e., the zero-width characters, are combined based on the combination information, the combined sub-characters are sequentially added to the data to be processed according to the position information, and the target data with the watermark information added is obtained and sent to the data reader.

[0073] Continuing with the above example, according to the preset adding rules of the supplier, when the supplier adds a watermark, the zero-width characters in the watermark characters are combined into groups of two, and the position information is: added to the read data at intervals of two bytes starting from the first byte, that is, when the data to be processed is text, a group of zero-width characters is added between each text.

[0074] In summary, watermark characters are added to the data to be processed based on the combination information and position information, thereby improving the recognition of the data to be processed after the data reader adds the watermark information and reducing the probability of the same watermark adding method between different data readers.

[0075] Furthermore, after determining the combination information and position information of the watermark character based on the preset adding rule, in order to ensure the accuracy of adding the watermark character to the data to be processed, the sub-characters in the watermark character can be combined based on the combination information, which is specifically implemented as follows:

[0076] Based on the combination information, the sub-characters included in the watermark character are combined to obtain at least one watermark character group; based on the position information, the adding positions corresponding to the at least one watermark character group are determined in the data to be processed; according to the adding positions, the at least one watermark character group is added to the data to be processed respectively to obtain the target data and send it to the data reader.

[0077] Specifically, the sub-character is the zero-width character contained in the watermark character. For example, in the watermark character "\u200C\u200B\u200B\u200B\u200B\u200B\u200C", \u200C is a sub-character, that is, a zero-width character; the watermark character group is the character group obtained by combining the sub-characters in the watermark character according to the arrangement order of the sub-characters in the watermark character and the combination information.

[0078] Based on this, the sub-characters contained in the watermark character are combined in sequence according to the arrangement order of the sub-characters in the watermark character based on the combination information to obtain at least one watermark character group. Based on the position information, the adding position corresponding to the at least one watermark character group is determined in the data to be processed. At least one watermark character group is added to the data to be processed, and the target data is obtained and sent to the data reader at the adding position corresponding to the watermark character group.

[0079] Continuing with the above example, the watermark characters corresponding to the watermark information "AB" are "\u200C\u200B\u200B\u200B\u200B\u200B\u200B\u200C\u200C\u200B\u200B\u200B\u200B\u200B\u200B"; the combination information is: every two sub-characters form a group, and the position information is: added to the read data at intervals of two bytes starting from the first byte. Based on the combination information, the watermark characters are grouped to obtain "\u200C\u200B", "\u200B\u200B", "\u200B\u200B", "\u200C\u200C", "\u200B\u200B", "\u200B\u200B", "\u200B\u200B", and "\u200C\u200B". 01", and add the watermark character group to the data to be processed with an interval of two bytes to obtain the target data "\u200C\u200Bmy\u200B\u200B\u200Bname\u200C\u200Ccharacter\u200B\u200Bis\u200B\u200BZhang\u200C\u200BSan, and my home address is 101, Unit 1, Building 1, Community A". The target data is sent to the data reader, that is, the supplier corresponding to the cloud platform.

[0080] In summary, the sub-characters in the watermark character are first combined based on the combination information, and then the watermark character group is added to the data to be processed based on the position information, thereby improving the accuracy of adding watermarks to the data to be processed.

[0081] Step 206: Add the watermark character to the data to be processed according to a preset adding rule, obtain the target data and send it to the data reader; wherein the target data corresponds to the watermark adding information, and the watermark adding information is used to determine the data leakage party.

[0082] Specifically, after the watermark information is converted into watermark characters based on the watermark conversion rules corresponding to the data reader, the watermark characters can be added to the data to be processed according to the preset adding rules to obtain the target data and send it to the data reader; wherein the target data corresponds to the watermark adding information, and the watermark adding information is used to determine the data leakage party, wherein the adding rules correspond to the combination information and position information of the watermark characters, the position information indicates the adding position of the watermark characters in the data to be processed when the watermark characters are added to the data to be processed, and the adding rules are used to add the watermark characters to different data positions in the data to be processed in different combinations, and the combination methods and adding positions are used to increase the diversity of watermark adding methods and reduce the probability that different watermark adding methods are the same for different data to be processed; the target data refers to the target data obtained after the watermark characters are added to the data to be processed, the target data contains the watermark characters added in a steganographic manner, and the watermark characters in the target data are invisible to the user; the watermark adding information refers to the watermark adding position information and watermark arrangement information obtained after parsing the watermark in the target data.

[0083] Based on this, after the watermark information is converted into watermark characters based on the watermark conversion rules corresponding to the data reader, the preset adding rules corresponding to the data reader are determined, and the watermark characters are added to the data to be processed according to the preset adding rules, and the target data is obtained and sent to the data reader. The watermark characters in the target data are extracted, the extraction position information and watermark arrangement information of the watermark characters are recorded, and the watermark characters are parsed according to the watermark adding rules to obtain the watermark information. The watermark adding information is composed of the watermark information, the watermark arrangement information and the extraction position information. The watermark adding information corresponds to the data reader, and the data reader is the data leaking party.

[0084] Furthermore, considering that after the watermark characters are added to the data to be processed to obtain the target data, there is a situation where the watermark characters fail to be added or are added incorrectly, therefore, the target data can be detected after the target data is obtained, which is specifically implemented as follows:

[0085] A watermark detection request for the target data is received, and the watermark characters to be detected are extracted from the target data; based on a watermark parsing rule corresponding to the watermark conversion rule, the watermark characters to be detected are parsed into watermark information to be detected; and by comparing the watermark information to be detected with the watermark information, a comparison result is obtained as a response to the watermark detection request.

[0086] Specifically, a watermark detection request refers to a computer instruction for testing whether the watermark in the target data is added successfully or accurately; the watermark character to be detected is the watermark character extracted from the target data; the watermark parsing rule is opposite to the watermark conversion rule, that is, the watermark parsing operation is the inverse operation of the watermark conversion operation, for example, the watermark conversion rule is to convert 1 to \u200C, and the watermark parsing rule is to parse it to 1; the comparison results may be the same or different. If the comparison results are the same, it means that the target data watermark is added successfully and accurately, and if the comparison results are different, it means that the watermark addition fails.

[0087] Based on this, a watermark detection request for target data is received, the watermark characters to be detected are extracted from the target data, and the extraction position of the watermark characters to be detected is recorded; based on the watermark parsing rules corresponding to the watermark conversion rules, the watermark characters to be detected at each position are parsed in turn, and the watermark characters to be detected are parsed into the watermark information to be detected. By comparing the watermark information to be detected with the watermark information, if the watermark information to be detected and the watermark information are the same, it means that the watermark is added successfully and accurately, and the information that the watermark is added successfully and accurately is used as the comparison result, and then as the response to the watermark detection request; if the watermark information to be detected and the watermark information are not the same, it means that the watermark is added unsuccessfully, and the information that the watermark is added unsuccessfully is used as the comparison result, and then as the response to the watermark detection request.

[0088] Using the above example, after obtaining the target data "\u200C\u200Bmy\u200B\u200B name\u200C\u200C is\u200B\u200B Zhang\u200C\u200B San, home address is Unit 101, Building 1, Community A", it is detected whether the watermark is successfully and accurately added to the target data. Extract the watermark characters in the target data: \u200C\u200B\u200B\u200B\u200B\u200B\u200B\u200B\u200B\u200B\u200B\u200B\u200B\u200B\u200B\u200B". Convert the watermark characters into identification information "10000011000010", and further convert the identification information "10000011000010" into the watermark information "AB" to be detected. Since the watermark information "AB" to be detected is the same as the watermark information "AB", it means that the watermark is added successfully and accurately.

[0089] In summary, after adding the watermark characters to the data to be processed to obtain the target data, the target data is tested to promptly determine whether the watermark is added successfully, ensuring the accuracy of the watermark added to the target data, and avoiding the inability to find the correct data leakage party in the case of watermark addition failure or addition error.

[0090] Furthermore, considering that the target watermark characters in the data to be operated can be parsed into the target watermark information, the data reader corresponding to the data to be operated can be determined based on the target watermark information. Therefore, in the case of a data leak, the data leaker can be quickly determined. The specific implementation is as follows:

[0091] In the case that at least two data readers read the data to be operated and it is leaked, target watermark characters are extracted from the leaked data to be operated; wherein the watermark added information corresponding to the data to be operated read by each data reader is different; the data to be operated read by each data reader is generated based on the data to be processed; based on the watermark conversion rule, the target watermark characters are converted into target watermark information; based on the target watermark information, the data leaking party is determined among at least two data readers.

[0092] Specifically, the data to be operated is the data read by the data reader at the data source; the target watermark character is at least one zero-width character extracted from the leaked data to be operated; the target watermark information is the watermark information obtained after converting at least one zero-width character according to the watermark conversion rule; the data leakage party is the data reader to which the leaked data to be operated belongs.

[0093] Based on this, when at least two data readers read the data to be operated and leak, the target watermark characters are extracted from the leaked data to be operated based on the pre-established watermark rules or by using the pre-written program code. The watermark addition information corresponding to the data to be operated read by each data reader is different, and the corresponding data reader can be determined based on the watermark addition information. The data to be operated read by each data reader is generated based on the data to be processed. The target watermark characters are converted into binary characters based on the watermark conversion rules, and then the binary characters are converted into target watermark information. The data leaking party is determined from at least two data readers based on the target watermark information.

[0094] Continuing with the above example, when the leaked data to be operated is "My name is Li Si", the zero-width character in the data to be operated is determined as "\u200CMy\u200Bname\u200Bis\u200BLi\u200CSi". Based on the watermark conversion rule: \u200B corresponds to the binary number 0, and the zero-width character \u200C corresponds to the binary number 1, the zero-width character "\u200C\u200B\u200B\u200B\u200B\u200B\u200C" is converted into the binary representation "1000001", and the binary representation "1000001" corresponds to the target watermark information "A". Then, based on the target watermark information "A", the target data reader is determined as the data leaker.

[0095] In summary, in the case of the leakage of the data to be operated, the target watermark characters are extracted from the leaked data to be operated, and then the target watermark information is determined based on the target watermark characters. Thus, the corresponding target data reader can be determined through the target watermark information, and the target data reader is used as the data leakage party, thereby improving the efficiency of determining the data leakage party when data is leaked.

[0096] Furthermore, considering that the data to be operated all correspond to watermark addition information, the watermark addition data can be obtained by parsing the data to be operated. The watermark addition data also includes watermark position information. Combining the target watermark information can accurately determine the data reader corresponding to the data to be operated. The specific implementation is as follows:

[0097] Determine the watermark position information of the target watermark characters in the leaked data to be operated; determine the target data reader based on the target watermark information and the watermark position information, and use the target data reader as the data leakage party.

[0098] Specifically, the watermark position information is the position information of each zero-width character or each combination of zero-width characters in the leaked data to be operated; the target data reader is the data reader corresponding to the target watermark information and the watermark position information.

[0099] Based on this, determine the sub-character position information of each target sub-character in the target watermark characters in the leaked data to be operated, and merge them into the watermark position information. Determine the target data reader based on the target watermark information and the watermark position information, and use the target data reader as the data leakage party.

[0100] Continuing with the above example, in the case where the leaked data to be operated is "My name is Li Si", determine the zero-width characters in the data to be operated, "\u200C我\u200B的\u200B名\u200B字\u200B是\u200B李\u200C四", and record the zero-width characters in the data to be operated and the position information of each zero-width character. Based on the watermark conversion rule: \u200B corresponds to the binary digit 0, and the zero-width character \u200C corresponds to the binary digit 1, convert the zero-width character "\u200C\u200B\u200B\u200B\u200B\u200B\u200C" to the binary representation "1000001", and the binary representation "1000001" corresponds to the target watermark information "A". The watermark position information determined based on the leaked data to be operated is: "Added to the data to be read at intervals of two bytes starting from the first byte". Then, determine the target data reader based on the target watermark information "A" and the watermark position information as the data leakage party.

[0101] To summarize, the target data reader is determined based on the target watermark information and the watermark position information, and the target data reader is regarded as the data leakage party. The corresponding target data reader can be determined by combining the target watermark information and the watermark position information, and it is judged as the data leakage party, thereby improving the accuracy and speed of determining the data leakage party.

[0102] One embodiment of the present specification determines the watermark information corresponding to the data reader in response to the data reader's read instruction for the data to be processed; based on the watermark conversion rule corresponding to the data reader, converts the watermark information into watermark characters; adds the watermark characters to the data to be processed according to the preset adding rules, obtains the target data and sends it to the data reader; wherein the target data corresponds to the watermark adding information, and the watermark adding information is used to determine the data leaking party. When the data reader reads the data to be processed, the watermark information corresponding to the data reader is added to the data to be processed, thereby achieving the watermark adding target data for the data to be processed. Furthermore, in the event of a data leakage incident, the watermark adding information can be obtained by extracting and translating the watermark of the leaked data, and then the data leaking party of the leaked data can be determined based on the watermark adding information, thereby achieving the purpose of accurate tracing.

[0103] The following combination Figure 3 Taking the application of the watermark adding method provided in this specification to the watermark adding of the data to be read as an example, the watermark adding method is further described. Figure 3 A process flow chart of a watermark adding method provided in an embodiment of the present specification is shown, which specifically includes the following steps.

[0104] Step 302: In response to a connection request submitted by a data reader, watermark information and adding rules corresponding to the data reader are determined.

[0105] In actual applications, cloud platforms and systems can provide data services to users, including but not limited to SMS services, communication record services, etc. Figure 4 FIG. 1 is a schematic diagram of a watermark adding method provided by an embodiment of this specification. Figure 4 As shown, the customer system, cloud platform and supplier system form a link.

[0106] The customer system processes the communication request internally, and then calls the cloud platform to store the communication records. The customer system corresponds to data readers A, B, and other data readers, who can read data in the customer system; the cloud platform contains a cloud platform entry gateway to realize gateway log record storage, and also includes a cloud platform access layer, cloud platform risk control scheduling, and cloud platform exit gateway to realize execution record storage. The cloud platform corresponds to data readers A, B, and other data readers, who can read data on the cloud platform; the supplier system includes a supplier entry gateway to realize supplier information storage, includes multi-channel network forwarding to realize request multi-channel forwarding storage, and also includes an operator system to realize operator information storage. The supplier system corresponds to data readers 1, 2, and other data readers corresponding to the customer system, who can read data in the supplier system. Data reading can also be realized between the customer system, the cloud platform, and the supplier system based on the constructed links.

[0107] In the scenario where the cloud platform provides SMS services, the SMS services include functions such as SMS sending, SMS sending details query, and SMS sending details export. After a data leak occurs, the cloud platform will intervene immediately to conduct internal self-inspection and review by data readers such as suppliers.

[0108] Taking the data stored in the cloud platform of data reader A as an example, when a data service relationship is established between the data reader and the cloud platform, the cloud platform determines the watermark information and watermark adding rules corresponding to data reader A for data reader A: the watermark adding information is "ab" and the watermark adding rule is to divide "ab" into "a" and "b" and add them to the first and last positions of the text read by data reader A respectively.

[0109] Step 304: Record the watermark information and the adding rules into a watermark record table, where the watermark record table is preset with watermark conversion rules.

[0110] The watermark record table has preset watermark conversion rules. The zero-width character \u200B corresponds to the binary number 0, and the zero-width character \u200C corresponds to the binary number 1.

[0111] Step 306: In response to the read instruction of the data reader to the data to be processed, determine the watermark information corresponding to the data reader.

[0112] When data reader A reads data on the cloud platform, "Your verification code is 123456, remember not to tell anyone." The watermark information "ab" to be added is determined.

[0113] Step 308: Convert the watermark information into binary identification information based on the watermark conversion rule.

[0114] The watermark information "ab" is converted into binary representation: binary identification information of 11000011100010.

[0115] Step 310: Determine the character conversion rule included in the watermark conversion rule.

[0116] The character conversion rule in the watermark conversion rule is determined, and the zero-width character \u200B corresponds to the binary number 0, and the zero-width character \u200C corresponds to the binary number 1. The watermark conversion rule may also include a space character conversion rule: the zero-width character \u200E corresponds to the space character.

[0117] Step 312: Convert the characters in the binary identification information based on the character conversion rule to obtain the watermark characters corresponding to the binary identification information.

[0118] Based on the character conversion rule, the zero-width character \u200B corresponds to the binary number 0, and the zero-width character \u200C corresponds to the binary number 1. After converting 11000011100010, we get "\u200C\u200C\u200B\u200B\u200B\u200B\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200B\u200B\u200B".

[0119] Step 314: Determine the combination information and position information of the watermark characters based on the preset adding rule.

[0120] The watermark adding rule is to divide "ab" into "a" and "b" and add them to the first and last positions of the text read by data reader A respectively.

[0121] Step 316: Combine the sub-characters included in the watermark character based on the combination information to obtain at least one watermark character group.

[0122] The “\u200C\u200C\u200B\u200B\u200B\u200B\u200C” corresponding to “a” is used as a watermark character group; the “\u200C\u200C\u200B\u200B\u200B\u200B\u200C” corresponding to “b” is used as another watermark character group.

[0123] Step 318: Determine the adding positions corresponding to at least one watermark character group in the data to be processed based on the position information.

[0124] Step 320: Add at least one watermark character group to the data to be processed according to the adding position, obtain the target data and send it to the data reader.

[0125] Add "\u200C\u200C\u200B\u200B\u200B\u200B\u200C" to the first position of the data "Your verification code is 123456, remember not to tell anyone", and add "\u200C\u200C\u200B\u200B\u200B\u200B\u200B" to the end to get "\u200C\u200C\u200B\u200B\u200B\u200B\u200B\u200CYour verification code is 123456, remember not to tell anyone\u200C\u200C\u200B\u200B\u200B\u200B\u200B". Among them, the watermark characters are all added in a steganographic way, which does not affect the presentation of the data and is invisible and unprintable.

[0126] Step 322: When at least two data readers read the data to be operated and it is leaked, extract the target watermark characters from the leaked data to be operated; wherein the watermark added information corresponding to the data to be operated read by each data reader is different; and the data to be operated read by each data reader is generated based on the data to be processed.

[0127] In the event of a data breach, extract the zero-width characters in the breached data: “\u200C\u200C\u200B\u200B\u200B\u200B\u200B\u200C\u200C\u200B\u200B\u200B\u200B\u200B”. And convert the zero-width characters into binary characters: “11000011100010”.

[0128] Step 324: Convert the target watermark characters into target watermark information based on the watermark conversion rule.

[0129] Convert the binary characters: "11000011100010" into letters "ab", i.e., watermark information.

[0130] Step 326: Determine the watermark position information of the target watermark character in the leaked data to be operated.

[0131] Determine the position information of the zero-width characters in the leaked data. "a" and "b" correspond to the first and last positions of the leaked data, respectively.

[0132] Step 328: Determine a target data reader based on the target watermark information and the watermark position information, and regard the target data reader as the data leakage party.

[0133] According to the location where the watermark is added and the watermark information "ab", the data reader corresponding to the leaked data can be determined and regarded as the data leaker.

[0134] In this embodiment, invisible zero-width characters are combined with the data being read, and specific zero-width characters are added to the data being read in a steganographic manner, thereby improving the security level of the data itself; the zero-width character steganographic text watermark has no effect on the content perception from the customer's perspective, thereby improving the user's visual experience; based on the arrangement and combination of multiple zero-width characters, the steganographic text watermark carries specific information, which facilitates the detailed investigation of problem events and achieves accurate tracing.

[0135] In summary, an embodiment of the present specification determines the watermark information corresponding to the data reader in response to the reading instruction of the data reader for the data to be processed; based on the watermark conversion rule corresponding to the data reader, the watermark information is converted into a watermark character; the watermark character is added to the data to be processed according to the preset adding rule, the target data is obtained and sent to the data reader; wherein the target data corresponds to the watermark adding information, and the watermark adding information is used to determine the data leakage party. When the data reader reads the data to be processed, the watermark information corresponding to the data reader is added to the data to be processed, thereby achieving the watermark adding target data for the data to be processed. Furthermore, in the event of a data leakage incident, the watermark adding information can be obtained by extracting and translating the watermark of the leaked data, and then the data leakage party of the leaked data can be determined based on the watermark adding information, thereby achieving the purpose of accurate tracing.

[0136] Corresponding to the above method embodiment, this specification also provides a watermark adding device embodiment. Figure 5 FIG. 1 is a schematic diagram showing the structure of a watermark adding device provided by an embodiment of the present specification. Figure 5 As shown, the device comprises:

[0137] A determination module 502 is configured to determine watermark information corresponding to the data reader in response to a read instruction of the data to be processed by the data reader;

[0138] The conversion module 504 is configured to convert the watermark information into watermark characters based on the watermark conversion rule corresponding to the data reader;

[0139] The adding module 506 is configured to add the watermark character to the data to be processed according to a preset adding rule, obtain the target data and send it to the data reader; wherein the target data corresponds to the watermark adding information, and the watermark adding information is used to determine the data leakage party.

[0140] In an optional embodiment, the conversion module 504 is further configured to:

[0141] The watermark conversion rule corresponding to the data reader is obtained, and the watermark information is converted into identification information; the identification information is converted using the watermark conversion rule to obtain the watermark character.

[0142] In an optional embodiment, the conversion module 504 is further configured to:

[0143] Determine the character conversion rule and the paragraph mark conversion rule included in the watermark conversion rule; convert the characters in the identification information based on the character conversion rule, and convert the paragraph marks in the identification information based on the paragraph mark conversion rule to obtain the watermark character corresponding to the identification information.

[0144] In an optional embodiment, the conversion module 504 is further configured to:

[0145] The combination information and position information of the watermark characters are determined based on the preset adding rule; the watermark characters are added to the data to be processed based on the combination information and the position information, and the target data is obtained and sent to the data reader.

[0146] In an optional embodiment, the conversion module 504 is further configured to:

[0147] Based on the combination information, the sub-characters included in the watermark character are combined to obtain at least one watermark character group; the adding positions corresponding to the at least one watermark character group are determined in the data to be processed according to the position information; the at least one watermark character group is added to the data to be processed according to the adding positions to obtain the target data and send it to the data reader.

[0148] In an optional embodiment, the adding module 506 is further configured to:

[0149] A watermark detection request for the target data is received, and the watermark characters to be detected are extracted from the target data; based on a watermark parsing rule corresponding to the watermark conversion rule, the watermark characters to be detected are parsed into watermark information to be detected; and by comparing the watermark information to be detected with the watermark information, a comparison result is obtained as a response to the watermark detection request.

[0150] In an optional embodiment, the adding module 506 is further configured to:

[0151] In the case that at least two data readers read the data to be operated and the data is leaked, a target watermark character is extracted from the leaked data to be operated; wherein the watermark added information corresponding to the data to be operated read by each data reader is different; and the data to be operated read by each data reader is generated based on the data to be processed;

[0152] Converting the target watermark character into target watermark information based on the watermark conversion rule;

[0153] A data leaking party is determined among at least two data readers based on the target watermark information.

[0154] In an optional embodiment, the adding module 506 is further configured to:

[0155] Determining watermark position information of the target watermark character in the leaked data to be operated;

[0156] A target data reader is determined based on the target watermark information and the watermark position information, and the target data reader is regarded as a data leakage party.

[0157] In an optional embodiment, the determining module 502 is further configured to:

[0158] In response to a connection request submitted by a data reader, watermark information and adding rules corresponding to the data reader are determined; the watermark information and the adding rules are recorded in a watermark recording table, and the watermark recording table is preset with the watermark conversion rules.

[0159] In summary, an embodiment of the present specification determines the watermark information corresponding to the data reader in response to the reading instruction of the data reader for the data to be processed; based on the watermark conversion rule corresponding to the data reader, the watermark information is converted into a watermark character; the watermark character is added to the data to be processed according to the preset adding rule, the target data is obtained and sent to the data reader; wherein the target data corresponds to the watermark adding information, and the watermark adding information is used to determine the data leakage party. When the data reader reads the data to be processed, the watermark information corresponding to the data reader is added to the data to be processed, thereby achieving the watermark adding target data for the data to be processed. Furthermore, in the event of a data leakage incident, the watermark adding information can be obtained by extracting and translating the watermark of the leaked data, and then the data leakage party of the leaked data can be determined based on the watermark adding information, thereby achieving the purpose of accurate tracing.

[0160] The above is a schematic scheme of a watermark adding device of this embodiment. It should be noted that the technical scheme of the watermark adding device and the technical scheme of the watermark adding method described above are of the same concept, and the details not described in detail in the technical scheme of the watermark adding device can be found in the description of the technical scheme of the watermark adding method described above.

[0161] See also Figure 6 , Figure 6 A flow chart of a data detection method provided according to an embodiment of the present specification is shown, which specifically includes the following steps.

[0162] Step 602: when at least two data readers read the target data and the target data is leaked, extract the target watermark character from the leaked target data; wherein the target data read by each data reader has different watermark adding information corresponding to it; and the target data read by each data reader is generated based on the watermark adding method;

[0163] Step 604: converting the target watermark character into target watermark information based on the watermark conversion rule;

[0164] Step 606: Determine a data leaking party among at least two data readers based on the target watermark information.

[0165] In actual applications, the data management platform serves as the data source, and data readers all read data on the data management platform. When at least two data readers read the target data and it is leaked, the target watermark characters are extracted from the leaked target data. Since the watermark information determined by the data management platform for each data reader is different, after the watermark information is converted into watermark characters, the watermark characters corresponding to each data reader are also different. That is, the watermark addition information corresponding to the target data read by each data reader is different, and the target data read by each data reader is generated based on the watermark addition method. The data management platform presets watermark conversion rules, and each data reader corresponds to the same watermark conversion rules. The target watermark characters are converted into target watermark information based on the watermark conversion rules. Based on the target watermark information, the data leaker can be determined from at least two data readers.

[0166] In summary, when at least two data readers read the target data and it is leaked, the target watermark characters are extracted from the leaked target data; wherein the target data read by each data reader corresponds to different watermark addition information; the target data read by each data reader is generated based on the watermark addition method; the target watermark characters are converted into target watermark information based on the watermark conversion rule; and the data leaking party is determined from at least two data readers based on the target watermark information. When a data leak occurs, the data leaking party corresponding to the target watermark information can be quickly determined by extracting the target watermark characters from the target data and converting the target watermark characters into the target watermark information. This reduces the impact of data leaks on data security.

[0167] Corresponding to the above method embodiment, this specification also provides a data detection device embodiment, Figure 7 FIG. 2 shows a schematic diagram of the structure of a data detection device provided by an embodiment of the present specification. Figure 7 As shown, the device comprises:

[0168] The extraction module 702 is configured to extract target watermark characters from the leaked target data when at least two data readers read the target data and the target data is leaked; wherein the watermarking information corresponding to the target data read by each data reader is different; and the target data read by each data reader is generated based on the watermarking method;

[0169] A conversion module 704, configured to convert the target watermark character into target watermark information based on the watermark conversion rule;

[0170] The determination module 706 is configured to determine a data leaking party among at least two data readers based on the target watermark information.

[0171] In summary, when at least two data readers read the target data and it is leaked, the target watermark characters are extracted from the leaked target data; wherein the target data read by each data reader corresponds to different watermark addition information; the target data read by each data reader is generated based on the watermark addition method; the target watermark characters are converted into target watermark information based on the watermark conversion rule; and the data leaking party is determined from at least two data readers based on the target watermark information. When a data leak occurs, the data leaking party corresponding to the target watermark information can be quickly determined by extracting the target watermark characters from the target data and converting the target watermark characters into the target watermark information. This reduces the impact of data leaks on data security.

[0172] The above is a schematic scheme of a data detection device of this embodiment. It should be noted that the technical scheme of the data detection device and the technical scheme of the above data detection method belong to the same concept, and the details not described in detail in the technical scheme of the data detection device can be referred to the description of the technical scheme of the above data detection method.

[0173] Figure 8 The block diagram of a computing device 800 according to an embodiment of the present specification is shown. The components of the computing device 800 include but are not limited to a memory 810 and a processor 820. The processor 820 is connected to the memory 810 via a bus 830, and a database 850 is used to store data.

[0174] The computing device 800 also includes an access device 840 that enables the computing device 800 to communicate via one or more networks 860. Examples of these networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet. The access device 840 may include one or more of any type of network interface (e.g., a network interface card (NIC)) that is wired or wireless, such as an IEEE 802.11 wireless local area network (WLAN) wireless interface, a world-wide interoperability for microwave access (Wi-MAX) interface, an Ethernet interface, a universal serial bus (USB) interface, a cellular network interface, a Bluetooth interface, and a near field communication (NFC).

[0175] In one embodiment of the present specification, the above components of the computing device 800 and Figure 8 Other components not shown in the figure may also be connected to each other, for example, via a bus. It should be understood that Figure 8 The computing device structure block diagram shown is only for the purpose of illustration, and is not intended to limit the scope of this specification. Those skilled in the art can add or replace other components as needed.

[0176] The computing device 800 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., a tablet computer, a personal digital assistant, a laptop computer, a notebook computer, a netbook, etc.), a mobile phone (e.g., a smart phone), a wearable computing device (e.g., a smart watch, smart glasses, etc.), or other types of mobile devices, or a stationary computing device such as a desktop computer or a personal computer (PC). The computing device 800 may also be a mobile or stationary server.

[0177] The processor 820 is used to execute the following computer executable instructions, which implement the steps of the above method when executed by the processor.

[0178] The above is a schematic scheme of a computing device of this embodiment. It should be noted that the technical scheme of the computing device and the technical scheme of the above method belong to the same concept, and the details not described in detail in the technical scheme of the computing device can be referred to the description of the technical scheme of the above method.

[0179] An embodiment of the present specification further provides a computer-readable storage medium storing computer-executable instructions, which can implement the steps of the above method when executed by a processor.

[0180] The above is a schematic scheme of a computer-readable storage medium of this embodiment. It should be noted that the technical scheme of the storage medium and the technical scheme of the above method belong to the same concept, and the details not described in detail in the technical scheme of the storage medium can be referred to the description of the technical scheme of the above method.

[0181] An embodiment of the present specification further provides a computer program, wherein when the computer program is executed in a computer, the computer is caused to execute the steps of the above method.

[0182] The above is an illustrative solution of a computer program of this embodiment. It should be noted that the technical solution of the computer program and the technical solution of the above method belong to the same concept, and the details not described in detail in the technical solution of the computer program can be referred to the description of the technical solution of the above method.

[0183] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0184] The computer instructions include computer program codes, which may be in source code form, object code form, executable files or some intermediate forms, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium may be appropriately increased or decreased according to the requirements of patent practice. For example, in some regions, according to patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0185] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the embodiments of this specification are not limited by the order of the actions described, because according to the embodiments of this specification, some 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 and modules involved are not necessarily required by the embodiments of this specification.

[0186] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0187] The preferred embodiments of this specification disclosed above are only used to help explain this specification. The optional embodiments do not describe all the details in detail, nor do they limit the invention to only the specific implementation methods described. Obviously, many modifications and changes can be made according to the content of the embodiments of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the embodiments of this specification, so that technicians in the relevant technical field can well understand and use this specification. This specification is only limited by the claims and their full scope and equivalents.

Claims

1. A watermark adding method, comprising: In response to a read instruction of the data to be processed by the data reader, determining watermark information corresponding to the data reader; Based on the watermark conversion rule corresponding to the data reader, convert the watermark information into watermark characters; Add the watermark character to the data to be processed according to a preset adding rule, obtain the target data and send it to the data reader; The target data corresponds to watermark adding information, and the watermark adding information is used to determine the data leakage party.

2. The watermark adding method according to claim 1, wherein the watermark information is converted into watermark characters based on the watermark conversion rule corresponding to the data reader, comprising: Acquire a watermark conversion rule corresponding to the data reader, and convert the watermark information into identification information; The identification information is converted using the watermark conversion rule to obtain watermark characters.

3. The watermark adding method according to claim 2, wherein the step of converting the identification information using the watermark conversion rule to obtain the watermark character comprises: Determining a character conversion rule and a paragraph break conversion rule included in the watermark conversion rule; The characters in the identification information are converted based on the character conversion rule, and the paragraph marks in the identification information are converted based on the paragraph mark conversion rule to obtain a watermark character corresponding to the identification information.

4. The watermark adding method according to claim 1, wherein the watermark character is added to the data to be processed according to a preset adding rule, and the target data is obtained and sent to the data reader, comprising: Determine the combination information and position information of the watermark characters based on the preset adding rule; The watermark character is added to the data to be processed based on the combination information and the position information, and the target data is obtained and sent to the data reader.

5. The watermark adding method according to claim 4, wherein the step of adding the watermark character to the data to be processed based on the combination information and the position information, obtaining the target data and sending the target data to the data reader comprises: Combining the sub-characters contained in the watermark character based on the combination information to obtain at least one watermark character group; Determining, based on the position information, the adding positions respectively corresponding to the at least one watermark character group in the data to be processed; The at least one watermark character group is added to the data to be processed respectively according to the adding position, and the target data is obtained and sent to the data reader.

6. The watermark adding method according to claim 1, after adding the watermark character to the data to be processed according to a preset adding rule, obtaining the target data and sending it to the data reader, further comprises: Receiving a watermark detection request for the target data, and extracting a watermark character to be detected from the target data; Parsing the to-be-detected watermark character into to-be-detected watermark information based on a watermark parsing rule corresponding to the watermark conversion rule; By comparing the watermark information to be detected with the watermark information, a comparison result is obtained as a response to the watermark detection request.

7. The watermark adding method according to claim 1, further comprising: In the case that at least two data readers read the data to be operated and the data is leaked, a target watermark character is extracted from the leaked data to be operated; wherein the watermark added information corresponding to the data to be operated read by each data reader is different; and the data to be operated read by each data reader is generated based on the data to be processed; Converting the target watermark character into target watermark information based on the watermark conversion rule; A data leaking party is determined among at least two data readers based on the target watermark information.

8. The watermark adding method according to claim 7, after converting the target watermark characters into target watermark information based on the watermark conversion rule, further comprising: Determining watermark position information of the target watermark character in the leaked data to be operated; A target data reader is determined based on the target watermark information and the watermark position information, and the target data reader is regarded as a data leakage party.

9. The watermark adding method according to claim 1, before determining the watermark information corresponding to the data reader in response to the reading instruction of the data reader to be processed, the method further comprises: In response to a connection request submitted by a data reader, determining watermark information and adding rules corresponding to the data reader; The watermark information and the adding rule are recorded in a watermark recording table, and the watermark recording table is preset with the watermark conversion rule.

10. A watermark adding device, comprising: A determination module, configured to determine watermark information corresponding to the data reader in response to a read instruction of the data to be processed by the data reader; A conversion module, configured to convert the watermark information into watermark characters based on a watermark conversion rule corresponding to the data reader; The adding module is configured to add the watermark character to the data to be processed according to a preset adding rule, obtain the target data and send it to the data reader; wherein the target data corresponds to the watermark adding information, and the watermark adding information is used to determine the data leakage party.

11. A data detection method, comprising: In the case where at least two data readers read the target data and the target data is leaked, extracting the target watermark character from the leaked target data; wherein the watermark added information corresponding to the target data read by each data reader is different; the target data read by each data reader is generated based on the method according to any one of claims 1 to 9; Converting the target watermark character into target watermark information based on the watermark conversion rule; A data leaking party is determined among at least two data readers based on the target watermark information.

12. A computing device comprising: Memory and processor; The memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions. When the computer-executable instructions are executed by the processor, the steps of the method described in any one of claims 1 to 9 or 11 are implemented.

13. A computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the steps of the method described in any one of claims 1 to 9 or 11.

Citation Information

Patent Citations

  • Text watermark embedding and extracting method and device, electronic equipment and storage medium

    CN107330306A

  • Method for tracing text type data

    CN110222479A

  • Digital text watermark embedding and detecting method and device

    CN110322386A

  • Watermark embedding and detecting method and device

    CN110457873A

  • Data protection method, device and equipment and storage medium

    CN112685695A