CN113407970A - Document processing method, device, medium and equipment - Google Patents

Document processing method, device, medium and equipment Download PDF

Info

Publication number
CN113407970A
CN113407970A CN202110777011.0A CN202110777011A CN113407970A CN 113407970 A CN113407970 A CN 113407970A CN 202110777011 A CN202110777011 A CN 202110777011A CN 113407970 A CN113407970 A CN 113407970A
Authority
CN
China
Prior art keywords
document
information
encrypted
modification
modified
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.)
Pending
Application number
CN202110777011.0A
Other languages
Chinese (zh)
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 Haitai Fangyuan High Technology Co Ltd
Original Assignee
Beijing Haitai Fangyuan High 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 Haitai Fangyuan High Technology Co Ltd filed Critical Beijing Haitai Fangyuan High Technology Co Ltd
Priority to CN202110777011.0A priority Critical patent/CN113407970A/en
Publication of CN113407970A publication Critical patent/CN113407970A/en
Pending legal-status Critical Current

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/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6209Protecting access to data via a platform, e.g. using keys or access control rules to a single file or object, e.g. in a secure envelope, encrypted and accessed using a key, or with access control rules appended to the object itself

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The disclosure relates to a document processing method, apparatus, medium, and device. The modification information document including information corresponding to the document to be modified can be generated for the displayed document, and the displayed document and the modification information document corresponding to the document can be encrypted respectively to obtain corresponding encrypted documents. In this way, the encrypted document corresponding to the displayed document and the encrypted document corresponding to the modification information document corresponding to the document can be generated, and the corresponding encrypted document can be further generated according to the two generated encrypted documents. Therefore, the modification of the corresponding document can be stored through the encrypted modification information document in the encrypted document without actually modifying the document needing to be encrypted, and the document needing to be encrypted does not need to be repeatedly encrypted, so that the modification efficiency of the document needing to be encrypted is effectively improved when the amount of the document data needing to be encrypted is large.

Description

Document processing method, device, medium and equipment
Technical Field
The present disclosure relates to the field of information security technologies, and in particular, to a method, an apparatus, a medium, and a device for processing a document.
Background
This section is intended to provide a background or context to the embodiments of the disclosure recited in the claims. The description herein is not admitted to be prior art by inclusion in this section.
At present, a document is encrypted, and full-text encryption in a Cipher Block Chaining (CBC) mode is generally adopted. In this encryption mode, the ciphertext generated later depends on the ciphertext generated earlier, and if the ciphertext generated earlier changes, the ciphertext generated later also changes. Therefore, if the encrypted document needs to be modified, the encrypted document needs to be decrypted first, and then the modified document is encrypted again after the document is modified.
If a document is large, even if only one character in the document is modified, the whole modified document needs to be re-encrypted, thereby causing the modification efficiency of the document to be low.
Disclosure of Invention
The embodiment of the disclosure provides a document processing method, a document processing device, a document processing medium and document processing equipment, which are used for solving the problem of low document modification efficiency.
In a first aspect, the present disclosure provides a document processing method, including:
acquiring and displaying a first document, and generating a first modification information document according to the displayed first document, wherein the first modification information document comprises first modification information; the first modification information is information corresponding to the first document needing to be modified, and comprises modification type information and type parameter information, wherein the modification type information is used for describing a modification mode of the document, and the type parameter information is used for describing modification content corresponding to the corresponding modification type information;
encrypting the first document to obtain a first encrypted document, and encrypting the first modification information document to obtain a second encrypted document;
and generating and storing a third encrypted document corresponding to the first document according to the first encrypted document and the second encrypted document.
Optionally, after generating and storing a third encrypted document corresponding to the first document, the method further includes:
decrypting the second encrypted document in the third encrypted document, determining the first modification information, and decrypting the first encrypted document in the third encrypted document to obtain the first document;
and modifying the first document according to the first modification information, and determining and displaying a second document corresponding to the first document.
Optionally, after determining and displaying a second document corresponding to the first document, the method further includes:
generating a second modified information document according to the displayed second document, wherein the second modified information document comprises second modified information, and the second modified information is obtained by overlapping or combining information corresponding to the first document to be modified and information corresponding to the second document to be modified;
encrypting the second modification information document to obtain a fourth encrypted document;
and generating and storing a fifth encrypted document corresponding to the first document according to the first encrypted document and the fourth encrypted document.
Optionally, before generating a first modified information document according to the displayed first document, the method further includes:
segmenting the first document according to a segmentation rule corresponding to the document type of the first document;
when a first modified information document is generated according to the displayed first document, the first modified information document also comprises a segment identifier corresponding to each piece of first modified information;
encrypting the first document to obtain a first encrypted document, comprising:
and respectively encrypting each segment of the first document to obtain a first encrypted document.
In a second aspect, the present disclosure also provides a document processing apparatus, the apparatus comprising:
the display module is used for acquiring and displaying the first document;
the first generation module is used for generating a first modified information document according to the first document displayed by the display module, wherein the first modified information document comprises first modified information; the first modification information is information corresponding to the first document needing to be modified, and comprises modification type information and type parameter information, wherein the modification type information is used for describing a modification mode of the document, and the type parameter information is used for describing modification content corresponding to the corresponding modification type information;
the encryption module is used for encrypting the first document to obtain a first encrypted document, and encrypting the first modification information document to obtain a second encrypted document;
and the second generation module is used for generating and storing a third encrypted document corresponding to the first document according to the first encrypted document and the second encrypted document.
Optionally, the apparatus further includes a decryption module:
the decryption module is configured to decrypt the second encrypted document in the third encrypted document, determine the first modification information, and decrypt the first encrypted document in the third encrypted document to obtain the first document;
the display module is further configured to modify the first document according to the first modification information, determine a second document corresponding to the first document, and display the second document.
Optionally, the apparatus further includes a third generating module:
the third generating module is configured to generate a second modified information document according to the displayed second document, where the second modified information document includes second modified information, and the second modified information is obtained by superimposing or merging information corresponding to the first document that needs to be modified and information corresponding to the second document that needs to be modified;
the encryption module is further configured to encrypt the second modification information document to obtain a fourth encrypted document;
the second generating module is further configured to generate and store a fifth encrypted document corresponding to the first document according to the first encrypted document and the fourth encrypted document.
Optionally, the apparatus further comprises a segmentation module:
the segmenting module is used for segmenting the first document according to a segmenting rule corresponding to the document type of the first document;
the first generation module is used for generating a first modified information document according to the displayed first document, wherein the first modified information document also comprises a segment identifier corresponding to each piece of first modified information;
the encryption module encrypts the first document to obtain a first encrypted document, and includes:
and respectively encrypting each segment of the first document to obtain a first encrypted document.
In a third aspect, the present disclosure also provides a non-volatile computer storage medium storing an executable program which is executed by a processor to implement the method as described above.
In a fourth aspect, the present disclosure further provides a document processing device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
the memory is used for storing a computer program;
the processor, when executing the program stored in the memory, is configured to implement the method steps as described above.
According to the scheme provided by the embodiment of the disclosure, a modification information document including information corresponding to the document to be modified can be generated for the displayed document, and the displayed document and the modification information document corresponding to the document can be encrypted respectively to obtain corresponding encrypted documents. In this way, the encrypted document corresponding to the displayed document and the encrypted document corresponding to the modification information document corresponding to the document can be generated, and the corresponding encrypted document can be further generated according to the two generated encrypted documents. Therefore, the modification of the corresponding document can be stored through the encrypted modification information document in the encrypted document without actually modifying the document needing to be encrypted, and the document needing to be encrypted does not need to be repeatedly encrypted, so that the modification efficiency of the document needing to be encrypted is effectively improved when the amount of the document data needing to be encrypted is large.
Additional features and advantages of the disclosure will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the disclosure. The objectives and other advantages of the disclosure may be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only 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 schematic flow chart diagram illustrating a document processing method according to an embodiment of the disclosure;
FIG. 2 is a schematic structural diagram of a document processing apparatus according to an embodiment of the disclosure;
fig. 3 is a schematic structural diagram of a document processing apparatus according to an embodiment of the present disclosure.
Detailed Description
To make the objects, technical solutions and advantages of the present disclosure clearer, the present disclosure will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present disclosure, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
It should be noted that, the "plurality" or "a plurality" mentioned herein means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
The terms "first," "second," and the like in the description and in the claims of the present disclosure and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise 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.
The following is a brief description of concepts related to embodiments of the present disclosure.
In embodiments of the present application, a document may be understood, but is not limited to, a file containing user data stored in a particular format, such as a WORD file, a TXT file, a picture file, a text file, and the like.
Wherein the WORD file may be understood, but is not limited to, being a file stored in the WORD format of Microsoft corporation's WORD processor application;
the TXT file may be understood, but is not limited to, a file stored in the TXT format that is incidental to microsoft's operating system;
picture files may be understood, but are not limited to, files stored in a specified image format (e.g., JPEG, TIFF, RAW, BMP, GIF, PNG, etc. formats);
a text file can be understood, without limitation, as a file stored in ASCII code (also referred to as text).
In order to improve the modification efficiency of a document needing to be encrypted, in the scheme provided by the disclosure, a modification rule may be preset, where the modification rule may include a modification type and a type parameter, so that when the document needing to be encrypted is modified, a modification information document corresponding to modification information corresponding to the document may be generated according to the modification rule, and the modification information document is used to store the modification information of the document. The modification of the information document can be recorded without substantially modifying the original document, so that the original document is not required to be repeatedly encrypted, and the modification efficiency of the document needing to be encrypted is effectively improved. And the safety of the modified information of the original document can be effectively ensured by encrypting the modified information document.
In the scheme provided by the disclosure, the original document can be modified and displayed according to the modification information document, so that the modified document can be directly viewed.
In addition, in the scheme provided by the present disclosure, the modified information document corresponding to the original document may be regenerated in a manner of superimposing or merging the modified information each time according to the displayed modified document, and the modified information of the original document may be saved by using the regenerated modified information document. Through the mode of superposition of the modification information, the modification of the document every time can be recorded, and the integrity of the modification information is ensured. And the number of the modified information can be reduced by combining the modified information, so that the modification efficiency of the original document is further improved.
In addition, in the scheme provided by the disclosure, the original document can be segmented, when the original document needs to be modified, the corresponding relation between each piece of modification information and the segment identifier can be recorded, and the original document can be encrypted in a segmented manner. In this way, the segments can be decrypted, displayed and modified, thereby further improving the modification efficiency of the document needing encryption.
Based on the above description, the embodiments of the present disclosure provide a document processing method, the flow of the steps of which may be shown in fig. 1, including:
step 101, acquiring and displaying a first document.
In this step, the document that needs to be modified and encrypted can be acquired for display, so that the document that needs to be modified can be determined according to the display.
And 102, generating a first modified information document according to the displayed first document.
In the present embodiment, the first modification information document may be generated from the displayed first document. The generated first modification information document may include therein first modification information. The first modification information may be understood as information corresponding to modification of the first document, which is determined according to a preset modification rule, and includes modification type information and type parameter information. The modification type information is used for describing a modification mode of the document, and the type parameter information is used for describing modification content corresponding to the corresponding modification type information.
In one possible implementation, the type of modification may include, but is not limited to, deleting text, adding text, replacing text, and modifying text color. Taking the example of modifying the text color, the corresponding type parameter can be, but is not limited to, represented as (M, N, L, C), which indicates that the color of L characters starting from the nth character of the mth paragraph is modified to C color.
In a possible implementation manner, the first modified information document is generated according to the displayed first document, which may be automatically generating a blank document according to the displayed first document, and receiving input information corresponding to the first document that needs to be modified to obtain the first modified information document.
In another possible implementation manner, the information corresponding to the modification that needs to be made to the first document is identified according to the modification made to the displayed first document, and the first modified information document may be automatically generated.
It should be noted that, in a possible implementation manner, the generated first modification information document may include information corresponding to the first document that needs to be modified, that is, the sequence identifier of each piece of modification information, so as to avoid a subsequent error result in the modification of the first document according to the first modification information document.
In addition, it should be noted that, in a possible implementation manner, the first document may correspond to at least one first modification information document, and each first modification information document may include at least one piece of first modification information.
Step 103, encrypting the first document to obtain a first encrypted document, and encrypting the first modification information document to obtain a second encrypted document.
In this step, the original document that needs to be modified and encrypted may be encrypted to obtain an encrypted document, and the modification information document corresponding to the original document may be encrypted to obtain an encrypted document. Namely, the original document and the modification information document corresponding to the original document are encrypted respectively.
In one possible implementation, in step 101, the first document may be obtained by decrypting a corresponding encrypted document. At this time, the encrypted document can be directly used as the first encrypted document without encrypting the first document again, so that the modification efficiency of the first document is effectively improved.
And 104, generating a third encrypted document corresponding to the first document according to the first encrypted document and the second encrypted document, and storing the third encrypted document.
In this step, an encrypted document including the first encrypted document and the second encrypted document may be generated and stored as an encrypted document corresponding to the original document. Therefore, the modified document of the original document can be obtained subsequently according to the encrypted document without substantially modifying the original document, and the modification efficiency of the original document is effectively improved.
Further, the present embodiment may further include the following steps:
and 105, decrypting the second encrypted document in the third encrypted document, determining the first modification information, and decrypting the first encrypted document in the third encrypted document to obtain the first document.
In this step, the first encrypted document and the second encrypted document may be decrypted respectively according to the third encrypted document, so as to obtain the first document, and determine first modification information corresponding to the first document.
And 106, modifying the first document according to the first modification information, and determining and displaying a second document corresponding to the first document.
In this step, the first document may be modified according to the determined first modification information corresponding to the first document, so that the modified document is determined and may be displayed, so as to facilitate viewing of the modified document.
In a possible implementation manner, the corresponding modification type may be determined according to modification type information (which may be understood as a modification type identifier, for example, a modification type sequence number) in the first modification information, and the corresponding type parameter may be determined according to type parameter information corresponding to the modification type information, so as to modify the first document and determine the second document.
Further, the present embodiment may further include the following steps:
step 107, generating a second modified information document according to the displayed second document.
In this step, a second modification information document may be generated from the displayed second document. The generated second modification information document may include therein second modification information. The second modification information may be obtained by superimposing or combining information corresponding to the first document that needs to be modified and information corresponding to the second document that needs to be modified.
It can be understood that, in a possible implementation manner, on the basis of the first modified information document, the second document may be modified as needed according to the displayed second document, information corresponding to the first document that needs to be modified and the second document that needs to be modified is superimposed, and the second modified information document is obtained by superimposing the information.
For example, in the first modified information document, a piece of modified type information is a deleted word, and the corresponding type parameter is (M, N, L, C), and the type parameter indicates deletion of L characters starting from the nth character of the mth paragraph. If it is determined that a new piece of modification type information is modified character color, the corresponding type parameter is (M, N, L, C), and the type parameter indicates that the color of L characters starting from the nth character of the mth paragraph is modified to C, then the second modification information document may include the two pieces of modification information. The generated second modification information document may further include the sequence identifier of the two pieces of modification information.
For another example, in the first modified information document, a piece of modified type information is a deleted word, the corresponding type parameter is (M, N, L), and the type parameter indicates that the L character at the nth character position of the mth paragraph is deleted. If it is determined that a new piece of modification type information is an added character, the corresponding type parameter is (M, N, L), and the type parameter indicates that an L character is added at the nth character position of the mth paragraph. Then, in the second modification information document, the above-mentioned two pieces of modification information may be included to ensure the integrity of the modification information for each modification. The generated second modification information document may further include the sequence identifier of the two pieces of modification information.
In another possible implementation manner, on the basis of the first modified information document, the second document may be modified as needed according to the displayed second document, information corresponding to the first document that needs to be modified and the second document that needs to be modified is merged, and the second modified information document is obtained in a manner of merging the information.
For example, in the first modified information document, a piece of modified type information is a deleted word, the corresponding type parameter is (M, N, L), and the type parameter indicates that L characters at the nth character position of the mth paragraph are deleted. If it is determined that a new piece of modification type information is an added character, the corresponding type parameter is (M, N, L), and the type parameter indicates that an L character is added at the nth character position of the mth paragraph. Then, the two pieces of modification information can be offset in the second modification information document, and the second modification information document does not need to include the two pieces of modification information, so that the number of the modification information is reduced, and the modification efficiency of the original document is further improved.
For another example, in the first modified information document, a piece of modified type information is a deleted word, the corresponding type parameter is (M, N, L), and the type parameter indicates that the L character at the nth character position of the mth paragraph is deleted. If it is determined that a new piece of modification type information is a deleted character, the corresponding type parameter is (M, N, L), and the type parameter indicates that an L character is deleted at the nth character position of the mth paragraph. Then, in the second modified information document, the two pieces of modified information may be merged into one piece, the second modified information document includes one piece of modified information, the modified type information is a delete word, and the corresponding type parameter is (M, N, 2L), so as to reduce the number of modified information and further improve the modification efficiency of the original document.
Of course, if two pieces of modification information cannot be offset or combined into one piece, two pieces of independent modification information are included in the second modification information document even in the combined manner. At this time, of course, the generated second modification information document may also include the sequence identifier of the modification information.
And step 108, encrypting the second modification information document to obtain a fourth encrypted document.
In this step, the second modification information document may be encrypted, and the encrypted document corresponding to the modification information of the original document may be obtained again.
And step 109, generating and storing a fifth encrypted document corresponding to the first document according to the first encrypted document and the fourth encrypted document.
In this step, the newly generated fourth encrypted document and the generated first encrypted document are used without re-encrypting the first document, so that the re-modified first document can be saved, and the modification efficiency of the encrypted document is effectively improved when the data volume of the first document is large.
Further, before step 102, the present embodiment may further include the following steps:
step 102', segmenting the first document according to the segmentation rule corresponding to the document type of the first document.
In this embodiment, the whole original document may be encrypted, or the original document may be encrypted in segments. If the document needs to be encrypted in a segmented manner, in this step, a corresponding segmentation rule can be determined according to the document type of the document, and the document is segmented according to the determined segmentation rule. Segmentation rules may include, but are not limited to, segmenting by paragraph, segmenting by page number, or separating segments by text and format, among others.
In this step, the first document may be segmented according to the document type of the first document and the corresponding segmentation rule.
If step 102' is performed, then in step 103, each segment of the first document may be encrypted separately to obtain a first encrypted document.
In step 102, the first modification information document may further include a segment identifier corresponding to each piece of first modification information, so that the modification information corresponding to each segment can be quickly found according to the segment identifier, and subsequently, decryption, display and modification can be performed on each segment, thereby further improving the modification efficiency of the document.
The way of decrypting, displaying and modifying again for a segment of a document is similar to the way of decrypting, displaying and modifying again for the whole document and is not described herein again.
It should be noted that, in a possible implementation manner, modification information corresponding to the same segment may be stored in a first modification information document, so that the display and modification of the segment may be implemented by decrypting the first modification information document, and the modification efficiency of the encrypted document is further improved.
In the scheme provided by the embodiment of the disclosure, the modification of the encrypted document can be realized by a method of adding the encrypted text segment, so that the modification efficiency of the encrypted document is effectively improved. In the additional ciphertext fragment, the obtained modification information can be stored in a superposition mode to ensure the integrity of the modification information, or the obtained modification information can be stored in a combination mode to reduce the number of the modification information and further improve the modification efficiency of the encrypted document. In addition, the encrypted document can be encrypted and stored in sections, and each section is decrypted, displayed and modified, so that the modification efficiency of the encrypted document is further improved.
Corresponding to the provided method, the following device is further provided.
The disclosed embodiment provides a document processing apparatus, the structure of which may be as shown in fig. 2, including:
the display module 11 is used for acquiring and displaying a first document;
the first generating module 12 is configured to generate a first modified information document according to the first document displayed by the display module, where the first modified information document includes first modified information; the first modification information is information corresponding to the first document needing to be modified, and comprises modification type information and type parameter information, wherein the modification type information is used for describing a modification mode of the document, and the type parameter information is used for describing modification content corresponding to the corresponding modification type information;
the encryption module 13 is configured to encrypt the first document to obtain a first encrypted document, and encrypt the first modification information document to obtain a second encrypted document;
the second generating module 14 is configured to generate and store a third encrypted document corresponding to the first document according to the first encrypted document and the second encrypted document.
In one possible implementation, the apparatus further includes a decryption module 15:
the decryption module 15 is configured to decrypt the second encrypted document in the third encrypted document, determine the first modification information, and decrypt the first encrypted document in the third encrypted document to obtain the first document;
the display module 11 is further configured to modify the first document according to the first modification information, determine a second document corresponding to the first document, and display the second document.
In one possible implementation, the apparatus further includes a third generating module 16:
the third generating module 16 is configured to generate a second modified information document according to the displayed second document, where the second modified information document includes second modified information, and the second modified information is obtained by superimposing or merging information corresponding to the first document that needs to be modified and information corresponding to the second document that needs to be modified;
the encryption module 13 is further configured to encrypt the second modification information document to obtain a fourth encrypted document;
the second generating module 14 is further configured to generate and store a fifth encrypted document corresponding to the first document according to the first encrypted document and the fourth encrypted document.
In one possible implementation, the apparatus further includes a segmentation module 17:
the segmenting module 17 is configured to segment the first document according to a segmenting rule corresponding to a document type of the first document;
when the first generating module 12 generates a first modified information document according to the displayed first document, the first modified information document further includes a segment identifier corresponding to each piece of first modified information;
the encrypting module 13 encrypts the first document to obtain a first encrypted document, including:
and respectively encrypting each segment of the first document to obtain a first encrypted document.
The functions of the functional units of each device provided in the above embodiments of the present disclosure may be implemented by the steps of the corresponding methods, and therefore, possible working processes and beneficial effects of the functional units in each device provided in the embodiments of the present disclosure are not repeated herein.
Based on the same inventive concept, the embodiments of the present disclosure provide the following apparatus and medium.
The disclosed embodiment provides a document processing device, which may have a structure as shown in fig. 3, and includes a processor 21, a communication interface 22, a memory 23, and a communication bus 24, where the processor 21, the communication interface 22, and the memory 23 complete mutual communication through the communication bus 24;
the memory 23 is used for storing computer programs;
the processor 21 is configured to implement the steps of the above method embodiments of the present disclosure when executing the program stored in the memory.
Alternatively, the processor 21 may include a Central Processing Unit (CPU), an Application Specific Integrated Circuit (ASIC), one or more Integrated circuits for controlling program execution, a hardware Circuit developed by using a Field Programmable Gate Array (FPGA), and a baseband processor.
Optionally, the processor 21 may include at least one processing core.
Alternatively, the Memory 23 may include a Read-Only Memory (ROM), a Random Access Memory (RAM), and a disk Memory. The memory 23 is used for storing data required by the at least one processor 21 during operation. The number of the memory 23 may be one or more.
The embodiment of the present disclosure also provides a non-volatile computer storage medium, which stores an executable program, and when the executable program is executed by a processor, the method provided by the above method embodiment of the present disclosure is implemented.
In a possible implementation, the computer storage medium may include: various storage media capable of storing program codes, such as a Universal Serial Bus Flash Drive (USB), a mobile hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
In the disclosed embodiments, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the described unit or division of units is only one division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical or other form.
The functional units in the embodiments of the present disclosure may be integrated into one processing unit, or each unit may be an independent physical module.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the technical solutions of the embodiments of the present disclosure may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions to enable a computer device, such as a personal computer, a server, or a network device, or a processor (processor), to execute all or part of the steps of the methods described in the embodiments of the present disclosure. And the aforementioned storage medium includes: various media capable of storing program codes, such as a Universal Serial Bus Flash Drive (usb Flash Drive), a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
As will be appreciated by one skilled in the art, embodiments of the present disclosure may be provided as a method, system, or computer program product. Accordingly, the present disclosure may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present disclosure may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and so forth) having computer-usable program code embodied therein.
The present disclosure is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the disclosure. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present disclosure have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all alterations and modifications as fall within the scope of the disclosure.
It will be apparent to those skilled in the art that various changes and modifications can be made in the present disclosure without departing from the spirit and scope of the disclosure. Thus, if such modifications and variations of the present disclosure fall within the scope of the claims of the present disclosure and their equivalents, the present disclosure is intended to include such modifications and variations as well.

Claims (10)

1. A method of document processing, the method comprising:
acquiring and displaying a first document, and generating a first modification information document according to the displayed first document, wherein the first modification information document comprises first modification information; the first modification information is information corresponding to the first document needing to be modified, and comprises modification type information and type parameter information, wherein the modification type information is used for describing a modification mode of the document, and the type parameter information is used for describing modification content corresponding to the corresponding modification type information;
encrypting the first document to obtain a first encrypted document, and encrypting the first modification information document to obtain a second encrypted document;
and generating and storing a third encrypted document corresponding to the first document according to the first encrypted document and the second encrypted document.
2. The method of claim 1, wherein after generating and storing a third encrypted document corresponding to the first document, the method further comprises:
decrypting the second encrypted document in the third encrypted document, determining the first modification information, and decrypting the first encrypted document in the third encrypted document to obtain the first document;
and modifying the first document according to the first modification information, and determining and displaying a second document corresponding to the first document.
3. The method of claim 2, wherein after determining and displaying a second document corresponding to the first document, the method further comprises:
generating a second modified information document according to the displayed second document, wherein the second modified information document comprises second modified information, and the second modified information is obtained by overlapping or combining information corresponding to the first document to be modified and information corresponding to the second document to be modified;
encrypting the second modification information document to obtain a fourth encrypted document;
and generating and storing a fifth encrypted document corresponding to the first document according to the first encrypted document and the fourth encrypted document.
4. A method according to any one of claims 1 to 3, wherein before generating a first modified information document from the displayed first document, the method further comprises:
segmenting the first document according to a segmentation rule corresponding to the document type of the first document;
when a first modified information document is generated according to the displayed first document, the first modified information document also comprises a segment identifier corresponding to each piece of first modified information;
encrypting the first document to obtain a first encrypted document, comprising:
and respectively encrypting each segment of the first document to obtain a first encrypted document.
5. A document processing apparatus, characterized in that the apparatus comprises:
the display module is used for acquiring and displaying the first document;
the first generation module is used for generating a first modified information document according to the first document displayed by the display module, wherein the first modified information document comprises first modified information; the first modification information is information corresponding to the first document needing to be modified, and comprises modification type information and type parameter information, wherein the modification type information is used for describing a modification mode of the document, and the type parameter information is used for describing modification content corresponding to the corresponding modification type information;
the encryption module is used for encrypting the first document to obtain a first encrypted document, and encrypting the first modification information document to obtain a second encrypted document;
and the second generation module is used for generating and storing a third encrypted document corresponding to the first document according to the first encrypted document and the second encrypted document.
6. The apparatus of claim 5, wherein the apparatus further comprises a decryption module:
the decryption module is configured to decrypt the second encrypted document in the third encrypted document, determine the first modification information, and decrypt the first encrypted document in the third encrypted document to obtain the first document;
the display module is further configured to modify the first document according to the first modification information, determine a second document corresponding to the first document, and display the second document.
7. The apparatus of claim 5, wherein the apparatus further comprises a third generation module:
the third generating module is configured to generate a second modified information document according to the displayed second document, where the second modified information document includes second modified information, and the second modified information is obtained by superimposing or merging information corresponding to the first document that needs to be modified and information corresponding to the second document that needs to be modified;
the encryption module is further configured to encrypt the second modification information document to obtain a fourth encrypted document;
the second generating module is further configured to generate and store a fifth encrypted document corresponding to the first document according to the first encrypted document and the fourth encrypted document.
8. The apparatus of any of claims 5 to 7, further comprising a segmentation module:
the segmenting module is used for segmenting the first document according to a segmenting rule corresponding to the document type of the first document;
the first generation module is used for generating a first modified information document according to the displayed first document, wherein the first modified information document also comprises a segment identifier corresponding to each piece of first modified information;
the encryption module encrypts the first document to obtain a first encrypted document, and includes:
and respectively encrypting each segment of the first document to obtain a first encrypted document.
9. A non-transitory computer storage medium storing an executable program for execution by a processor to perform the method of any one of claims 1 to 4.
10. A document processing device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;
the memory is used for storing a computer program;
the processor, when executing the program stored in the memory, implementing the method steps of any of claims 1-4.
CN202110777011.0A 2021-07-09 2021-07-09 Document processing method, device, medium and equipment Pending CN113407970A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110777011.0A CN113407970A (en) 2021-07-09 2021-07-09 Document processing method, device, medium and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110777011.0A CN113407970A (en) 2021-07-09 2021-07-09 Document processing method, device, medium and equipment

Publications (1)

Publication Number Publication Date
CN113407970A true CN113407970A (en) 2021-09-17

Family

ID=77685861

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110777011.0A Pending CN113407970A (en) 2021-07-09 2021-07-09 Document processing method, device, medium and equipment

Country Status (1)

Country Link
CN (1) CN113407970A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109299452A (en) * 2018-11-26 2019-02-01 深圳龙图腾创新设计有限公司 A kind of document combination method, device and equipment
CN110417781A (en) * 2019-07-30 2019-11-05 中国工商银行股份有限公司 File encryption management method, client and server based on block chain

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109299452A (en) * 2018-11-26 2019-02-01 深圳龙图腾创新设计有限公司 A kind of document combination method, device and equipment
CN110417781A (en) * 2019-07-30 2019-11-05 中国工商银行股份有限公司 File encryption management method, client and server based on block chain

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
任淑霞主编: "《Java EE轻量级框架应用与开发》", 31 January 2019, 天津大学出版社 *
刘国柱,任春年编著: "《EPC物联网技术》", 31 October 2016, 西安电子科技大学出版社 *

Similar Documents

Publication Publication Date Title
US20170295013A1 (en) Method for fulfilling a cryptographic request requiring a value of a private key
US8345876B1 (en) Encryption/decryption system and method
EP3232364B1 (en) Image encryption method, image viewing method, terminals and computer storage media
CN106203128B (en) Webpage data encryption and decryption method, device and system
US20160117518A1 (en) File Encryption/Decryption Device And File Encryption/Decryption Method
CN109803142B (en) Encrypted domain image reversible data hiding method based on neighborhood prediction
CN105809042A (en) Information protection method and device, information display method and device, and terminal
US20150302202A1 (en) Program verification apparatus, program verification method, and program verification program
CN111385084A (en) Key management method and device for digital assets and computer readable storage medium
CN110704854B (en) Stream type encryption method aiming at text data reserved format
CN110955901B (en) Storage method and server for virtual machine image file of cloud computing platform
CN111432287A (en) Slicing encryption method and system and decryption method and system for audio and video files
CN101641701A (en) Device and method for digital processing management of content so as to enable an imposed work flow
CN112199730A (en) Method and device for processing application data on terminal and electronic equipment
CN117201120A (en) Information encryption method, device, computer equipment and storage medium
CN113407970A (en) Document processing method, device, medium and equipment
US20220345292A1 (en) Method and device for encryption of video stream, communication equipment, and storage medium
CN103491384B (en) Encrypting method and device of video and decrypting method and device of video
CN114329568A (en) File encryption method, device, system platform and file decryption method
CN114124469A (en) Data processing method, device and equipment
CN112311529A (en) Data encryption method, data decryption method and data processing method of database
CN112685756B (en) Data writing and reading method, device, medium and equipment
CN110929274A (en) Method, system and device for encrypting and decrypting file by adopting Blowfish
CN111130788A (en) Data processing method and system, data reading method and iSCSI server
KR102545264B1 (en) Web contents crawling apparatus which collects web contents data from the body area on the web page, and the operating method thereof

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210917