Document processing method and device

Passwords are obtained through user identification information and document identification information, and documents are directly encrypted and decrypted, solving the problems of low document processing efficiency and password management risks, and achieving efficient and secure document processing.

CN112948857BActive Publication Date: 2024-11-08ZHUHAI KINGSOFT OFFICE SOFTWARE +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110237301.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-03
Publication Date
2024-11-08
Estimated Expiration
2041-03-03

AI Technical Summary

Technical Problem

When processing multiple documents, users need to set and enter a large number of passwords, resulting in inefficient document encryption and decryption, and the risk of password management is leaked and lost.

Method used

Obtain passwords through user identification information and document identification information, directly encrypt and decrypt documents, reduce user manual input, and use preset key encryption to improve security.

Benefits of technology

Improves the efficiency and security of document processing, reduces the risk of password leakage and loss, and simplifies user operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112948857B_ABST
    Figure CN112948857B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention provides a document processing method and device, which relates to the field of document security technology. The method includes: obtaining an opening instruction of a document to be processed, wherein the document to be processed is an encrypted document; obtaining a password of the document to be processed according to user identification information and document identification information of the document to be processed; decrypting the document to be processed according to the password of the document to be processed, and opening the document to be processed. The document processing method provided by the embodiment of the present invention can improve the efficiency of document processing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of document security technology, and in particular to a document processing method and device. Background Art

[0002] When users process documents based on daily office software, they need to password protect the documents to prevent the document content from being leaked. Password protection of documents mainly involves two aspects of document processing: document encryption and document decryption.

[0003] In the prior art, when encrypting a document, the user usually sets a password for the document, and the client encrypts the document based on the password set by the user; when decrypting a document, the user enters the password into the client according to the document password set by the user, and the client decrypts the document based on the password entered by the user.

[0004] However, since the password for the document is set and input by the user, when there are a large number of documents that need to be password protected, the user needs to set passwords for a large number of documents and manually input passwords for a large number of documents, resulting in low document processing efficiency. Summary of the invention

[0005] The purpose of the embodiment of the present invention is to provide a document processing method and device to improve the efficiency of document processing. The specific technical solution is as follows:

[0006] In a first aspect, an embodiment of the present invention provides a document processing method, the method comprising:

[0007] Obtaining an opening instruction for a document to be processed, wherein the document to be processed is an encrypted document;

[0008] Acquire the password of the document to be processed according to the user identification information and the document identification information of the document to be processed;

[0009] The document to be processed is decrypted according to the password of the document to be processed, and the document to be processed is opened.

[0010] In one embodiment of the present invention, the above-mentioned document to be processed is a document obtained by encrypting the document to be encrypted, and the process includes the following steps:

[0011] Obtaining an encryption instruction for the document to be encrypted;

[0012] According to the user identification information and the document identification information of the document to be encrypted, a password of the document to be encrypted is obtained; wherein the password is: a password generated according to the user identification information and the document identification information of the document to be encrypted;

[0013] The document to be encrypted is encrypted according to the password of the document to be encrypted to obtain an encrypted document as the document to be processed.

[0014] In one embodiment of the present invention, the above-mentioned obtaining the password of the document to be encrypted according to the user identification information and the document identification information of the document to be encrypted includes:

[0015] Obtaining the important value of the document to be encrypted;

[0016] Acquire a password for the document to be encrypted according to the user identification information, the document identification information of the document to be encrypted, and the important value of the document to be encrypted, wherein the password is: a password generated according to the user identification information, the document identification information of the document to be encrypted, and the important value of the document to be encrypted;

[0017] In a case where the importance value of the document to be encrypted is greater than a preset threshold, the password of the document to be encrypted is a character string of a first preset length, and the character string of the first preset length includes characters of a first preset type;

[0018] When the importance value of the document to be encrypted is less than or equal to a preset threshold, the password of the document to be encrypted is a character string of a second preset length, wherein the character string of the second preset length contains characters of a second preset type, the number of types of the first preset type is greater than the number of types of the second preset type, and the first preset length is greater than the second preset length.

[0019] In one embodiment of the present invention, the step of obtaining the password of the document to be encrypted according to the user identification information, the document identification information of the document to be encrypted, and the important value of the document to be encrypted includes:

[0020] According to the user identification information, the document identification information of the document to be encrypted and the important value of the document to be encrypted, a password of the document to be encrypted after being encrypted by a preset key is obtained, where the preset key is a key pre-agreed between the client and the server;

[0021] The obtained password is decrypted based on the preset key to obtain the password of the document to be encrypted.

[0022] In one embodiment of the present invention, the step of obtaining the password of the document to be processed according to the user identification information and the document identification information of the document to be processed includes:

[0023] Sending a password application request carrying document identification information of the document to be processed and user identification information to the server;

[0024] Receive the password of the document to be processed sent by the server; wherein the password of the document to be processed is a password obtained from a corresponding relationship stored in the server based on the document identification information and user identification information of the document to be processed, wherein the corresponding relationship is the relationship between the user identification information, the document identification information of the document, and the password for encrypting the document.

[0025] In one embodiment of the present invention, the above correspondence is:

[0026] The correspondence between the user identification information, the document identification information of the document and the password for encrypting the file;

[0027] and / or

[0028] The correspondence between the document identification information of the document and the user identification information, and the correspondence between the document identification information of the document and the password used to encrypt the document.

[0029] In one embodiment of the present invention, when the document to be processed is stored in the cloud, the document identification information of the document to be processed is an identification assigned by the cloud to the document to be processed;

[0030] In the case where the document to be processed is stored locally on the client, the document identification information of the document to be processed includes the full name of the document to be processed; wherein the full name includes the storage path of the document to be processed.

[0031] In a second aspect, an embodiment of the present invention provides a document processing method, the method comprising:

[0032] Acquire user identification information and document identification information of a document to be processed, wherein the document to be processed is an encrypted document;

[0033] According to the user identification information and the document identification information of the document to be processed, obtaining the password of the document to be processed from a locally stored correspondence relationship, wherein the correspondence relationship is a correspondence relationship between the user identification information, the document identification information of the document, and the password for encrypting the document;

[0034] The password of the document to be processed is sent to the client.

[0035] In one embodiment of the present invention, the above-mentioned document to be processed is a document obtained by encrypting a document to be encrypted, and the password of the document to be encrypted includes the following steps:

[0036] Get password application request;

[0037] Acquire the user identification information and the document identification information of the document to be encrypted;

[0038] Generate a password for the document to be encrypted according to the user identification information and the document identification information of the document to be encrypted;

[0039] The corresponding relationship among the user identification information, the document identification information of the document to be encrypted, and the password of the document to be encrypted is stored.

[0040] In one embodiment of the present invention, when the password application request carries the important value of the document to be encrypted, generating a password for the document to be encrypted according to the user identification information and the document identification information of the document to be encrypted includes:

[0041] Obtaining important values ​​of the document to be encrypted;

[0042] Comparing the importance value of the document to be encrypted with a preset threshold;

[0043] When the importance value of the document to be encrypted is greater than a preset threshold, generating a character string of a first preset length as a password for encrypting the document to be encrypted according to the user identification information and the document identification information of the document to be encrypted; wherein the character string of the first preset length contains characters of a first preset type;

[0044] When the importance value of the document to be encrypted is less than or equal to a preset threshold, a character string of a second preset length is generated according to the user identification information and the document identification information of the document to be encrypted as a password for encrypting the document to be encrypted; wherein the character string of the second preset length contains characters of a second preset type; the number of types of the first preset type is greater than the number of types of the second preset type, and the first preset length is greater than the second preset length.

[0045] In one embodiment of the present invention, the step of sending the password of the document to be processed to the client includes:

[0046] The password of the document to be processed is encrypted based on a preset key, and the encrypted password is transmitted to the client, wherein the preset key is a key pre-agreed between the client and the server.

[0047] In one embodiment of the present invention, the above correspondence is:

[0048] The correspondence between the user identification information, the document identification information of the document and the password for encrypting the document;

[0049] and / or

[0050] The correspondence between the document identification information of the document and the user identification information, and the correspondence between the document identification information of the document and the password used to encrypt the document.

[0051] In one embodiment of the present invention, after obtaining the user identification information and the document identification information of the document to be processed, the method further includes:

[0052] Verifying whether the user identification information is valid identification information;

[0053] In the case that the user identification information is valid identification information, the password of the document to be processed is obtained from a locally stored corresponding relationship according to the user identification information and the document identification information of the document to be processed.

[0054] In a third aspect, an embodiment of the present invention provides a document processing device, the device comprising:

[0055] An instruction acquisition module, used to acquire an opening instruction of a document to be processed, wherein the document to be processed is an encrypted document;

[0056] A password acquisition module, used to acquire the password of the document to be processed according to the user identification information and the document identification information of the document to be processed;

[0057] The document opening module is used to decrypt the document to be processed according to the password of the document to be processed and open the document to be processed.

[0058] In one embodiment of the present invention, the above-mentioned device further includes a document encryption module, and the document encryption module includes:

[0059] An instruction acquisition submodule, used to acquire the encryption instruction of the document to be encrypted;

[0060] A password acquisition submodule, used to acquire the password of the document to be encrypted according to the user identification information and the document identification information of the document to be encrypted; wherein the password is: a password generated according to the user identification information and the document identification information of the document to be encrypted;

[0061] The document encryption submodule is used to encrypt the document to be encrypted according to the password of the document to be encrypted to obtain an encrypted document as a document to be processed.

[0062] In one embodiment of the present invention, the password acquisition submodule comprises:

[0063] An important value obtaining unit, used to obtain the important value of the document to be encrypted;

[0064] A password acquisition unit is used to acquire the password of the document to be encrypted according to the user identification information, the document identification information of the document to be encrypted and the importance value of the document to be encrypted, wherein the password is: a password generated according to the user identification information, the document identification information of the document to be encrypted and the importance value of the document to be encrypted; when the importance value of the document to be encrypted is greater than a preset threshold, the password of the document to be encrypted is a character string of a first preset length, and the character string of the first preset length contains characters of a first preset type; when the importance value of the document to be encrypted is less than or equal to the preset threshold, the password of the document to be encrypted is a character string of a second preset length, wherein the character string of the second preset length contains characters of a second preset type, the number of types of the first preset type is greater than the number of types of the second preset type, and the first preset length is greater than the second preset length.

[0065] In one embodiment of the present invention, the password acquisition unit is specifically used to obtain the password of the document to be encrypted after being encrypted with a preset key based on the user identification information, the document identification information of the document to be encrypted and the important value of the document to be encrypted, wherein the preset key is a key pre-agreed between the client and the server; and decrypt the obtained password based on the preset key to obtain the password of the document to be encrypted.

[0066] In one embodiment of the present invention, the password acquisition module is specifically used to send a password application request carrying the document identification information and user identification information of the document to be processed to the server; receive the password of the document to be processed sent by the server; wherein the password of the document to be processed is a password obtained from the corresponding relationship stored in the server based on the document identification information and user identification information of the document to be processed, wherein the corresponding relationship is the relationship between the user identification information, the document identification information of the document, and the password for encrypting the document.

[0067] In one embodiment of the present invention, the above correspondence is:

[0068] The correspondence between the user identification information, the document identification information of the document and the password for encrypting the file;

[0069] and / or

[0070] The correspondence between the document identification information of the document and the user identification information, and the correspondence between the document identification information of the document and the password used to encrypt the document.

[0071] In one embodiment of the present invention, when the document to be processed is stored in the cloud, the document identification information of the document to be processed is an identification assigned by the cloud to the document to be processed;

[0072] In the case where the document to be processed is stored locally on the client, the document identification information of the document to be processed includes the full name of the document to be processed; wherein the full name includes the storage path of the document to be processed.

[0073] In a fourth aspect, an embodiment of the present invention provides a document processing device, the device comprising:

[0074] An information acquisition module, used to acquire user identification information and document identification information of a document to be processed, wherein the document to be processed is an encrypted document;

[0075] A password acquisition module, used to obtain the password of the document to be processed from a locally stored correspondence relationship according to the user identification information and the document identification information of the document to be processed, wherein the correspondence relationship is the correspondence relationship between the user identification information, the document identification information of the document, and the password for encrypting the document;

[0076] The password sending module is used to send the password of the document to be processed to the client.

[0077] In one embodiment of the present invention, the above-mentioned device further includes a document generation module, and the document generation module includes:

[0078] The request acquisition submodule is used to obtain password application requests;

[0079] An information acquisition submodule, used to acquire the user identification information and the document identification information of the document to be encrypted;

[0080] A password generation submodule, used to generate a password for the document to be encrypted according to the user identification information and the document identification information of the document to be encrypted;

[0081] The corresponding relationship storage submodule is used to store the corresponding relationship between the user identification information, the document identification information of the document to be encrypted, and the password of the document to be encrypted.

[0082] In one embodiment of the present invention, when the password application request carries the important value of the document to be encrypted, the password generation submodule includes:

[0083] An important value obtaining unit, used for obtaining the important value of the document to be encrypted;

[0084] An importance value comparison unit, used to compare the importance value of the document to be encrypted with a preset threshold;

[0085] A first password generating unit is used to generate a character string of a first preset length as a password for encrypting the document to be encrypted according to the user identification information and the document identification information of the document to be encrypted when the importance value of the document to be encrypted is greater than a preset threshold; wherein the character string of the first preset length contains characters of a first preset type;

[0086] A second password generating unit is used to generate a character string of a second preset length as a password for encrypting the document to be encrypted based on the user identification information and the document identification information of the document to be encrypted, when the importance value of the document to be encrypted is less than or equal to a preset threshold; wherein the character string of the second preset length contains characters of a second preset type; the number of types of the first preset type is greater than the number of types of the second preset type, and the first preset length is greater than the second preset length.

[0087] In one embodiment of the present invention, the password sending module is specifically used to encrypt the password of the document to be processed based on a preset key and transmit the encrypted password to the client, wherein the preset key is a key pre-agreed between the client and the server.

[0088] In one embodiment of the present invention, the above correspondence is:

[0089] The correspondence between the user identification information, the document identification information of the document and the password for encrypting the document;

[0090] and / or

[0091] The correspondence between the document identification information of the document and the user identification information, and the correspondence between the document identification information of the document and the password used to encrypt the document.

[0092] In one embodiment of the present invention, the above device further includes:

[0093] An information verification module, used for verifying whether the user identification information is valid identification information after the information acquisition module;

[0094] The information acquisition module is used to obtain the password of the document to be processed from a locally stored corresponding relationship according to the user identification information and the document identification information of the document to be processed when the user identification information is valid identification information.

[0095] In a fifth aspect, an embodiment of the present invention provides an electronic device, wherein the electronic device runs a client, and includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus;

[0096] Memory, used to store computer programs;

[0097] The processor is used to implement the method steps described in the first aspect or the second aspect when executing the program stored in the memory.

[0098] In a sixth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps described in the first aspect or the second aspect are implemented.

[0099] As can be seen from the above, when the solution provided by this embodiment is applied for data processing, the password of the document to be processed is directly obtained based on the user identification information and the document identification information of the document to be processed, so as to decrypt the document to be processed. Compared with the prior art, there is no need for the user to determine the password of the document, which improves the accuracy of obtaining the document password and thus improves the efficiency of document processing.

[0100] In addition, since the password of the document to be processed is obtained directly based on the user identification information and the document identification information of the document to be processed, the user does not need to manually enter the password, and even does not need to know the password information. The risk of the password of the document to be processed being leaked or lost is lower. Compared with the user manually managing the document password, the security of the document password is improved.

[0101] Of course, it is not necessary to achieve all of the advantages described above at the same time to implement any product or method of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0102] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0103] Figure 1 A schematic diagram of a flow chart of a first document processing method provided by an embodiment of the present invention;

[0104] Figure 2 A schematic diagram of a flow chart of a second document processing method provided by an embodiment of the present invention;

[0105] Figure 3 A schematic diagram of the structure of a first document processing device provided by an embodiment of the present invention;

[0106] Figure 4 A schematic diagram of the structure of a second document processing device provided by an embodiment of the present invention;

[0107] Figure 5 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention;

[0108] Figure 6 A schematic diagram of the structure of a server provided in an embodiment of the present invention. DETAILED DESCRIPTION

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

[0110] First, the execution subject of the embodiment of the present invention is described.

[0111] The execution subject of the embodiment of the present invention may be a client. Specifically, the client may be an application program running in an electronic device. The client may also be a web browser in the World Wide Web.

[0112] See also Figure 1 , Figure 1 This is a flow chart of a first document processing method provided by an embodiment of the present invention. The method includes the following steps S101-S103.

[0113] Step S101: Obtain an opening instruction for a document to be processed.

[0114] The above-mentioned document to be processed is an encrypted document. The above-mentioned document to be processed can be stored locally on the client or in the cloud. Specifically, the above-mentioned document to be encrypted can include any document format that can be encrypted, such as wps document, office document, pdf document, etc., which is not specifically limited here.

[0115] The opening instruction of the document to be processed is used to instruct to open the document to be processed. Specifically, the user can select the document to be processed on the user interface and select the menu item for opening the document to be processed, so that the client can obtain the opening instruction of the document to be processed. The user can also follow the shortcut to open the document and operate in the user interface, and the client can also obtain the opening instruction of the document to be processed.

[0116] Step S102: acquiring the password of the document to be processed according to the user identification information and the document identification information of the document to be processed.

[0117] The user identification information is information used to identify the user. Specifically, the user identification information may include one or more of the user's login account, the user's identity token, the user's identity information, the user's mobile phone number, and the like.

[0118] The document identification information of the document to be processed is used to identify information of the document to be processed.

[0119] Specifically, when the above-mentioned document to be processed is stored locally on the client, the document identification information of the above-mentioned document to be processed may include the full name of the above-mentioned document to be processed, and the above-mentioned full name includes the storage path of the document to be processed, and may also include one or more of the document name, time, serial number, etc. of the document to be processed.

[0120] The document identification information of the document to be processed may also include device information of a client storing the document to be processed. The device information of the client may be an IP address or a MAC address of the client.

[0121] In the case where the above-mentioned to-be-processed document is stored in the cloud, the document identification information of the above-mentioned to-be-processed document may be an identification assigned by the cloud to the to-be-processed document, for example: a document number, a storage address, etc. assigned by the cloud to the to-be-processed document.

[0122] Specifically, when obtaining the password of the document to be processed, a password application request carrying the document identification information of the document to be processed and the user identification information may be sent to the server; and the password of the document to be processed sent by the server is received.

[0123] Specifically, the password of the document to be processed may be a password obtained by the server from a corresponding relationship stored on the server according to the document identification information and user identification information of the document to be processed. The corresponding relationship is the corresponding relationship between the user identification information, the document identification information of the document, and the password for encrypting the document. The storage of the corresponding relationship will be described in detail later.

[0124] After obtaining the password of the document to be processed, the server can send it to the client, and the client can directly obtain the password of the document to be processed. In order to reduce the risk of password leakage during transmission, the server can also encrypt the obtained password with a preset password and send the encrypted password to the client. The preset key is a key pre-agreed between the server and the client, so that the client can use the preset key to decrypt the received encrypted password to obtain the password of the document to be processed.

[0125] The above correspondence may be a correspondence between user identification information, document identification information of the document, and a password for encrypting the file.

[0126] In this case, the server can search for the password corresponding to the two identification information based on the document identification information of the document to be processed, the user identification information and the above correspondence, thereby obtaining the password of the document to be processed.

[0127] The above correspondence may also be: a correspondence between the document identification information of the document and the user identification information, or a correspondence between the document identification information of the document and the password for encrypting the document. In this case, the server may first determine the document identification information corresponding to the user identification information based on the user identification information, and when the determined document identification information is consistent with the document identification information of the document to be processed, the server may then determine the password corresponding to the document identification information based on the document identification information of the document to be processed, thereby obtaining the password of the document to be processed.

[0128] Step S103: decrypt the document to be processed according to the password of the document to be processed and open the document to be processed.

[0129] Specifically, in the case where the document to be processed is stored locally on the client, the client may decrypt the locally stored document to be processed using a preset decryption algorithm according to the password.

[0130] In the case where the above-mentioned documents to be processed are stored in the cloud, in one implementation, after the client obtains the opening instruction of the document to be processed, the user identification information and the document identification information of the document to be processed are sent to the cloud, and the cloud obtains the password based on the user identification information, the document identification information of the document to be processed and the corresponding relationship, decrypts the document to be processed using a preset decryption algorithm based on the obtained password, and displays the decrypted document to be processed to the client.

[0131] As can be seen from the above, when the solution provided by this embodiment is applied for data processing, the password of the document to be processed is obtained based on the user identification information and the document identification information of the document to be processed, so as to decrypt the document to be processed. Compared with the prior art, there is no need for the user to determine the password of the document, which improves the accuracy of obtaining the document password and thus improves the efficiency of document processing.

[0132] In addition, since the password of the document to be processed is obtained directly based on the user identification information and the document identification information of the document to be processed, the user does not need to manually enter the password, and even does not need to know the password information. The risk of the password of the document to be processed being leaked or lost is lower, and compared with the user manually managing the document password, the security of the document password is improved.

[0133] The above-mentioned document to be processed is a document obtained by encrypting the document to be encrypted. Specifically, the document to be processed can be obtained by following steps A1 to A3.

[0134] Step A1: Obtain encryption instructions for the document to be encrypted.

[0135] The above-mentioned document to be encrypted can be a document stored locally on the client, or a document stored in the cloud. Specifically, the above-mentioned document to be encrypted can include any document format that can be encrypted, such as wps documents, office documents, pdf documents, etc., which is not specifically limited here.

[0136] The encryption instruction of the document to be encrypted is used to instruct to encrypt the document to be encrypted. Specifically, the user can select the document to be encrypted on the user interface and select the menu item for encrypting the document to be encrypted, so that the client can obtain the encryption instruction of the document to be encrypted. The user can also operate in the user interface according to the shortcut of encrypting the document, and the client can also obtain the encryption instruction of the document to be encrypted.

[0137] Step A2: Obtain the password of the document to be encrypted according to the user identification information and the document identification information of the document to be encrypted.

[0138] The above password is: a password generated according to the user identification information and the document identification information of the document to be encrypted.

[0139] The document identification information of the document to be encrypted is information used to identify the document to be encrypted.

[0140] Specifically, when obtaining the password of the document to be encrypted, a password application request carrying the document identification information of the document to be encrypted and the user identification information may be sent to the server; and the password of the document to be encrypted sent by the server is received.

[0141] After receiving the password application request, the server may parse the request to obtain the user identification information and the document identification information of the document to be encrypted, and generate a password according to the user identification information and the document identification information of the document to be encrypted.

[0142] Specifically, the server may select a password from various preset passwords stored locally, or may select characters from various preset characters to generate a password.

[0143] You can also select characters from the characters included in the user identification information and the document identification information of the document to be encrypted to generate a password. For example, you can randomly select from the characters, or select characters at preset positions from the characters to form a password.

[0144] After generating the password, the server sends the password of the document to be encrypted to the client, and stores the correspondence between the document identification information of the document to be encrypted, the user identification information of the user, and the password of the document to be encrypted.

[0145] Specifically, the corresponding relationships stored in the server may include the following situations.

[0146] In the first case, there is a one-to-one correspondence between the document identification information of a single document, the identification information of a single user and a single password.

[0147] In the second case, a single user identification information corresponds to the document identification information of multiple documents, and has a corresponding relationship with a single password.

[0148] In a third case, a single user identification information corresponds to document identification information of multiple documents and has a corresponding relationship with multiple passwords, wherein the document identification information of the document corresponds to the password one by one.

[0149] In the fourth case, the document identification information of a single document corresponds to multiple user identification information and the corresponding relationship between the information and a single password.

[0150] In a fifth case, the document identification information of a single document corresponds to multiple user identification information and multiple passwords, wherein the user identification information corresponds to the password one by one.

[0151] In one embodiment, when the correspondence between the document identification information, user identification information and a single password of a document is not a one-to-one correspondence, the correspondence is taken as an example in which a single user identification information corresponds to the document identification information of multiple documents and corresponds to a single password. When the user requests a password permission for a second document, the user identification information is obtained according to a password application request carrying the document identification information and user identification information of the second document sent by the client to the server. According to the user identification information, the correspondence between the document identification information, the user identification information and the password is determined. The document identification information of the second document is added to the correspondence, and the above correspondence includes that the user identification information corresponds to the document identification information of the first document. The document identification information of the second document is added to the above correspondence, so that the single user identification information corresponds to the document identification information of the two documents, and according to the user identification information, the user identification information is corresponded to a single password, thereby storing the correspondence between the single user identification information and the document identification information of multiple documents and the single password.

[0152] The storage method of other corresponding relationships other than the one-to-one correspondence between the document identification information of a single document, the single user identification information and a single password is the same as the storage method of the corresponding relationship between the above-mentioned single user identification information and the document identification information of multiple documents, and the corresponding relationship between a single password, and will not be repeated here.

[0153] Since the server stores the correspondence between the user identification information, the document identification information of the document to be encrypted, and the password of the document to be encrypted, when the document to be processed needs to be decrypted, the password for encrypting the document can be obtained based on the above correspondence stored by the server and the user identification information and the document identification information of the document, so that the document can be decrypted.

[0154] Step A3: Encrypt the document to be encrypted according to the password of the document to be encrypted, and obtain an encrypted document as the document to be processed.

[0155] Specifically, in the case where the document to be encrypted is stored locally on the client, the client may encrypt the document to be encrypted stored locally using a preset encryption algorithm according to the password.

[0156] In the case where the above-mentioned document to be encrypted is stored in the cloud, in one implementation, after the client obtains the opening instruction of the document to be processed, the user identification information and the document identification information of the document to be processed are sent to the cloud, and the cloud obtains the password based on the user identification information, the document identification information of the document to be processed and the corresponding relationship, encrypts the document to be encrypted using a preset encryption algorithm based on the obtained password, and displays the encrypted document to the client.

[0157] For each document to be encrypted, the password of the document to be encrypted may be adapted to the importance value of the document to be encrypted. The importance value of the document to be encrypted is used to reflect the importance of the document to be encrypted. For example, the higher the importance value of the document to be encrypted, the higher the importance of the document to be encrypted.

[0158] Based on this, when the password of the document to be encrypted is obtained, the important value of the document to be encrypted can be obtained; the password of the document to be encrypted is obtained according to the user identification information, the document identification information of the document to be encrypted and the important value of the document to be encrypted.

[0159] The password is: a password generated according to user identification information, document identification information of the document to be encrypted, and important values ​​of the document to be encrypted.

[0160] Specifically, a password application request carrying document identification information of the document to be encrypted, user identification information and important values ​​of the document to be encrypted may be sent to the server; and the password of the document to be encrypted sent by the server may be received.

[0161] After receiving the password application request, the server can parse the request to obtain user identification information, document identification information of the document to be encrypted, and important values ​​of the document to be encrypted, and generate a password based on the user identification information, document identification information of the document to be encrypted, and important values ​​of the document to be encrypted.

[0162] Specifically, the server may compare the importance value of the document to be encrypted with a preset threshold value, which may be preset by a staff member or obtained based on analysis of historical documents.

[0163] When the importance value of the document to be encrypted is greater than a preset threshold, the password of the document to be encrypted is: a character string of a first preset length.

[0164] The fact that the importance value of the document to be encrypted is greater than the preset threshold value may indicate that the document to be encrypted is relatively important. Therefore, for the document to be encrypted, the strength of the password of the document to be encrypted is relatively high.

[0165] The character string of the first preset length may include characters of the first preset type. The characters of the first preset type may include characters of types such as numbers, letters, and symbols. The first preset length may be set by the staff based on experience. For example, in order to improve the security strength of the password, the first preset length may be 10 or 20 characters.

[0166] Specifically, when generating a character string of the first preset length, the server may select characters from characters of each first preset type to generate the character string of the first preset length. For example, characters may be randomly selected from characters of each first preset type, or characters located at preset positions in characters of the first preset type may be selected.

[0167] The server can also select characters from the characters of the first preset type contained in the user identification information and the document identification information of the document to be encrypted to generate a character string of a first preset length. For example, random selection can be made among the characters, or characters at preset positions among the characters can be selected to form a password.

[0168] When the importance value of the document to be encrypted is less than or equal to the preset threshold, the password of the document to be encrypted is: a character string of a second preset length.

[0169] If the importance value of the document to be encrypted is less than or equal to the preset threshold, it can indicate that the importance of the document to be encrypted is low and the strength of the password of the document to be encrypted is low.

[0170] Since the importance of the document to be encrypted whose importance value is greater than the preset threshold is higher than the importance of the document to be encrypted whose importance value is less than or equal to the preset threshold, in order to make the strength of the password of the document to be encrypted whose importance value is greater than the preset threshold higher than the strength of the document to be encrypted whose importance value is less than or equal to the preset threshold, the above-mentioned first preset length can be greater than the second preset length.

[0171] For example: assuming that the first preset length is 10 characters, the second preset length can be 5 characters, 8 characters, etc.; assuming that the first preset length is 20 characters, the second preset length can be 15 characters, 10 characters, etc.

[0172] The character string of the second preset length may include characters of a second preset type, and the number of types of the first preset type may be greater than the number of types of the second preset type.

[0173] For example, assuming that the first preset type is: numbers, letters, and symbols, the second preset type may be: numbers, letters.

[0174] Specifically, when generating a character string of the second preset length, the server may select characters from the characters of each second preset type to generate the character string of the second preset length. For example, characters may be randomly selected from the characters of each second preset type, or characters located at preset positions in the characters of the second preset type may be selected.

[0175] The server can also select characters from the second preset type of characters contained in the user identification information and the document identification information of the document to be encrypted to generate a character string of a second preset length. For example, random selection can be made among the characters, or characters at preset positions among the characters can be selected to form a password.

[0176] In this way, since the password of the document to be encrypted is obtained based on the user identification information, the document identification information of the document to be encrypted and the importance value of the document to be encrypted, and the password of the document to be encrypted is generated based on the user identification information, the document identification information of the document to be encrypted and the importance value of the document to be encrypted, and the importance value of the document to be encrypted reflects the importance degree of the document to be encrypted, the password of the document to be encrypted is adapted to the importance degree of the document to be encrypted, thereby improving the security of the encrypted document when the document is encrypted based on the password of the document to be encrypted.

[0177] In order to improve the security of the password of the document to be encrypted, in one embodiment of the present invention, the password of the document to be encrypted after being encrypted with a preset key can be obtained based on user identification information, document identification information of the document to be encrypted, and important values ​​of the document to be encrypted; the obtained password is decrypted based on the preset key to obtain the password of the document to be encrypted.

[0178] The preset key is a key agreed upon by the client and the server in advance. Since what is obtained is the password encrypted by the preset key, and the preset key is difficult to be obtained by a third party, the password of the document to be encrypted is difficult to be stolen or forged, thereby improving the security of the password.

[0179] When a user wants to obtain the password of a document to be processed, in one embodiment of the present invention, the client may also send a password query request to the server, where the password query request carries user identification information and document identification information of the document to be processed, so that the server, when verifying that the user identification information is valid identification information, obtains the password of the document to be processed from the correspondence between the document identification information of the locally stored document, the user identification information of the user, and the password for encrypting the document based on the document identification information and the user identification information of the document to be processed. After receiving the password sent by the server, the client may display it in the user interface or send it to the user's mailbox or text message.

[0180] Specifically, the user may input user identification information and document identification information of the document to be processed in a preset dialog box of the client, and the client generates a password query request based on the obtained user identification information and document identification information of the document to be processed.

[0181] Alternatively, the document identification information of the document to be processed and the user identification information may be obtained according to the document to be processed selected by the user, and the client generates a password query request based on the obtained user identification information and the document identification information of the document to be processed.

[0182] Alternatively, after the user selects a document to be processed on the user interface, when the client recognizes that the document to be processed selected by the user is an encrypted document, it obtains the user identification information and the document identification information of the document to be processed, and generates a password query request carrying the user identification information and the document identification information of the document to be processed.

[0183] Corresponding to the above-mentioned document processing method applied to the client, an embodiment of the present invention further provides a document processing method applied to the server.

[0184] See also Figure 2 , Figure 2 The flowchart of the second document processing method provided by the embodiment of the present invention includes the following steps S201 to S203.

[0185] Step S201: Obtain user identification information and document identification information of a document to be processed.

[0186] The above-mentioned documents to be processed are encrypted documents.

[0187] Specifically, when the client sends a password application request to the server, the request carries user identification information and document identification information of the document to be processed. After receiving the request, the server can parse the request to obtain the user identification information and document identification information of the document to be processed.

[0188] When the client directly sends the user identification information and the document identification information of the document to be processed to the server and requests the server to send the password of the document to be processed, the server can also obtain the user identification information and the document identification information of the document to be processed.

[0189] Step S202: obtaining the password of the document to be processed from the corresponding relationship stored locally according to the user identification information and the document identification information of the document to be processed.

[0190] The above correspondence is the correspondence between the document identification information of the document, the user identification information and the password used to encrypt the document. The storage method of the correspondence is described in step A2.

[0191] Specifically, the above correspondence may be a correspondence between: user identification information, document identification information of the document, and a password for encrypting the file.

[0192] In this case, the server can search for the password corresponding to the two identification information based on the document identification information of the document to be processed, the user identification information and the above correspondence, thereby obtaining the password of the document to be processed.

[0193] The above correspondence may also be: a correspondence between the document identification information of the document and the user identification information, or a correspondence between the document identification information of the document and the password for encrypting the document. In this case, the server may first determine the document identification information corresponding to the user identification information based on the user identification information, and when the determined document identification information is consistent with the document identification information of the document to be processed, the server may then determine the password corresponding to the document identification information based on the document identification information of the document to be processed, thereby obtaining the password of the document to be processed.

[0194] Step S203: Send the password of the document to be processed to the client.

[0195] As can be seen from the above, when the solution provided by this embodiment is applied for data processing, the password of the document to be processed is obtained based on the user identification information and the document identification information of the document to be processed, and the password of the document to be processed is sent to the client. Compared with the prior art, there is no need for the user to determine the password of the document, which improves the accuracy of obtaining the document password and thus improves the efficiency of document processing.

[0196] In addition, since the password of the document to be processed is obtained directly based on the user identification information and the document identification information of the document to be processed, the user does not need to manually enter the password, and even does not need to know the password information. The risk of the password of the document to be processed being leaked or lost is lower, and compared with the user manually managing the document password, the security of the document password is improved.

[0197] The document to be processed may be a document obtained by encrypting a document to be encrypted. Specifically, the document to be processed may be obtained by following steps B1 to B4.

[0198] Step B1: Obtain a password application request.

[0199] The password application request may be sent by the client to the server to request the password of the document to be processed.

[0200] Step B2: Obtain user identification information and document identification information of the document to be encrypted.

[0201] Specifically, the password application request may carry user identification information and document identification information of the document to be encrypted. After receiving the password application request, the server may parse the password application request to obtain the user identification information and the document identification information of the document to be encrypted.

[0202] The client may also directly send the user identification information and the document identification information of the document to be encrypted to the server.

[0203] Step B3: Generate a password for the document to be encrypted based on the user identification information and the document identification information of the document to be encrypted.

[0204] Specifically, the server may select a password from various preset passwords stored locally, or may select characters from various preset characters to generate a password.

[0205] You can also select characters from the characters included in the user identification information and the document identification information of the document to be encrypted to generate a password. For example, you can randomly select from the characters, or select characters at preset positions from the characters to form a password.

[0206] After generating the password, the server may send the password of the document to be encrypted to the client. After receiving the password of the document to be encrypted, the client may encrypt the document to be encrypted.

[0207] Step B4: storing the corresponding relationship between the user identification information, the document identification information of the document to be encrypted, and the password of the document to be encrypted.

[0208] Since the server stores the correspondence between the document identification information of the document to be encrypted, the user identification information and the password of the document to be encrypted, when it is necessary to decrypt the document to be processed, the password for encrypting the document can be obtained based on the above correspondence stored by the server, the document identification information of the document and the user identification information of the user, so that the document can be decrypted.

[0209] The above correspondence may be a correspondence between user identification information, document identification information of the document, and a password for encrypting the file.

[0210] The above correspondence may also be: a correspondence between the document identification information of a document and the user identification information, and a correspondence between the document identification information of a document and a password for encrypting the document.

[0211] In the case where the important value of the document to be encrypted is carried in the password application request, a password can also be generated for the document to be encrypted according to the following steps C1-C3.

[0212] Step C1: Obtain important values ​​of the document to be encrypted.

[0213] The importance value of the document to be encrypted is used to reflect the importance of the document to be encrypted. For example, the higher the importance value of the document to be encrypted is, the higher the importance of the document to be encrypted is.

[0214] Specifically, the password application request may be parsed to obtain important values ​​of the document to be encrypted.

[0215] Step C2: Compare the importance value of the document to be encrypted with a preset threshold.

[0216] The above thresholds may be pre-set by staff or derived from analysis of historical documents.

[0217] Step C3: when the importance value of the document to be encrypted is greater than a preset threshold, a character string of a first preset length is generated according to the user identification information and the document identification information of the document to be encrypted as a password for encrypting the document to be encrypted.

[0218] The character string of the first preset length contains characters of a first preset type.

[0219] Specifically, when generating a character string of the first preset length, the server may select characters from characters of each first preset type to generate the character string of the first preset length. For example, characters may be randomly selected from characters of each first preset type, or characters located at preset positions in characters of the first preset type may be selected.

[0220] The server can also select characters from the characters of the first preset type contained in the user identification information and the document identification information of the document to be encrypted to generate a character string of a first preset length. For example, random selection can be made among the characters, or characters at preset positions among the characters can be selected to form a password.

[0221] Step C3: when the importance value of the document to be encrypted is less than or equal to the preset threshold, a character string of a second preset length is generated according to the user identification information and the document identification information of the document to be encrypted as a password for encrypting the document to be encrypted.

[0222] The character string of the second preset length contains characters of the second preset type. The number of types of the first preset type is greater than the number of types of the second preset type. The first preset length is greater than the second preset length.

[0223] Specifically, when generating a character string of the second preset length, the server may select characters from the characters of each second preset type to generate the character string of the second preset length. For example, characters may be randomly selected from the characters of each second preset type, or characters located at a preset position in the characters of the second preset type may be selected.

[0224] The server can also select characters from the second preset type of characters contained in the user identification information and the document identification information of the document to be encrypted to generate a character string of a second preset length. For example, random selection can be made among the characters, or characters at preset positions among the characters can be selected to form a password.

[0225] In this way, since the password of the document to be encrypted is obtained based on the user identification information, the document identification information of the document to be encrypted and the importance value of the document to be encrypted, and the password of the document to be encrypted is generated based on the user identification information, the document identification information of the document to be encrypted and the importance value of the document to be encrypted, and the importance value of the document to be encrypted reflects the importance degree of the document to be encrypted, the password of the document to be encrypted is adapted to the importance degree of the document to be encrypted, thereby improving the security of the encrypted document when the document is encrypted based on the password of the document to be encrypted.

[0226] In order to improve the security of the password of the document to be processed, in one embodiment of the present invention, the password of the document to be processed may be encrypted based on a preset key, and the encrypted password may be transmitted to the client.

[0227] The preset key is a key agreed upon in advance by the client and the server. Since what is obtained is the password encrypted by the preset key, and the preset key is difficult to be obtained by a third party, the password of the document to be encrypted is difficult to be stolen or forged, thereby improving the security of the password.

[0228] In another embodiment of the present invention, when a user logs into a personal office account to open an office document, the user triggers a password protection instruction. At this time, the server assigns a random high-strength password to the document to be encrypted, and uses the password to encrypt the document to be encrypted to generate a document to be processed; at the same time, the server will save the correspondence between this password, user identification information (such as the current user account), and document identification information of the document to be encrypted (which can be the unique identity mark of the current document, for example: document ID) in the database.

[0229] When the document to be processed is opened again, the program sends the user identification information and the document identification information of the document to be encrypted to the server. After receiving the relevant information, the server queries the corresponding password according to the corresponding relationship, and then uses the queried password to decrypt and open the document to be processed.

[0230] Specifically, when the program receives a user-triggered instruction to enable document password protection, the program applies for a password from the server (taking the password management server as an example) and uploads the user identification information of the current user and the document identification information of the document to be encrypted. The password management server calls the password generation module to generate a random password. The password string contains numbers, letters, and symbols and reaches a certain length to meet the needs of high-intensity confidentiality. The password management server returns the generated password to the program; at the same time, the password, user identification information, and document identification information of the document to be encrypted are saved in the database. After receiving the password, the program uses the password to encrypt the encrypted document.

[0231] When the program receives an instruction to open a document to be processed, if it is found that the document to be processed is an encrypted document, the user identification information of the current user and the document identification information of the document to be encrypted are sent to the password management server to query the corresponding password. The password management server queries the database according to the received password query instruction, user identification information, and document identification information of the document to be encrypted according to the stored corresponding relationship; after finding the corresponding password, it returns it to the program; after the program receives the password, it uses the password to decrypt and open the document to be processed. Among them, the program can exist on the client or cloud server, which is not limited here.

[0232] In order to prevent other users from obtaining the password of the document, the server can also verify whether the user identification information is valid identification information after obtaining the user identification information and the document identification information of the document to be processed; if the user identification information is valid identification information, the password of the document to be processed is obtained from the corresponding relationship stored locally based on the user identification information and the document identification information of the document to be processed.

[0233] Specifically, when the above-mentioned user identification information is the user's identity token, when verifying whether the user identification information is valid identification information, the server can determine whether the validity period of the user's identity token is within the preset validity period. If so, the user identification information is considered to be valid identification information; if not, the user identification information is considered to be invalid identification information.

[0234] When the server locally stores the user identification information of each registered user, when verifying whether the user identification information is valid identification information, the server can also match the obtained user identification information with the user identification information stored locally on the server. If there is an identical matching result, the user identification information is considered to be valid identification information; if there is no identical matching result, the user identification information is considered to be invalid identification information.

[0235] In this way, when the server queries the password for encrypting the document to be processed from the locally stored correspondence based on the document identification information of the document and the user identification information of the user, the server will verify the user identification information. Only when the verification is passed will the password of the document to be processed be queried from the correspondence, thereby improving the security of the password.

[0236] Corresponding to the above-mentioned document processing method, an embodiment of the present invention further provides a document processing device.

[0237] See also Figure 3 , Figure 3 This is a schematic diagram of the structure of a first document processing device provided by an embodiment of the present invention. The device includes the following modules 301-303.

[0238] The instruction acquisition module 301 is used to acquire an opening instruction of a document to be processed, wherein the document to be processed is an encrypted document;

[0239] A password acquisition module 302, configured to acquire the password of the document to be processed according to the user identification information and the document identification information of the document to be processed;

[0240] The document opening module 303 is used to decrypt the document to be processed according to the password of the document to be processed and open the document to be processed.

[0241] As can be seen from the above, when the solution provided by this embodiment is applied for data processing, the password of the document to be processed is obtained based on the user identification information and the document identification information of the document to be processed, so as to decrypt the document to be processed. Compared with the prior art, there is no need for the user to determine the password of the document, which improves the accuracy of obtaining the document password and thus improves the efficiency of document processing.

[0242] In addition, since the password of the document to be processed is obtained directly based on the user identification information and the document identification information of the document to be processed, the user does not need to manually enter the password, and even does not need to know the password information. The risk of the password of the document to be processed being leaked or lost is lower, and compared with the user manually managing the document password, the security of the document password is improved.

[0243] In one embodiment of the present invention, the above-mentioned device further includes a document encryption module, and the document encryption module includes:

[0244] An instruction acquisition submodule, used to acquire the encryption instruction of the document to be encrypted;

[0245] A password acquisition submodule, used to acquire the password of the document to be encrypted according to the user identification information and the document identification information of the document to be encrypted; wherein the password is: a password generated according to the user identification information and the document identification information of the document to be encrypted;

[0246] The document encryption submodule is used to encrypt the document to be encrypted according to the password of the document to be encrypted to obtain an encrypted document as a document to be processed.

[0247] Since the password of the document to be encrypted is obtained based on the user identification information and the document identification information of the document to be encrypted, the above password is generated based on the user identification information and the document identification information of the document to be encrypted, which improves the efficiency of document encryption compared to the prior art in which the document password is manually set by the user.

[0248] In one embodiment of the present invention, the password acquisition submodule comprises:

[0249] An important value obtaining unit, used to obtain the important value of the document to be encrypted;

[0250] A password acquisition unit is used to acquire the password of the document to be encrypted according to the user identification information, the document identification information of the document to be encrypted and the importance value of the document to be encrypted, wherein the password is: a password generated according to the user identification information, the document identification information of the document to be encrypted and the importance value of the document to be encrypted; when the importance value of the document to be encrypted is greater than a preset threshold, the password of the document to be encrypted is a character string of a first preset length, and the character string of the first preset length contains characters of a first preset type; when the importance value of the document to be encrypted is less than or equal to the preset threshold, the password of the document to be encrypted is a character string of a second preset length, wherein the character string of the second preset length contains characters of a second preset type, the number of types of the first preset type is greater than the number of types of the second preset type, and the first preset length is greater than the second preset length.

[0251] In this way, since the password of the document to be encrypted is obtained based on the user identification information, the document identification information of the document to be encrypted and the importance value of the document to be encrypted, and the password of the document to be encrypted is generated based on the user identification information, the document identification information of the document to be encrypted and the importance value of the document to be encrypted, and the importance value of the document to be encrypted reflects the importance degree of the document to be encrypted, the password of the document to be encrypted is adapted to the importance degree of the document to be encrypted, thereby improving the security of the encrypted document when the document is encrypted based on the password of the document to be encrypted.

[0252] In one embodiment of the present invention, the password acquisition unit is specifically used to obtain the password of the document to be encrypted after being encrypted with a preset key based on the user identification information, the document identification information of the document to be encrypted and the important value of the document to be encrypted, wherein the preset key is a key pre-agreed between the client and the server; and decrypt the obtained password based on the preset key to obtain the password of the document to be encrypted.

[0253] Since what is obtained is the password encrypted with the preset key, and the preset key is difficult to be obtained by a third party, the password of the document to be encrypted is difficult to be stolen or forged, thereby improving the security of the password.

[0254] In one embodiment of the present invention, the password acquisition module is specifically used to send a password application request carrying the document identification information and user identification information of the document to be processed to the server; receive the password of the document to be processed sent by the server; wherein the password of the document to be processed is a password obtained from the corresponding relationship stored in the server based on the document identification information and user identification information of the document to be processed, wherein the corresponding relationship is the relationship between the user identification information, the document identification information of the document, and the password for encrypting the document.

[0255] In this way, since the server stores the relationship between the document identification information of the document, the user identification information of the user and the password for encrypting the document, the password of the document to be processed is obtained based on the stored corresponding relationship, user identification information and the document identification information of the document to be processed.

[0256] In one embodiment of the present invention, the above correspondence is:

[0257] The correspondence between the user identification information, the document identification information of the document and the password for encrypting the file;

[0258] and / or

[0259] The correspondence between the document identification information of the document and the user identification information, and the correspondence between the document identification information of the document and the password used to encrypt the document.

[0260] In one embodiment of the present invention, when the document to be processed is stored in the cloud, the document identification information of the document to be processed is an identification assigned by the cloud to the document to be processed;

[0261] In the case where the document to be processed is stored locally on the client, the document identification information of the document to be processed includes the full name of the document to be processed; wherein the full name includes the storage path of the document to be processed.

[0262] See also Figure 4 , Figure 4 This is a schematic diagram of the structure of a second document processing device provided by an embodiment of the present invention. The device includes 401-403.

[0263] The information acquisition module 401 is used to acquire user identification information and document identification information of a document to be processed, wherein the document to be processed is an encrypted document;

[0264] A password acquisition module 402, configured to acquire the password of the document to be processed from a locally stored correspondence relationship according to the user identification information and the document identification information of the document to be processed, wherein the correspondence relationship is a correspondence relationship between the user identification information, the document identification information of the document, and the password for encrypting the document;

[0265] The password sending module 403 is used to send the password of the document to be processed to the client.

[0266] As can be seen from the above, when the solution provided by this embodiment is applied for data processing, the password of the document to be processed is obtained based on the user identification information and the document identification information of the document to be processed, and the password of the document to be processed is sent to the client. Compared with the prior art, there is no need for the user to determine the password of the document, which improves the accuracy of obtaining the document password and thus improves the efficiency of document processing.

[0267] In addition, since the password of the document to be processed is obtained directly based on the user identification information and the document identification information of the document to be processed, the user does not need to manually enter the password, and even does not need to know the password information. The risk of the password of the document to be processed being leaked or lost is lower, and compared with the user manually managing the document password, the security of the document password is improved.

[0268] In one embodiment of the present invention, the above-mentioned device further includes a document generation module, and the document generation module includes:

[0269] The request acquisition submodule is used to obtain password application requests;

[0270] An information acquisition submodule, used to acquire the user identification information and the document identification information of the document to be encrypted;

[0271] A password generation submodule, used to generate a password for the document to be encrypted according to the user identification information and the document identification information of the document to be encrypted;

[0272] The corresponding relationship storage submodule is used to store the corresponding relationship between the user identification information, the document identification information of the document to be encrypted, and the password of the document to be encrypted.

[0273] Since the server stores the correspondence between the document identification information of the document to be encrypted, the user identification information of the user, and the password of the document to be encrypted, when it is necessary to decrypt the document to be processed, the password for encrypting the document can be obtained based on the above correspondence stored by the server, the document identification information of the document, and the user identification information of the user, so that the document can be decrypted.

[0274] In one embodiment of the present invention, when the password application request carries the important value of the document to be encrypted, the password generation submodule includes:

[0275] An important value obtaining unit, used for obtaining the important value of the document to be encrypted;

[0276] An importance value comparison unit, used to compare the importance value of the document to be encrypted with a preset threshold;

[0277] A first password generating unit is used to generate a character string of a first preset length as a password for encrypting the document to be encrypted according to the user identification information and the document identification information of the document to be encrypted when the importance value of the document to be encrypted is greater than a preset threshold; wherein the character string of the first preset length contains characters of a first preset type;

[0278] A second password generating unit is used to generate a character string of a second preset length as a password for encrypting the document to be encrypted based on the user identification information and the document identification information of the document to be encrypted, when the importance value of the document to be encrypted is less than or equal to a preset threshold; wherein the character string of the second preset length contains characters of a second preset type; the number of types of the first preset type is greater than the number of types of the second preset type, and the first preset length is greater than the second preset length.

[0279] In this way, since the password of the document to be encrypted is obtained based on the user identification information, the document identification information of the document to be encrypted and the importance value of the document to be encrypted, and the password of the document to be encrypted is generated based on the user identification information, the document identification information of the document to be encrypted and the importance value of the document to be encrypted, and the importance value of the document to be encrypted reflects the importance degree of the document to be encrypted, the password of the document to be encrypted is adapted to the importance degree of the document to be encrypted, thereby improving the security of the encrypted document when the document is encrypted based on the password of the document to be encrypted.

[0280] In one embodiment of the present invention, the password sending module is specifically used to encrypt the password of the document to be processed based on a preset key and transmit the encrypted password to the client, wherein the preset key is a key pre-agreed between the client and the server.

[0281] Since what is obtained is the password encrypted with the preset key, and the preset key is difficult to be obtained by a third party, the password of the document to be encrypted is difficult to be stolen or forged, thereby improving the security of the password.

[0282] In one embodiment of the present invention, the above correspondence is:

[0283] The correspondence between the user identification information, the document identification information of the document and the password for encrypting the document;

[0284] and / or

[0285] The correspondence between the document identification information of the document and the user identification information, and the correspondence between the document identification information of the document and the password used to encrypt the document.

[0286] In one embodiment of the present invention, the above device further includes:

[0287] An information verification module, used for verifying whether the user identification information is valid identification information after the information acquisition module;

[0288] The information acquisition module is used to obtain the password of the document to be processed from a locally stored corresponding relationship according to the user identification information and the document identification information of the document to be processed when the user identification information is valid identification information.

[0289] In this way, when the server queries the password for encrypting the document to be processed from the locally stored correspondence based on the document identification information of the document and the user identification information of the user, the server will verify the user identification information. Only when the verification is passed will the password of the document to be processed be queried from the correspondence, thereby improving the security of the password.

[0290] See also Figure 5 , Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present invention, wherein the electronic device runs a client, includes a processor 501, a communication interface 502, a memory 503 and a communication bus 504, wherein the processor 501, the communication interface 502, and the memory 503 communicate with each other through the communication bus 504.

[0291] Memory 503, used for storing computer programs;

[0292] The processor 501 is used to implement a document processing method provided by an embodiment of the present invention when executing a program stored in the memory 503 .

[0293] See also Figure 6 , Figure 6 A schematic diagram of the structure of a server provided in an embodiment of the present invention includes a processor 601, a communication interface 602, a memory 603 and a communication bus 604, wherein the processor 601, the communication interface 602, and the memory 603 communicate with each other through the communication bus 604.

[0294] Memory 603, used for storing computer programs;

[0295] The processor 601 is used to implement another document processing method provided by an embodiment of the present invention when executing the program stored in the memory 603.

[0296] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0297] The communication interface is used for communication between the above electronic device and other devices.

[0298] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0299] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0300] In another embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, a document processing method provided in an embodiment of the present invention is implemented.

[0301] In another embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, another document processing method provided by an embodiment of the present invention is implemented.

[0302] In another embodiment of the present invention, a computer program product including instructions is provided. When the computer program product is run on a computer, the computer implements a document processing method provided by an embodiment of the present invention.

[0303] In another embodiment of the present invention, a computer program product including instructions is provided. When the computer program product is run on a computer, the computer implements another document processing method provided by an embodiment of the present invention.

[0304] As can be seen from the above, when the solution provided by this embodiment is applied for data processing, the password of the document to be processed is obtained based on the user identification information and the document identification information of the document to be processed, so as to decrypt the document to be processed. Compared with the prior art, there is no need for the user to determine the password of the document, which improves the accuracy of obtaining the document password and thus improves the efficiency of document processing.

[0305] In addition, since the password of the document to be processed is obtained directly based on the user identification information and the document identification information of the document to be processed, the user does not need to manually enter the password, and even does not need to know the password information. The risk of the password of the document to be processed being leaked or lost is lower, and compared with the user manually managing the document password, the security of the document password is improved.

[0306] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk Solid State Disk (SSD)), etc.

[0307] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0308] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device, electronic device, server, and computer-readable storage medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.

[0309] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims

1. A document processing method, characterized in that: Applied to a client, the method comprises: Obtaining an opening instruction for a document to be processed, wherein the document to be processed is an encrypted document and is stored in the cloud; Sending the user identification information and the document identification information of the document to be processed to the cloud, so that the cloud obtains the password of the document to be processed according to the user identification information, the document identification information of the document to be processed and the corresponding relationship, decrypts the document to be processed according to the password, and sends the decrypted document to be processed to the client; wherein the user identification information is information for identifying the identity of the user, and the corresponding relationship is the relationship between the user identification information, the document identification information of the document, and the password used to encrypt the document; Receiving and displaying the decrypted document to be processed sent by the cloud; The document to be processed is a document obtained by encrypting the document to be encrypted, and the encryption process includes the following steps: The cloud obtains the encryption instruction of the document to be encrypted sent by the client; The cloud randomly assigns a password to the document to be encrypted, wherein the assigned password is a password generated by the cloud by selecting characters from the characters included in the user identification information and the document identification information of the document to be encrypted; The cloud encrypts the document to be encrypted using the generated password to obtain the document to be processed.

2. The method according to claim 1, characterized in that The document to be processed is a document obtained by encrypting the document to be encrypted, and includes the following steps: Obtaining an encryption instruction for the document to be encrypted; According to the user identification information and the document identification information of the document to be encrypted, a password of the document to be encrypted is obtained; wherein the password is: a password generated according to the user identification information and the document identification information of the document to be encrypted; The document to be encrypted is encrypted according to the password of the document to be encrypted to obtain an encrypted document as the document to be processed.

3. The method according to claim 2, characterized in that The step of obtaining the password of the document to be encrypted according to the user identification information and the document identification information of the document to be encrypted comprises: Obtaining the important value of the document to be encrypted; Acquire a password for the document to be encrypted according to the user identification information, the document identification information of the document to be encrypted, and the important value of the document to be encrypted, wherein the password is: a password generated according to the user identification information, the document identification information of the document to be encrypted, and the important value of the document to be encrypted; In a case where the importance value of the document to be encrypted is greater than a preset threshold, the password of the document to be encrypted is a character string of a first preset length, and the character string of the first preset length includes characters of a first preset type; When the importance value of the document to be encrypted is less than or equal to a preset threshold, the password of the document to be encrypted is a character string of a second preset length, wherein the character string of the second preset length contains characters of a second preset type, the number of types of the first preset type is greater than the number of types of the second preset type, and the first preset length is greater than the second preset length.

4. The method according to claim 3, characterized in that The acquiring the password of the document to be encrypted according to the user identification information, the document identification information of the document to be encrypted, and the important value of the document to be encrypted comprises: According to the user identification information, the document identification information of the document to be encrypted and the important value of the document to be encrypted, a password of the document to be encrypted after being encrypted by a preset key is obtained, where the preset key is a key pre-agreed between the client and the server; The obtained password is decrypted based on the preset key to obtain the password of the document to be encrypted.

5. The method according to claim 1, characterized in that The corresponding relationship is: The correspondence between the user identification information, the document identification information of the document and the password for encrypting the document; and / or The correspondence between the document identification information of the document and the user identification information, and the correspondence between the document identification information of the document and the password used to encrypt the document.

6. The method according to any one of claims 1 to 5, characterized in that The document identification information of the document to be processed is an identification assigned by the cloud to the document to be processed.

7. A document processing method, characterized in that: Applied to the cloud, the method includes: Acquire user identification information sent by the client and document identification information of a document to be processed, wherein the document to be processed is an encrypted document and is stored in the cloud; According to the user identification information and the document identification information of the document to be processed, obtaining the password of the document to be processed from a locally stored correspondence relationship, wherein the correspondence relationship is a correspondence relationship between the user identification information, the document identification information of the document, and the password for encrypting the document; Decrypting the document to be processed according to the password; Sending the decrypted document to be processed to the client, so that the client displays the decrypted document to be processed; The document to be processed is a document obtained by encrypting the document to be encrypted, and the encryption process includes the following steps: The cloud obtains the encryption instruction of the document to be encrypted sent by the client; The cloud randomly assigns a password to the document to be encrypted, wherein the assigned password is a password generated by the cloud by selecting characters from the characters included in the user identification information and the document identification information of the document to be encrypted; The cloud encrypts the document to be encrypted using the generated password to obtain the document to be processed.

8. The method according to claim 7, characterized in that The document to be processed is a document obtained by encrypting the document to be encrypted, and the method of generating the password includes the following steps: Get password application request; Acquire the user identification information and the document identification information of the document to be encrypted; Generate a password for the document to be encrypted according to the user identification information and the document identification information of the document to be encrypted; The corresponding relationship among the user identification information, the document identification information of the document to be encrypted, and the password of the document to be encrypted is stored.

9. The method according to claim 8, characterized in that In a case where the password application request carries the important value of the document to be encrypted, generating a password for the document to be encrypted according to the user identification information and the document identification information of the document to be encrypted includes: Obtaining important values ​​of the document to be encrypted; Comparing the importance value of the document to be encrypted with a preset threshold; When the importance value of the document to be encrypted is greater than a preset threshold, generating a character string of a first preset length as a password for encrypting the document to be encrypted according to the user identification information and the document identification information of the document to be encrypted; wherein the character string of the first preset length contains characters of a first preset type; When the importance value of the document to be encrypted is less than or equal to a preset threshold, a character string of a second preset length is generated according to the user identification information and the document identification information of the document to be encrypted as a password for encrypting the document to be encrypted; wherein the character string of the second preset length contains characters of a second preset type; the number of types of the first preset type is greater than the number of types of the second preset type, and the first preset length is greater than the second preset length.

10. The method according to claim 7, characterized in that The corresponding relationship is: The correspondence between the user identification information, the document identification information of the document and the password for encrypting the document; and / or The correspondence between the document identification information of the document and the user identification information, and the correspondence between the document identification information of the document and the password used to encrypt the document.

11. The method according to claim 7, characterized in that After obtaining the user identification information sent by the client and the document identification information of the document to be processed, the method further includes: Verifying whether the user identification information is valid identification information; In the case that the user identification information is valid identification information, the password of the document to be processed is obtained from a locally stored corresponding relationship according to the user identification information and the document identification information of the document to be processed.

12. A document processing device, characterized in that: Applied to a client, the device comprises: An instruction acquisition module, used to acquire an opening instruction of a document to be processed, wherein the document to be processed is an encrypted document and is stored in the cloud; An information sending module, used for sending user identification information and the document identification information of the document to be processed to the cloud, so that the cloud obtains the password of the document to be processed according to the user identification information, the document identification information of the document to be processed and the corresponding relationship, decrypts the document to be processed according to the password, and sends the decrypted document to be processed to the client; wherein the user identification information is information for identifying the identity of the user, and the corresponding relationship is the relationship between the user identification information, the document identification information of the document, and the password for encrypting the document; A document opening module, used for receiving and displaying the decrypted document to be processed sent by the cloud; The document to be processed is a document obtained by encrypting a document to be encrypted, and the device also includes: an encryption instruction sending module; the encryption instruction sending module is used to send an encryption instruction of the document to be encrypted to the cloud, so that the cloud randomly assigns a password to the document to be encrypted, and uses the generated password to encrypt the document to be encrypted to obtain the document to be processed, wherein the assigned password is a password generated by the cloud by selecting characters from the characters contained in the user identification information and the document identification information of the document to be encrypted.

13. The device according to claim 12, characterized in that The device also includes a document encryption module, which includes: An instruction acquisition submodule, used to acquire the encryption instruction of the document to be encrypted; A password acquisition submodule, used to acquire the password of the document to be encrypted according to the user identification information and the document identification information of the document to be encrypted; wherein the password is: a password generated according to the user identification information and the document identification information of the document to be encrypted; The document encryption submodule is used to encrypt the document to be encrypted according to the password of the document to be encrypted to obtain an encrypted document as a document to be processed.

14. The device according to claim 13, characterized in that The password acquisition submodule includes An important value obtaining unit, used to obtain the important value of the document to be encrypted; A password acquisition unit is used to acquire the password of the document to be encrypted according to the user identification information, the document identification information of the document to be encrypted and the importance value of the document to be encrypted, wherein the password is: a password generated according to the user identification information, the document identification information of the document to be encrypted and the importance value of the document to be encrypted; when the importance value of the document to be encrypted is greater than a preset threshold, the password of the document to be encrypted is a character string of a first preset length, and the character string of the first preset length contains characters of a first preset type; when the importance value of the document to be encrypted is less than or equal to the preset threshold, the password of the document to be encrypted is a character string of a second preset length, wherein the character string of the second preset length contains characters of a second preset type, the number of types of the first preset type is greater than the number of types of the second preset type, and the first preset length is greater than the second preset length.

15. A document processing device, characterized in that: Applied to the cloud, the device comprises: An information acquisition module, used to acquire user identification information sent by the client and document identification information of a document to be processed, wherein the document to be processed is an encrypted document and is stored in the cloud; A password acquisition module, used to obtain the password of the document to be processed from a locally stored correspondence relationship according to the user identification information and the document identification information of the document to be processed, wherein the correspondence relationship is the correspondence relationship between the user identification information, the document identification information of the document, and the password for encrypting the document; A document decryption module, used for decrypting the document to be processed according to the password; A document sending module, used for sending the decrypted document to be processed to the client, so that the client displays the decrypted document to be processed; The document to be processed is a document obtained by encrypting the document to be encrypted, and the device further includes: An encryption instruction acquisition module, used to acquire the encryption instruction of the document to be encrypted sent by the client; A password assigning module, used to randomly assign a password to the document to be encrypted, wherein the assigned password is a password generated by the cloud by selecting characters from the characters included in the user identification information and the document identification information of the document to be encrypted; The encryption module is used to encrypt the document to be encrypted using the generated password to obtain the document to be processed.

16. The device according to claim 15, characterized in that The device also includes a password generation module, and the password generation module includes: The request acquisition submodule is used to obtain password application requests; An information acquisition submodule, used to acquire the user identification information and the document identification information of the document to be encrypted; A password generation submodule, used to generate a password for the document to be encrypted according to the user identification information and the document identification information of the document to be encrypted; The corresponding relationship storage submodule is used to store the corresponding relationship between the user identification information, the document identification information of the document to be encrypted, and the password of the document to be encrypted.

17. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, for implementing the method steps described in any one of claims 1-6 or 7-11 when executing a program stored in a memory.

18. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps described in any one of claims 1-6 or 7-11 are implemented.