File marking method and device, equipment and storage medium
By embedding invisible watermark information in financial data files, the problem of lack of security control in network storage and sharing of financial data is solved, the invisible marking and traceability of data are realized, and the security and copyright protection of data are improved.
Patent Information
- Application Number
- CN202510736390.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-04
- Publication Date
- 2025-09-05
AI Technical Summary
Financial data lacks effective security control and copyright protection during network storage and sharing, making it difficult to trace and verify ownership after data leaks.
By embedding invisible watermark information into files, including operation time and source information, files can be invisible marked to ensure data traceability without being changed.
It improves the security and traceability of data, and can locate the leakage channel through watermark information after data leakage, protect copyright and avoid disputes.
Smart Images

Figure CN120597245A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of financial technology, and in particular to a file marking method, apparatus, device, and storage medium. Background Art
[0002] Financial data from financial institutions often contains various types of sensitive information. Even after desensitization, this sensitive information still has enormous social value. Once a data leak occurs, the consequences are disastrous. In the current network information age, more and more financial data needs to be stored and published online.
[0003] In existing technologies, financial data is usually published and stored directly over the Internet. With the increasing demand for data sharing and exchange of financial data, if effective security controls and copyright protection measures are not implemented, attackers will have an opportunity to exploit.
[0004] Therefore, there is an urgent need for a file marking method that can protect the copyright of files by embedding watermarks into files containing data. Summary of the Invention
[0005] The present invention provides a file marking method, device, equipment and storage medium, which realize the marking of files based on watermarks, realize the copyright protection of files, and provide evidence for data tracing.
[0006] In a first aspect, an embodiment of the present invention provides a file marking method, comprising:
[0007] Acquire watermark information of a file to be marked, wherein the watermark information at least includes time information;
[0008] By processing the watermark information, the watermark information is converted into invisible characters;
[0009] The invisible characters corresponding to the watermark information are inserted into the file to be marked to obtain a marked file corresponding to the file to be marked.
[0010] The technical solution of an embodiment of the present invention provides a file marking method, comprising: obtaining watermark information of a file to be marked, wherein the watermark information includes at least time information; processing the watermark information to convert the watermark information into invisible characters; and inserting the invisible characters corresponding to the watermark information into the file to be marked to obtain a marked file corresponding to the file to be marked. The above technical solution can first obtain the operation time of the data in the file to be marked and use the operation time as watermark information to facilitate operation monitoring of the data in the file to be marked. Secondly, the watermark information can be processed to convert the watermark information into invisible characters to achieve invisible processing of the watermark information. Then, the invisible characters corresponding to the watermark information can be inserted into the file to be marked to obtain a marked file corresponding to the file to be marked. The file to be marked is marked while keeping the data in the file to be marked unchanged, that is, invisible marking of the file to be marked is achieved, thereby establishing a traceability basis for the data in the file. In the event of data leakage, the operation time of the data can be determined by converting the invisible characters into watermark information, and the leakage channel can be located based on the operation time, thereby improving the security and traceability of the data.
[0011] Furthermore, the watermark information also includes source information. Accordingly, obtaining the watermark information of the file to be marked includes:
[0012] Acquire the operation time and source information of the file to be marked, wherein the source information includes at least system source and user source;
[0013] The operation time and the source information of the file to be marked are determined as the watermark information of the file to be marked.
[0014] Furthermore, the watermark information is processed to convert the watermark information into invisible characters, including:
[0015] After determining the UTF code corresponding to the watermark information, performing ternary conversion on the UTF code to obtain the ternary code corresponding to the watermark information;
[0016] The invisible character corresponding to the watermark information is obtained by replacing each ternary digit in the ternary code corresponding to the watermark information with a corresponding invisible character.
[0017] Furthermore, the watermark information is processed to convert the watermark information into invisible characters, including:
[0018] After the watermark information is converted into binary, each binary bit is mapped to a corresponding zero-width character to obtain the invisible character corresponding to the watermark information.
[0019] Furthermore, inserting the invisible characters corresponding to the watermark information into the file to be marked to obtain a marked file corresponding to the file to be marked includes:
[0020] The invisible characters corresponding to the watermark information are inserted into the file to be marked based on pseudo-row and pseudo-column technology to obtain the marked file corresponding to the file to be marked.
[0021] Furthermore, it also includes:
[0022] Extracting the invisible characters corresponding to the preset mark file at a preset position of the preset mark file;
[0023] The watermark information of the preset mark file is obtained by performing an inverse process of converting the watermark into the invisible characters on the invisible characters corresponding to the preset mark file.
[0024] In a second aspect, an embodiment of the present invention further provides a file marking device, comprising:
[0025] An acquisition module, configured to acquire watermark information of a file to be marked, wherein the watermark information at least includes time information;
[0026] a processing module, configured to convert the watermark information into invisible characters by processing the watermark information;
[0027] The marking module is used to insert the invisible characters corresponding to the watermark information into the file to be marked to obtain a marked file corresponding to the file to be marked.
[0028] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising:
[0029] at least one processor; and a memory communicatively coupled to the at least one processor;
[0030] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the file marking method as described in any one of the first aspects.
[0031] In a fourth aspect, an embodiment of the present invention further provides a storage medium comprising computer-executable instructions, wherein the computer-executable instructions, when executed by a computer processor, are used to execute the file marking method as described in any one of the first aspects.
[0032] In a fifth aspect, the present application provides a computer program product, which includes computer instructions. When the computer instructions are executed on a computer, the computer executes the file marking method provided in the first aspect.
[0033] It should be noted that the above-mentioned computer instructions may be stored in whole or in part on a computer-readable storage medium. The computer-readable storage medium may be packaged together with the processor of the file marking device or separately from the processor of the file marking device, and this application does not limit this.
[0034] The descriptions of the second, third, fourth and fifth aspects of this application can refer to the detailed description of the first aspect; and the beneficial effects of the descriptions of the second, third, fourth and fifth aspects can refer to the analysis of the beneficial effects of the first aspect, which will not be repeated here.
[0035] In this application, the name of the document marking device does not limit the device or functional module itself. In actual implementation, these devices or functional modules may appear with other names. As long as the functions of each device or functional module are similar to those of this application, they fall within the scope of the claims of this application and their equivalents.
[0036] These and other aspects of the present application will become more readily apparent from the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0038] Figure 1 A flowchart of a file marking method provided by an embodiment of the present invention;
[0039] Figure 2 A flowchart of another file marking method provided by an embodiment of the present invention;
[0040] Figure 3 A schematic structural diagram of a file marking device provided by an embodiment of the present invention;
[0041] Figure 4 A schematic structural diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0042] The present invention will be further described in detail below with reference to the accompanying drawings and examples. It will be understood that the specific embodiments described herein are intended only to illustrate the present invention and are not intended to limit the present invention. It should also be noted that, for ease of description, the accompanying drawings only illustrate portions relevant to the present invention, not all structures.
[0043] The term "and / or" in this article is merely a description of the association relationship between associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.
[0044] The terms "first" and "second" and the like in the specification and drawings of this application are used to distinguish different objects, or to distinguish different processing of the same object, rather than to describe a specific order of objects.
[0045] Furthermore, the terms "including," "having," and any variations thereof, as used in the description of this application are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or apparatus comprising a series of steps or units is not limited to the listed steps or units but may optionally include other steps or units not listed, or may optionally include other steps or units inherent to the process, method, product, or apparatus.
[0046] It should be mentioned before discussing exemplary embodiments in more detail that some exemplary embodiments are described as processes or methods depicted as flow charts. Although flow charts describe various operations (or steps) as sequential processes, many operations therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of various operations can be rearranged. When its operation is completed, the process can be terminated, but can also have additional steps not included in the accompanying drawings. The process can correspond to methods, functions, procedures, subroutines, subprograms, etc. In addition, the features in the embodiments of the present invention and the embodiments can be combined with each other without conflict.
[0047] It should be noted that in the embodiments of this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of this application should not be interpreted as being more preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.
[0048] In the description of the present application, unless otherwise specified, “plurality” means two or more.
[0049] In existing technologies, data is at risk of being stolen and infringed during the sharing and exchange process. Due to the lack of protection measures, data owners find it difficult to prove their ownership of the data in copyright disputes.
[0050] Therefore, this application proposes a file marking method, which realizes copyright protection of files by invisible marking of files containing data, and then realizes copyright protection of data in the text, providing evidence for data tracing.
[0051] Figure 1 This is a flowchart of a file marking method provided by an embodiment of the present invention. This embodiment is applicable to situations where files need to be marked. The method can be executed by a file marking device, such as Figure 1 As shown, the specific steps include:
[0052] Step 110: Obtain watermark information of the file to be marked.
[0053] The watermark information at least includes time information.
[0054] The file to be marked includes data that needs to be copyright protected. In order to protect the copyright of the data, watermark information can be added to the file to be marked. The watermark information includes at least time information. The time information here can be understood as the operation time of the data stored in the file to be marked. The operation time can be storage time, update time or copy time.
[0055] Specifically, the watermark information of the file to be marked can be obtained, and specifically, the time information of the file to be marked can be obtained, that is, the operation time of the data in the file to be marked, such as the storage time, update time, or copy time. By using the operation time of the data in the file to be marked as the watermark information, the watermark information can indicate the storage time, update time, or copy time of the data in the file to be marked, thereby realizing operation monitoring of the data in the file to be marked.
[0056] In the embodiment of the present invention, the watermark information corresponding to the file to be marked is obtained by obtaining the operation time of the data in the file to be marked.
[0057] Step 120: Process the watermark information to convert it into invisible characters.
[0058] The watermark information of the file to be marked can clearly indicate the operation time of the file to be marked. In order to prevent data theft and infringement without changing the data, an invisible watermark can be added to the file to be marked. Therefore, it is necessary to convert the watermark information into an invisible watermark.
[0059] Specifically, after determining the watermark information of the file to be marked, the watermark information can be processed, that is, the watermark information can be made invisible. Specifically, the watermark information can be encoded first, and then the encoded result can be converted into invisible characters to obtain the invisible characters corresponding to the watermark information.
[0060] Invisible characters can be zero-width characters or control characters. When the invisible characters are zero-width characters, the watermark information can be first binary-encoded, the watermark information can be converted into binary, and then each binary bit in the binary can be mapped to a zero-width character to obtain the invisible character corresponding to the watermark information, thereby realizing the invisible processing of the watermark information.
[0061] In the embodiment of the present invention, watermark information is processed to convert the watermark information into invisible characters, thereby achieving invisible processing of the watermark information. The invisible processed watermark information can be used to invisible mark the file to be marked.
[0062] Step 130: Insert the invisible characters corresponding to the watermark information into the file to be marked, to obtain a marked file corresponding to the file to be marked.
[0063] The file to be marked may be a table file, for example, an xlsx file or an xls file.
[0064] Specifically, the invisible characters corresponding to the watermark information can be inserted into any cell in the table file. Specifically, the invisible characters corresponding to the watermark information can be inserted into any cell in the table file based on the pseudo-row and pseudo-column technology to obtain the marked file corresponding to the to-be-marked file, thereby achieving invisible marking of the to-be-marked file based on the watermark information of the to-be-marked file.
[0065] In an embodiment of the present invention, by inserting invisible characters corresponding to the watermark information into the file to be marked, a marking file corresponding to the file to be marked can be obtained, and the marking of the file to be marked can be achieved while keeping the data in the file to be marked unchanged, that is, invisible marking of the file to be marked can be achieved.
[0066] The present invention provides a file marking method, comprising: obtaining watermark information of a file to be marked, wherein the watermark information includes at least time information; processing the watermark information to convert the watermark information into invisible characters; and inserting the invisible characters corresponding to the watermark information into the file to be marked, thereby obtaining a marked file corresponding to the file to be marked. The above technical solution can first obtain the operation time of the data in the file to be marked and use the operation time as watermark information to facilitate operation monitoring of the data in the file to be marked. Secondly, the watermark information can be processed to convert the watermark information into invisible characters to achieve invisible processing of the watermark information. Then, the invisible characters corresponding to the watermark information can be inserted into the file to be marked, thereby obtaining a marked file corresponding to the file to be marked. The file to be marked is marked while keeping the data in the file to be marked unchanged, that is, invisible marking of the file to be marked is achieved, thereby establishing a traceability basis for the data in the file. Once data leakage occurs, the operation time of the data can be determined by converting the invisible characters into watermark information, and the leakage channel can be located by the operation time, thereby improving the security and traceability of the data.
[0067] Figure 2 This is a flowchart of another file marking method provided by an embodiment of the present invention. This embodiment is specific based on the above embodiment. Figure 2 As shown, in this embodiment, the method may further include:
[0068] Step 210: Obtain the operation time and source information of the file to be marked.
[0069] The file to be marked is a spreadsheet file or a text file. The spreadsheet file can be an xlsx file or an xls file, and the text file can be a txt file or a word file. The source information includes at least a system source and a user source. The system source can be understood as the database or business system to which the file to be marked belongs, for example, the identification information of the database or business system to which the file to be marked belongs. The user source can be understood as the user to whom the file to be marked belongs, for example, the identification information of the user to whom the file to be marked belongs.
[0070] As previously mentioned, to protect the copyright of the data within the file to be marked, watermark information can be added to the file to be marked. To reflect richer information about the file to be marked in the watermark information, the watermark information of the file to be marked can include the operation time and source information of the file to be marked. The operation time can be understood as the storage time, update time, or copy time. By using the operation time of the data within the file to be marked as watermark information, the watermark information can indicate the storage time, update time, or copy time of the data within the file to be marked, thereby enabling operation monitoring of the data within the file to be marked. The source information can be understood as the database or business system to which the file to be marked belongs and the user to whom it belongs. Therefore, it is first necessary to obtain the operation time and source information of the file to be marked.
[0071] In practical applications, when the data to be distributed is stored in the file to be marked, the watermark information also includes information such as the distribution object, distribution time, distribution method, and distribution range.
[0072] Step 220: Determine the operation time and the source information of the file to be marked as the watermark information of the file to be marked.
[0073] Specifically, after obtaining the operation time and source information of the file to be marked, the operation time and source information can be determined as the watermark information of the file to be marked. Specifically, the operation time and source information can be spliced, and the splicing result can be determined as the watermark information of the file to be marked.
[0074] In the embodiment of the present invention, the watermark information corresponding to the file to be marked is obtained by combining the operation time and source information of the file to be marked, thereby achieving richer watermark information for the file to be marked.
[0075] Step 230: Process the watermark information to convert it into invisible characters.
[0076] In one implementation, step 230 may specifically include:
[0077] After determining the UTF code corresponding to the watermark information, the UTF code is converted into ternary to obtain the ternary code corresponding to the watermark information; and the invisible character corresponding to the watermark information is obtained by replacing each ternary digit in the ternary code corresponding to the watermark information with a corresponding invisible character.
[0078] Specifically, first, the watermark information can be UTF-8 encoded, and each character in the watermark information can be converted into UTF-8 encoding to obtain the UTF-8 encoding corresponding to the watermark information. Secondly, each code in the UTF-8 encoding can be ternary converted to obtain the ternary encoding corresponding to the watermark information, and then the ternary encoding can be converted into invisible characters. Specifically, each ternary digit in the ternary encoding can be replaced with the corresponding invisible character to obtain the invisible character corresponding to the watermark information.
[0079] Likewise, invisible characters can be zero-width characters or control characters.
[0080] In another embodiment, step 230 may specifically include:
[0081] After the watermark information is converted into binary, each binary bit is mapped to a corresponding zero-width character to obtain the invisible character corresponding to the watermark information.
[0082] Strings can be directly converted to binary, and binary can be directly converted to zero-width characters. Therefore, when the watermark information only includes strings, we can first perform binary encoding on each character of the watermark information to obtain the binary corresponding to the watermark information. Then, we can map each binary bit in the binary corresponding to the watermark information to the corresponding zero-width character to obtain the invisible character corresponding to the watermark information.
[0083] In the embodiment of the present invention, watermark information is processed to convert the watermark information into invisible characters, thereby achieving invisible processing of the watermark information. The invisible processed watermark information can be used to invisible mark the file to be marked.
[0084] Step 240: Insert the invisible characters corresponding to the watermark information into the file to be marked based on pseudo-row and pseudo-column technology to obtain the marked file corresponding to the file to be marked.
[0085] Specifically, when the file to be marked is a table file, the invisible characters corresponding to the watermark information can be inserted into any cell, any row cell, or any column cell in the table file. Of course, in order not to occupy additional cells in the table file, the invisible characters corresponding to the watermark information can be inserted into any cell, any row cell, or any column cell in the table file that already stores data. At this time, based on the pseudo-row and pseudo-column technology, the invisible characters corresponding to the watermark information can be inserted into any cell, any row cell, or any column cell in the table file that already stores data, to obtain a marked file corresponding to the file to be marked, thereby realizing invisible marking of the file to be marked based on the watermark information of the file to be marked.
[0086] In practical applications, the invisible characters corresponding to the watermark information can be inserted into a preset position in a table file based on pseudo-row and pseudo-column technology, for example, into the cell corresponding to the first row, first column, or first row and first column in the table file.
[0087] When the file to be marked is a text file, the invisible characters corresponding to the watermark information can be inserted into any position in the file. Of course, in order to avoid taking up additional storage space in the text file, the invisible characters corresponding to the watermark information can be inserted into any position in the text file where data has already been written. In this case, the invisible characters corresponding to the watermark information can also be written into any position in the text file where data has already been written based on the pseudo-row and pseudo-column technology to obtain a marked file corresponding to the file to be marked, thereby achieving invisible marking of the file to be marked based on the watermark information of the file to be marked.
[0088] In practical applications, the invisible characters corresponding to the watermark information can be inserted into a preset position in a text file based on pseudo-row and pseudo-column technology, for example, into the first row or the first column of the text file.
[0089] It should be noted that when the data in the file to be marked is desensitized data, the security and traceability of the data during shared use can be improved by combining desensitizing technology and invisible watermark technology.
[0090] In an embodiment of the present invention, by inserting invisible characters corresponding to the watermark information into the file to be marked, a marking file corresponding to the file to be marked can be obtained, and the marking of the file to be marked can be achieved while keeping the data in the file to be marked unchanged, that is, invisible marking of the file to be marked can be achieved.
[0091] Step 250: extract the invisible characters corresponding to the preset mark file at the preset position of the preset mark file; and obtain the watermark information of the preset mark file by performing reverse processing of converting the watermark into the invisible characters on the invisible characters corresponding to the preset mark file.
[0092] The preset mark file can be understood as a file to which invisible characters have been added.
[0093] Specifically, invisible characters corresponding to the preset mark file are added to the preset position of the preset mark file. Therefore, information extraction can be performed at the preset position of the preset mark file to determine the invisible characters corresponding to the preset mark file. Since the invisible characters are converted from the watermark information, the invisible characters corresponding to the preset mark file can be processed according to the inverse processing operation of the invisible characters converted from the watermark information to obtain the watermark information of the preset mark file. The watermark information of the preset mark file includes the operation time and source information corresponding to the preset mark file. The operation time and source information corresponding to the preset mark file are also the operation time and source information of the data in the preset mark file, thereby realizing traceability of the data in the preset mark file.
[0094] In the embodiment of the present invention, the watermark information of the preset mark file is obtained by performing reverse processing of converting the watermark into invisible characters on the invisible characters corresponding to the preset mark file, thereby realizing the traceability of the data in the preset mark file.
[0095] The file marking method provided by an embodiment of the present invention includes: obtaining the operation time and source information of the file to be marked; determining the operation time and source information of the file to be marked as the watermark information of the file to be marked; converting the watermark information into invisible characters by processing the watermark information; inserting the invisible characters corresponding to the watermark information into the file to be marked based on pseudo-row and pseudo-column technology to obtain the marking file corresponding to the file to be marked; extracting the invisible characters corresponding to the preset marking file at a preset position of the preset marking file; and obtaining the watermark information of the preset marking file by performing inverse processing of watermark to invisible characters on the invisible characters corresponding to the preset marking file. The above technical solution can first obtain the operation time and source information of the data in the file to be marked, and use the operation time and source information as watermark information, which is convenient for operation monitoring and source monitoring of the data in the file to be marked. Secondly, the watermark information can be processed and converted into invisible characters to achieve invisible processing of the watermark information. Then, based on the pseudo-row and pseudo-column technology, the invisible characters corresponding to the watermark information can be inserted into the file to be marked to obtain the marked file corresponding to the file to be marked. The marking of the file to be marked can be achieved while keeping the data in the file to be marked unchanged, that is, the invisible marking of the file to be marked is achieved, and then a traceability basis for the data in the file is established.
[0096] Of course, for the preset mark file, the invisible characters corresponding to the preset mark file can be extracted at the preset position of the preset mark file. By performing the reverse processing of watermark to invisible characters on the invisible characters corresponding to the preset mark file, the watermark information of the preset mark file can be obtained, thereby realizing the traceability of the data in the preset mark file.
[0097] Furthermore, an effective traceability mechanism is established for data-intensive and information-sensitive industries when sharing data. In the event of a data leak, invisible characters can be converted into watermark information to determine the time of data manipulation, and the leakage channel can be located based on the manipulation time, thus improving data security and traceability. Furthermore, for data at risk of theft or infringement in scenarios such as public disclosure and data mining, the addition of invisible markers to files provides a basis for tracing the data within the files, thereby achieving copyright protection for the data within the files and avoiding lengthy disputes and litigation over copyright issues.
[0098] Figure 3 This is a schematic diagram of the structure of a file marking device provided by an embodiment of the present invention. The device can be used in situations where a file needs to be watermarked. The device can be implemented through software and / or hardware and is generally integrated into an electronic device, such as a computer.
[0099] like Figure 3 As shown, the device includes:
[0100] An acquisition module 310 is configured to acquire watermark information of a file to be marked, wherein the watermark information includes at least time information;
[0101] The processing module 320 is configured to process the watermark information to convert the watermark information into invisible characters;
[0102] The marking module 330 is configured to insert the invisible characters corresponding to the watermark information into the file to be marked, so as to obtain a marked file corresponding to the file to be marked.
[0103] The file marking device provided in this embodiment obtains watermark information of a file to be marked, wherein the watermark information includes at least time information; processes the watermark information to convert the watermark information into invisible characters; and inserts the invisible characters corresponding to the watermark information into the file to be marked to obtain a marked file corresponding to the file to be marked. The above technical solution can first obtain the operation time of the data in the file to be marked and use the operation time as watermark information to facilitate operation monitoring of the data in the file to be marked. Secondly, the watermark information can be processed to convert the watermark information into invisible characters to achieve invisible processing of the watermark information. Then, the invisible characters corresponding to the watermark information can be inserted into the file to be marked to obtain a marked file corresponding to the file to be marked. The file to be marked is marked while keeping the data in the file to be marked unchanged, that is, invisible marking of the file to be marked is achieved, thereby establishing a traceability basis for the data in the file. Once data leakage occurs, the operation time of the data can be determined by converting the invisible characters into watermark information, and the leakage channel can be located by the operation time, thereby improving the security and traceability of the data.
[0104] Based on the above embodiment, the watermark information further includes source information. Accordingly, the acquisition module 310 is specifically configured to:
[0105] The operation time and source information of the file to be marked are obtained, wherein the source information includes at least a system source and a user source; and the operation time and source information of the file to be marked are determined as the watermark information of the file to be marked.
[0106] Based on the above embodiment, the processing module 320 is specifically configured to:
[0107] After determining the UTF code corresponding to the watermark information, the UTF code is converted into ternary to obtain the ternary code corresponding to the watermark information; and the invisible character corresponding to the watermark information is obtained by replacing each ternary digit in the ternary code corresponding to the watermark information with a corresponding invisible character.
[0108] Based on the above embodiment, the processing module 320 is specifically configured to:
[0109] After the watermark information is converted into binary, each binary bit is mapped to a corresponding zero-width character to obtain the invisible character corresponding to the watermark information.
[0110] Based on the above embodiment, the marking module 330 is specifically configured to:
[0111] The invisible characters corresponding to the watermark information are inserted into the file to be marked based on pseudo-row and pseudo-column technology to obtain the marked file corresponding to the file to be marked.
[0112] Based on the above embodiment, the device further includes:
[0113] The execution module is used to extract the invisible characters corresponding to the preset mark file at a preset position of the preset mark file; and obtain the watermark information of the preset mark file by performing inverse processing of converting the watermark into invisible characters on the invisible characters corresponding to the preset mark file.
[0114] The file marking device provided in the embodiment of the present invention can execute the file marking method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of executing the file marking method.
[0115] It is worth noting that in the embodiment of the above-mentioned file marking device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.
[0116] Figure 4 A schematic structural diagram of an electronic device provided by an embodiment of the present invention. Figure 4 A block diagram of an exemplary electronic device 4 suitable for implementing embodiments of the present invention is shown. Figure 4 The electronic device 4 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0117] like Figure 4 As shown, electronic device 4 is in the form of a general-purpose computing electronic device. Components of electronic device 4 may include, but are not limited to, one or more processors or processing units 16, system memory 28, and a bus 18 connecting various system components (including system memory 28 and processing unit 16).
[0118] Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. Examples of these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.
[0119] The electronic device 4 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the electronic device 4, including volatile and non-volatile media, removable and non-removable media.
[0120] The system memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. The electronic device 4 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be configured to read and write non-removable, non-volatile magnetic media ( Figure 4 Not shown, often called a "hard drive"). Although Figure 4 Not shown, a magnetic disk drive for reading and writing to a removable non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 via one or more data media interfaces. System memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of various embodiments of the present invention.
[0121] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in system memory 28. Such program modules 42 include, but are not limited to, an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may include an implementation of a network environment. Program modules 42 generally perform the functions and / or methods of the embodiments described herein.
[0122] The electronic device 4 may also communicate with one or more external devices 14 (e.g., a keyboard, a pointing device, a display 24, etc.), one or more devices that enable a user to interact with the electronic device 4, and / or any device that enables the electronic device 4 to communicate with one or more other computing devices (e.g., a network card, a modem, etc.). Such communication may be performed via an input / output (I / O) interface 22. Furthermore, the electronic device 4 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 20. Figure 4 As shown, the network adapter 20 communicates with other modules of the electronic device 4 via the bus 18. Figure 4 Not shown, other hardware and / or software modules may be used in conjunction with the electronic device 4, including but not limited to microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0123] The processing unit 16 executes various functional applications and page displays by running programs stored in the system memory 28, for example, implementing the file marking method provided in an embodiment of the present invention, which includes:
[0124] Acquire watermark information of a file to be marked, wherein the watermark information at least includes time information;
[0125] By processing the watermark information, the watermark information is converted into invisible characters;
[0126] The invisible characters corresponding to the watermark information are inserted into the file to be marked to obtain a marked file corresponding to the file to be marked.
[0127] Of course, those skilled in the art will appreciate that the processor may also implement the technical solution of the file marking method provided in any embodiment of the present invention.
[0128] An embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon. When the program is executed by a processor, the file marking method provided in an embodiment of the present invention is implemented, for example, and the method includes:
[0129] Acquire watermark information of a file to be marked, wherein the watermark information at least includes time information;
[0130] By processing the watermark information, the watermark information is converted into invisible characters;
[0131] The invisible characters corresponding to the watermark information are inserted into the file to be marked to obtain a marked file corresponding to the file to be marked.
[0132] The computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to: an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or component, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device.
[0133] A computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0134] Program code embodied on a computer-readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0135] Computer program code for performing the operations of the present invention may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0136] Those skilled in the art will appreciate that the modules or steps of the present invention described above can be implemented using a general-purpose computing device. They can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they can be implemented using program code executable by a computer device, which can then be stored in a storage device and executed by the computing device. Alternatively, they can be fabricated into separate integrated circuit modules, or multiple modules or steps can be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
[0137] In addition, the acquisition, storage, use, and processing of data in the technical solution of the present invention comply with relevant provisions of laws and regulations.
[0138] Note that the above are only preferred embodiments of the present invention and the technical principles employed. Those skilled in the art will appreciate that the present invention is not limited to the specific embodiments herein, and that various obvious changes, readjustments, and substitutions are possible for those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments and may include many other equivalent embodiments without departing from the scope of the present invention. The scope of the present invention is determined by the scope of the appended claims.
Claims
1. A file marking method, characterized in that: include: Acquire watermark information of a file to be marked, wherein the watermark information at least includes time information; By processing the watermark information, the watermark information is converted into invisible characters; The invisible characters corresponding to the watermark information are inserted into the file to be marked to obtain a marked file corresponding to the file to be marked.
2. The file marking method according to claim 1, characterized in that: The watermark information also includes source information. Accordingly, obtaining the watermark information of the file to be marked includes: Acquire the operation time and source information of the file to be marked, wherein the source information includes at least system source and user source; The operation time and the source information of the file to be marked are determined as the watermark information of the file to be marked.
3. The file marking method according to claim 1, wherein: The watermark information is processed to convert the watermark information into invisible characters, including: After determining the UTF code corresponding to the watermark information, performing ternary conversion on the UTF code to obtain the ternary code corresponding to the watermark information; The invisible character corresponding to the watermark information is obtained by replacing each ternary digit in the ternary code corresponding to the watermark information with a corresponding invisible character.
4. The file marking method according to claim 1, wherein: The watermark information is processed to convert the watermark information into invisible characters, including: After the watermark information is converted into binary, each binary bit is mapped to a corresponding zero-width character to obtain the invisible character corresponding to the watermark information.
5. The file marking method according to claim 1, wherein: Inserting the invisible characters corresponding to the watermark information into the file to be marked to obtain a marked file corresponding to the file to be marked, comprising: The invisible characters corresponding to the watermark information are inserted into the file to be marked based on pseudo-row and pseudo-column technology to obtain the marked file corresponding to the file to be marked.
6. The file marking method according to claim 1, wherein: Also includes: Extracting the invisible characters corresponding to the preset mark file at a preset position of the preset mark file; The watermark information of the preset mark file is obtained by performing an inverse process of converting the watermark into the invisible characters on the invisible characters corresponding to the preset mark file.
7. A document marking device, characterized in that: include: An acquisition module, configured to acquire watermark information of a file to be marked, wherein the watermark information at least includes time information; a processing module, configured to convert the watermark information into invisible characters by processing the watermark information; The marking module is used to insert the invisible characters corresponding to the watermark information into the file to be marked to obtain a marked file corresponding to the file to be marked.
8. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively coupled to the at least one processor; The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the file marking method according to any one of claims 1 to 6.
9. A storage medium containing computer-executable instructions, characterized in that: When the computer executable instructions are executed by a computer processor, they are used to perform the file marking method according to any one of claims 1 to 6.
10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the computer program implements the file marking method according to any one of claims 1 to 6.
Citation Information
Cited By
Document watermark management method and device, electronic equipment, storage medium and product
CN121093319A
Watermark processing method and device for electronic file, medium and product
CN121167689A