CN115081404B - Block chain-based shared document editing management method and device - Google Patents

Block chain-based shared document editing management method and device Download PDF

Info

Publication number
CN115081404B
CN115081404B CN202211002394.5A CN202211002394A CN115081404B CN 115081404 B CN115081404 B CN 115081404B CN 202211002394 A CN202211002394 A CN 202211002394A CN 115081404 B CN115081404 B CN 115081404B
Authority
CN
China
Prior art keywords
editing
edited
document
shared document
content
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.)
Active
Application number
CN202211002394.5A
Other languages
Chinese (zh)
Other versions
CN115081404A (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.)
Jiaying Technology Co ltd
Original Assignee
Jiaying 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 Jiaying Technology Co ltd filed Critical Jiaying Technology Co ltd
Priority to CN202211002394.5A priority Critical patent/CN115081404B/en
Publication of CN115081404A publication Critical patent/CN115081404A/en
Application granted granted Critical
Publication of CN115081404B publication Critical patent/CN115081404B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • H04L63/0478Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload applying multiple layers of encryption, e.g. nested tunnels or encrypting the content with a first key and then with at least a second key

Abstract

The invention discloses a block chain-based shared document editing management method and a block chain-based shared document editing management device, wherein the method comprises the following steps: obtaining a request identification of an editing request user; generating a request identification hash value based on the request identification mark, and broadcasting the request identification hash value to a block chain; obtaining a matched shared document to be edited; loading the document to the user terminal, and displaying a reading view of the shared document to be edited on the user terminal; selecting an editing area of the shared document to be edited based on the content displayed by the reading view to generate a comparison editing frame on the user terminal; encrypting the document content in the comparison editing frame and the position of the document content in the shared document to be edited, and broadcasting the encrypted document content to the block chain; and editing and updating the matched shared document to be edited by using the encrypted document content in the block chain. In the embodiment of the invention, the identity information of the user can be effectively prevented from being falsely used, and the traceability management of the edited updated content is realized.

Description

Block chain-based shared document editing management method and device
Technical Field
The invention relates to the technical field of document editing management, in particular to a block chain-based shared document editing management method and device.
Background
In the existing electronic document sharing editing, some sharing editing authorities of the electronic document are generally set by electronic document sharing users, and after other users log in and obtain corresponding sharing editing authorities, the electronic document can be subjected to related editing processing; however, the login information of the user may be falsely used, so that the electronic document is maliciously updated by falsely used login information of the user; meanwhile, after the user with the shared editing authority edits the electronic document, the edited part of the content is directly replaced and updated to form an updated electronic document, and then the updated electronic document is subjected to corresponding work such as updating and tracing.
Disclosure of Invention
The invention aims to overcome the defects of the prior art, and provides a block chain-based shared document editing management method and device, which can effectively prevent the identity information of a user from being falsely used and can realize the traceable management of the edited updated content.
In order to solve the above technical problem, an embodiment of the present invention provides a block chain-based shared document editing management method, where the method includes:
when an editing request user applies for an editing request to a shared document to be edited based on a user terminal, obtaining a request identification mark of the editing request user;
generating a request identification hash value based on the request identification mark, and broadcasting the generated request identification hash value into a block chain;
identifying a hash value based on the request in the blockchain to obtain a matched shared document to be edited;
loading the matched shared document to be edited to the user terminal, and displaying the read view of the shared document to be edited on the user terminal;
selecting an editing area of the shared document to be edited based on the content displayed by the reading view to generate a comparison editing frame on the user terminal, and displaying the document content in the editing area of the shared document to be edited in the comparison editing frame;
after an editing request user finishes editing operation in the comparison editing frame, encrypting based on the document content in the comparison editing frame and the position of the document content in the shared document to be edited, and broadcasting the encrypted document content to the block chain;
and editing and updating the matched shared document to be edited by using the encrypted document content in the block chain.
Optionally, before the time when the editing request user applies for an editing request for the shared document to be edited based on the user terminal, the method further includes:
when an editing sharing user issues a shared document to be edited, the editing sharing user enters an editing right required by editing the shared document to be edited;
and generating an editing authority hash value based on the editing authority.
Optionally, the obtaining of the request identification of the editing request user includes:
matching user authentication information input by the editing request user to corresponding user editing permission;
and generating a request identification of the editing request user based on the user authentication information and the corresponding user editing authority association.
Optionally, the generating a request identification hash value based on the request identification identifier includes:
and carrying out hash encryption processing on the request identification mark based on an intelligent contract program deployed on the user terminal to obtain a request identification hash value.
Optionally, the performing hash encryption processing on the request identification based on the intelligent contract program deployed on the user terminal includes:
performing first encryption processing on the request identification by using a one-way encrypted SHA256 hash function in an intelligent contract program deployed on the user terminal to obtain a first encryption result;
carrying out secondary encryption processing on the first encryption result by utilizing a RipemD160 hash function of one-way encryption to obtain a second encryption result;
and converting the second encryption result into a hexadecimal character string to form a request identification hash value.
Optionally, the obtaining, in the block chain, the matched shared document to be edited based on the request identification hash value includes:
matching the request identification hash value with the corresponding editing authority hash value in the block chain;
and when the request identification hash value is matched with the corresponding editing authority hash value, obtaining the shared document to be edited associated with the corresponding editing authority hash value as the shared document to be edited matched with the request identification hash value.
Optionally, the selecting an editing area of the shared document to be edited based on the content displayed in the reading view generates a comparison editing frame on the user terminal, including:
selecting an editing area of the shared document to be edited according to chapters or paragraphs of the shared document to be edited on the basis of the content displayed by the reading video on the user terminal;
after an editing area of the shared document to be edited is selected, a comparison editing frame which is displayed in a comparison mode with the reading view is generated on a display interface of the user terminal;
extracting the text content in the editing area of the selected shared document to be edited to obtain extracted text content;
performing proofreading processing by using the extracted text content and the text content in the editing area of the selected shared document to be edited to obtain the proofread extracted text content;
and pasting the checked extracted text content into the check edit box for display processing.
Optionally, the encrypting, based on the document content in the comparison edit box and the position of the document content in the shared document to be edited, includes:
and encrypting the document content in the comparison editing box and the position of the document content in the shared document to be edited by using an information abstract algorithm to obtain an encrypted document.
Optionally, the editing and updating the matched shared document to be edited by using the encrypted document content in the block chain includes:
decoding the encrypted document content in the block chain to obtain the document content in the comparison editing frame and the position of the document content in the shared document to be edited;
performing positioning processing on the update position of the shared document to be edited, which is matched with the position of the document content in the shared document to be edited, to obtain an update positioning position;
based on the updated positioning position, utilizing the document content in the comparison editing frame to perform the comparison and updating processing on the matched shared document to be edited, and marking the request identification of the editing request user during the comparison and updating processing to form an updated comparison document and an updated replacement document;
and taking the updated replacement document as the matched shared document to be edited after the editing and updating processing is finished, and correspondingly storing the updated comparison document as an updated copy.
In addition, an embodiment of the present invention further provides a block chain-based shared document editing management apparatus, where the apparatus includes:
an editing request module: the method comprises the steps that a request identification mark of an editing request user is obtained when the editing request user applies for an editing request of a shared document to be edited based on a user terminal;
a broadcasting module: the system is used for generating a request identification hash value based on the request identification mark and broadcasting the generated request identification hash value into a block chain;
a matching module: the shared document to be edited is matched with the request identification hash value in the block chain;
loading a display module: the shared document to be edited is loaded to the user terminal, and the shared document to be edited is displayed in a reading view on the user terminal;
an edit box generation module: the editing area used for selecting the shared document to be edited based on the content displayed by the reading view generates a comparison editing frame on the user terminal, and the document content in the editing area of the shared document to be edited is displayed in the comparison editing frame;
a content encryption module: the block chain encryption device is used for performing encryption processing based on the document content in the comparison editing box and the position of the document content in the shared document to be edited after an editing request user finishes editing operation in the comparison editing box, and encrypting the document content and broadcasting the encrypted document content to the block chain;
an editing and updating module: and the shared document to be edited is used for carrying out editing and updating processing on the matched shared document to be edited by utilizing the encrypted document content in the block chain.
In the embodiment of the invention, the shared document is edited and managed in a block chain mode, so that the risks that the editing authority of a user is shared and the shared document is maliciously updated can be effectively solved when the shared document is edited and managed; meanwhile, after the user edits the shared document, the method can effectively edit, update and trace the source, can grasp the editing condition of the shared document at any time, and provides editing efficiency and the reading efficiency of the edited and updated document.
Drawings
In order to more clearly illustrate the embodiments of the present invention 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 invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flowchart illustrating a block chain-based shared document editing management method according to an embodiment of the present invention;
FIG. 2 is a block chain-based shared document editing management apparatus in an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
Referring to fig. 1, fig. 1 is a flowchart illustrating a block chain-based shared document editing management method according to an embodiment of the present invention.
As shown in fig. 1, a block chain based shared document editing management method includes:
s11: when an editing request user applies for an editing request to a shared document to be edited based on a user terminal, obtaining a request identification of the editing request user;
in a specific implementation process of the present invention, before the editing request user applies for an editing request for a shared document to be edited based on a user terminal, the method further includes: when an editing sharing user issues a shared document to be edited, the editing sharing user inputs an editing right required by editing the shared document to be edited; and generating an editing authority hash value based on the editing authority.
Further, the obtaining of the request identification of the editing requesting user includes: matching user authentication information input by the editing request user to corresponding user editing permission; and generating a request identification of the editing request user based on the user authentication information and the corresponding user editing authority association.
Specifically, firstly, when an editing and sharing user issues a shared document to be edited, the editing and sharing user needs to enter an editing right required by other users when editing the shared document to be edited; generating an editing authority hash value according to the editing authority; when the editing authority hash value is generated through the editing authority, the intelligent contract program built in the terminal where the editing sharing user is located is used for carrying out encryption processing through the editing authority input by the user, and therefore the hash value is formed.
The specific encryption processing process is that the editing authority is encrypted for the first time by using a one-way encrypted SHA256 hash function in the intelligent contract program, and during the first encryption processing, the one-way encrypted SHA256 hash function firstly performs bit complementing processing on the editing authority so that the final length of the editing authority after bit complementing is a multiple of 512 bits, blocks the editing authority after bit complementing by using 512 bits as a unit, and then encrypts each block one by one to form a first encryption result; and then, carrying out encryption processing on the first encryption result again by using a RipemD160 hash function of one-way encryption, obtaining a second encryption result, and finally converting the second encryption result into a hexadecimal character string to form a corresponding hash value.
When an editing request user applies for an editing request for a shared document to be edited according to a user terminal, identity authentication processing needs to be performed on the editing request user to obtain user authentication information, namely the user authentication information input by the editing request user, the corresponding user editing permission is matched through the user authentication information, and a request identification mark of the editing request user is generated through the user authentication information and a corresponding user editing permission association mode.
S12: generating a request identification hash value based on the request identification mark, and broadcasting the generated request identification hash value into a block chain;
in a specific implementation process of the present invention, the generating a request identification hash value based on the request identification identifier includes: and carrying out hash encryption processing on the request identification mark based on an intelligent contract program deployed on the user terminal to obtain a request identification hash value.
Further, the performing hash encryption processing on the request identification based on the intelligent contract program deployed on the user terminal includes: performing first encryption processing on the request identification by using a one-way encrypted SHA256 hash function in an intelligent contract program deployed on the user terminal to obtain a first encryption result; carrying out encryption processing on the first encryption result again by utilizing a RipemD160 hash function of one-way encryption to obtain a second encryption result; and converting the second encryption result into a hexadecimal character string to form a request identification hash value.
Specifically, after the request identification is obtained, hash encryption processing is performed on the request identification through a concept contract program deployed on the user terminal, and then a request identification hash value can be obtained.
When the single-direction encrypted SHA256 hash function is used for carrying out the first encryption processing on the request identification mark, firstly the single-direction encrypted SHA256 hash function is used for carrying out bit complementing processing on the request identification mark, the length of the request identification mark after the bit complementing processing is a multiple of 512 bits, then the request identification mark after the bit complementing processing is carried out block processing by taking 512 bits as a unit, and then hash encryption processing is carried out on each block to obtain a first encryption result; carrying out secondary encryption processing on the first encryption result by utilizing a RipemD160 hash function of one-way encryption to obtain a second encryption result; and after the second encryption result is obtained, converting the second encryption result into a hexadecimal character string to form a request identification hash value.
S13: identifying a hash value based on the request in the blockchain to obtain a matched shared document to be edited;
in a specific implementation process of the present invention, the obtaining a matched shared document to be edited based on the request identification hash value in the block chain includes: matching the request identification hash value with the corresponding editing authority hash value in the block chain; and when the request identification hash value is matched with the corresponding editing authority hash value, obtaining the shared document to be edited associated with the corresponding editing authority hash value as the shared document to be edited matched with the request identification hash value.
Specifically, a request identification hash value is firstly used for matching with a corresponding editing permission hash value in a block chain, when the request identification hash value is matched with the corresponding editing permission hash value, a shared document to be edited associated with the corresponding editing permission hash value is obtained, and the shared document to be edited associated with the corresponding editing permission hash value is used as the shared document to be edited matched with the request identification hash value.
S14: loading the matched shared document to be edited to the user terminal, and displaying the read view of the shared document to be edited on the user terminal;
in the specific implementation process of the invention, the matched shared document to be edited is loaded to the user terminal through the paging loading technology, and when the editing request user opens the shared document to be edited through the specified software of the user terminal, the shared document to be edited is read and displayed on the user terminal.
S15: selecting an editing area of the shared document to be edited based on the content displayed in the reading view, generating a comparison editing frame on the user terminal, and displaying the document content in the editing area of the shared document to be edited in the comparison editing frame;
in a specific implementation process of the present invention, the selecting, based on the content displayed in the reading view, an editing area of the shared document to be edited to generate a comparison editing frame on the user terminal includes: selecting an editing area of the shared document to be edited according to chapters or paragraphs of the shared document to be edited on the basis of the content displayed by the reading video on the user terminal; after the editing area of the shared document to be edited is selected, a comparison editing frame which is displayed in a comparison mode with the reading view is generated on a display interface of the user terminal; extracting the text content in the editing area of the selected shared document to be edited to obtain extracted text content; performing proofreading processing by using the extracted text content and the text content in the editing area of the selected shared document to be edited to obtain the proofread extracted text content; and pasting the corrected extracted text content into the comparison editing frame for display processing.
Specifically, the editing area of the shared document to be edited is selected on the user terminal according to chapters or paragraphs of the shared document to be edited by reading the content displayed by the video, or the editing area of the shared document to be edited is selected on the user terminal by calling a frame selection tool to perform frame operation on the content displayed by reading the video; after the editing area of the shared document to be edited is selected, a designated editing program is called on a display interface of the user terminal to generate a comparison editing frame which is in a comparison mode with the reading view display, so that the user can display the comparison mode with the reading view during editing, the comparison editing of the editing user is facilitated, or the targeted editing is performed by combining the context of the shared document to be edited, and the editing efficiency is improved; then, extracting the text content in the editing area of the selected shared document to be edited to obtain extracted text content, wherein a text extraction program can be called to extract the text content in the application; performing proofreading processing by using the extracted text content and the text content in the editing area of the selected shared document to be edited to obtain the proofread extracted text content, wherein the proofreading processing can be realized by using a text proofreading program; and finally pasting the corrected extracted text content into the comparison editing frame for display processing, thereby realizing the subsequent editing processing in the comparison editing frame.
S16: after an editing request user finishes editing operation in the comparison editing frame, encrypting based on the document content in the comparison editing frame and the position of the document content in the shared document to be edited, and broadcasting the encrypted document content to the block chain;
in a specific implementation process of the present invention, the encrypting process based on the document content in the comparison edit box and the position of the document content in the shared document to be edited includes: and encrypting the document content in the comparison editing frame and the position of the document content in the shared document to be edited by using an information abstract algorithm to obtain an encrypted document.
Specifically, after the editing requesting user completes the editing operation in the comparison edit box, the document content in the comparison edit box and the position of the document content in the shared document to be edited are encrypted through an information digest algorithm, so that an encrypted document is obtained, and the obtained encrypted document content is broadcast to the block chain.
S17: and editing and updating the matched shared document to be edited by using the encrypted document content in the block chain.
In a specific implementation process of the present invention, the performing, in the block chain, an editing and updating process on the matched shared document to be edited by using the encrypted document content includes: decoding the encrypted document content in the block chain to obtain the document content in a comparison editing frame and the position of the document content in the shared document to be edited; performing positioning processing on the update position of the shared document to be edited, which is matched with the position of the document content in the shared document to be edited, to obtain an update positioning position; based on the updated positioning position, utilizing the document content in the comparison editing frame to perform the comparison and updating processing on the matched shared document to be edited, and marking the request identification of the editing request user during the comparison and updating processing to form an updated comparison document and an updated replacement document; and taking the updated replacement document as the matched shared document to be edited after the editing and updating processing is finished, and correspondingly storing the updated comparison document as an updated copy.
Specifically, the encrypted document content is decoded in the block chain, and the document content in the comparison edit box and the position of the document content in the shared document to be edited are obtained; then, according to the position of the document content in the shared document to be edited, carrying out positioning processing on the matched updated position of the shared document to be edited, and obtaining an updated positioning position; according to the updated positioning position, utilizing the document content in the comparison editing frame to perform the comparison and updating processing on the matched shared document to be edited, and marking the request identification of the editing request user during the comparison and updating processing to form an updated comparison document and an updated replacement document; and then, taking the updated replacement document as a matched shared document to be edited after the editing and updating processing is finished, and correspondingly storing the updated comparison document as an updated copy.
In the embodiment of the invention, the shared document is edited and managed in a block chain mode, so that the risks that the editing authority of a user is shared and the shared document is maliciously updated can be effectively solved when the shared document is edited and managed; meanwhile, after the user edits the shared document, the method can effectively edit, update and trace the source, can grasp the editing condition of the shared document at any time, and provides editing efficiency and the reading efficiency of the edited and updated document.
Example two
Referring to fig. 2, fig. 2 is a schematic structural composition diagram of a block chain-based shared document editing management apparatus according to an embodiment of the present invention.
As shown in fig. 2, a block chain-based shared document editing management apparatus, the apparatus comprising:
the edit request module 21: the method comprises the steps that when an editing request user applies for an editing request to a shared document to be edited based on a user terminal, a request identification mark of the editing request user is obtained;
in a specific implementation process of the present invention, before the time when the edit requesting user applies for an edit request for the shared document to be edited based on the user terminal, the method further includes: when an editing sharing user issues a shared document to be edited, the editing sharing user inputs an editing right required by editing the shared document to be edited; and generating an editing authority hash value based on the editing authority.
Further, the obtaining of the request identification of the editing request user includes: matching user authentication information input by the editing request user to corresponding user editing permission; and generating a request identification of the editing request user based on the user authentication information and the corresponding user editing authority association.
Specifically, firstly, when an editing and sharing user issues a shared document to be edited, the editing and sharing user needs to enter an editing right required by other users when editing the shared document to be edited; generating an editing authority hash value according to the editing authority; when the editing authority hash value is generated through the editing authority, the intelligent contract program built in the terminal of the editing sharing user performs encryption processing through the editing authority input by the user, so that the hash value is formed.
The specific encryption processing process is that the editing authority is encrypted for the first time by using a one-way encrypted SHA256 hash function in the intelligent contract program, and during the first encryption processing, the one-way encrypted SHA256 hash function firstly carries out bit complementing processing on the editing authority, so that the final length of the editing authority after bit complementing is a multiple of 512 bits, the editing authority after bit complementing is partitioned by taking 512 bits as a unit, and then each partition is encrypted one by one to form a first encryption result; and then, carrying out secondary encryption processing on the first encryption result by utilizing the RipemD160 hash function of the one-way encryption, obtaining a second encryption result, and finally converting the second encryption result into a hexadecimal character string to form a corresponding hash value.
When an editing request user applies for an editing request for a shared document to be edited according to a user terminal, firstly, identity authentication processing needs to be performed on the editing request user to obtain user authentication information, namely the user authentication information input by the editing request user, the corresponding user editing authority is matched through the user authentication information, and then a request identification mark of the editing request user is generated in a mode of associating the user authentication information with the corresponding user editing authority.
The broadcasting module 22: the system comprises a block chain, a request identification identifier, a request identification hash value and a block identifier, wherein the request identification identifier is used for identifying a block chain;
in a specific implementation process of the present invention, the generating a request identification hash value based on the request identification identifier includes: and carrying out hash encryption processing on the request identification mark based on an intelligent contract program deployed on the user terminal to obtain a request identification hash value.
Further, the performing hash encryption processing on the request identification based on the intelligent contract program deployed on the user terminal includes: performing first encryption processing on the request identification mark by using a one-way encrypted SHA256 hash function in an intelligent contract program deployed on the user terminal to obtain a first encryption result; carrying out secondary encryption processing on the first encryption result by utilizing a RipemD160 hash function of one-way encryption to obtain a second encryption result; and converting the second encryption result into a hexadecimal character string to form a request identification hash value.
Specifically, after the request identification is obtained, hash encryption processing is performed on the request identification through a concept contract program deployed on the user terminal, and then a request identification hash value can be obtained.
When the single-direction encrypted SHA256 hash function is used for carrying out the first encryption processing on the request identification mark, firstly the single-direction encrypted SHA256 hash function is used for carrying out bit complementing processing on the request identification mark, the length of the request identification mark after the bit complementing processing is a multiple of 512 bits, then the request identification mark after the bit complementing processing is carried out block processing by taking 512 bits as a unit, and then hash encryption processing is carried out on each block to obtain a first encryption result; carrying out secondary encryption processing on the first encryption result by utilizing a RipemD160 hash function of one-way encryption to obtain a second encryption result; and after the second encryption result is obtained, converting the second encryption result into a hexadecimal character string to form a request identification hash value.
The matching module 23: the shared document to be edited is obtained by the block chain based on the request identification hash value;
in a specific implementation process of the present invention, the obtaining a matched shared document to be edited based on the request identification hash value in the block chain includes: matching the hash value identified by the request with the corresponding editing authority hash value in the block chain; and when the request identification hash value is matched with the corresponding editing authority hash value, obtaining the shared document to be edited associated with the corresponding editing authority hash value as the shared document to be edited matched with the request identification hash value.
Specifically, a request identification hash value is used for matching with a corresponding editing permission hash value in a block chain, when the request identification hash value is matched with the corresponding editing permission hash value, a shared document to be edited associated with the corresponding editing permission hash value is obtained, and the shared document to be edited associated with the corresponding editing permission hash value is used as the shared document to be edited matched with the request identification hash value.
Loading the display module 24: the shared document to be edited is loaded to the user terminal, and the read view display is carried out on the shared document to be edited on the user terminal;
in the specific implementation process of the invention, the matched shared document to be edited is loaded to the user terminal through the paging loading technology, and when the editing request user opens the shared document to be edited through the specified software of the user terminal, the shared document to be edited is read and displayed on the user terminal.
Edit box generation module 25: the editing area used for selecting the shared document to be edited based on the content displayed by the reading view generates a comparison editing frame on the user terminal, and the document content in the editing area of the shared document to be edited is displayed in the comparison editing frame;
in a specific implementation process of the present invention, the selecting, based on the content displayed in the reading view, an editing area of the shared document to be edited to generate a comparison editing frame on the user terminal includes: selecting an editing area of the shared document to be edited according to chapters or paragraphs of the shared document to be edited on the basis of the content displayed by the reading video on the user terminal; after the editing area of the shared document to be edited is selected, a comparison editing frame which is displayed in a comparison mode with the reading view is generated on a display interface of the user terminal; extracting the text content in the editing area of the selected shared document to be edited to obtain extracted text content; performing proofreading processing by using the extracted text content and the text content in the editing area of the selected shared document to be edited to obtain the proofread extracted text content; and pasting the corrected extracted text content into the comparison editing frame for display processing.
Specifically, the editing region of the shared document to be edited is selected on the user terminal according to the chapters or paragraphs of the shared document to be edited by reading the content displayed by the video, or the editing region of the shared document to be edited can be selected on the user terminal by calling a frame selection tool to perform frame drawing on the content displayed by reading the video; after the editing area of the shared document to be edited is selected, a designated editing program is called on a display interface of the user terminal to generate a contrast editing frame which is displayed in a contrast mode with the reading view, so that the user can display in the contrast mode with the reading view during editing, the contrast editing of the editing user is facilitated, or the targeted editing is performed by combining the context of the shared document to be edited, and the editing efficiency is improved; then, extracting the text content in the editing area of the selected shared document to be edited to obtain extracted text content, wherein a text extraction program can be called to extract the text content in the application; performing proofreading processing by using the extracted text content and the text content in the editing area of the selected shared document to be edited to obtain the proofread extracted text content, wherein the proofreading processing can be realized by using a text proofreading program; and finally pasting the corrected extracted text content into the comparison editing frame for display processing, thereby realizing the subsequent editing processing in the comparison editing frame.
The content encryption module 26: the block chain encryption device is used for performing encryption processing based on the document content in the comparison editing box and the position of the document content in the shared document to be edited after an editing request user finishes editing operation in the comparison editing box, and encrypting the document content and broadcasting the encrypted document content to the block chain;
in a specific implementation process of the present invention, the encrypting process based on the document content in the comparison edit box and the position of the document content in the shared document to be edited includes: and encrypting the document content in the comparison editing frame and the position of the document content in the shared document to be edited by using an information abstract algorithm to obtain an encrypted document.
Specifically, after the editing requesting user completes the editing operation in the comparison edit box, the document content in the comparison edit box and the position of the document content in the shared document to be edited are encrypted through an information digest algorithm, so that an encrypted document is obtained, and the obtained encrypted document content is broadcast to the block chain.
The edit update module 27: and the block chain is used for utilizing the encrypted document content to edit and update the matched shared document to be edited.
In a specific implementation process of the present invention, the performing, in the block chain, an editing and updating process on the matched shared document to be edited by using the encrypted document content includes: decoding the encrypted document content in the block chain to obtain the document content in the comparison editing frame and the position of the document content in the shared document to be edited; performing positioning processing on the update position of the shared document to be edited, which is matched with the position of the document content in the shared document to be edited, to obtain an update positioning position; based on the update positioning position, utilizing the document content in the comparison editing frame to perform the proofreading and updating processing on the matched shared document to be edited, and marking the request identification of the editing request user during the proofreading and updating processing to form an update comparison document and an update replacement document; and taking the updated replacement document as the matched shared document to be edited after the editing and updating processing is finished, and correspondingly storing the updated comparison document as an updated copy.
Specifically, the encrypted document content is decoded in the block chain, and the document content in the comparison edit box and the position of the document content in the shared document to be edited are obtained; then, according to the position of the document content in the shared document to be edited, the matched updated position of the shared document to be edited is positioned, and an updated positioning position is obtained; according to the updating positioning position, utilizing the document content in the comparison editing frame to carry out the proofreading and updating processing on the matched shared document to be edited, and marking the request identification of the editing request user during the proofreading and updating processing to form an updated comparison document and an updated replacement document; and then, taking the updated replacement document as a matched shared document to be edited after the editing and updating processing is finished, and correspondingly storing the updated comparison document as an updated copy.
In the embodiment of the invention, the shared document is edited and managed in a block chain mode, so that the risks that the editing authority of a user is shared and the shared document is maliciously updated can be effectively solved when the shared document is edited and managed; meanwhile, after the user edits the shared document, the method can effectively edit, update and trace the source, can master the editing condition of the shared document all the time, and provides editing efficiency and the reading efficiency of the edited and updated document.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by hardware related to instructions of a program, and the program may be stored in a computer-readable storage medium, and the storage medium may include: a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic or optical disk, and the like.
In addition, the method and apparatus for managing editing shared documents based on block chains according to the embodiments of the present invention are described in detail above, and a specific embodiment should be used herein to explain the principle and implementation manner of the present invention, and the description of the above embodiment is only used to help understanding the method and core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, the specific embodiments and the application range may be changed, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (8)

1. A block chain based shared document editing management method, the method comprising:
when an editing request user applies for an editing request to a shared document to be edited based on a user terminal, obtaining a request identification of the editing request user;
generating a request identification hash value based on the request identification mark, and broadcasting the generated request identification hash value into a block chain;
identifying a hash value based on the request in the block chain to obtain a matched shared document to be edited;
loading the matched shared document to be edited to the user terminal, and displaying a reading view of the shared document to be edited on the user terminal;
selecting an editing area of the shared document to be edited based on the content displayed by the reading view to generate a comparison editing frame on the user terminal, and displaying the document content in the editing area of the shared document to be edited in the comparison editing frame;
after an editing request user finishes editing operation in the comparison editing frame, encrypting based on the document content in the comparison editing frame and the position of the document content in the shared document to be edited, and broadcasting the encrypted document content to the block chain;
editing and updating the matched shared document to be edited by using the encrypted document content in the block chain;
the obtaining the matched shared document to be edited based on the hash value identified by the request in the block chain comprises:
matching the hash value identified by the request with the corresponding editing authority hash value in the block chain;
when the request identification hash value is matched with the corresponding editing permission hash value, obtaining a shared document to be edited associated with the corresponding editing permission hash value as the shared document to be edited matched with the request identification hash value;
the method comprises the following steps of selecting an editing area of a shared document to be edited based on the content displayed by the reading view, and generating a comparison editing frame on the user terminal, wherein the steps comprise:
selecting an editing area of the shared document to be edited according to chapters or paragraphs of the shared document to be edited on the basis of the content displayed by the reading view on the user terminal;
after the editing area of the shared document to be edited is selected, a comparison editing frame which is displayed in a comparison mode with the reading view is generated on a display interface of the user terminal;
extracting the text content in the editing area of the selected shared document to be edited to obtain extracted text content;
performing proofreading processing by using the extracted text content and the text content in the editing area of the selected shared document to be edited to obtain the proofread extracted text content;
and pasting the checked extracted text content into the check edit box for display processing.
2. The method for managing editing of a shared document according to claim 1, before the time when the user requesting editing applies an editing request for the shared document to be edited based on the user terminal, further comprising:
when an editing sharing user issues a shared document to be edited, the editing sharing user inputs an editing right required by editing the shared document to be edited;
and generating an editing authority hash value based on the editing authority.
3. The shared document editing management method according to claim 1, wherein the obtaining of the request identification of the editing requesting user includes:
matching user authentication information input by the editing request user to corresponding user editing permission;
and generating a request identification of the editing request user based on the user authentication information and the corresponding user editing authority association.
4. The shared document editing management method according to claim 1, wherein the generating a request identification hash value based on the request identification includes:
and carrying out hash encryption processing on the request identification mark based on an intelligent contract program deployed on the user terminal to obtain a request identification hash value.
5. The method according to claim 4, wherein said hash-encrypting the request identifier based on an intelligent contract program deployed on the user terminal includes:
performing first encryption processing on the request identification mark by using a one-way encrypted SHA256 hash function in an intelligent contract program deployed on the user terminal to obtain a first encryption result;
carrying out secondary encryption processing on the first encryption result by utilizing a RipemD160 hash function of one-way encryption to obtain a second encryption result;
and converting the second encryption result into a hexadecimal character string to form a request identification hash value.
6. The shared document editing management method according to claim 1, wherein the encrypting process based on the document content in the comparison edit box and the position of the document content in the shared document to be edited includes:
and encrypting the document content in the comparison editing box and the position of the document content in the shared document to be edited by using an information abstract algorithm to obtain an encrypted document.
7. The method according to claim 1, wherein said performing, in the blockchain, an edit update process on the matched shared document to be edited by using the encrypted document content includes:
decoding the encrypted document content in the block chain to obtain the document content in the comparison editing frame and the position of the document content in the shared document to be edited;
performing positioning processing on the update position of the shared document to be edited, which is matched with the position of the document content in the shared document to be edited, to obtain an update positioning position;
based on the updated positioning position, utilizing the document content in the comparison editing frame to perform the comparison and updating processing on the matched shared document to be edited, and marking the request identification of the editing request user during the comparison and updating processing to form an updated comparison document and an updated replacement document;
and taking the updated replacement document as the matched shared document to be edited after the editing and updating processing is finished, and correspondingly saving the updated comparison document as an updated copy.
8. An apparatus for managing editing of a shared document based on a block chain, the apparatus comprising:
an editing request module: the method comprises the steps that when an editing request user applies for an editing request to a shared document to be edited based on a user terminal, a request identification mark of the editing request user is obtained;
a broadcasting module: the system comprises a block chain, a request identification identifier, a request identification hash value and a block identifier, wherein the request identification identifier is used for identifying a block chain;
a matching module: the shared document to be edited is matched with the request identification hash value in the block chain;
loading a display module: the shared document to be edited is loaded to the user terminal, and the shared document to be edited is displayed in a reading view on the user terminal;
an edit box generation module: the editing area used for selecting the shared document to be edited based on the content displayed by the reading view generates a comparison editing frame on the user terminal, and the document content in the editing area of the shared document to be edited is displayed in the comparison editing frame;
a content encryption module: the block chain encryption device is used for carrying out encryption processing based on the document content in the comparison editing frame and the position of the document content in the shared document to be edited after an editing request user finishes editing operation in the comparison editing frame, and encrypting the document content to be broadcasted to the block chain;
an editing and updating module: the block chain is used for utilizing the encrypted document content to edit and update the matched shared document to be edited;
the identifying the hash value based on the request in the blockchain to obtain the matched shared document to be edited comprises:
matching the hash value identified by the request with the corresponding editing authority hash value in the block chain;
when the request identification hash value is matched with the corresponding editing permission hash value, obtaining a shared document to be edited associated with the corresponding editing permission hash value as the shared document to be edited matched with the request identification hash value;
the method comprises the following steps of selecting an editing area of a shared document to be edited based on the content displayed by the reading view, and generating a comparison editing frame on the user terminal, wherein the steps comprise:
selecting an editing area of the shared document to be edited according to chapters or paragraphs of the shared document to be edited on the basis of the content displayed by the reading view on the user terminal;
after the editing area of the shared document to be edited is selected, a comparison editing frame which is displayed in a comparison mode with the reading view is generated on a display interface of the user terminal;
extracting the text content in the editing area of the selected shared document to be edited to obtain extracted text content;
performing proofreading processing by using the extracted text content and the text content in the editing area of the selected shared document to be edited to obtain the proofread extracted text content;
and pasting the corrected extracted text content into the comparison editing frame for display processing.
CN202211002394.5A 2022-08-22 2022-08-22 Block chain-based shared document editing management method and device Active CN115081404B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211002394.5A CN115081404B (en) 2022-08-22 2022-08-22 Block chain-based shared document editing management method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211002394.5A CN115081404B (en) 2022-08-22 2022-08-22 Block chain-based shared document editing management method and device

Publications (2)

Publication Number Publication Date
CN115081404A CN115081404A (en) 2022-09-20
CN115081404B true CN115081404B (en) 2022-11-15

Family

ID=83245463

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211002394.5A Active CN115081404B (en) 2022-08-22 2022-08-22 Block chain-based shared document editing management method and device

Country Status (1)

Country Link
CN (1) CN115081404B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106682530A (en) * 2017-01-10 2017-05-17 杭州电子科技大学 Method and device for medical information sharing privacy protection based on blockchain technology
CN110417781A (en) * 2019-07-30 2019-11-05 中国工商银行股份有限公司 File encryption management method, client and server based on block chain
CN110826103A (en) * 2019-11-13 2020-02-21 腾讯科技(深圳)有限公司 Block chain-based document authority processing method, device, equipment and storage medium
CN111523150A (en) * 2020-04-20 2020-08-11 中国工商银行股份有限公司 Block chain-based document editing method, device and system
CN113361236A (en) * 2020-03-06 2021-09-07 北京沃东天骏信息技术有限公司 Method and device for editing document
CN114818619A (en) * 2022-06-27 2022-07-29 佳瑛科技有限公司 Online document editing processing method and device based on cloud server

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10552381B2 (en) * 2016-12-16 2020-02-04 International Business Machines Corporation Shared document editing in the blockchain
JP6506439B1 (en) * 2018-03-30 2019-04-24 株式会社AI Samurai INFORMATION PROCESSING APPARATUS, INFORMATION PROCESSING METHOD, AND INFORMATION PROCESSING PROGRAM
US20190392438A1 (en) * 2018-06-26 2019-12-26 bootstrap legal Inc. Method and System for Modifying a Smart Contract on a Distributed Ledger
WO2020085349A1 (en) * 2018-10-22 2020-04-30 力 松永 Financial processing management system using finance blockchain and data transaction system using same
US11146381B2 (en) * 2018-11-16 2021-10-12 Adobe Inc. Traceability of edits to digital documents via distributed ledgers
US20200311688A1 (en) * 2019-03-30 2020-10-01 Docuvisory LLC Document creation system and method
US11671263B2 (en) * 2019-08-30 2023-06-06 T-Mobile Usa, Inc. Cryptographically securing data files in a collaborative environment
US11743027B2 (en) * 2019-10-08 2023-08-29 Johny Mathew Decentralized methods and systems for storage, access, distribution and exchange of electronic information and documents over the internet using blockchain to protect against cyber attacks and theft
KR20210080977A (en) * 2019-12-23 2021-07-01 정규진 Business document editing method and system using blockchain
CN111126301B (en) * 2019-12-26 2022-01-11 腾讯科技(深圳)有限公司 Image processing method and device, computer equipment and storage medium
WO2021198750A1 (en) * 2020-03-30 2021-10-07 Satchidananda Sivachidambarasarma Sogala System and method to manage information and documents on a native blockchain network system including permissioned blockchain, storage, sharing, organisation, porting and various applications

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106682530A (en) * 2017-01-10 2017-05-17 杭州电子科技大学 Method and device for medical information sharing privacy protection based on blockchain technology
CN110417781A (en) * 2019-07-30 2019-11-05 中国工商银行股份有限公司 File encryption management method, client and server based on block chain
CN110826103A (en) * 2019-11-13 2020-02-21 腾讯科技(深圳)有限公司 Block chain-based document authority processing method, device, equipment and storage medium
CN113361236A (en) * 2020-03-06 2021-09-07 北京沃东天骏信息技术有限公司 Method and device for editing document
CN111523150A (en) * 2020-04-20 2020-08-11 中国工商银行股份有限公司 Block chain-based document editing method, device and system
CN114818619A (en) * 2022-06-27 2022-07-29 佳瑛科技有限公司 Online document editing processing method and device based on cloud server

Also Published As

Publication number Publication date
CN115081404A (en) 2022-09-20

Similar Documents

Publication Publication Date Title
EP2891109B1 (en) A video file encryption and decryption method, device, and mobile terminal
CN104680077B (en) Method for encrypting picture, method for viewing picture, system and terminal
CN110532811B (en) PDF (Portable document Format) signature method and PDF signature system
CN1249583C (en) Method and equipment for reserve data on recording medium
JPH06224896A (en) Electronic document processing system and preparing method for digital signature
CN114818619A (en) Online document editing processing method and device based on cloud server
CN106657049A (en) System and method for real-time collection and fixing of electronic evidence
CN114036561A (en) Information hiding method, information acquiring method, information hiding device, information acquiring device, storage medium and electronic equipment
CN115081404B (en) Block chain-based shared document editing management method and device
CA2487687A1 (en) Message file editing process
CN110855441A (en) Method, device and equipment for authenticating electronic identity and storage medium
CN111090616B (en) File management method, corresponding device, equipment and storage medium
US20100058071A1 (en) System and method for encrypting an electronic file in a mobile electronic device
CN112686648B (en) Electronic signature management method and system for auditing signature file
CN110378133B (en) File protection method and device, electronic equipment and storage medium
CN112989434A (en) Electronic document encryption tamper-proof decryption verification method
TW202119229A (en) Data management method and system capable of safely accessing and deleting data wherein operations are performed by using a management server
CN117240626B (en) Data encryption communication method and system based on virtual private network technology
CN117034220B (en) Digital watermark processing method and system
CN116305193B (en) Encryption configuration file generation method and device
CN111787405B (en) Data interaction method and system
CN113378241A (en) Safety technology prevention engineering design system and method
CN113723913A (en) Nuclear power plant file management method, device, equipment and storage medium
CN100449496C (en) Information processing apparatus, information processing method, and computer readable storage medium
CN113869806A (en) Identification processing method and device

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