CN114780924A - Electronic text tracing method and device - Google Patents

Electronic text tracing method and device Download PDF

Info

Publication number
CN114780924A
CN114780924A CN202210694053.2A CN202210694053A CN114780924A CN 114780924 A CN114780924 A CN 114780924A CN 202210694053 A CN202210694053 A CN 202210694053A CN 114780924 A CN114780924 A CN 114780924A
Authority
CN
China
Prior art keywords
content
electronic text
bit
source
text
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210694053.2A
Other languages
Chinese (zh)
Other versions
CN114780924B (en
Inventor
李凤伟
杨中泽
尚巍巍
彭聪乾
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Heren Guangzhi Technology Co ltd
Original Assignee
Beijing Heren Guangzhi Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Heren Guangzhi Technology Co ltd filed Critical Beijing Heren Guangzhi Technology Co ltd
Priority to CN202210694053.2A priority Critical patent/CN114780924B/en
Publication of CN114780924A publication Critical patent/CN114780924A/en
Application granted granted Critical
Publication of CN114780924B publication Critical patent/CN114780924B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/10Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]
    • G06F21/16Program or content traceability, e.g. by watermarking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/126Character encoding

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Technology Law (AREA)
  • Multimedia (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

The embodiment of the disclosure discloses a tracing method and a tracing device for an electronic text, wherein the tracing method comprises the following steps: after receiving an original electronic text, encoding the electronic text based on textual information representing a source, comprising: converting text information representing a source into a multi-bit binary number; sequentially changing the display pixel value of each character in the electronic text according to the content of each bit in the binary number to obtain a new pixel value of each character, wherein the content of one binary bit can be used as a basis for changing the pixel value of one character; after receiving a source tracing query request for the coded electronic text, determining a target binary number corresponding to each character based on a new pixel value of each character in the electronic text; and determining target text information which is used for representing a source and corresponds to the electronic text based on the target binary number. The source tracing of the leaked electronic texts is automatically and accurately realized.

Description

Electronic text tracing method and device
Technical Field
The present disclosure relates to the field of data processing technologies, and in particular, to a method and an apparatus for tracing to a source of an electronic text.
Background
With the increase of information propagation speed, the electronic document can be completed only in milliseconds if being leaked. Electronic documents, such as electronic text, for confidential use in business operations for enterprises in any industry.
However, since the electronic document is leaked, tracing the leakage path becomes an urgent problem to be solved by each electronic document holder after the electronic document is leaked. In the related art, the leaked electronic documents cannot be traced.
Disclosure of Invention
The main purpose of the present disclosure is to provide a method and an apparatus for tracing to a source of an electronic text.
In order to achieve the above object, according to a first aspect of the present disclosure, there is provided a method for tracing a source of an electronic text, including: after receiving an original electronic text, encoding the electronic text based on textual information representing a source, comprising: converting text information used for representing a source into a multi-bit binary number; sequentially changing the display pixel value of each character in the electronic text according to the content of each bit in the binary number to obtain a new pixel value of each character, wherein the content of one binary bit can be used as a basis for changing the pixel value of one character; after receiving a source tracing query request for the coded electronic text, determining a target binary number corresponding to each character based on a new pixel value of each character in the electronic text; and determining target text information which is used for representing a source and corresponds to the electronic text based on the target binary number.
Optionally, sequentially modifying the display pixel values of the words in the electronic text according to the content of each bit in the binary number comprises: sequentially selecting a first digit of the binary number as a fixed bit, and determining check bit content with a second digit by using a preset algorithm based on the content of the fixed bit; splicing the content of the check bit and the content of the fixed bit to obtain a spliced binary number; and changing the display pixel value of each character in the electronic text in sequence according to the content of each bit in the spliced binary number.
Optionally, determining target text information corresponding to the electronic text and used for representing a source based on the target binary number comprises: sequentially intercepting N groups of binary numbers with target digits from the target binary numbers, wherein each group of target digits is the sum of a first digit and a second digit, and N is greater than or equal to 1; respectively determining the content of a fixed bit and the content of a check bit of the N-th group of binary numbers, wherein N is less than or equal to N; based on the content of the fixed bit, determining the content of the check bit to be checked corresponding to the content of the fixed bit by using the preset algorithm; comparing the check bit content with the check bit content to be checked; and if the comparison result is consistent, determining target text information for representing the source based on the content of the fixed bit and the content of the check bit.
Optionally, if the comparison result is inconsistent and N is 1, re-determining the target text information for representing the source based on the set of binary numbers; or if the comparison result is inconsistent and N is greater than 1, determining target text information for representing the source based on N + m groups of binary numbers, wherein m is greater than or equal to 1; n + m is less than or equal to N.
Optionally, the encoding the electronic text based on the text information representing the source comprises: encoding the electronic text based on a propagation channel text set by a user; or, the electronic text is encoded based on the automatically acquired information of the user terminal.
Optionally, the method further comprises: when a request for recoding the coded electronic text is received, new text information used for representing a source is obtained again; re-encoding the electronic text based on the new text information.
According to a second aspect of the present disclosure, there is provided an apparatus for tracing an electronic text, including: an encoding unit configured to encode an electronic text based on text information representing a source after receiving an original electronic text, comprising: converting text information used for representing a source into a multi-bit binary number; sequentially changing the display pixel value of each character in the electronic text according to the content of each bit in the binary number to obtain a new pixel value of each character, wherein the content of one binary bit can be used as a basis for changing the pixel value of one character; the source tracing unit is configured to determine a target binary number corresponding to each character based on a new pixel value of each character in the electronic text after receiving a source tracing query request for the coded electronic text; and determining target text information which corresponds to the electronic text and is used for representing a source based on the target binary number.
Further, sequentially changing the display pixel values of the characters in the electronic text according to the content of each bit in the binary number comprises: sequentially selecting a first digit of the binary number as a fixed bit, and determining check bit content with a second digit by using a preset algorithm based on the content of the fixed bit; splicing the content of the check bit and the content of the fixed bit to obtain a spliced binary number; and changing the display pixel value of each character in the electronic text in sequence according to the content of each bit in the spliced binary number.
According to a third aspect of the present disclosure, there is provided a computer-readable storage medium storing computer instructions for causing the computer to execute the tracing method for electronic text described in any one of the implementation manners of the first aspect.
According to a fourth aspect of the present disclosure, there is provided an electronic device comprising: at least one processor; and a memory communicatively coupled to the at least one processor; wherein 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 to cause the at least one processor to execute the tracing method for electronic text according to any one of the implementations of the first aspect.
The tracing method and device for the electronic text in the embodiment of the disclosure comprise the following steps: after receiving an original electronic text, encoding the electronic text based on textual information representing a source, comprising: converting text information representing a source into a multi-bit binary number; sequentially changing the display pixel value of each character in the electronic text according to the content of each bit in the binary number to obtain a new pixel value of each character, wherein the content of one binary bit can be used as a basis for changing the pixel value of one character; after receiving a source tracing query request for the coded electronic text, determining a target binary number corresponding to each character based on a new pixel value of each character in the electronic text; and determining target text information which corresponds to the electronic text and is used for representing a source based on the target binary number. By encoding the electronic text and identifying the encoded electronic text, the leaked electronic text can be automatically and accurately traced. The technical problem of difficulty in tracing after electronic text leakage in the related technology is solved.
Drawings
In order to more clearly illustrate the detailed description of the present disclosure or the technical solutions in the prior art, the drawings used in the detailed description or the prior art descriptions will be briefly described below, it is obvious that the drawings in the following description are some embodiments of the present disclosure, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a flow chart of a method of tracing the source of electronic text in accordance with an embodiment of the present disclosure;
fig. 2 is a schematic diagram of an electronic device according to an embodiment of the disclosure.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those skilled in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are only some embodiments of the present disclosure, and not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present disclosure without making creative efforts shall fall within the protection scope of the present disclosure.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the present disclosure may be described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be noted that, in the present disclosure, the embodiments and the features of the embodiments may be combined with each other without conflict. The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
According to an embodiment of the present disclosure, a tracing method for an electronic text is provided, as shown in fig. 1, the method includes the following steps 101 to 103:
step 101: encoding, after receiving an original electronic text, the electronic text based on textual information representing a source, comprising: converting text information representing a source into a multi-bit binary number; and sequentially changing the display pixel value of each character in the electronic text according to the content of each bit in the binary number to obtain a new pixel value of each character, wherein the content of one binary bit can be used as a basis for changing the pixel value of one character.
In the present embodiment, for the original electronic text that needs to be kept secret and prevented from being leaked, text information indicating the source of the electronic text, including but not limited to mac address, ip, time, current user login information, etc., may be acquired in advance at the time of processing. After the text information is obtained, the text information can be converted into a binary number containing a plurality of bits, for example 001001.
After conversion to binary, each binary digit may be a 0 or a 1, and the display pixel values of the individual words in the electronic text may be modified in sequence based on the content (including but not limited to left-to-right, top-to-bottom, right-to-left, or bottom-to-top in the direction of the words, etc.). The modification process may include, sequentially corresponding binary digits to each word in order from high to low, for example, "001001" corresponds to "the previous mountain," if the content of the binary digit corresponding to a word is 0, decreasing the pixel value of the word (the electronic text may be displayed in a darker color, such as a darker black font), if the content of the binary digit corresponding to the word is 1, increasing the pixel value of the word (the electronic text may be displayed in a lighter color, such as a lighter black font), and after the binary digits are used up, the word is not completely encoded, and then the remaining words may be encoded again using the binary digits, for example, "there is a previous mountain, there is a temple in the mountain," and "0010010010010" may correspond to the binary digit.
It is to be understood that the pixel value difference distance between the dark-colored word and the light-colored word may be set to a smaller value in order not to affect the display difference of the text. Encoding by modifying the pixel values can reduce the differences from the original electronic text.
As an alternative implementation manner of this embodiment, encoding the electronic text based on the text information used for representing the source includes: coding the electronic text based on a propagation channel text set by a user; or, the electronic text is encoded based on the automatically acquired information of the user terminal.
In this optional implementation manner, if the electronic text is encoded by a default encoding manner, the information of the user side that uploads the electronic text, including but not limited to the mac address, ip, time, and/or current user login information, may be directly obtained after receiving the electronic text. If the document is revealed, it may be determined that the object revealing the document, for example, the electronic text inside the enterprise a, is authorized to the target user a for review, is encoded with information of its corresponding user a before review, if the electronic text is found on a certain website in the future, the electronic text may be identified, and the source of the revealing, such as the user a, may be determined to be revealed through the user a. In this way, the source of the leak can be determined efficiently.
If the electronic text is encoded by other encoding modes, including a mode of specifying source information, the source information of the electronic text can be set after the uploaded electronic text is received, and the source information of the electronic text can include, but is not limited to, information of users set to be referred by authority, such as user names, user titles, user identity card number information and the like, and leakage tracing can be performed based on the information after the electronic text is encoded based on the information. For example, by setting that user B has authority to refer to the text inside enterprise a, the encoding may be performed based on user information of user B, and if the electronic text is found on a certain website in the future, the electronic text may be identified, and the leakage source may be determined, for example, if the electronic text is identified as user B, and then the leakage source may be considered as being leaked by user B. The leakage source can be determined more efficiently and accurately by the method.
As an optional implementation manner of this embodiment, sequentially changing the display pixel value of each character in the electronic text according to the content of each bit in the binary number includes: sequentially selecting a first digit of the binary number as a fixed bit, and determining the check bit content with a second digit by using a preset algorithm based on the content of the fixed bit; splicing the content of the check bit and the content of the fixed bit to obtain a spliced binary number; and sequentially changing the display pixel value of each character in the electronic text according to the content of each bit in the spliced binary number.
In this alternative implementation, if the binary number includes x bits, the first number of bits x may be selected from the high order bits to the low order bits1As fixed bits, the first number of bits may be one bit, or a plurality of bits, and in order to ensure accuracy of encoding and efficiency of subsequent identification, the first number of bits is preferably five bits. For example, five bits from high bit to low bit, and based on the content of the fixed bit, according to a preset algorithm, solving for a solution containing a second number x of bits2The second number of bits may be one or more bits, and the number of bits may preferably be three bits in order to ensure the accuracy of the check. For example, according to the 3-positionAnd (4) solving the content of the 3-bit check bit according to the positioned content. After the fixed bits and the check bits are obtained, splicing can be performed according to a preset rule, including but not limited to splicing the check bits in sequence after the fixed bits, and also splicing in other sequences according to needs, which is not limited herein.
After the spliced binary number is obtained, the electronic text can be encoded according to the binary number, and the encoding mode is the same as the encoding processing process, which is not described herein again. The accuracy of determining the source information corresponding to the coded electronic text can be ensured by setting the check bit.
As an optional implementation manner of this embodiment, determining, based on the target binary number, target text information corresponding to the electronic text and used for representing a source includes: sequentially intercepting N groups of binary numbers with target digits from the target binary internal number, wherein each group of target digits are the sum of the first digits and the second digits, and N is greater than or equal to 1; respectively determining the content of a fixed bit and the content of a check bit of the nth group of binary numbers, wherein N is less than or equal to N; based on the content of the fixed bit, determining the content of the check bit to be checked corresponding to the content of the fixed bit by using the preset algorithm; comparing the check bit content with the check bit content to be checked; and if the comparison result is consistent, determining target text information for representing the source based on the content of the fixed bit and the content of the check bit.
In this alternative implementation, the electronic text is usually large in text amount, and binary numbers containing multiple sets of fixed bits and check bits can be sequentially intercepted, for example, if the fixed bits and check bits have eight bits, then sixteen words can be intercepted, and 2 sets of binary numbers with 8 bits can be intercepted.
When identifying source information of an encoded electronic text, binary content corresponding to each character can be identified first, after the binary content is obtained, the binary content of a fixed digit (for example, a first digit, 3 digits) and check digit content (for example, a second digit, 3 digits) behind the fixed digit are sequentially selected, then an algorithm for determining the check digit based on the fixed digit is set in the encoding process, the identified check digit content corresponding to the fixed digit is calculated, if the calculated check digit content is consistent with the identified check digit content, identification is accurate, and the identified target binary number can be directly used for determining the source information. For example, if the check digit is calculated to be "100" through "01010", the electronic text is encoded based on "01010100", and then when the encoded electronic text is recognized, if the recognition result is "01010100", the check digit calculated from the first 3 digits is "100", which is consistent with the recognized check digit, and the source information can be determined from "01010100".
As an optional implementation manner of this embodiment, if the comparison result is inconsistent and N is 1, determining target text information for representing the source based on the set of binary numbers again; or if the comparison result is inconsistent and N is greater than 1, determining target text information for representing the source based on N + m groups of binary numbers, wherein m is greater than or equal to 1; n + m is less than or equal to N.
In this optional implementation, if the comparison result is inconsistent, the check bit comparison may be performed for the next set of binary numbers. If only one set of binary numbers is present, the recognition can be re-performed.
Also taking the above example as an example, if the identified result is "11010100", then the check digit calculated from the first 3 digits is "110", which is inconsistent with the identified check digit 100, then the set of information is discarded, and the comparison continues for the next set of 8-bit binary digits until the comparison is consistent.
As an optional implementation manner of this embodiment, the method further includes: when a request for recoding the coded electronic text is received, new text information for representing a source is obtained again; re-encoding the electronic text based on the new text information.
In this alternative implementation, the encoded electronic text may also be re-encoded, and only the source information needs to be set. In this way the flexibility of the encoding of the text is increased,
step 102: and after receiving a source tracing query request of the coded electronic text, determining a target binary number corresponding to each character based on the new pixel value of each character in the electronic text.
In this embodiment, if a leakage source of a current image needs to be determined, the electronic text may be identified, a pixel value of each character in the electronic text may be determined first, and if the pixel value is greater than a preset threshold, the current character is mapped to a binary number, for example, 1; if the pixel value is less than the predetermined threshold, the current word is mapped to another binary digit, such as 0. It is understood that the average pixel value of the words in a predetermined order (e.g., a row or a column) may be counted, and then when determining the binary number corresponding to each word, the determining logic may map the word to a binary number, such as 1, if the word is greater than the average pixel value; and vice versa to another binary digit, such as 0.
It can be understood that the corresponding target binary number may be determined for a preset number of words, and if the source information is determined based on the binary number, the target binary number may not be determined for other words; if the source information cannot be determined based on the binary number, the conversion of the target binary number can be continued for other characters with a preset number, and the process is repeated until the source information is determined.
Step 103: and determining target text information which corresponds to the electronic text and is used for representing a source based on the target binary number.
In this embodiment, after determining the binary digits of the electronic text in step 102, the binary digits may be converted into a character-type text, so as to obtain the target text information.
The embodiment realizes the efficient and accurate tracing of the electronic text, and solves the technical problem that the electronic document is difficult to trace in the related technology.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowcharts, in some cases, the steps illustrated or described may be performed in an order different than here.
According to an embodiment of the present disclosure, there is also provided a device for implementing the tracing method for an electronic text, where the device includes: an encoding unit configured to encode an electronic text based on text information representing a source after receiving an original electronic text, comprising: converting text information used for representing a source into a multi-bit binary number; sequentially changing the display pixel value of each character in the electronic text according to the content of each bit in the binary number to obtain a new pixel value of each character, wherein the content of one binary bit can be used as a basis for changing the pixel value of one character; the source tracing unit is configured to determine a target binary number corresponding to each character based on a new pixel value of each character in the electronic text after receiving a source tracing query request for the coded electronic text; and determining target text information which corresponds to the electronic text and is used for representing a source based on the target binary number.
Further, sequentially changing the display pixel values of the characters in the electronic text according to the content of each bit in the binary number comprises: sequentially selecting a first digit of the binary number as a fixed bit, and determining the check bit content with a second digit by using a preset algorithm based on the content of the fixed bit; splicing the content of the check bit and the content of the fixed bit to obtain a spliced binary number; and sequentially changing the display pixel value of each character in the electronic text according to the content of each bit in the spliced binary number.
Optionally, determining target text information corresponding to the electronic text and used for representing a source based on the target binary number comprises: sequentially intercepting N groups of binary numbers with target digits from the target binary system internal numbers, wherein each group of target digits are the sum of the first digits and the second digits, and N is greater than or equal to 1; respectively determining the content of a fixed bit and the content of a check bit of the nth group of binary numbers, wherein N is less than or equal to N; based on the content of the fixed bit, determining the content of the check bit to be checked corresponding to the content of the fixed bit by using the preset algorithm; comparing the check bit content with the check bit content to be checked; and if the comparison result is consistent, determining target text information for representing the source based on the content of the fixed bit and the content of the check bit.
Optionally, if the comparison result is inconsistent and N is 1, re-determining the target text information for representing the source based on the set of binary numbers; or if the comparison result is inconsistent and N is greater than 1, determining target text information for representing the source based on N + m groups of binary numbers, wherein m is greater than or equal to 1; n + m is less than or equal to N.
Optionally, the encoding the electronic text based on the text information for representing the source includes: coding the electronic text based on a propagation channel text set by a user; or, the electronic text is encoded based on the automatically acquired information of the user side.
Optionally, the method further comprises: when a request for recoding the coded electronic text is received, new text information used for representing a source is obtained again; re-encoding the electronic text based on the new text information.
The embodiment of the present disclosure provides an electronic device, as shown in fig. 2, the electronic device includes one or more processors 21 and a memory 22, where one processor 21 is taken as an example in fig. 2.
The controller may further include: an input device 23 and an output device 24.
The processor 21, the memory 22, the input device 23 and the output device 24 may be connected by a bus or other means, and fig. 2 illustrates the connection by a bus as an example.
The processor 21 may be a Central Processing Unit (CPU). The processor 21 may also be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or any combination thereof. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 22, which is a non-transitory computer-readable storage medium, may be used to store non-transitory software programs, non-transitory computer-executable programs, and modules, such as program instructions/modules corresponding to the control methods in the embodiments of the present disclosure. The processor 21 executes various functional applications of the server and data processing, i.e. implements the method of the above-described method embodiment, by running non-transitory software programs, instructions and modules stored in the memory 22.
The memory 32 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of a processing apparatus operated by the server, and the like. Further, the memory 22 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory 22 may optionally include memory located remotely from the processor 21, which may be connected to a network connection device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 23 may receive input numeric or character information and generate key signal inputs related to user settings and function control of the processing device of the server. The output device 24 may include a display device such as a display screen.
One or more modules are stored in the memory 22, which when executed by the one or more processors 21 perform the method as shown in fig. 1.
It will be understood by those skilled in the art that all or part of the processes in the methods according to the embodiments described above may be implemented by instructing relevant hardware through a computer program, and the program may be stored in a computer-readable storage medium, and when executed, may include the processes of the embodiments of the motor control methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-only memory (ROM), a Random Access Memory (RAM), a flash memory (FlashMemory), a hard disk (hard disk drive, abbreviated as HDD) or a Solid State Drive (SSD), etc.; the storage medium may also comprise a combination of memories of the kind described above.
Although the embodiments of the present disclosure have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present disclosure, and such modifications and variations fall within the scope defined by the appended claims.

Claims (10)

1. A tracing method for electronic texts is characterized by comprising the following steps:
encoding, after receiving an original electronic text, the electronic text based on textual information representing a source, comprising: converting text information used for representing a source into a multi-bit binary number; sequentially changing the display pixel value of each character in the electronic text according to the content of each bit in the binary number to obtain a new pixel value of each character, wherein the content of one binary bit can be used as a basis for changing the pixel value of one character;
after receiving a source tracing query request for the coded electronic text, determining a target binary number corresponding to each character based on a new pixel value of each character in the electronic text;
and determining target text information which is used for representing a source and corresponds to the electronic text based on the target binary number.
2. The method of claim 1, wherein sequentially modifying the display pixel value of each word in the electronic text according to the content of each bit in the binary number comprises:
sequentially selecting a first digit of the binary number as a fixed bit, and determining the check bit content with a second digit by using a preset algorithm based on the content of the fixed bit;
splicing the content of the check bit and the content of the fixed bit to obtain a spliced binary number;
and changing the display pixel value of each character in the electronic text in sequence according to the content of each bit in the spliced binary number.
3. The method of claim 2, wherein determining the target text information corresponding to the electronic text and used for representing a source based on the target binary number comprises:
sequentially intercepting N groups of binary numbers with target digits from the target binary numbers, wherein each group of target digits is the sum of a first digit and a second digit, and N is greater than or equal to 1;
respectively determining the content of a fixed bit and the content of a check bit of the nth group of binary numbers, wherein N is less than or equal to N;
based on the content of the fixed bit, determining the content of the check bit to be checked corresponding to the content of the fixed bit by using the preset algorithm;
comparing the check bit content with the check bit content to be checked;
and if the comparison result is consistent, determining target text information for representing the source based on the content of the fixed bit and the content of the check bit.
4. The tracing method for electronic text according to claim 3,
if the comparison result is inconsistent and N is 1, determining target text information used for representing the source based on the set of binary numbers again;
or if the comparison result is inconsistent and N is greater than 1, determining target text information for representing a source based on N + m groups of binary numbers, wherein m is greater than or equal to 1; n + m is less than or equal to N.
5. The method of claim 1, wherein the encoding the electronic text based on the text information representing the source comprises:
coding the electronic text based on a propagation channel text set by a user;
or, the electronic text is encoded based on the automatically acquired information of the user side.
6. The method for tracing the source of the electronic text according to claim 1, wherein the method further comprises:
when a request for recoding the coded electronic text is received, new text information used for representing a source is obtained again;
re-encoding the electronic text based on the new text information.
7. An apparatus for tracing electronic text, comprising:
an encoding unit configured to encode an electronic text based on text information representing a source after receiving an original electronic text, comprising: converting text information used for representing a source into a multi-bit binary number; sequentially changing the display pixel value of each character in the electronic text according to the content of each bit in the binary number to obtain a new pixel value of each character, wherein the content of one binary bit can be used as a basis for changing the pixel value of one character;
the source tracing unit is configured to determine a target binary number corresponding to each character based on a new pixel value of each character in the electronic text after receiving a source tracing query request for the coded electronic text; and determining target text information which corresponds to the electronic text and is used for representing a source based on the target binary number.
8. The apparatus as claimed in claim 7, wherein the sequentially modifying the display pixel value of each word in the electronic text according to the content of each bit in the binary number comprises:
sequentially selecting a first digit of the binary number as a fixed bit, and determining the check bit content with a second digit by using a preset algorithm based on the content of the fixed bit;
splicing the content of the check bit and the content of the fixed bit to obtain a spliced binary number;
and changing the display pixel value of each character in the electronic text in sequence according to the content of each bit in the spliced binary number.
9. A computer-readable storage medium storing computer instructions for causing a computer to perform the method of tracing the source of electronic text according to any one of claims 1 to 6.
10. An electronic device, comprising: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, the computer program being executable by the at least one processor to cause the at least one processor to perform the method of tracing of electronic text as claimed in any of claims 1-6.
CN202210694053.2A 2022-06-20 2022-06-20 Electronic text tracing method and device Active CN114780924B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210694053.2A CN114780924B (en) 2022-06-20 2022-06-20 Electronic text tracing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210694053.2A CN114780924B (en) 2022-06-20 2022-06-20 Electronic text tracing method and device

Publications (2)

Publication Number Publication Date
CN114780924A true CN114780924A (en) 2022-07-22
CN114780924B CN114780924B (en) 2022-09-30

Family

ID=82420595

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210694053.2A Active CN114780924B (en) 2022-06-20 2022-06-20 Electronic text tracing method and device

Country Status (1)

Country Link
CN (1) CN114780924B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1924925A (en) * 2006-09-28 2007-03-07 北京理工大学 Document data waterprint embedded method
US20120260108A1 (en) * 2011-04-11 2012-10-11 Steve Lee Font encryption and decryption system and method
US20160035060A1 (en) * 2013-03-15 2016-02-04 Send Only Oked Documents (Sood) Method for watermarking the text portion of a document
CN110322386A (en) * 2018-03-30 2019-10-11 中移(苏州)软件技术有限公司 A kind of insertion of digital text watermarking and detection method and device
CN112818301A (en) * 2021-01-29 2021-05-18 北京点聚信息技术有限公司 Method and device for embedding and extracting hidden information of OFD format electronic document
CN113012018A (en) * 2021-04-12 2021-06-22 中船重工汉光科技股份有限公司 Invisible office printing text encryption and decryption method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1924925A (en) * 2006-09-28 2007-03-07 北京理工大学 Document data waterprint embedded method
US20120260108A1 (en) * 2011-04-11 2012-10-11 Steve Lee Font encryption and decryption system and method
US20160035060A1 (en) * 2013-03-15 2016-02-04 Send Only Oked Documents (Sood) Method for watermarking the text portion of a document
CN110322386A (en) * 2018-03-30 2019-10-11 中移(苏州)软件技术有限公司 A kind of insertion of digital text watermarking and detection method and device
CN112818301A (en) * 2021-01-29 2021-05-18 北京点聚信息技术有限公司 Method and device for embedding and extracting hidden information of OFD format electronic document
CN113012018A (en) * 2021-04-12 2021-06-22 中船重工汉光科技股份有限公司 Invisible office printing text encryption and decryption method

Also Published As

Publication number Publication date
CN114780924B (en) 2022-09-30

Similar Documents

Publication Publication Date Title
CN111191414B (en) Page watermark generation method, identification method, device, equipment and storage medium
CN109040341B (en) Intelligent contract address generation method and device, computer equipment and readable storage medium
CN104244024A (en) Video cover generation method and device and terminal
CN110245469A (en) Watermark generation method, watermark analytic method, device and the storage medium of webpage
CN112631888A (en) Fault prediction method and device of distributed system, storage medium and electronic equipment
CN112784112A (en) Message checking method and device
US10546024B2 (en) Method and device for searching character string
CN112036579A (en) Self-learning online updating method, system and device for multi-classification model
CN111209600A (en) Block chain-based data processing method and related product
CN114780924B (en) Electronic text tracing method and device
CN114036561A (en) Information hiding method, information acquiring method, information hiding device, information acquiring device, storage medium and electronic equipment
CN113568836A (en) Multi-time-series sample feature extraction method and software detection method applying same
CN117522094A (en) Seal management method, platform, electronic equipment and storage medium
US11429317B2 (en) Method, apparatus and computer program product for storing data
CN110730277B (en) Information coding and method and device for acquiring coded information
CN114840634B (en) Information storage method and device, electronic equipment and computer readable medium
US20200302914A1 (en) Method, device, computer apparatus, and storage medium of processing claim data
CN115860070A (en) Data processing method and device, electronic equipment and computer readable storage medium
US20190318027A1 (en) Sample size determination in sampling systems
CN115373634A (en) Random code generation method and device, computer equipment and storage medium
CN115297104A (en) File uploading method and device, electronic equipment and storage medium
CN111078821B (en) Dictionary setting method, dictionary setting device, medium and electronic equipment
CN104182396A (en) Terminal as well as device and method of optimizing description of format document content
CN110852098A (en) Data correction method, electronic device and storage medium
CN111159776A (en) Self-adaptive neural network model verification method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant