Electronic file tracing method and device

By identifying, analyzing and coding format conversion of target electronic files, combined with invisible watermark injection technology, the problem of watermarks being easily deleted in the existing technology is solved, and the data security guarantee and traceability function of electronic files is realized.

CN119989397APending Publication Date: 2025-05-13BEIJING WONDERSOFT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411852958.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-16
Publication Date
2025-05-13

AI Technical Summary

Technical Problem

In the prior art, during the watermark injection process of electronic files, the watermark is easily deleted, resulting in the inability to ensure the data security of electronic files and the inability to effectively trace the source of electronic files.

Method used

By identifying and parsing the target electronic file, we determine whether the encoding format conversion is required, and convert it if necessary. Then, using the invisible watermark injection technology, the information to be recorded is entered into the file body according to the pre-configured encoding comparison table. Finally, through invisible watermark analysis, traceability of electronic files is realized.

Benefits of technology

It improves the difficulty of deliberate deletion of watermarks, ensures the data security of electronic files, and provides a reliable method for traceability of electronic files.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119989397A_ABST
    Figure CN119989397A_ABST
Patent Text Reader

Abstract

The invention provides an electronic file tracing method and device, and the method comprises the steps: inputting a target electronic file which is a file to be injected with an invisible watermark or a file to be traced; identifying and analyzing the content of the target electronic file to obtain an identification and analysis result; judging whether coding format conversion needs to be carried out or not according to the recognition and analysis result; if the judgment result is yes, carrying out coding format conversion on the target electronic file; carrying out invisible watermark injection on the target electronic file subjected to the coding format conversion or the target electronic file which does not need to be subjected to the coding format conversion; and carrying out invisible watermark analysis on the electronic file in the file circulation according to the invisible watermark, and tracing the electronic file based on an analysis result. According to the scheme provided by the invention, the source file can be used as the data source, and the code type is judged by taking the actual content of the file as the target; the problems that a traditional artificial intelligence algorithm is large in size, and most terminal products cannot deploy intelligent modules completely are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data security technology, and in particular to an electronic file tracing method and device. Background Art

[0002] With the development of society and the advancement of science and technology, data security issues are receiving more and more attention. Plain text data stored on media and data transmitted on the network are no longer safe. Although there are many means to prevent data leakage, the protection of important data assets in the industry has always been an important issue. Moreover, in the case where some files are intentionally or unintentionally leaked to the outside world, the need to locate files and trace the person responsible for the leakage is becoming more and more important.

[0003] There are many different technical means and solutions for file traceability, but the emphasis is different. Some focus on leaving traces in the file transmission channel, while others focus on recording and identifying the identity of the file through algorithms. Regardless of the differences in the emphasis of the existing technical solutions, it should be pointed out that the solutions they provide are aimed at the electronic file itself when injecting watermarks, resulting in the inability to guarantee the data security of the electronic document and the inability to trace the electronic file after the watermark is deleted during the circulation of the electronic file. Therefore, it is necessary to provide a new electronic file traceability solution. Summary of the invention

[0004] The present application shows an electronic file traceability method and device to increase the difficulty of intentional deletion of watermarks, thereby ensuring the data security of electronic files and providing protection for electronic file traceability.

[0005] In a first aspect, the present application provides a method for tracing the provenance of an electronic file, the method comprising:

[0006] Input a target electronic file, wherein the target electronic file is a file to be injected with an invisible watermark or a file to be traced;

[0007] Identify and analyze the content of the target electronic file to obtain an identification and analysis result;

[0008] Determine whether encoding format conversion is required according to the identification and analysis results;

[0009] If the determination result is yes, the encoding format of the target electronic file is converted;

[0010] Injecting invisible watermarks into target electronic files after encoding format conversion or target electronic files that do not need encoding format conversion;

[0011] The invisible watermark is analyzed for the electronic file in the file circulation according to the invisible watermark, and the electronic file is traced based on the analysis result.

[0012] Optionally, the step of judging whether encoding format conversion is required according to the identification and analysis result includes:

[0013] Determining whether encoding format conversion is required based on whether the file body of the target electronic file is in Unicode encoding format;

[0014] When the file body of the target electronic document is not in Unicode encoding format, it is determined that encoding format conversion is required.

[0015] Optionally, the step of converting the encoding format of the target electronic file includes:

[0016] Based on a pre-configured encoding comparison table, the encoding format of the target electronic file is converted; wherein the encoding comparison table generates encoding comparison formats of numbers 0-9 and letters az based on different permutations and combinations of four-bit zero-width characters.

[0017] Optionally, the step of injecting an invisible watermark into the target electronic file after the encoding format conversion or the target electronic file that does not need to be converted into the encoding format includes:

[0018] The information to be recorded is used as an invisible watermark and is entered into the body of the target electronic file according to the fixed format of the coding comparison table.

[0019] Optionally, before the step of taking the information to be recorded as an invisible watermark and entering it into the body of the target electronic file in the fixed format of the coding comparison table, the method further includes:

[0020] Convert binary content in GBK encoding format to UTF encoding format.

[0021] Optionally, the step of performing invisible watermark analysis on the electronic file in file circulation according to the invisible watermark, and tracing the source of the electronic file based on the analysis result includes:

[0022] By performing file analysis on the target electronic file, the invisible watermark in the body of the file is located and found;

[0023] Parsing the invisible watermark into corresponding plaintext content according to the encoding comparison table;

[0024] The target electronic file is traced and / or its path is identified based on the parsed plain text content.

[0025] In a second aspect, the present application provides an electronic file source tracing device, the device comprising:

[0026] A file input module, used for inputting a target electronic file, wherein the target electronic file is a file to be injected with an invisible watermark or a file to be traced;

[0027] A file analysis module, used to identify and analyze the content of the target electronic file to obtain an identification and analysis result;

[0028] A format conversion module, used to determine whether encoding format conversion is required according to the identification and analysis result; if the determination result is yes, then convert the encoding format of the target electronic file;

[0029] An invisible watermark injection module is used to inject invisible watermarks into target electronic files after encoding format conversion or target electronic files that do not need encoding format conversion;

[0030] The watermark analysis and tracing module is used to analyze the invisible watermark of the electronic file in the file circulation according to the invisible watermark, and to trace the electronic file based on the analysis result.

[0031] Optionally, the format conversion module is specifically used to determine whether encoding format conversion is required based on whether the file body of the target electronic document is in Unicode encoding format; and determine that encoding format conversion is required when the file body of the target electronic document is not in Unicode encoding format.

[0032] Optionally, the format conversion module is specifically used to convert the encoding format of the target electronic file based on a pre-configured encoding comparison table; wherein the encoding comparison table generates encoding comparison formats of numbers 0-9 and letters az based on different permutations and combinations of four-bit zero-width characters.

[0033] Optionally, the invisible watermark injection module is specifically used to use the information to be recorded as an invisible watermark, and enter it into the file body of the target electronic file according to the fixed format of the encoding comparison table.

[0034] Optionally, the invisible watermark injection module is further used to convert binary content in GBK encoding format into UTF encoding format.

[0035] Optionally, the watermark parsing and tracing module is specifically used to locate and find the invisible watermark in the body of the target electronic file by parsing the target electronic file; parsing the invisible watermark into corresponding plaintext content according to the encoding comparison table; and tracing the target electronic file and / or identifying the file path based on the parsed plaintext content.

[0036] In a third aspect, the present application shows an electronic device, which includes: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to execute the method described in any of the above aspects.

[0037] In a fourth aspect, the present application illustrates a non-temporary computer-readable storage medium, which, when instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to execute a method as described in any of the above aspects.

[0038] In a fifth aspect, the present application illustrates a computer program product. When instructions in the computer program product are executed by a processor of an electronic device, the electronic device is enabled to execute the method described in any of the above aspects.

[0039] The technical solution provided by this application may have the following beneficial effects:

[0040] The solution provided by this application can use the source file as the data source and use the actual content of the file as the target to judge the code type; the file parsing module can be flexibly deployed, making it more convenient to use the Java module for parsing the service architecture, and lightweight parsing modules can be used for terminal products, which can facilitate the installation, packaging and running speed of terminal type products; in addition, it solves the problem that traditional artificial intelligence algorithms are large in size and most terminal products cannot fully deploy intelligent modules. This solution uses simple mathematical algorithms that are lighter and faster in operation, and has lower hardware requirements. This application can realize the ability to parse file content, convert encoding formats, enter invisible watermarks, and obtain file traceback information through watermarks. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 A flow chart of the electronic file tracing method provided in this application.

[0042] Figure 2 A schematic diagram of the invisible watermark format provided in this application.

[0043] Figure 3 A structural diagram of the electronic file tracing device provided in this application.

[0044] Figure 4 A block diagram of an electronic device provided in this application.

[0045] Figure 5 A block diagram of another electronic device provided by the present application. DETAILED DESCRIPTION

[0046] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0047] In order to increase the difficulty of intentionally deleting watermarks, ensure the data security of electronic files, and provide protection for electronic file traceability, this application shows an electronic file traceability method and device. Before introducing the solution of this application, the concepts mentioned in this application are first explained.

[0048] (1) Zero Width Code: It is a special type of Unicode character with a width of zero. It does not occupy any display space in the text. These characters are usually invisible and unprintable, that is, their existence cannot be directly observed visually, but they can be detected and operated through codes.

[0049] (2) Zero Width Space (ZWSP): The code for this character is U-200B. Its main function is to invisible separate words and control line breaks. Since this character has no width, it will not increase the letter spacing when it exists between two characters.

[0050] (3) Zero Width Joiner (ZWJ): The code of this character is U-200D. It is used to connect characters but does not occupy any space, so it does not affect the layout of the text.

[0051] (4) Left-to-right mark (LRM): The code of this character is U-200E. It is used to mark characters as running from left to right, which is particularly useful for processing multilingual texts.

[0052] (5) RIGHT-TO-LEFT MARK (RLM): The code of this character is U-200F. It is used to mark characters as running from right to left. It is also applicable to multilingual text processing.

[0053] It should be noted that the invisible characteristics of zero-width characters solve the risk of plaintext watermarks being maliciously tampered with and destroyed; the encoding characteristics of the watermark itself can carry more valuable information; and the ability to record file flow paths and trace file sources is solved.

[0054] The electronic file tracing method provided by this application is described below.

[0055] Embodiment 1

[0056] Reference Figure 1 , is a flow chart of the electronic file tracing method provided by the present application, which can be applied to electronic devices, wherein the method can specifically include the following steps:

[0057] Step S101: input a target electronic file, wherein the target electronic file is a file to be injected with an invisible watermark or a file to be traced.

[0058] It should be noted that the target electronic file mentioned in this application is not limited to any file type, and the target file itself can be used as a data source.

[0059] Step S102: Identify and analyze the content of the target electronic file to obtain an identification and analysis result.

[0060] When parsing the content of the target electronic file, it can be achieved by using an open source commercial engine or a self-developed parsing engine. At present, commonly used parsing engines include mature file content parsing engines such as Java's Tika and Aspose. In addition, parsing engines of other programming languages ​​can also be selected, or self-developed engines can be developed to implement parsing functions for different types of files. It should be noted that this application does not limit the specific form of the parsing engine.

[0061] Step S103: judging whether encoding format conversion is required according to the recognition and analysis result; if the judgment result is yes, executing step S104.

[0062] In one case, whether encoding format conversion is required can be determined in the following manner: determining whether encoding format conversion is required based on whether the file body of the target electronic document is in Unicode encoding format; and determining that encoding format conversion is required when the file body of the target electronic document is not in Unicode encoding format.

[0063] Step S104: converting the encoding format of the target electronic file.

[0064] In one case, the target electronic file may be converted into a coding format in the following manner: based on a pre-configured coding comparison table, the target electronic file may be converted into a coding format; wherein the coding comparison table generates coding comparison formats of numbers 0-9 and letters az based on different permutations and combinations of four-bit zero-width characters.

[0065] The principle of the coding comparison table of the present application is explained below with reference to a specific example.

[0066] It should be noted that the watermark encoding table is composed of four different zero-width characters, namely:

[0067] Zero Width Space (ZWSP), character code 200B;

[0068] Zero Width Joiner (ZWJ), character code 200C;

[0069] Left-to-right mark (LRM), character code 200D;

[0070] Right-to-left mark (RLM), character code 200E.

[0071] Please refer to Table 1, which is a specific encoding format provided by this application, wherein each word represents a number from 1 to 4, and the quaternary encoding format is as follows:

[0072] Table 1:

[0073] Unicode character set Representative Numbers 200B 0 200C 1 200D 2 200E 3

[0074] Please refer to Table 2, which is a watermark coding comparison table provided in this application, which defines English letters, common punctuation marks and numbers in quaternary format, as follows:

[0075] Table 2:

[0076]

[0077]

[0078]

[0079] Step S105: injecting invisible watermark into the target electronic file after the encoding format conversion or the target electronic file that does not need to be converted into the encoding format.

[0080] In one case, the target electronic file after the encoding format conversion or the target electronic file that does not need to be converted into the encoding format can be invisible watermarked in the following manner: the information to be recorded is used as an invisible watermark and is entered into the file body of the target electronic file according to the fixed format of the encoding comparison table.

[0081] like Figure 2As shown, it is a schematic diagram of the invisible watermark provided by the present application. It includes a watermark header identifier, a watermark serial number, a watermark length, a content interval (including the watermark author name, the watermark time, and a custom interval) and a watermark tail identifier. Specifically, each character segment of the watermark is separated by the symbol ';', and the ';' cannot be used in the content of the invisible watermark. Watermark header / tail identifier: fixed to 3000 / 3333, these two strings are unique and appear in pairs, and are used to accurately find the start and end of each watermark segment in the parsing program. Watermark serial number: starting from 1 and accumulating up to 3332 (254), it is used to record the true insertion time sequence when multiple watermarks appear continuously. Watermark length: identifies the overall length of the content interval characters, which can carry up to 254 characters. Each 0 to 2122 represents a character. Please refer to the watermark encoding comparison table below for details. Content interval: watermark author name, recording the author to whom the current file belongs. Appears in the form of a string. The cumulative length cannot exceed the maximum length of the watermark. Watermark time: recorded in digital form of system standard time. The accumulated length cannot exceed the maximum length of the watermark. Custom interval: the remaining space can be used to customize other content.

[0082] After the file content is parsed, the watermark content is written at the end of each paragraph of the file content according to the format definition. If the full text has multiple natural paragraphs, an invisible watermark is added before the line break at the end of each natural paragraph. It is understandable that the purpose of adding watermarks to all natural paragraphs is to prevent the watermark from being lost due to deliberate deletion during the file circulation process.

[0083] It should be noted that before the information to be recorded is used as an invisible watermark and entered into the file body of the target electronic file according to the fixed format of the encoding comparison table, the binary content in the GBK encoding format is also converted into the UTF encoding format.

[0084] Step S106: performing invisible watermark analysis on the electronic file in file circulation according to the invisible watermark, and tracing the source of the electronic file based on the analysis result.

[0085] In one case, the invisible watermark analysis of an electronic file in circulation can be performed in the following manner, and the electronic file can be traced based on the analysis result: the invisible watermark in the body of the file can be located by analyzing the target electronic file; the invisible watermark can be analyzed into corresponding plain text content according to the coding comparison table; and the target electronic file can be traced and / or the file path identified based on the analyzed plain text content.

[0086] The solution provided by this application can use the source file as the data source and the actual content of the file as the target for code type judgment; the flexible deployment of the identification and analysis of the content of the target electronic file makes it more convenient to use the Java module for analysis for the service architecture, and lightweight analysis modules can be used for terminal products, which can facilitate the installation, packaging and running speed of terminal type products; in addition, it solves the problem that the traditional artificial intelligence algorithm is large in size and most terminal products cannot fully deploy intelligent modules. This solution uses simple mathematical algorithms that are lighter and faster in operation, and has lower hardware requirements. This application can realize the ability to parse file content, convert encoding formats, enter invisible watermarks, and obtain file traceback information through watermarks.

[0087] It should be noted that this application provides a complete invisible watermark and file traceability solution for file content, and the file parsing technology and character encoding conversion technology can have the following alternatives: 1) Use tika to parse files; 2) Use aspose to parse files; 3) Use other independent modules such as doctotext and other open source parsing engines to parse files. 4) Use sconv for text encoding conversion.

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

[0089] Embodiment 2

[0090] Reference Figure 3 , is a structural diagram of an electronic file tracing device provided by this application, the device comprising:

[0091] A file input module 21, used for inputting a target electronic file, wherein the target electronic file is a file to be injected with an invisible watermark or a file to be traced;

[0092] The file analysis module 22 is used to identify and analyze the content of the target electronic file to obtain an identification and analysis result;

[0093] The format conversion module 23 is used to determine whether encoding format conversion is required according to the recognition and analysis result; if the determination result is yes, the encoding format conversion is performed on the target electronic file;

[0094] The invisible watermark injection module 24 is used to inject invisible watermark into the target electronic file after the encoding format conversion or the target electronic file that does not need to be converted into the encoding format;

[0095] The watermark analysis and tracing module 25 is used to analyze the invisible watermark of the electronic file in the file circulation according to the invisible watermark, and to trace the electronic file based on the analysis result.

[0096] It should be noted that the file parsing module is the key part responsible for parsing the content of files in different formats. This module can be implemented by using an open source commercial engine or a self-developed parsing engine. At present, commonly used parsing engines include mature file content parsing engines such as Java's Tika and Aspose. In addition, parsing engines of other programming languages ​​can also be selected, or self-developed engines can be developed to implement parsing functions of different types of files. It should be noted that this application does not limit the specific form of the parsing engine.

[0097] In one case, the format conversion module 23 is specifically used to determine whether encoding format conversion is required based on whether the file body of the target electronic document is in Unicode encoding format; and determine that encoding format conversion is required when the file body of the target electronic document is not in Unicode encoding format.

[0098] In one case, the format conversion module 23 is specifically used to convert the encoding format of the target electronic file based on a pre-configured encoding comparison table; wherein the encoding comparison table generates encoding comparison formats of numbers 0-9 and letters az based on different permutations and combinations of four-bit zero-width characters.

[0099] In one case, the invisible watermark injection module 24 is specifically used to use the information to be recorded as an invisible watermark and enter it into the file body of the target electronic file according to the fixed format of the encoding comparison table.

[0100] In one case, the invisible watermark injection module 24 is also used to convert the binary content in GBK encoding format into UTF encoding format.

[0101] In one scenario, the watermark parsing and tracing module is specifically used to locate and find the invisible watermark in the body of the file by parsing the target electronic file; parsing the invisible watermark into corresponding plaintext content according to the encoding comparison table; and tracing the target electronic file and / or identifying the file path based on the parsed plaintext content.

[0102] The solution provided by this application can use the source file as the data source and use the actual content of the file as the target to judge the code type; the file parsing module can be flexibly deployed, making it more convenient to use the Java module for parsing the service architecture, and lightweight parsing modules can be used for terminal products, which can facilitate the installation, packaging and running speed of terminal type products; in addition, it solves the problem that traditional artificial intelligence algorithms are large in size and most terminal products cannot fully deploy intelligent modules. This solution uses simple mathematical algorithms that are lighter and faster in operation, and has lower hardware requirements. This application can realize the ability to parse file content, convert encoding formats, enter invisible watermarks, and obtain file traceback information through watermarks.

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

[0104] Embodiment 3

[0105] Optionally, an embodiment of the present application further provides an electronic device, comprising: a processor, a memory, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the various processes of the above-mentioned method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.

[0106] The embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, each process of the above method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. The computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0107] Figure 4 The present application provides a block diagram of an electronic device 800. For example, the electronic device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0108] Reference Figure 4 , the electronic device 800 may include one or more of the following components: a processing component 802 , a memory 804 , a power component 806 , a multimedia component 808 , an audio component 810 , an input / output (I / O) interface 812 , a sensor component 814 , and a communication component 816 .

[0109] The processing component 802 generally controls the overall operation of the electronic device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.

[0110] The memory 804 is configured to store various types of data to support operations on the device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phone book data, messages, images, videos, etc. The memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0111] The power supply component 806 provides power to the various components of the electronic device 800. The power supply component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 800.

[0112] The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and the rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0113] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), and when the electronic device 800 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 804 or sent via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.

[0114] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.

[0115] The sensor assembly 814 includes one or more sensors for providing various aspects of status assessment for the electronic device 800. For example, the sensor assembly 814 can detect the open / closed state of the device 800, the relative positioning of components, such as the display and keypad of the electronic device 800, and the sensor assembly 814 can also detect the position change of the electronic device 800 or a component of the electronic device 800, the presence or absence of contact between the user and the electronic device 800, the orientation or acceleration / deceleration of the electronic device 800, and the temperature change of the electronic device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 814 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0116] The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 can access a wireless network based on a communication standard, such as WiFi, a carrier network (such as 2G, 3G, 4G or 5G), or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast operation information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0117] In an exemplary embodiment, the electronic device 800 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.

[0118] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, and the instructions can be executed by a processor 820 of an electronic device 800 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0119] Embodiment 4

[0120] Figure 5 This is a block diagram of another electronic device 1900 provided in the present application. For example, the electronic device 1900 may be provided as a server.

[0121] Reference Figure 5 , the electronic device 1900 includes a processing component 1922, which further includes one or more processors, and a memory resource represented by a memory 1932 for storing instructions executable by the processing component 1922, such as an application. The application stored in the memory 1932 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 1922 is configured to execute instructions to perform the above method.

[0122] The electronic device 1900 may also include a power supply component 1926 configured to perform power management of the electronic device 1900, a wired or wireless network interface 1950 configured to connect the electronic device 1900 to a network, and an input / output (I / O) interface 1958. The electronic device 1900 may operate based on an operating system stored in the memory 1932, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™ or the like.

[0123] Embodiment 5

[0124] In a fifth aspect, the present application illustrates a computer program product. When instructions in the computer program product are executed by a processor of an electronic device, the electronic device is enabled to execute the method described in any of the above aspects.

[0125] It should be noted that, in this article, the terms "include", "comprises" or any other variations 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, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0126] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0127] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

[0128] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in the present application can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0129] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0130] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0131] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0132] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0133] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage media include: various media that can store program codes, such as USB flash drives, mobile hard drives, ROM, RAM, magnetic disks, or optical disks.

[0134] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A method for tracing the origin of an electronic file, characterized in that: The method comprises: Input a target electronic file, wherein the target electronic file is a file to be injected with an invisible watermark or a file to be traced; Identify and analyze the content of the target electronic file to obtain an identification and analysis result; Determine whether encoding format conversion is required according to the identification and analysis results; If the determination result is yes, the encoding format of the target electronic file is converted; Injecting invisible watermarks into target electronic files after encoding format conversion or target electronic files that do not need encoding format conversion; The invisible watermark is analyzed for the electronic file in the file circulation according to the invisible watermark, and the electronic file is traced based on the analysis result.

2. The electronic file tracing method according to claim 1, characterized in that: The step of determining whether encoding format conversion is required according to the identification and analysis result comprises: Determining whether encoding format conversion is required based on whether the file body of the target electronic file is in Unicode encoding format; When the file body of the target electronic document is not in Unicode encoding format, it is determined that encoding format conversion is required.

3. The electronic file tracing method according to claim 1, characterized in that: The step of converting the encoding format of the target electronic file comprises: Based on a pre-configured encoding comparison table, the encoding format of the target electronic file is converted; wherein the encoding comparison table generates encoding comparison formats of numbers 0-9 and letters az based on different permutations and combinations of four-bit zero-width characters.

4. The electronic file tracing method according to claim 3 is characterized in that: The step of injecting invisible watermark into the target electronic file after the encoding format conversion or the target electronic file that does not need to be converted into the encoding format comprises: The information to be recorded is used as an invisible watermark and is entered into the body of the target electronic file according to the fixed format of the coding comparison table.

5. The electronic file tracing method according to claim 4, characterized in that: Before the step of taking the information to be recorded as an invisible watermark and entering it into the body of the target electronic file in the fixed format of the coding comparison table, the method further includes: Convert binary content in GBK encoding format to UTF encoding format.

6. The electronic file tracing method according to claim 3, characterized in that: The step of performing invisible watermark analysis on the electronic file in file circulation according to the invisible watermark, and tracing the source of the electronic file based on the analysis result includes: By performing file analysis on the target electronic file, the invisible watermark in the body of the file is located and found; Parsing the invisible watermark into corresponding plaintext content according to the encoding comparison table; The target electronic file is traced and / or its path is identified based on the parsed plain text content.

7. An electronic file tracing device, characterized in that: The device comprises: A file input module, used for inputting a target electronic file, wherein the target electronic file is a file to be injected with an invisible watermark or a file to be traced; A file analysis module, used to identify and analyze the content of the target electronic file to obtain an identification and analysis result; A format conversion module, used to determine whether encoding format conversion is required according to the identification and analysis result; if the determination result is yes, then convert the encoding format of the target electronic file; An invisible watermark injection module is used to inject invisible watermarks into target electronic files after encoding format conversion or target electronic files that do not need encoding format conversion; The watermark analysis and tracing module is used to analyze the invisible watermark of the electronic file in the file circulation according to the invisible watermark, and to trace the electronic file based on the analysis result.

8. The electronic file source tracing device according to claim 7, characterized in that: The format conversion module is specifically used for: Determining whether encoding format conversion is required based on whether the file body of the target electronic file is in Unicode encoding format; When the file body of the target electronic document is not in Unicode encoding format, it is determined that encoding format conversion is required.

9. The electronic file source tracing device according to claim 7, characterized in that: The format conversion module is specifically used for: Based on a pre-configured encoding comparison table, the encoding format of the target electronic file is converted; wherein the encoding comparison table generates encoding comparison formats of numbers 0-9 and letters az based on different permutations and combinations of four-bit zero-width characters.

10. The electronic file source tracing device according to claim 9, characterized in that: The invisible watermark injection module is specifically used for: The information to be recorded is used as an invisible watermark and is entered into the body of the target electronic file according to the fixed format of the coding comparison table.

11. The electronic file source tracing device according to claim 10, characterized in that: The invisible watermark injection module is also used for: Convert binary content in GBK encoding format to UTF encoding format.

12. The electronic file source tracing device according to claim 9, characterized in that: The watermark analysis and tracing module is specifically used to: By performing file analysis on the target electronic file, the invisible watermark in the body of the file is located and found; Parsing the invisible watermark into corresponding plaintext content according to the encoding comparison table; The target electronic file is traced and / or its path is identified based on the parsed plain text content.

13. An electronic device, characterized in that: include: A processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the method according to any one of claims 1 to 6 when executed by the processor.

14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.

15. A computer program product, characterized in that When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device implements the method according to any one of claims 1 to 6.