Method and system for embedding and detecting hidden information of electronic document

By SM3 signature, SM4 encryption and BASE64 encoding of hidden information in electronic documents, and adding specific character encoding before and after the data, the problem of small embeddedness and complex extraction in the prior art is solved, and information detection and blocking during copying is realized, and information security is improved.

CN119720247APending Publication Date: 2025-03-28中孚安全技术有限公司 +3
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411811259.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-10
Publication Date
2025-03-28

AI Technical Summary

Technical Problem

When the prior art embeds hidden information in electronic documents, the amount of information embedding is small, the extraction method is complex and inaccurate, and it is difficult to maintain hidden information when copying some text, and it is difficult to discover and block it in a timely manner.

Method used

The SM3 algorithm signs and stitches the signature information, uses the SM4 algorithm to encrypt the hidden information and signatures, uses BASE64 encoding to convert it into readable characters, and adds ZFLABEL character encoding before and after the encoded data for subsequent extraction. At the same time, monitor clipboard actions to detect and block copying content containing hidden information.

Benefits of technology

Improves the replicability and effectiveness of hidden information, ensuring that it can be detected and blocked when content is copied, and prevents information leakage and forgery.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119720247A_ABST
    Figure CN119720247A_ABST
Patent Text Reader

Abstract

The invention provides an electronic document hidden information embedding and detecting method and system. The method comprises the steps that hidden information is signed through a first encryption algorithm, and signed information is spliced; performing symmetric encryption on the hidden information and the signature by using a second encryption algorithm, encoding the data after symmetric encryption, and converting the data into readable characters; and adding character codes before and after the coded data. According to the method, the coded hidden information is embedded in the preset position, the hidden information is carried during content copying, and monitoring and recognition can be carried out. The content containing the hidden information can still be detected after being copied to another document, so that the replicability and effectiveness of the hidden information are effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of hidden information processing, and in particular relates to a method and system for embedding and detecting hidden information in an electronic document. Background Art

[0002] The statements in this section merely provide background information related to the present invention and do not necessarily constitute prior art.

[0003] Currently, data hiding technology for electronic documents has become the main means of copyright certification and document authenticity identification.

[0004] There are two main ways to embed hidden information into text documents:

[0005] The first is to embed information by modifying the font and adjusting the text. The advantage is that photos and screenshots can carry hidden information. The disadvantage is that the amount of embedded information is small, the extraction method is more complicated, and the extraction accuracy is poor. It is difficult to keep the hidden information when copying part of the text to other documents, and it is also difficult to detect and block it in time.

[0006] The second method is to modify and encode homophones, synonyms, and punctuation marks in the document. The disadvantage is that this method cannot be used for serious documents, the amount of embedded information is small, and it is easy to be destroyed. It also has the disadvantage that the copied text cannot be detected or blocked. Summary of the invention

[0007] In order to solve the above problems, the present invention proposes a method and system for embedding and detecting hidden information in electronic documents. The present invention embeds coded hidden information at a predetermined position, carries the hidden information when the content is copied, and can be monitored and identified. The content containing the hidden information can still be detected when copied to another document, which effectively improves the reproducibility and effectiveness of the hidden information.

[0008] According to some embodiments, the present invention adopts the following technical solutions:

[0009] A method for embedding hidden information in an electronic document comprises the following steps:

[0010] Signing the hidden information using a first encryption algorithm and concatenating the signature information;

[0011] The hidden information and the signature are symmetrically encrypted using a second encryption algorithm, and the symmetrically encrypted data is encoded and converted into readable characters;

[0012] Add character encoding before and after the encoded data.

[0013] As an optional implementation, the first encryption algorithm is the SM3 algorithm, and the second encryption algorithm is the SM4 algorithm.

[0014] As an optional implementation, the encoding is BASE64 encoding.

[0015] As an optional implementation, character codes of ZFLABEL are added before and after the encoded data.

[0016] A method for detecting hidden information in an electronic document comprises the following steps:

[0017] Inject the process that can open the document, monitor the setc lipboarddata function, and when a copy action occurs, check whether the copied content contains hidden information. If so, extract and parse the hidden information. If the content is prohibited from copying, block the copy action.

[0018] A method for detecting hidden information in an electronic document comprises the following steps:

[0019] Loop through the clipboard to see if there is any content update. If there is, traverse the clipboard content to find hidden information features. If there is any hidden information, extract and parse it. If the corresponding content is prohibited from being copied, clear the clipboard.

[0020] As an optional implementation, the process of extracting and parsing hidden information includes parsing the corresponding document, searching and parsing styles.xml, determining whether the current attribute value is hidden information based on whether it contains a preset prefix or suffix, and decoding the hidden information.

[0021] As a further implementation, if a preset prefix or suffix is ​​contained, and the prefix or suffix is ​​matching signature information, it is considered that there is hidden information.

[0022] As an optional implementation, the preset prefix or suffix is ​​the character code of ZFLABEL.

[0023] A system for embedding hidden information in electronic documents, comprising:

[0024] A signature module, configured to sign the hidden information through a first encryption algorithm and concatenate the signature information;

[0025] The encryption module is configured to symmetrically encrypt the hidden information and the signature using a second encryption algorithm, and encode the symmetrically encrypted data to convert it into readable characters;

[0026] The suffix module is configured to add character codes before and after the encoded data.

[0027] A system for detecting hidden information in electronic documents, comprising:

[0028] The preprocessing module is configured to inject into the process that can open the document and monitor the setc lipboarddata function;

[0029] The detection module is configured to check whether the copied content contains hidden information when a copy action occurs, extract and parse the hidden information if it does, and block the copy action if the content is prohibited from copying.

[0030] A system for detecting hidden information in electronic documents, comprising:

[0031] The detection module is configured to cyclically detect whether the clipboard has content updates, and if so, traverse the clipboard content to find hidden information features;

[0032] The parsing module is configured to extract and parse the hidden information if it contains hidden information, and clear the clipboard if the corresponding content is prohibited from being copied.

[0033] Compared with the prior art, the present invention has the following beneficial effects:

[0034] The present invention signs the hidden information through the SM3 algorithm and splices the signature information to the back to prevent information forgery, and symmetric encrypts the hidden information and the signature using the SM4 algorithm to prevent information leakage; the symmetrically encrypted data is encoded using BASE64 and converted into readable characters; preset character codes are added before and after the encoded data to facilitate subsequent extraction, thereby having good information security.

[0035] After the hidden information is embedded by the present invention, when the text containing the hidden information pattern is copied, it can be detected and blocked by the copy monitoring device.

[0036] After the hidden information is embedded by the present invention, when the text containing the hidden information pattern is copied, it can be detected by the detection device through the clipboard.

[0037] The content embedded with hidden information by the present invention is copied to another document and can be detected by the detection device.

[0038] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.

[0040] Figure 1 is a schematic diagram of a hidden information embedding process in an embodiment;

[0041] Figure 2 is a schematic diagram of a hidden information duplication detection, extraction, and control process in an embodiment;

[0042] Figure 3 is a schematic diagram of the hidden information duplication detection, extraction, and control process in another embodiment;

[0043] Figure 4 It is a schematic diagram of a hidden information extraction process in an embodiment. DETAILED DESCRIPTION

[0044] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

[0045] It should be noted that the following detailed descriptions are all illustrative and intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.

[0046] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit exemplary embodiments according to the present invention. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprising" and / or "including" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.

[0047] In the absence of conflict, the embodiments in this application and the features in the embodiments may be combined with each other.

[0048] Embodiment 1

[0049] A hidden information embedding method based on OFFI CE documents, such as Figure 1 As shown, the following steps are included: signing the hidden information through the SM3 algorithm and splicing the signature information to the back to prevent information forgery.

[0050] The hidden information and signature are symmetrically encrypted using the SM4 algorithm to prevent information leakage. The symmetrically encrypted data is then encoded using BASE64 and converted into readable characters.

[0051] Add ZFLABEL character encoding before and after the BASE64-encoded data to facilitate subsequent extraction.

[0052] Embodiment 2

[0053] A method for detecting, extracting and controlling hidden information duplication based on OFFI CE documents, such as Figure 2 As shown, the following steps are included:

[0054] Inject wps, offi ce and other processes that can open office documents, and hook the function setc lipboarddata. When the copy action occurs, monitor the setc lipboarddata function to check whether the copied content contains hidden information. If it contains hidden information, extract the hidden information and parse it. If the content is prohibited from copying, block the copy action.

[0055] Embodiment 3

[0056] A method for detecting, extracting and controlling hidden information duplication based on OFFI CE documents, such as Figure 3 As shown, the steps include: looping to detect whether there is content update in the Windows clipboard, if there is update, traversing the clipboard content to find hidden information features, if there is hidden information, extracting the hidden information and parsing it, and clearing the clipboard if the content is prohibited from being copied.

[0057] Embodiment 4

[0058] The hidden information extraction process in the above embodiment includes the following steps: parsing the DOCX document, searching and parsing style.xml, searching and parsing style.xml, judging whether the current attribute value is hidden information according to whether it contains a prefix or suffix of zf l abe l, and decoding the read hidden information, wherein the decoding method corresponds to the embedding method of the hidden information.

[0059] Embodiment 5

[0060] A system for embedding hidden information in electronic documents, comprising:

[0061] A signature module, configured to sign the hidden information through a first encryption algorithm and concatenate the signature information;

[0062] The encryption module is configured to symmetrically encrypt the hidden information and the signature using a second encryption algorithm, and encode the symmetrically encrypted data to convert it into readable characters;

[0063] The suffix module is configured to add character codes before and after the encoded data.

[0064] Embodiment 6

[0065] A system for detecting hidden information in electronic documents, comprising:

[0066] The preprocessing module is configured to inject into the process that can open the document and monitor the setc lipboarddata function;

[0067] The detection module is configured to check whether the copied content contains hidden information when a copy action occurs, extract and parse the hidden information if it does, and block the copy action if the content is prohibited from copying.

[0068] Embodiment 7

[0069] A system for detecting hidden information in electronic documents, comprising:

[0070] The detection module is configured to cyclically detect whether the clipboard has content updates, and if so, traverse the clipboard content to find hidden information features;

[0071] The parsing module is configured to extract and parse the hidden information if it contains hidden information, and clear the clipboard if the corresponding content is prohibited from being copied.

[0072] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0073] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0074] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0075] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0076] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made by those skilled in the art within the spirit and principle of the present invention without creative labor shall be included in the protection scope of the present invention.

Claims

1. A method for embedding hidden information in an electronic document, characterized in that: The following steps are involved: Signing the hidden information using a first encryption algorithm and concatenating the signature information; The hidden information and the signature are symmetrically encrypted using a second encryption algorithm, and the symmetrically encrypted data is encoded and converted into readable characters; Add character encoding before and after the encoded data.

2. A method for embedding hidden information in an electronic document as claimed in claim 1, characterized in that: The first encryption algorithm is the SM3 algorithm, and the second encryption algorithm is the SM4 algorithm.

3. The method for embedding hidden information in an electronic document as claimed in claim 1, characterized in that: The encoding is BASE64 encoding.

4. A method for embedding hidden information in an electronic document as claimed in claim 3, characterized in that: Add the character code of ZFLABEL before and / or after the encoded data.

5. A method for detecting hidden information in an electronic document, characterized in that: The following steps are involved: Inject the process that can open the document, monitor the setclipboarddata function, perform a copy action, check whether the copied content contains hidden information, if so, extract and parse the hidden information, and if the content is prohibited from copying, block the copy action.

6. A method for detecting hidden information in an electronic document, characterized in that: The following steps are involved: Loop through the clipboard to see if there is any content update. If there is, traverse the clipboard content to find hidden information features. If there is any hidden information, extract and parse it. If the corresponding content is prohibited from being copied, clear the clipboard.

7. A method for detecting hidden information in an electronic document as claimed in claim 6, characterized in that: The process of extracting and parsing hidden information includes parsing the corresponding document, searching and parsing styles.xml, judging whether the current attribute value is hidden information according to whether it contains a preset prefix or suffix, and decoding the hidden information; If it contains a preset prefix or suffix, and the prefix or suffix is ​​a matching signature information, it is considered to have hidden information; The preset prefix or suffix is ​​the character code of ZFLABEL.

8. A system for embedding hidden information in electronic documents, characterized in that: include: A signature module, configured to sign the hidden information through a first encryption algorithm and concatenate the signature information; The encryption module is configured to symmetrically encrypt the hidden information and the signature using a second encryption algorithm, and encode the symmetrically encrypted data to convert it into readable characters; The suffix module is configured to add character codes before and after the encoded data.

9. An electronic document hidden information detection system, characterized in that: include: The preprocessing module is configured to inject into the process that can open the document and monitor the setclipboarddata function; The detection module is configured to check whether the copied content contains hidden information when a copy action occurs, extract and parse the hidden information if it does, and block the copy action if the content is prohibited from copying.

10. An electronic document hidden information detection system, characterized in that: include: The detection module is configured to cyclically detect whether the clipboard has content updates, and if so, traverse the clipboard content to find hidden information features; The parsing module is configured to extract and parse the hidden information if it contains hidden information, and clear the clipboard if the corresponding content is prohibited from being copied.