Semantics-based watermark adding method and device

CN115731087BActive Publication Date: 2026-10-30SHANGHAI GUAN AN INFORMATION TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211480816.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-24
Publication Date
2026-10-30
Estimated Expiration
2042-11-24

AI Technical Summary

Technical Problem

[0003]传统的数据水印技术有字符替换与添加不可见字符两种,对于字符替换会改变原始数据,这会影响水印后数据的业务功能;对于不可见字符,不少编辑器还是可以看到空格甚至类似方框的符号,容易被删除

Benefits of technology

[0016]上述技术方案具有如下有益效果:通过将水印信息隐藏于数据语义中,虽然后改变数据内容,但是不会影响数据的语义,从而不会影响后续的业务功能;添加的内容并没有改变数据的语义,这样水印信息很难被发现而被删掉,存在很强的鲁棒性。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115731087B_ABST
    Figure CN115731087B_ABST
Patent Text Reader

Abstract

The embodiment of the application discloses a watermark adding method and device based on semantics, wherein the method comprises the following steps: acquiring a watermark code and a mobile phone number to be added with watermark in real time; calculating corresponding watermark information according to the mobile phone number to be added with watermark and the watermark code; wherein the watermark information is a area code; adding the watermark information to the front end of the mobile phone number to be added with watermark to obtain a mobile phone number added with watermark. By hiding the watermark information in the data semantics, although the data content is changed, the data semantics is not affected, so that the subsequent business function is not affected; the added content does not change the data semantics, so that the watermark information is difficult to be found and deleted, and strong robustness is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of data security, and in particular to a semantic-based watermarking method and apparatus. Background Technology

[0002] With the introduction of the Data Security Protection Law, major enterprises are paying more and more attention to data security and watermarking traceability technology.

[0003] Traditional data watermarking techniques include character replacement and adding invisible characters. Character replacement changes the original data, which affects the business functionality of the watermarked data. As for invisible characters, many editors still show spaces or even square-like symbols, which are easily deleted.

[0004] There is currently no effective solution to the problem that watermarks in existing technologies affect the semantics of data or are easily discovered and deleted. Summary of the Invention

[0005] To address the aforementioned issues, this invention provides a semantic-based watermarking method. By using a watermark code and the corresponding mobile phone number to be watermarked, the corresponding watermark information is calculated. Since the watermark information is an area code, it does not affect the semantics of the data. Furthermore, the area code is difficult to detect as a watermark and thus cannot be deleted. This solves the problem in existing technologies where watermarks affect the semantics of the data or are easily detected and deleted.

[0006] To achieve the above objectives, embodiments of the present invention provide a semantic-based watermarking method, comprising: acquiring a watermark code and a mobile phone number to be watermarked in real time; calculating corresponding watermark information based on the mobile phone number to be watermarked and the watermark code; and adding the watermark information to the front end of the corresponding mobile phone number to be watermarked to obtain a watermarked mobile phone number.

[0007] Further optionally, the real-time acquisition of the watermark code includes: randomly generating a 15-character string; mapping each character in the string to an operator to obtain the watermark code.

[0008] Optionally, the step of calculating the corresponding watermark information based on the mobile phone number to be watermarked and the watermark code includes: performing MD5 encryption on the mobile phone number to be watermarked to obtain 32-bit hexadecimal characters; extracting 16 consecutive hexadecimal characters from the 32-bit hexadecimal characters and converting them into 16-bit decimal characters; using the first and second decimal characters of the 16-bit decimal characters and the operator corresponding to the first character of the watermark code to calculate a first calculation result; using the first calculation result and the third decimal character of the 16-bit decimal characters and the operator corresponding to the second character of the watermark code to calculate a second calculation result, and so on, until all 16 decimal characters have been calculated to obtain a final calculation result; taking the remainder of the final calculation result divided by 4 to obtain a remainder; and determining the watermark information based on the value of the remainder.

[0009] Further optionally, each character in the 15-bit string is 0, 1, or 2; wherein 0 is mapped to the plus sign; 1 is mapped to the minus sign; and 2 is mapped to the multiplication sign.

[0010] Further optionally, determining the watermark information based on the value of the remainder includes: if the remainder is 0, then the watermark information is determined to be 086; if the remainder is 1, then the watermark information is determined to be +86; if the remainder is 2, then the watermark information is determined to be (86); if the remainder is 3, then the watermark information is determined to be empty.

[0011] On the other hand, embodiments of the present invention also provide a semantic-based watermarking device, comprising: a data acquisition module for acquiring a watermark code and a mobile phone number to be watermarked in real time; a watermark information generation module for calculating corresponding watermark information based on the mobile phone number to be watermarked and the watermark code; and a watermarking module for adding the watermark information to the front end of the corresponding mobile phone number to be watermarked, thereby obtaining a watermarked mobile phone number.

[0012] Further optionally, the data acquisition module includes: a string generation submodule for randomly generating a 15-character string; and a mapping establishment submodule for mapping each character in the string to an operator to obtain the watermark code.

[0013] Further optionally, the watermark information generation module includes: an encryption submodule, used to perform MD5 encryption on the mobile phone number to be watermarked to obtain 32-bit hexadecimal characters; a base conversion submodule, used to extract 16 consecutive hexadecimal characters from the 32-bit hexadecimal characters and convert the 16-bit hexadecimal characters into 16-bit decimal characters; a comprehensive calculation submodule, used to calculate a first calculation result by using the first decimal character and the second decimal character of the 16-bit decimal characters with the operator corresponding to the first character of the watermark code, and then calculate a second calculation result by using the first calculation result and the third decimal character of the 16-bit decimal characters with the operator corresponding to the second character of the watermark code, and so on, until all 16 decimal characters have been calculated to obtain a final calculation result; a remainder submodule, used to take the remainder of the final calculation result divided by 4 to obtain a remainder; and a watermark information determination submodule, used to determine the watermark information based on the value of the remainder.

[0014] Further optionally, each character in the 15-bit string is 0, 1, or 2; wherein 0 is mapped to the plus sign; 1 is mapped to the minus sign; and 2 is mapped to the multiplication sign.

[0015] Further optionally, the watermark information determination submodule includes: a first watermark information determination unit, used to determine the watermark information as 086 if the remainder is 0; a second watermark information determination unit, used to determine the watermark information as +86 if the remainder is 1; a third watermark information determination unit, used to determine the watermark information as (86) if the remainder is 2; and a fourth watermark information determination unit, used to determine the watermark information as empty if the remainder is 3.

[0016] The above technical solution has the following beneficial effects: by hiding the watermark information in the data semantics, although the data content is changed later, the semantics of the data will not be affected, and thus the subsequent business functions will not be affected; the added content does not change the semantics of the data, so the watermark information is difficult to be discovered and deleted, and it has strong robustness. Attached Figure Description

[0017] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0018] Figure 1 This is a flowchart of the semantic-based watermarking method provided in an embodiment of the present invention;

[0019] Figure 2 This is a flowchart of the watermark code generation method provided in the embodiments of the present invention;

[0020] Figure 3 This is a flowchart of the watermark information generation method provided in the embodiments of the present invention;

[0021] Figure 4 This is a flowchart of the watermark information determination method provided in the embodiments of the present invention;

[0022] Figure 5 This is a schematic diagram of the semantic-based watermarking device provided in an embodiment of the present invention;

[0023] Figure 6 This is a schematic diagram of the structure of the data acquisition module provided in an embodiment of the present invention;

[0024] Figure 7 This is a schematic diagram of the structure of the watermark information generation module provided in an embodiment of the present invention;

[0025] Figure 8 This is a schematic diagram of the structure of the watermark information determination submodule provided in an embodiment of the present invention.

[0026] Reference numerals: 100-Data acquisition module; 1001-String generation submodule; 1002-Mapping establishment submodule; 200-Watermark information generation module; 2001-Encryption submodule; 2002-Number base conversion submodule; 2003-Comprehensive calculation submodule; 2004-Modality submodule; 2005-Watermark information determination submodule; 20051-First watermark information determination unit; 20052-Second watermark information determination unit; 20053-Third watermark information determination unit; 20054-Fourth watermark information determination unit; 300-Watermark addition module. Detailed Implementation

[0027] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0028] To address the issues in existing technologies where watermarking affects data semantics or is easily detected and deleted, this invention provides a semantic-based watermarking method. Figure 1 This is a flowchart of a semantic-based watermarking method provided in an embodiment of the present invention, such as... Figure 1 As shown, the method includes:

[0029] S1. Real-time acquisition of watermark codes and mobile phone numbers to be watermarked;

[0030] The watermark code is a string of numbers used to generate encrypted watermark information. Each generated watermark code can be recorded. The watermark code is regenerated at predetermined intervals, the interval of which can be determined based on specific circumstances; alternatively, it can be regenerated before each calculation begins.

[0031] The phone number to be watermarked consists of 11 digits, excluding the area code before the phone number.

[0032] S2. Calculate the corresponding watermark information based on the mobile phone number to be watermarked and the watermark code; where the watermark information is the area code;

[0033] The numerical string of the watermark code and the numerical string to be watermarked are encrypted and calculated. The calculation result is converted into the area code of the mobile phone number, which is used as the watermark information corresponding to the mobile phone number to be watermarked.

[0034] In this embodiment, taking domestic area codes as an example, the watermark information may be 086, +86, or (86).

[0035] S3. Add the watermark information to the front of the corresponding mobile phone number to be watermarked, and get the watermarked mobile phone number.

[0036] The watermark information is concatenated with the phone number to which the watermark is to be added, that is, the area code is added to the beginning of the phone number. In this way, the watermark information is added to the phone number, and the watermarked phone number is obtained.

[0037] Regarding the tracing of watermarked phone numbers, unlike general tracing algorithms that can directly extract tracing information from the watermarked data, this watermarking algorithm uses a verification method for tracing.

[0038] Specifically, after the previous data was watermarked, the watermark codes were stored. During the traceability process, all watermark codes were retrieved first, and then the batch of watermarked data was verified and matched in turn. The watermark information that completely matched or had the highest matching rate was the traceability result.

[0039] As an optional implementation method, Figure 2 This is a flowchart of the watermark code generation method provided in the embodiments of the present invention, such as... Figure 2 As shown, real-time acquisition of watermark codes includes:

[0040] S101. Randomly generate a 15-character string;

[0041] S102. Map each character in the string to an operator to obtain the watermark code.

[0042] A 15-character string is generated using a random algorithm, where each character is a number. Each number in the string is mapped to an operator, resulting in a 15-character watermark code.

[0043] As an optional implementation method, Figure 3 This is a flowchart of the watermark information generation method provided in the embodiments of the present invention, such as... Figure 3 As shown, the corresponding watermark information is calculated based on the phone number to be watermarked and the watermark code, including:

[0044] S201. Encrypt the phone number to be watermarked using the MD5 algorithm to obtain a 32-bit hexadecimal character set.

[0045] The phone number to be watermarked consists of 11 digits. The MD5 encryption algorithm is applied to the 11-digit phone number to be watermarked, converting the 11-digit phone number into 32-digit hexadecimal characters.

[0046] S202. Extract 16 consecutive hexadecimal characters from the 32-bit hexadecimal characters and convert the 16-bit hexadecimal characters into 16-bit decimal characters.

[0047] Extract a contiguous 16-bit hexadecimal character from a 32-bit hexadecimal character set. For example, extract the 16-bit hexadecimal character set from the 8th to the 23rd position.

[0048] Convert the 16-bit hexadecimal character to decimal, and you will get a 16-bit decimal character.

[0049] S203. The first and second decimal characters of the 16-bit decimal character set are used to calculate the result using the operator corresponding to the first character of the watermark code. The first result is then used to calculate the result using the third decimal character of the 16-bit decimal character set and the operator corresponding to the second character of the watermark code. The second result is then calculated using the operator corresponding to the second character of the watermark code. This process is repeated until all 16 decimal characters have been calculated, resulting in the final result.

[0050] The 16-bit decimal character is calculated bit by bit using the operators in the 15-bit watermark code to obtain the final result.

[0051] As an optional embodiment, each character in the 15-bit string is 0, 1, or 2; where 0 is mapped to the plus sign; 1 is mapped to the minus sign; and 2 is mapped to the multiplication sign.

[0052] In this embodiment, each bit of the watermark code is one of 0, 1, or 2. The watermark code must be generated strictly according to this rule, and the subsequent watermarking algorithm is strongly related to the watermark code. 0 corresponds to the "+" operator, 1 corresponds to the "+" operator, and 2 corresponds to the "*" operator.

[0053] Thus, the above calculation, which involves processing each 16-bit decimal character using operators from the 15-bit watermark code, can be represented as follows:

[0054] The 16-bit decimal character set is: 4231256432561223;

[0055] The 15-digit watermark code is: 011211001100001

[0056] The final calculation result can be expressed as:

[0057] (4+2-3-1)*2-5-6+4+3-2-5+6+1+2+2-3=1

[0058] S204. Take the remainder when the final calculation result is divided by 4.

[0059] Take the remainder when the final calculation result is divided by 4 to obtain the remainder for each phone number to be watermarked.

[0060] S205. Determine the watermark information based on the value of the remainder.

[0061] The remainder can be 0, 1, 2 or 3, and each value corresponds to different watermark information, that is, different ways of representing the area code.

[0062] As an optional implementation method, Figure 4 This is a flowchart of the watermark information determination method provided in the embodiments of the present invention, such as... Figure 4 As shown, the watermark information determined based on the remainder value includes:

[0063] S2051. If the remainder is 0, then the watermark information is determined to be 086;

[0064] S2052. If the remainder is 1, then the watermark information is determined to be +86;

[0065] S2053. If the remainder is 2, then the watermark information is determined to be (86);

[0066] S2054. If the remainder is 3, then the watermark information is determined to be empty.

[0067] Taking the mobile phone number 13832565873 as an example, if the remainder when divided by 4 is 0, then its watermarked value is 08613832565873.

[0068] If the remainder when divided by 4 is 1, then the watermarked result is +8613832565873.

[0069] If the remainder when divided by 4 is 2, then the result after watermarking is (86)13832565873;

[0070] If the remainder when divided by 4 is 3, then the result after watermarking is still 13832565873.

[0071] The effect of adding watermark information to a phone number is shown below, where Phone is the phone number to be watermarked, and waterPhone is the phone number already watermarked:

[0072] phone: 13852505898 waterPhone: 13852505898

[0073] phone: 13847105920 waterPhone: 13847105920

[0074] phone: 13895819876 waterPhone: 13895819876

[0075] phone: 13830470462 waterPhone: 13830470462

[0076] phone: 13823906369 waterPhone: +8613823906369

[0077] phone: 13856035148 waterPhone: (86)13856035148

[0078] phone:13863560359 waterPhone: (86)13863560359

[0079] phone: 13813883417 waterPhone: 13815883417

[0080] phone:13826966650 waterPhone: (86)13826966650

[0081] phone:13882629599 waterPhone: (86)13882629599

[0082] phone: 13828766010 waterPhone: 13828766010

[0083] phone:13860736780 waterPhone: (86)13860736780

[0084] phone: 13825292946 waterPhone: 08613825292946

[0085] phone: 13882167323 waterPhone: +8613882167323

[0086] phone: 13896060518 waterPhone: 08613896060518

[0087] phone: 13839653341 waterPhone: 13839653341

[0088] phone: 13813445483 waterPhone: +8613813445483

[0089] phone: 13854665740 waterPhone: +8613854665740

[0090] phone: 13882458457 waterPhone: (86)13882458457

[0091] phone: 13881934503 waterPhone: 08613881934503

[0092] This invention also provides a semantic-based watermarking device. Figure 5 This is a schematic diagram of the semantic-based watermarking device provided in an embodiment of the present invention, as shown below. Figure 5 As shown, the device includes:

[0093] Data acquisition module 100 is used to acquire watermark codes and mobile phone numbers to be watermarked in real time;

[0094] The watermark code is a string of numbers used to generate the encrypted watermark information. The watermark code is regenerated at predetermined intervals, the intervals of which can be determined based on specific circumstances; alternatively, it can be regenerated before each calculation begins.

[0095] The phone number to be watermarked consists of 11 digits, excluding the area code before the phone number.

[0096] The watermark information generation module 200 is used to calculate the corresponding watermark information based on the mobile phone number to be watermarked and the watermark code; wherein, the watermark information is the area code;

[0097] The numerical string of the watermark code and the numerical string to be watermarked are encrypted and calculated. The calculation result is converted into the area code of the mobile phone number, which is used as the watermark information corresponding to the mobile phone number to be watermarked.

[0098] In this embodiment, taking domestic area codes as an example, the watermark information may be 086, +86, or (86).

[0099] The watermark adding module 300 is used to add watermark information to the front end of the corresponding mobile phone number to be watermarked, so as to obtain the watermarked mobile phone number.

[0100] The watermark information is concatenated with the phone number to which the watermark is to be added, that is, the area code is added to the beginning of the phone number. In this way, the watermark information is added to the phone number, and the watermarked phone number is obtained.

[0101] Regarding the tracing of watermarked phone numbers, unlike general tracing algorithms that can directly extract tracing information from the watermarked data, this watermarking algorithm uses a verification method for tracing.

[0102] Specifically, after the previous data was watermarked, the watermark codes were stored. During the traceability process, all watermark codes were retrieved first, and then the batch of watermarked data was verified and matched in turn. The watermark information that completely matched or had the highest matching rate was the traceability result.

[0103] As an optional implementation method, Figure 6 This is a schematic diagram of the structure of the data acquisition module provided in an embodiment of the present invention, as shown below. Figure 6 As shown, the data acquisition module 100 includes:

[0104] The string generation submodule 1001 is used to randomly generate a 15-character string;

[0105] The mapping submodule 1002 is used to map each character in the string to an operator to obtain the watermark code.

[0106] A 15-character string is generated using a random algorithm, where each character is a number. Each number in the string is mapped to an operator, resulting in a 15-character watermark code.

[0107] As an optional implementation method, Figure 7 This is a schematic diagram of the watermark information generation module provided in an embodiment of the present invention, as shown below. Figure 7 As shown, the watermark information generation module 200 includes:

[0108] Encryption submodule 2001 is used to perform MD5 encryption on the mobile phone number to be watermarked, resulting in 32-bit hexadecimal characters;

[0109] The phone number to be watermarked consists of 11 digits. The MD5 encryption algorithm is applied to the 11-digit phone number to be watermarked, converting the 11-digit phone number into 32-digit hexadecimal characters.

[0110] The base conversion submodule 2002 is used to extract 16 consecutive hexadecimal characters from a 32-bit hexadecimal character set and convert the 16-bit hexadecimal characters into 16-bit decimal characters.

[0111] Extract a contiguous 16-bit hexadecimal character from a 32-bit hexadecimal character set. For example, extract the 16-bit hexadecimal character set from the 8th to the 23rd position.

[0112] Convert the 16-bit hexadecimal character to decimal, and you will get a 16-bit decimal character.

[0113] The comprehensive calculation submodule 2003 is used to calculate the first calculation result by using the first and second decimal characters of the 16-bit decimal characters and the operator corresponding to the first character in the watermark code. The first calculation result is then used to calculate the second calculation result by using the third decimal character of the 16-bit decimal characters and the operator corresponding to the second character in the watermark code. This process continues until all 16 decimal characters have been calculated, resulting in the final calculation result.

[0114] The 16-bit decimal character is calculated bit by bit using the operators in the 15-bit watermark code to obtain the final result.

[0115] As an optional embodiment, each character in the 15-bit string is 0, 1, or 2; where 0 is mapped to the plus sign; 1 is mapped to the minus sign; and 2 is mapped to the multiplication sign.

[0116] In this embodiment, each bit of the watermark code is one of 0, 1, or 2. The watermark code must be generated strictly according to this rule, and the subsequent watermarking algorithm is strongly related to the watermark code. 0 corresponds to the "+" operator, 1 corresponds to the "+" operator, and 2 corresponds to the "*" operator.

[0117] Thus, the above calculation, which involves processing each 16-bit decimal character using operators from the 15-bit watermark code, can be represented as follows:

[0118] The 16-bit decimal character set is: 4231256432561223;

[0119] The 15-digit watermark code is: 011211001100001

[0120] The final calculation result can be expressed as:

[0121] (4+2-3-1)*2-5-6+4+3-2-5+6+1+2+2-3=1

[0122] The remainder submodule 2004 is used to take the remainder when the final calculation result is divided by 4.

[0123] Take the remainder when the final calculation result is divided by 4 to obtain the remainder for each phone number to be watermarked.

[0124] The Watermark Information Determination Submodule 2005 is used to determine the watermark information based on the value of the remainder.

[0125] The remainder can be 0, 1, 2 or 3, and each value corresponds to different watermark information, that is, different ways of representing the area code.

[0126] As an optional implementation method, Figure 8 This is a structural diagram of the watermark information determination submodule provided in an embodiment of the present invention, as shown below. Figure 8 As shown, the watermark information determination submodule 2005 includes:

[0127] The first watermark information determination unit 20051 is used to determine the watermark information as 086 if the remainder is 0;

[0128] The second watermark information determination unit 20052 is used to determine the watermark information as +86 if the remainder is 1.

[0129] The third watermark information determination unit 20053 is used to determine the watermark information as (86) if the remainder is 2;

[0130] The fourth watermark information determination unit 20054 is used to determine that the watermark information is empty if the remainder is 3.

[0131] For example, if the remainder when the mobile phone number is divided by 4 is 0, then the watermarked number will be 08613832565873.

[0132] If the remainder when divided by 4 is 1, then the watermarked result is +8613832565873.

[0133] If the remainder when divided by 4 is 2, then the result after watermarking is (86)13832565873;

[0134] If the remainder when divided by 4 is 3, then the result after watermarking is still 13832565873.

[0135] The above technical solution has the following beneficial effects: by hiding the watermark information in the data semantics, although the data content is changed later, the semantics of the data will not be affected, thus not affecting subsequent business functions; the added content does not change the semantics of the data, so the watermark information is difficult to be discovered and deleted, and has strong robustness.

[0136] The above-described specific embodiments of the invention further illustrate the purpose, technical solution, and beneficial effects of the invention. It should be understood that the above content is only for specific embodiments of the invention and is not intended to limit the scope of protection of the invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the invention should be included within the scope of protection of the invention.

Claims

1. A semantic-based watermarking method, characterized in that, include: The system acquires watermark codes and phone numbers to be watermarked in real time. The real-time acquisition of watermark codes includes: randomly generating a 15-character string; mapping each character in the string to an operator to obtain the watermark code. Calculate the corresponding watermark information based on the mobile phone number to be watermarked and the watermark code; wherein, the watermark information is the area code; the calculation of the corresponding watermark information based on the mobile phone number to be watermarked and the watermark code includes: performing MD5 encryption on the mobile phone number to be watermarked to obtain 32-bit hexadecimal characters; extracting 16 consecutive hexadecimal characters from the 32-bit hexadecimal characters and converting the 16-bit hexadecimal characters into 16-bit decimal characters; using the first and second decimal characters of the 16-bit decimal characters and the operator corresponding to the first character of the watermark code to calculate, obtaining a first calculation result; using the first calculation result and the third decimal character of the 16-bit decimal characters and the operator corresponding to the second character of the watermark code to calculate, obtaining a second calculation result, and so on, until all 16 decimal characters have been calculated, obtaining a final calculation result; taking the remainder of the final calculation result divided by 4 to obtain the remainder; determining the watermark information based on the value of the remainder; The watermark information is added to the front of the corresponding mobile phone number to be watermarked, thus obtaining the watermarked mobile phone number.

2. The semantic-based watermarking method according to claim 1, characterized in that: Each character in the 15-character string is 0, 1, or 2; Among them, 0 is mapped to the plus sign; 1 is mapped to the minus sign; and 2 is mapped to the multiplication sign.

3. The semantic-based watermarking method according to claim 1, characterized in that, Determining the watermark information based on the value of the remainder includes: If the remainder is 0, then the watermark information is determined to be 086; If the remainder is 1, then the watermark information is determined to be +86; If the remainder is 2, then the watermark information is determined to be (86); If the remainder is 3, then the watermark information is determined to be empty.

4. A semantic-based watermarking device, characterized in that, include: A data acquisition module is used to acquire watermark codes and mobile phone numbers to be watermarked in real time; wherein, the data acquisition module includes: a string generation submodule, used to randomly generate a 15-character string; and a mapping establishment submodule, used to establish a mapping between each character in the string and an operator to obtain the watermark code; The watermark information generation module is used to calculate the corresponding watermark information based on the mobile phone number to be watermarked and the watermark code; wherein, the watermark information is an area code; the watermark information generation module includes: an encryption submodule, used to perform MD5 encryption on the mobile phone number to be watermarked to obtain 32-bit hexadecimal characters; a base conversion submodule, used to extract 16 consecutive hexadecimal characters from the 32-bit hexadecimal characters and convert the 16-bit hexadecimal characters into 16-bit decimal characters; and a comprehensive calculation submodule, used to use the first digit of the 16-bit decimal characters. The decimal character and the second decimal character are calculated using the operator corresponding to the first character in the watermark code to obtain a first calculation result. The first calculation result is then calculated using the third decimal character in the 16-digit decimal character set and the operator corresponding to the second character in the watermark code to obtain a second calculation result. This process is repeated until all 16 decimal characters have been calculated to obtain the final calculation result. A remainder submodule is used to take the remainder of the final calculation result divided by 4 to obtain a remainder. A watermark information determination submodule is used to determine the watermark information based on the value of the remainder. The watermark adding module is used to add the watermark information to the front end of the corresponding mobile phone number to be watermarked, so as to obtain the watermarked mobile phone number.

5. The semantic-based watermarking device according to claim 4, characterized in that: Each character in the 15-character string is 0, 1, or 2; Among them, 0 is mapped to the plus sign; 1 is mapped to the minus sign; and 2 is mapped to the multiplication sign.

6. The semantic-based watermarking device according to claim 4, characterized in that, The watermark information determination submodule includes: The first watermark information determining unit is used to determine the watermark information as 086 if the remainder is 0. The second watermark information determining unit is used to determine the watermark information as +86 if the remainder is 1. The third watermark information determination unit is used to determine the watermark information as (86) if the remainder is 2. The fourth watermark information determination unit is used to determine that the watermark information is empty if the remainder is 3.

Citation Information

Patent Citations

  • Mobile phone number implicit data watermarking method capable of tracing information and having MD5 features

    CN113536247A

  • Data watermark generation method and device and data tracing method and device

    CN114186252A