Watermark generation method and device, equipment, medium and program product

By mapping Chinese characters into strings and converting them into invisible encoded code values, the problems of insufficient watermark capacity and low Chinese information processing capabilities in digital watermark technology are solved, and more efficient data protection and traceability support are achieved.

CN119168837APending Publication Date: 2024-12-20CHINA CONSTRUCTION BANK +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411191536.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-28
Publication Date
2024-12-20

AI Technical Summary

Technical Problem

In practice, existing digital watermarking technology faces the problems of limited watermark capacity and insufficient Chinese information processing capabilities, and it is difficult to meet the application needs of large-scale data protection and Chinese environment.

Method used

By mapping each Chinese character into a unique string composed of multiple characters and converting the string into an invisible control code value in the encoding table, watermark ciphertext information is generated, the watermark capacity is expanded and the watermark is improved Chinese information processing capability.

Benefits of technology

It significantly improves the watermark capacity and Chinese information processing capabilities, ensures the concealment and security of watermark information, and provides stronger support for data protection and traceability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119168837A_ABST
    Figure CN119168837A_ABST
Patent Text Reader

Abstract

The invention discloses a watermark generation method and device, equipment, a medium and a program product, and is applied to the technical field of big data. The method comprises the steps of obtaining information of a watermark plaintext; in a preset corresponding relation between the Chinese characters and character strings, target character strings corresponding to all the Chinese characters in the watermark plaintext are obtained, and each character string is formed by arranging N characters in sequence; obtaining a target control type coding code value corresponding to each character in the target character string in a preset corresponding relationship between the characters and the control type coding code values; splicing the N target control type coding code values corresponding to the target character string to obtain a coding code value sequence corresponding to each Chinese character in the watermark plaintext; and splicing the coding code value sequence according to the arrangement sequence of the Chinese characters in the watermark plaintext to obtain information of the watermark ciphertext. According to the embodiment of the invention, the watermark capacity can be increased, and the Chinese information processing capability can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of big data technology, and in particular relates to a watermark generation method, device, equipment, medium and program product. Background Art

[0002] With the surge in demand for data sharing, how to effectively protect data, protect personal information, and how to effectively control data sharing are issues that need to be urgently addressed in data circulation. With the development of science and technology, the targets that need to be protected have been transformed from physical entities to digital carriers, and the purpose of protection has also been extended from authenticity identification to more complex data traceability.

[0003] Digital watermarking is a technology that embeds specific information into carrier data in a hidden way. This embedding method makes the watermark information difficult to detect and remove during data sharing. Once data is leaked, the original manager of the data can be quickly traced back by extracting the watermark information from the leaked data, providing a strong basis for accountability for data leaks.

[0004] However, existing digital watermarking technology still faces many challenges in practice, the most notable of which are the limited watermark capacity and insufficient Chinese information processing capabilities. Summary of the invention

[0005] The embodiments of the present application provide a watermark generation method, device, equipment, medium and program product, which solve the problems of limited watermark capacity and insufficient Chinese information processing capability in existing digital watermark technology.

[0006] In a first aspect, an embodiment of the present application provides a method for generating a watermark, comprising:

[0007] Get the watermark plaintext information;

[0008] In the preset correspondence between Chinese characters and character strings, the target character string corresponding to each Chinese character in the watermark plaintext is obtained respectively, wherein the character string is composed of N characters arranged in sequence, and N is an integer greater than or equal to 1;

[0009] In the preset correspondence between characters and control class code values, the target control class code value corresponding to each character in the target character string is obtained, wherein the control class code value corresponds to the control class code that is invisible in the code table;

[0010] The N target control class encoding code values ​​corresponding to the target character string are concatenated to obtain the encoding code value sequence corresponding to each Chinese character in the watermark plaintext;

[0011] The encoded code value sequence is concatenated according to the arrangement order of Chinese characters in the watermark plaintext to obtain the watermark ciphertext information.

[0012] In a possible embodiment of the first aspect, the watermark plain text information includes at least one of information of a processor, information of an owner, information of a user, information of a usage time, and information of a user.

[0013] In a possible embodiment of the first aspect, N is 4, and the characters include Arabic numerals.

[0014] In a possible embodiment of the first aspect, the present invention further includes:

[0015] Get the original carrier data;

[0016] The watermark ciphertext information is added to the preset position of the original carrier data to obtain the target data.

[0017] In a possible embodiment of the first aspect, the present invention further includes:

[0018] Get target data;

[0019] At a preset position of the target data, obtain information of the watermark ciphertext;

[0020] Decrypt the watermark ciphertext information to obtain the watermark plaintext information corresponding to the watermark ciphertext.

[0021] In a possible embodiment of the first aspect, decrypting the watermark ciphertext information to obtain the watermark plaintext information corresponding to the watermark ciphertext includes:

[0022] Decomposing the watermark ciphertext into multiple coding code value sequences, the coding code value sequence includes N control-type coding code values;

[0023] In the correspondence between the preset characters and the control-type code values, obtain N target characters corresponding to the N control-type code values ​​in the code value sequence;

[0024] Concatenate N target characters to obtain the target string;

[0025] In the preset correspondence between Chinese characters and character strings, obtain information of target Chinese characters corresponding to the target character string;

[0026] Multiple target Chinese characters are concatenated to obtain the watermark plaintext information corresponding to the watermark ciphertext.

[0027] In a possible embodiment of the first aspect, adding watermark ciphertext information to a preset position of original carrier data to obtain target data includes:

[0028] Add the target information to the preset position of the original carrier data to obtain the target data, wherein the target information is generated by concatenating the control-class code value corresponding to the preset start identifier, the watermark ciphertext information, and the control-class code value corresponding to the preset end identifier;

[0029] At the preset position of the target data, obtain the watermark ciphertext information, including:

[0030] In the target data, search for positioning mark information, wherein the positioning mark information includes a control class code value corresponding to the start identifier and a control class code value corresponding to the end identifier;

[0031] In the target data, the watermark ciphertext information between the control-class coding code value corresponding to the start identifier and the control-class coding code value corresponding to the end identifier is extracted.

[0032] Based on the same inventive concept, in a second aspect, the embodiment of the present application further provides a watermark generation device, including:

[0033] An acquisition module is used to obtain watermark plaintext information;

[0034] The acquisition module is also used to obtain the target character string corresponding to each Chinese character in the watermark plaintext in the preset correspondence relationship between Chinese characters and character strings, wherein the character string is composed of N characters arranged in sequence, and N is an integer greater than or equal to 1;

[0035] The acquisition module is further used to obtain the target control class code value corresponding to each character in the target character string in the preset correspondence relationship between the character and the control class code value, wherein the control class code value corresponds to the control class code that is invisible in the code table;

[0036] A concatenation module is used to concatenate N target control class encoding code values ​​corresponding to the target character string to obtain the encoding code value sequence corresponding to each Chinese character in the watermark plaintext;

[0037] The splicing module is also used to splice the coded code value sequence according to the arrangement order of Chinese characters in the watermark plain text to obtain the watermark cipher text information.

[0038] Based on the same inventive concept, in the third aspect, an embodiment of the present application also provides a watermark generation device, which includes a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, it implements the first aspect, or the watermark generation method in any embodiment of the first aspect.

[0039] Based on the same inventive concept, in a fourth aspect, an embodiment of the present application further provides a computer storage medium, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the method for generating a watermark in the first aspect or any embodiment of the first aspect is implemented.

[0040] Based on the same inventive concept, in the fifth aspect, the embodiments of the present application further provide a computer program product. When the instructions in the computer program product are executed by the processor of the device, the device is able to execute the watermark generation method in the first aspect or any embodiment of the first aspect.

[0041] The method, device, equipment, medium and program product for generating watermarks in the embodiments of the present application greatly expand the watermark capacity and significantly improve the processing capability of Chinese information by mapping each Chinese character in the watermark into a unique string consisting of multiple characters. Because Chinese characters are ideographic characters, each character contains rich information. Direct storage in the form of images or fonts will take up a large space. Mapping each Chinese character into a unique string consisting of multiple characters can greatly reduce the number of bytes required to store each Chinese character. For example, if a Chinese character is stored in the form of an image, it may require many bytes (depending on the font size and resolution), but after conversion to a string, the number of bytes can be greatly reduced. Therefore, using this mapping method in watermark technology can make more efficient use of storage space, allowing more information to be embedded in a watermark carrier of the same size, thereby greatly expanding the watermark capacity and significantly improving the processing capability of Chinese information. Subsequently, the string is further converted into a sequence of encoding code values ​​obtained by splicing the encoding code values ​​corresponding to the invisible control class encoding in the encoding table, so as to ensure the concealment and security of the watermark information. By splicing the encoding code value sequences of all Chinese characters, a complete and invisible watermark ciphertext information is finally generated, providing stronger support for data protection and traceability. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Other features, objects and advantages of the present application will become more apparent by reading the following detailed description of non-limiting embodiments with reference to the accompanying drawings, in which the same or similar reference numerals represent the same or similar features and the accompanying drawings are not drawn to scale.

[0043] Figure 1 This is a flow chart of a method for generating a watermark provided in an embodiment of the present application;

[0044] Figure 2 This is another flow chart of the method for generating a watermark provided in an embodiment of the present application;

[0045] Figure 3It is a flow chart of extracting and decrypting target data in the watermark generation method provided in the embodiment of the present application;

[0046] Figure 4 It is another flow chart of decrypting target data in the watermark generation method provided in the embodiment of the present application;

[0047] Figure 5-A This is another flow chart of the method for generating a watermark provided in an embodiment of the present application;

[0048] Figure 5-B This is another flow chart of watermark extraction and decryption in the watermark generation method provided in the embodiment of the present application;

[0049] Figure 6 It is a structural schematic diagram of a watermark generation device provided in an embodiment of the present application;

[0050] Figure 7 It is a structural schematic diagram of a watermark generation device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0051] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only configured to explain the present application and are not configured to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.

[0052] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0053] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0054] It is obvious to those skilled in the art that various modifications and changes can be made in the present application without departing from the spirit or scope of the present application. Therefore, the present application is intended to cover modifications and changes of the present application that fall within the scope of the corresponding claims (technical solutions for protection) and their equivalents. It should be noted that the implementation methods provided in the embodiments of the present application can be combined with each other without contradiction.

[0055] It should be noted that the acquisition, storage, use and processing of data in the embodiments of the present application are in compliance with the relevant provisions of national laws and regulations.

[0056] It should also be noted that in the embodiments of the present application, certain software, components, models and other existing solutions in the industry may be mentioned, and they should be regarded as exemplary. Their purpose is only to illustrate the feasibility of implementing the technical solution of the present application, but it does not mean that the applicant has or will necessarily use the solution.

[0057] Before describing the technical solutions provided by the embodiments of the present application, in order to facilitate the understanding of the embodiments of the present application, the present application first specifically describes the problems existing in the related art:

[0058] With the surge in demand for data sharing, how to effectively protect data, protect personal information, and how to effectively control data sharing are issues that need to be urgently addressed in data circulation. With the development of science and technology, the targets that need to be protected have been transformed from physical entities to digital carriers, and the purpose of protection has also been extended from authenticity identification to more complex data traceability.

[0059] Digital watermarking is a technology that embeds specific information into carrier data in a hidden way. This embedding method makes the watermark information difficult to be detected and removed during the data sharing process.

[0060] Once data is leaked, the original data manager can be quickly traced back by extracting the watermark information from the leaked data, providing a strong basis for holding those responsible for data leaks accountable.

[0061] However, existing digital watermarking technology still faces many challenges in practice, the most notable of which are the limited watermark capacity and insufficient Chinese information processing capabilities.

[0062] The limitation of the watermark capacity means that the amount of watermark information that can be embedded in the data carrier is limited, making it difficult to meet the needs of large-scale data protection.

[0063] The lack of Chinese information processing ability restricts the wide application of digital watermark technology in the Chinese environment. Especially in scenarios where a large amount of Chinese data needs to be processed, the existing technologies are often unable to cope.

[0064] Based on this, the embodiments of the present application provide a method, device, equipment, medium and program product for generating watermarks, which can solve the problems of limited watermark capacity and insufficient Chinese information processing ability existing in the existing digital watermark technology.

[0065] The following elaborates in detail on the method for generating watermarks provided by the embodiments of the present application with reference to the accompanying drawings.

[0066] Figure 1 It is a schematic flowchart of a method for generating watermarks provided by the embodiments of the present application. As Figure 1 shown, the method may include steps S110 to S150.

[0067] S110, obtain the information of the watermark plaintext.

[0068] Among them, a watermark is information that can be embedded in carrier data (such as pictures, videos, audios or documents) for purposes such as copyright protection, authentication, tracking or others.

[0069] The watermark plaintext is the original unencrypted watermark information.

[0070] Specifically, obtain the original unencrypted watermark information, that is, the information of the watermark plaintext.

[0071] S120, in the preset correspondence between Chinese characters and strings, respectively obtain the target string corresponding to each Chinese character in the watermark plaintext, where the string is composed of N characters arranged in sequence, and N is an integer greater than or equal to 1.

[0072] Among them, the preset correspondence between Chinese characters and strings is a predefined mapping rule for mapping Chinese characters in the Chinese character set to specific strings. Since the Chinese character set in this correspondence includes all Chinese characters, any Chinese character in the watermark plaintext can be converted into a specific string.

[0073] A string is a character sequence composed of N characters (numbers, letters or punctuation marks, etc.) arranged in a specific order. For example, when N is 5, the Arabic numeral string corresponding to the Chinese character "水" can be "1A346", and the Arabic numeral string corresponding to the Chinese character "印" can be "6B5C9". It should be noted that using 5 characters to represent a Chinese character is only an example, and N can also take other values.

[0074] Specifically, the process of converting Chinese characters in the watermark plaintext into corresponding target character strings is as follows: first, according to a preset corresponding relationship, this relationship clarifies how each Chinese character is mapped to a character string. Then, for each Chinese character in the watermark plaintext, its corresponding target character string is searched according to this preset corresponding relationship. These character strings are composed of N characters arranged in sequence, where N is an integer greater than or equal to 1, meaning that each Chinese character corresponds to a character string of length N. Finally, each Chinese character in the watermark plaintext can find a corresponding target character string, thus realizing the conversion from Chinese characters to character strings. A method for converting Chinese characters in the watermark plaintext into character form is provided. Through the preset corresponding relationship, the accuracy and consistency of the conversion can be ensured, while the character string form is convenient for subsequent processing, which can not only increase the watermark capacity but also improve the Chinese processing capability.

[0075] S130, obtaining the target control class code value corresponding to each character in the target character string in the preset correspondence relationship between the characters and the control class code values, wherein the control class code value corresponds to the control class code which is invisible in the code table.

[0076] Among them, the encoding table is a kind of encoding standard, which can be simply understood as the correspondence between the encoding code value and the encoding, such as the encoding table of ASCII, Unicode, UTF-8, etc.

[0077] The code value is the code value corresponding to the control class code that is invisible in the code table.

[0078] In one example, the encoding table is an ASCII table. The ASCII table specifies the use of 7-bit binary numbers to represent 128 characters, that is, 128 codes are defined. The 128 codes are mainly divided into visible codes and invisible codes. Visible codes include uppercase and lowercase English letters, numbers, punctuation marks, etc.; invisible codes are codes that exist in the document but cannot be directly seen. For example, the codes corresponding to the encoding code values ​​0 to 31 and 127 are invisible codes, a total of 33, and the remaining codes are visible codes, that is, codes that can be printed out in a computer system.

[0079] The correspondence between the preset characters and the control class code values ​​is the correspondence between the characters and different control class code values.

[0080] For example, a character string consists of 4 characters, each character has 10 possible character values, and the 10 possible character values ​​may be 0 to 9, and the 10 possible character values ​​may be represented by control-class ASCII code values ​​of 21 to 30, as shown in Table 1 below.

[0081] Table 1

[0082] Encoding code value (ASCII code value) Control Class Code Brief Description Character value 0010101 NAK Rejection 0 0010110 SYN Synchronous Idle 1 0010111 ETB End of transmission block 2 0011000 CAN Cancel 3 0011001 EM End of medium 4 0011010 SUB replace 5 0011011 ESC Cancel 6 0011100 FS File separator 7 0011101 GS Grouping Characters 8 0011110 RS Record separator 9

[0083] It should be noted that in Table 1, the ASCII code value of each character can be represented by a seven-bit binary number, such as 0010101 to 0011110, or directly represented by a decimal number, such as 21 to 30. The ASCII code value 21 and the binary representation 0010101 are two different representations of the same character. They refer to the same character in the ASCII code table, that is, the 21st character NAK. When programming or processing inside the computer, the ASCII code value is represented in binary.

[0084] For another example, a string consists of 4 characters, and the 10 character values ​​of each character may be any 10 characters among Arabic numerals, letters, and punctuation marks, and the 10 characters may be used as the 10 character values ​​of each character. The 10 characters may be set as required, and are not limited in the embodiments of the present application.

[0085] Specifically, the process of converting the target string into a control-class coding value is as follows: traverse each Arabic numeral in the target string. For each Arabic numeral, the target control-class coding value corresponding to each character can be found according to a mapping relationship. Please refer to Table 1. As shown in Table 1, the mapping relationship clearly indicates how each character (Arabic numeral) corresponds to a specific control-class coding value (control-class ASCII code value), and these control-class coding values ​​correspond to control-class codes that are invisible in the coding table.

[0086] S140, concatenating the N target control-type encoding code values ​​corresponding to the target character string to obtain the encoding code value sequence corresponding to each Chinese character in the watermark plaintext.

[0087] Specifically, each character in a target string can be converted into a target control class encoding code value. Each target string consists of N characters in a certain order, so each target string can be converted into N target control class encoding code values. Then these N encoding code values ​​are spliced ​​together in order to form an encoding code value sequence. This encoding code value sequence corresponds to a Chinese character in the watermark plaintext, and each Chinese character in the watermark plaintext is represented by such a unique encoding code value sequence.

[0088] For example, each Arabic numeral (0, 1, 2, 3, 4, 5, 6, 7, 8, 9) in a target Arabic numeral string can be converted into a target control class ASCII code value. Each target Arabic numeral string consists of N Arabic numerals in a certain order, so each target Arabic numeral string can be converted into N target control class ASCII code values. Then these N ASCII code values ​​are spliced ​​together in order to form an ASCII code value sequence. This ASCII code value sequence corresponds to a Chinese character in the watermark plaintext, and each Chinese character in the watermark plaintext is represented by such a unique ASCII code value sequence.

[0089] S150, concatenate the coded code value sequence according to the arrangement order of Chinese characters in the watermark plain text to obtain the watermark cipher text information.

[0090] Specifically, since each Chinese character in the watermark plaintext has a corresponding coding code value sequence, the coding code value sequence can be spliced ​​according to the arrangement order of the Chinese characters in the watermark plaintext, that is, these coding code value sequences representing Chinese characters are connected one by one according to the order in which they appear in the watermark plaintext to form a continuous sequence string composed of coding code values. This sequence string is the information of the watermark ciphertext, which hides the content of the original data (such as the watermark plaintext) in an encrypted or encoded form.

[0091] For example, each Chinese character in the watermark plaintext has a corresponding ASCII code value sequence. Therefore, the ASCII code value sequence can be spliced ​​according to the arrangement order of Chinese characters in the watermark plaintext, that is, these ASCII code value sequences representing Chinese characters are connected one by one according to the order in which they appear in the watermark plaintext to form a continuous sequence string composed of ASCII code values. This sequence string is the information of the watermark ciphertext, which hides the content of the original data (such as the watermark plaintext) in an encrypted or encoded form.

[0092] According to the watermark generation method provided by the embodiment of the present application, by mapping each Chinese character in the watermark to a unique string consisting of multiple characters, the watermark capacity is greatly expanded and the processing capability of Chinese information is significantly improved. Because Chinese characters are ideographic characters, each character contains rich information. Direct storage in the form of images or fonts will take up a large space. By mapping each Chinese character to a unique string consisting of multiple characters, the number of bytes required to store each Chinese character can be greatly reduced. For example, if a Chinese character is stored in the form of an image, it may require many bytes (depending on the font size and resolution), but after conversion to a string, the number of bytes can be greatly reduced. Therefore, using this mapping method in watermark technology can make more efficient use of storage space, allowing more information to be embedded in a watermark carrier of the same size, thereby greatly expanding the watermark capacity and significantly improving the processing capability of Chinese information. Subsequently, the string is further converted into a sequence of encoding code values ​​obtained by splicing the encoding code values ​​corresponding to the invisible control class encoding in the encoding table, so as to ensure the concealment and security of the watermark information. By splicing the encoding code value sequences of all Chinese characters, a complete and invisible watermark ciphertext information is finally generated, providing stronger support for data protection and traceability.

[0093] In some embodiments, the watermark plain text information includes at least one of information of a processor, information of an owner, information of a user, information of a usage time, and information of a user.

[0094] In the embodiment of the present application, it is possible to support the embedding of a large amount of Chinese information by converting each Chinese character in the watermark plaintext containing key information such as the processing personnel, the owner, the user, the usage time and the user into a string consisting of N characters, and mapping the string into a sequence of encoding code values ​​consisting of N encoding code values. For example, each Chinese character in the watermark plaintext containing key information such as the processing personnel, the owner, the user, the usage time and the user is converted into an Arabic numeral string consisting of N Arabic numerals, and the Arabic numeral string is mapped into an ASCII code value sequence consisting of N ASCII code values. The memory size occupied by the watermark is effectively reduced, and the watermark capacity and Chinese information processing capabilities are significantly enhanced. At the same time, since the encoding corresponding to the encoding code value sequence is an invisible control-type encoding, the concealment and security of the watermark are also guaranteed.

[0095] In some embodiments, N is 4 and the characters include Arabic numerals.

[0096] Among them, N=4, the characters are Arabic numerals, which means that each Chinese character is mapped to an Arabic numeral string composed of 4 Arabic numerals. 4 Arabic numerals represent a Chinese character that is long enough to provide a unique code (a combination of 4 Arabic numerals) for each Chinese character in the Chinese character set, while not being too long, which can effectively reduce the memory size occupied by the watermark while ensuring the accuracy of the conversion.

[0097] In the embodiment of the present application, each Chinese character in the watermark plain text can be converted into an Arabic numeral string composed of 4 Arabic numerals (0, 1, 2, 3, 4, 5, 6, 7, 8, 9), and the Arabic numeral string is mapped into a coding code value sequence composed of 4 coding code values. While ensuring the accuracy of the conversion, the memory size occupied by the watermark can be effectively reduced, and the watermark capacity and Chinese information processing capabilities are significantly enhanced. At the same time, since the characters corresponding to the coding code value sequence are invisible control-type codes, the concealment and security of the watermark are also guaranteed.

[0098] Figure 2 This is another flow chart of the watermark generation method provided in the embodiment of the present application.

[0099] In some embodiments, Figure 2 As shown, it also includes steps S161 and S162.

[0100] S161, obtaining original carrier data.

[0101] Specifically, the original carrier data to be used for embedding the watermark ciphertext information is obtained. The original carrier data can be an image, video, audio file, document or any other form of digital content, which serves as the carrier of the watermark ciphertext information.

[0102] S162, adding the watermark ciphertext information to the preset position of the original carrier data to obtain the target data.

[0103] The preset position is the position where the watermark ciphertext is inserted, for example, a watermark ciphertext is inserted every 10 lines. The preset position can be set according to the requirements, and this is not limited in the embodiments of the present application.

[0104] Specifically, by embedding watermark ciphertext information at a specific position of the original carrier data, target data containing a watermark can be generated. The target data can be downloaded and read by users, and the watermark will not be found during the reading process, which will not affect the user's normal reading and use experience.

[0105] The embodiment of the present application generates target data that contains copyright protection or tracking information while maintaining normal user reading and usage experience by hiding the watermark ciphertext information in a preset position of the original carrier data (such as an image, video, audio file or document, etc.), thereby ensuring the integrity, security and traceability of the carrier data without interfering with the user's downloading and reading process.

[0106] Figure 3 It is a flow chart of extracting and decrypting target data in the watermark generation method provided in the embodiment of the present application.

[0107] In some embodiments, Figure 3 As shown, steps S171 to S173 are also included.

[0108] S171, obtain target data.

[0109] Specifically, target data containing information of watermark ciphertext is obtained.

[0110] S172, obtaining watermark ciphertext information at a preset position of the target data.

[0111] The preset position is the position where the watermark ciphertext information is embedded in the original carrier data.

[0112] Specifically, according to the preset position when the watermark ciphertext is embedded, it can be known at which position of the target data the information of the watermark ciphertext is located, so the information of the watermark ciphertext can be obtained at the preset position of the target data.

[0113] S173, decrypt the watermark ciphertext information to obtain the watermark plaintext information corresponding to the watermark ciphertext.

[0114] Specifically, according to the inverse process of the encoding method of converting the watermark plain text into the watermark cipher text, the information of the watermark cipher text can be decrypted to obtain the information of the watermark plain text corresponding to the watermark cipher text.

[0115] In an embodiment of the present application, by acquiring target data containing watermark ciphertext, the watermark ciphertext information can be quickly extracted at a specified preset position, and then decrypted to quickly and accurately restore the watermark plaintext information, thereby enabling effective extraction and verification of copyright, tracking or security information embedded in the data, thereby ensuring the integrity and security of the data.

[0116] Figure 4 This is another flowchart of decrypting target data in the watermark generation method provided in the embodiment of the present application.

[0117] In some embodiments, Figure 4As shown, step S173 decrypts the watermark ciphertext information to obtain the watermark plaintext information corresponding to the watermark ciphertext, which may include steps S1731 to S1735.

[0118] S1731, decomposing the watermark ciphertext into multiple coding code value sequences, where the coding code value sequences include N control-type coding code values.

[0119] Specifically, since the watermark plaintext is composed of multiple Chinese characters and the watermark ciphertext is composed of multiple coding code value sequences, the watermark ciphertext can be decomposed into multiple coding code value sequences in units of N control class coding code values, and each coding code value sequence in the watermark ciphertext corresponds to each Chinese character in the watermark plaintext.

[0120] S1732, in the correspondence between the preset characters and the control-type coding code values, obtain N target characters corresponding to the N control-type coding code values ​​in the coding code value sequence.

[0121] Specifically, since each encoding code value sequence includes N control-type encoding code values, they can be converted into N target characters, that is, N target characters corresponding to each Chinese character in the watermark plaintext are found.

[0122] S1733, concatenate the N target characters to obtain a target character string.

[0123] Specifically, by concatenating N target characters, a target character string corresponding to each Chinese character in the watermark plaintext can be obtained.

[0124] S1734, obtaining information of target Chinese characters corresponding to the target character string in the preset correspondence relationship between Chinese characters and character strings.

[0125] Specifically, according to the preset correspondence relationship between Chinese characters and character strings, the Chinese character corresponding to each target character string can be found, and the Chinese character can be called the target Chinese character.

[0126] S1735, concatenate multiple target Chinese characters to obtain watermark plaintext information corresponding to the watermark ciphertext.

[0127] Specifically, by splicing multiple target Chinese characters together, the watermark plaintext information corresponding to the watermark ciphertext can be obtained.

[0128] The embodiment of the present application decomposes the watermark ciphertext into multiple coding code value sequences, which is equivalent to decomposing the watermark ciphertext in units of one Chinese character, and converts the coding code value sequence into a string using a preset correspondence, and then maps it back to each Chinese character in the original Chinese plaintext, thereby achieving accurate restoration of the watermark ciphertext to the watermark plaintext, which not only ensures the integrity and security of the watermark information, but also improves the automation and accuracy of the decryption process.

[0129] In one example, the process of decrypting the target data is as follows: first, the watermark ciphertext is disassembled into multiple ASCII code value sequences in units of control class ASCII code values, each ASCII code value sequence includes N control class ASCII code values, and each ASCII code value sequence in the watermark ciphertext corresponds to each Chinese character in the watermark plaintext. Then, the N control class ASCII code values ​​in each ASCII code value sequence can be converted into N target Arabic numerals, that is, the N target Arabic numerals corresponding to each Chinese character in the watermark plaintext are found. Then, the N target Arabic numerals are spliced ​​together to obtain the target Arabic numeral string corresponding to each Chinese character in the watermark plaintext. Next, according to the preset correspondence between Chinese characters and Arabic numeral strings, the target Chinese characters corresponding to each target Arabic numeral string can be found. Then, multiple target Chinese characters are spliced ​​together to obtain the watermark plaintext information corresponding to the watermark ciphertext. The embodiment of the present application decomposes the watermark ciphertext into multiple ASCII code value sequences, which is equivalent to decomposing the watermark ciphertext in units of one Chinese character, and converts the ASCII code value sequence into an Arabic numeral string using a preset correspondence, and then maps it back to each Chinese character in the original Chinese plaintext, thereby achieving accurate restoration of the watermark ciphertext to the watermark plaintext, which not only ensures the integrity and security of the watermark information, but also improves the automation and accuracy of the decryption process.

[0130] It should be noted that when embedding watermark ciphertext information, positioning mark information can also be added to the head and tail of the watermark ciphertext respectively, so as to quickly and accurately locate the start and end positions of the watermark ciphertext contained in the target data when extracting the watermark.

[0131] In some embodiments, step S162 adds the watermark ciphertext information to a preset position of the original carrier data to obtain the target data, which may include step S1621.

[0132] S1621, add the target information to the preset position of the original carrier data to obtain the target data, wherein the target information is generated by concatenating the control class coding code value corresponding to the preset start marker, the watermark ciphertext information, and the control class coding code value corresponding to the preset end marker.

[0133] The invisible control code value corresponding to the preset start identifier may be a control code value other than 21 to 30. For example, the ASCII code value is 31, and the invisible control character corresponding to 31 is US.

[0134] The invisible control code value corresponding to the preset end mark may be, for example, a control ASCII code value other than 21 to 30, for example, the ASCII code value is 32, and the invisible control character corresponding to 32 is SP.

[0135] Specifically, the control-class coding code value corresponding to the preset start marker, the watermark ciphertext information, and the control-class coding code value corresponding to the preset end marker are concatenated to generate the target information, and then the target information is embedded into a specific position of the original carrier data to generate the target data.

[0136] S172 obtains watermark ciphertext information at a preset position of the target data, which may include steps S1721 and S1722.

[0137] S1721, searching for positioning mark information in the target data, wherein the positioning mark information includes a control class coding code value corresponding to the start identifier and a control class coding code value corresponding to the end identifier.

[0138] Specifically, since the start mark and the end mark are added when the watermark ciphertext is embedded, when the watermark ciphertext is extracted, even if the carrier data is tampered with, the information of the watermark ciphertext can still be quickly located and extracted according to the start mark and the end mark.

[0139] S1722, extracting the watermark ciphertext information between the control class coding code value corresponding to the start identifier and the control class coding code value corresponding to the end identifier in the target data.

[0140] Specifically, in the target data, the information between the control-type encoding code value corresponding to the start identifier and the control-type encoding code value corresponding to the end identifier is the information of the watermark ciphertext.

[0141] In the embodiment of the present application, by adding invisible control-type code values ​​as the start mark and end mark at the head and tail of the watermark ciphertext, the positioning accuracy and extraction efficiency of the watermark ciphertext in the original carrier data are effectively improved. Even if the carrier data may be tampered with, these identifiers can ensure the rapid and accurate positioning and extraction of the watermark ciphertext information, providing strong support for data tracing.

[0142] Figure 5-A A schematic diagram of another flow chart of the method for generating a watermark provided in an embodiment of the present application.

[0143] In one example, the characters are Arabic numerals and the encoding table is the ASCII table, such as Figure 5-A As shown, the watermark generation method may include steps S01 to S06.

[0144] S01, obtaining watermark plain text information, such as information of the processor, information of the owner, information of the user, information of the usage time and information of the user.

[0145] S02, convert each Chinese character in the watermark plain text into a target Arabic numeral string composed of N Arabic numerals (0, 1, 2, 3, 4, 5, 6, 7, 8, 9). For example, each Chinese character can be converted into a combination of 4 Arabic numerals using Chinese telegraph code, that is, 4 Arabic numerals are used as Chinese character codes. Each Chinese character in the watermark plain text information can be converted into a telegraph code number (4 Arabic numerals) using the Chinese telegraph code rules.

[0146] S03, converting each Arabic numeral in the target Arabic numeral string into a target control class ASCII code value, as shown in Table 1.

[0147] S04, concatenating the N target control class ASCII code values ​​to obtain an ASCII code value sequence corresponding to each Chinese character.

[0148] S05, concatenate multiple ASCII code value sequences to obtain a watermark ciphertext. Each ASCII code value sequence in the watermark ciphertext corresponds to each Chinese character in the watermark plaintext.

[0149] S06, splice the ASCII code value corresponding to the start marker, the watermark ciphertext, and the ASCII code value corresponding to the end marker together, and embed them into the carrier data to obtain the target data. For example, the serial number 31 in the ASCII code table is used as the ASCII code value corresponding to the start marker, and the serial number 32 in the ASCII code table is used as the ASCII code value corresponding to the start marker. Since the characters corresponding to the serial numbers 31 and 32 are invisible control characters, they can be hidden in the carrier data together with the information of the watermark ciphertext. After obtaining the target data containing the hidden watermark (the information of the watermark ciphertext), it can be provided to the user for reference.

[0150] In the embodiment of the present application, the watermark plaintext information is converted into watermark ciphertext composed of a specific ASCII code value sequence, and invisible control-class ASCII code values ​​are added as start and end marks, thereby achieving effective hiding and embedding of the watermark information, thereby ensuring the integrity and traceability of the watermark information and ensuring the normal access of the carrier data.

[0151] Figure 5-B Another flowchart of watermark extraction and decryption in the watermark generation method provided in the embodiment of the present application is provided.

[0152] In one example, the characters are Arabic numerals and the encoding table is the ASCII table, such as Figure 5-B As shown, the process of watermark extraction and decryption in the watermark generation method may include steps S07 to S13.

[0153] S07, obtaining target data containing a watermark.

[0154] S08, searching the target data for the control class ASCII code value corresponding to the start identifier and the control class ASCII code value corresponding to the end identifier.

[0155] S09, extracting the watermark ciphertext information between the control class ASCII code value corresponding to the start identifier and the control class ASCII code value corresponding to the end identifier in the target data.

[0156] S10, decomposing the watermark ciphertext into multiple ASCII code value sequences, each ASCII code value sequence corresponds to each Chinese character in the watermark plaintext, and each ASCII code value sequence includes N control-type ASCII code values.

[0157] S11, according to the preset correspondence between the control class ASCII code values ​​and the Arabic numerals, determine the target Arabic numeral string corresponding to the N control class ASCII code values ​​in the ASCII code value sequence.

[0158] For example, N control-class ASCII code values ​​can be converted into a telegraph code number (target Arabic numeral string) consisting of 4 Arabic numerals.

[0159] S12, obtaining information of a target Chinese character corresponding to a target Arabic numeral string in a preset correspondence relationship between Arabic numeral strings and Chinese characters.

[0160] S13, concatenate multiple target Chinese characters to obtain the watermark plaintext information corresponding to the watermark ciphertext. This can realize that the Chinese information watermark is written into the data in a hidden manner, and the written watermark content can be restored by extracting the watermark, so as to trace the source of the data.

[0161] In the embodiment of the present application, the mapping rules between Chinese telegraph codes and invisible characters are used to expand the capacity of digital watermarks. By mapping Chinese telegraph codes and invisible characters, a set of methods for converting Chinese telegraph codes and invisible characters is established, thereby realizing the use of invisible characters to hide Chinese information in data, thereby recording the watermark to be written, and realizing the hiding of digital watermarks containing Chinese information.

[0162] It should be noted that the digital watermark generation method provided in the embodiment of the present application meets the requirements of security, confidentiality, robustness and watermark capacity.

[0163] In terms of security: the digital watermark provided by the embodiment of the present application is difficult to tamper with or forge.

[0164] In one example, the file unique identifier of the carrier data can be added to the watermark ciphertext so that the watermark contains the carrier data identification information. As long as the user modifies the carrier data content, the file identifier will be regenerated. After the watermark is extracted, the unique identifier of the original carrier data can be decoded and compared with the unique identifier of the data carrier extracted by the watermark. If they are the same, it means that the carrier data has not been tampered with. If they are different, it means that the carrier data has been tampered with.

[0165] In another example, since the location where the watermark is embedded is a preset location, when the watermark is extracted, if it is found that the embedding location of the watermark has changed (for example, the watermark ciphertext is at the end of the 10th line when embedded, and the watermark ciphertext is at the 13th line when extracted), it can also indicate that the carrier data has been tampered with. Therefore, in the embodiment of the present application, when the content information of the data carrier changes, the relevant information of the generated digital watermark will also change, so that it can be confirmed whether the data has been tampered with or forged.

[0166] In terms of concealment: the embodiment of the present application is difficult to detect after being embedded in the digital carrier, and remains the same as the original digital carrier in terms of use. Since the ASCII code values ​​21 to 30 of the ASCII code table are used as the code for the watermark plain text, and the ASCII code values ​​31 and 32 are used as the start mark and end mark respectively, it is equivalent to inserting invisible characters into the carrier data, which will not be displayed on the screen and will not affect the normal use of the carrier data. It can be used in the same way as the original digital carrier.

[0167] In terms of robustness: the embodiment of the present application cleverly constructs a dual preset correspondence between Arabic numerals and Chinese characters, and between Arabic numerals and control ASCII code values, ensuring that the digital watermark can maintain its integrity even if the data undergoes a complex and changeable processing flow, and can ensure that the digital watermark can be accurately identified.

[0168] In terms of watermark capacity: The embodiments of the present application can embed enough Chinese civilized information in digital form, achieving a significant increase in watermark capacity. This digital embedding method not only retains the richness and accuracy of Chinese civilized information, but also greatly expands the carrying capacity of watermarks, allowing more and more detailed information to be embedded in the same data carrier. Therefore, whether it is copyright identification, data tracking or other scenarios that require the addition of a large amount of information, the embodiments of the present application can provide sufficient watermark capacity support to meet diverse application needs.

[0169] Based on the same inventive concept, the present application embodiment also provides a watermark generation device, such as Figure 6 As shown, the device 600 may include an acquisition module 610 and a splicing module 620 .

[0170] An acquisition module 610 is used to acquire watermark plain text information;

[0171] The acquisition module 610 is further used to respectively acquire the target character string corresponding to each Chinese character in the watermark plaintext in the preset correspondence relationship between Chinese characters and character strings, wherein the character string is composed of N characters arranged in sequence, and N is an integer greater than or equal to 1;

[0172] The acquisition module 610 is further used to acquire the target control class code value corresponding to each character in the target character string in the preset correspondence relationship between the characters and the control class code values, wherein the control class code value corresponds to the control class character which is not visible in the code table;

[0173] The splicing module 620 is used to splice the N target control class encoding code values ​​corresponding to the target character string to obtain the encoding code value sequence corresponding to each Chinese character in the watermark plaintext;

[0174] The splicing module 620 is also used to splice the coded code value sequence according to the arrangement order of Chinese characters in the watermark plain text to obtain the watermark ciphertext information.

[0175] According to the watermark generation device provided by the embodiment of the present application, by mapping each Chinese character in the watermark to a unique string consisting of multiple characters, the watermark capacity is greatly expanded and the processing capability of Chinese information is significantly improved. Because Chinese characters are ideographic characters, each character contains rich information. Direct storage in the form of images or fonts will take up a large space. By mapping each Chinese character to a unique string consisting of multiple characters, the number of bytes required to store each Chinese character can be greatly reduced. For example, if a Chinese character is stored in the form of an image, it may require many bytes (depending on the font size and resolution), but after conversion to a string, the number of bytes can be greatly reduced. Therefore, using this mapping method in watermark technology can make more efficient use of storage space, allowing more information to be embedded in a watermark carrier of the same size, thereby greatly expanding the watermark capacity and significantly improving the processing capability of Chinese information. Subsequently, the string is further converted into a sequence of encoding code values ​​obtained by splicing the encoding code values ​​corresponding to the invisible control class encoding in the encoding table, so as to ensure the concealment and security of the watermark information. By splicing the encoding code value sequences of all Chinese characters, a complete and invisible watermark ciphertext information is finally generated, providing stronger support for data protection and traceability.

[0176] In some embodiments, the watermark plain text information includes at least one of information of a processor, information of an owner, information of a user, information of a usage time, and information of a user.

[0177] In some embodiments, N is 4 and the characters include Arabic numerals.

[0178] In some embodiments, the apparatus further comprises an adding module:

[0179] The acquisition module is also used to obtain the original carrier data;

[0180] The adding module is used to add the watermark ciphertext information to the preset position of the original carrier data to obtain the target data.

[0181] In some embodiments, the device further comprises a decryption module:

[0182] The acquisition module is also used to obtain target data;

[0183] The acquisition module is also used to obtain the watermark ciphertext information at a preset position of the target data;

[0184] The decryption module is used to decrypt the watermark ciphertext information to obtain the watermark plaintext information corresponding to the watermark ciphertext.

[0185] In some embodiments, the decryption module is used to decrypt the watermark ciphertext information to obtain the watermark plaintext information corresponding to the watermark ciphertext, which can be specifically used to:

[0186] Decomposing the watermark ciphertext into multiple coding code value sequences, the coding code value sequence includes N control-type coding code values;

[0187] In the correspondence between the preset characters and the control-type code values, obtain N target characters corresponding to the N control-type code values ​​in the code value sequence;

[0188] Concatenate N target characters to obtain the target string;

[0189] In the preset correspondence between Chinese characters and character strings, obtain information of the target Chinese characters corresponding to the target character string;

[0190] Multiple target Chinese characters are concatenated to obtain the watermark plaintext information corresponding to the watermark ciphertext.

[0191] In some embodiments, the adding module is used to add the watermark ciphertext information to a preset position of the original carrier data to obtain the target data, which can be specifically used for:

[0192] Add the target information to the preset position of the original carrier data to obtain the target data, wherein the target information is generated by concatenating the control-class code value corresponding to the preset start identifier, the watermark ciphertext information, and the control-class code value corresponding to the preset end identifier;

[0193] The acquisition module is used to obtain the watermark ciphertext information at the preset position of the target data, which can be used to:

[0194] In the target data, search for positioning mark information, wherein the positioning mark information includes a control class code value corresponding to the start identifier and a control class code value corresponding to the end identifier;

[0195] In the target data, the watermark ciphertext information between the control-class coding code value corresponding to the start identifier and the control-class coding code value corresponding to the end identifier is extracted.

[0196] Each module in the watermark generation device provided in the embodiment of the present application can realize Figure 1 to Figure 5-B The functions of each step of the provided watermark generation method and the ability to achieve the corresponding technical effects are described briefly and will not be repeated here.

[0197] Figure 7 A schematic diagram of the hardware structure of a watermark generation device provided in an embodiment of the present application is shown.

[0198] The watermark generation device may include a processor 701 and a memory 702 storing computer program instructions.

[0199] Specifically, the processor 701 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.

[0200] The memory 702 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 702 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive, or a combination of two or more of these. Where appropriate, the memory 702 may include removable or non-removable (or fixed) media. Where appropriate, the memory 702 may be internal or external to the watermark generation device. In a particular embodiment, the memory 702 is a non-volatile solid-state memory.

[0201] The memory may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Therefore, generally, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to one aspect of the present disclosure.

[0202] The processor 701 implements any one of the watermark generation methods in the above embodiments by reading and executing the computer program instructions stored in the memory 702 .

[0203] In one example, the watermark generation device may further include a communication interface 703 and a bus 704. Figure 7 As shown, the processor 701, the memory 702, and the communication interface 703 are connected via a bus 704 and communicate with each other.

[0204] The communication interface 703 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.

[0205] The bus 704 includes hardware, software, or both, coupling the components of the watermark generation device to each other. By way of example and not limitation, the bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Extended Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hyper Transport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an InfiniBand interconnect, a Linear Predictive Coding (LPC) bus, a memory bus, a MicroChannel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (Peripheral Component Interconnect-X, PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local Bus (VESA Local Bus, VLB) bus, or other suitable buses or a combination of two or more of the above. Where appropriate, the bus 704 may include one or more buses. Although embodiments of the present application describe and illustrate a particular bus, the present application contemplates any suitable bus or interconnect.

[0206] The device can execute the watermark generation method in the embodiment of the present application based on each unit / component in the watermark generation device, thereby realizing the combination of Figure 1 to Figure 5-B Describes the watermark generation method.

[0207] In addition, in combination with the watermark generation method in the above embodiments, the present application embodiment can provide a computer storage medium for implementation. The computer storage medium stores computer program instructions; when the computer program instructions are executed by a processor, any of the watermark generation methods in the above embodiments is implemented.

[0208] The present application also provides a computer program product. When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes each process of implementing any one of the above-mentioned watermark generation method embodiments.

[0209] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.

[0210] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), appropriate firmware, plug-in, function card, etc. When implemented in software, the elements of the present application are programs or code segments used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or communication link by a data signal carried in a carrier. "Machine-readable medium" may include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, read-only memory (Read-Only Memory, ROM), flash memory, erasable read-only memory (Erasable Read Only Memory, EROM), floppy disks, compact disc read-only memory (Compact Disc Read-Only Memory, CD-ROM), optical discs, hard disks, optical fiber media, radio frequency (Radio Frequency, RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.

[0211] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.

[0212] Aspects of the present disclosure are described above with reference to the flowchart and / or block diagram of the method, device (system) and computer program product according to the embodiment of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field programmable logic circuit. It can also be understood that each box in the block diagram and / or flowchart and the combination of boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs a specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.

[0213] The above are only specific implementation methods of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.

Claims

1. A method for generating a watermark, characterized in that: include: Get the watermark plaintext information; In the preset correspondence relationship between Chinese characters and character strings, respectively obtain the target character string corresponding to each Chinese character in the watermark plaintext, wherein the character string is composed of N characters arranged in sequence, and N is an integer greater than or equal to 1; In the preset correspondence between characters and control class code values, the target control class code value corresponding to each character in the target character string is obtained, wherein the control class code value corresponds to the control class code that is invisible in the code table; Respectively concatenate the N target control class encoding code values ​​corresponding to the target character string to obtain the encoding code value sequence corresponding to each Chinese character in the watermark plaintext; The encoding code value sequence is concatenated according to the arrangement order of Chinese characters in the watermark plain text to obtain the watermark cipher text information.

2. The method according to claim 1, characterized in that The watermark plain text information includes at least one of information of a processor, information of an owner, information of a user, information of a usage time, and information of a user.

3. The method according to claim 1, characterized in that: The N is 4, and the characters include Arabic numerals.

4. The method according to any one of claims 1 to 3, characterized in that: Also includes: Get the original carrier data; The information of the watermark ciphertext is added to the preset position of the original carrier data to obtain the target data.

5. The method according to claim 4, characterized in that Also includes: Acquiring the target data; At a preset position of the target data, obtaining information of the watermark ciphertext; The information of the watermark ciphertext is decrypted to obtain the watermark plaintext information corresponding to the watermark ciphertext.

6. The method according to claim 5, characterized in that The decrypting the watermark ciphertext information to obtain the watermark plaintext information corresponding to the watermark ciphertext includes: Decomposing the watermark ciphertext into a plurality of coding code value sequences, wherein the coding code value sequence includes N control-type coding code values; In the preset correspondence between characters and control-type code values, obtain N target characters corresponding to N control-type code values ​​in the code value sequence; Concatenate the N target characters to obtain a target character string; In the preset correspondence relationship between Chinese characters and character strings, obtaining information of the target Chinese characters corresponding to the target character string; Multiple target Chinese characters are concatenated to obtain watermark plaintext information corresponding to the watermark ciphertext.

7. The method according to claim 5, characterized in that The step of adding the watermark ciphertext information to a preset position of the original carrier data to obtain the target data includes: Adding target information to a preset position of the original carrier data to obtain target data, wherein the target information is generated by concatenating a control-type code value corresponding to a preset start identifier, information of the watermark ciphertext, and a control-type code value corresponding to a preset end identifier; The step of obtaining watermark ciphertext information at a preset position of the target data includes: In the target data, searching for positioning mark information, wherein the positioning mark information includes a control class code value corresponding to the start identifier and a control class code value corresponding to the end identifier; In the target data, extract the watermark ciphertext information between the control-type coding code value corresponding to the start identifier and the control-type coding code value corresponding to the end identifier.

8. A watermark generation device, characterized in that: include: An acquisition module is used to obtain watermark plaintext information; The acquisition module is further used to respectively acquire the target character string corresponding to each Chinese character in the watermark plaintext in the preset correspondence relationship between Chinese characters and character strings, wherein the character string is composed of N characters arranged in sequence, and N is an integer greater than or equal to 1; The acquisition module is further used to acquire the target control class code value corresponding to each character in the target character string in the preset correspondence relationship between the characters and the control class code values, wherein the control class code value corresponds to the control class code that is invisible in the code table; A concatenation module, used for concatenating the N target control class encoding code values ​​corresponding to the target character string to obtain the encoding code value sequence corresponding to each Chinese character in the watermark plaintext; The splicing module is also used to splice the encoding code value sequence according to the arrangement order of Chinese characters in the watermark plain text to obtain watermark ciphertext information.

9. A watermark generation device, characterized in that: The device comprises: a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, the watermark generation method according to any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the method for generating a watermark according to any one of claims 1 to 7 is implemented.

11. A computer program product, characterized in that When the instructions in the computer program product are executed by a processor of a device, the device is enabled to execute the watermark generation method according to any one of claims 1 to 7.