Disclosure of Invention
The invention provides a multiparty electronic signature synthesis method, a multiparty electronic signature synthesis device, multiparty electronic signature synthesis equipment and a storage medium, which are used for improving the accuracy and the signature efficiency of multiparty electronic signature synthesis.
To achieve the above object, a first aspect of the present invention provides a multiparty electronic signature synthesizing method, comprising: receiving a signature data acquisition request sent by a terminal, reading document template data according to the signature data acquisition request, and sending the document template data to the terminal so that the terminal carries out signature encryption processing on signature configuration information according to the document template data to obtain an encrypted character string, wherein the signature configuration information comprises a plurality of electronic signature information, a plurality of signature keywords and signature types of each signature keyword; receiving a multiparty electronic signature synthesis request sent by the terminal, and determining the document template data and the encryption character string based on the multiparty electronic signature synthesis request; decrypting the encrypted character string according to a preset decryption algorithm to obtain the plurality of electronic signature information, the plurality of signature keywords and the signature type of each signature keyword, and determining signature offset configuration information corresponding to each signature keyword according to the signature type of each signature keyword; and carrying out signature synthesis processing on the plurality of electronic signature information and the document template data according to the plurality of signature keywords and the signature offset configuration information corresponding to each signature keyword to obtain a signed document file, and pushing the signed document file to the terminal so that the terminal displays and/or downloads the signed document file.
Optionally, in a first implementation manner of the first aspect of the present invention, the receiving terminal sends a signature data obtaining request, reads document template data according to the signature data obtaining request, and sends the document template data to the terminal, so that the terminal performs signature encryption processing on signature configuration information according to the document template data to obtain an encrypted string, where the signature configuration information includes a plurality of electronic signature information, a plurality of signature keywords, and a signature type of each signature keyword, and the method includes: receiving a signature data acquisition request sent by a terminal, and carrying out parameter analysis on the signature data acquisition request to obtain a document template identifier; generating a target query statement according to a structured query language grammar rule, a preset database table and the document template identifier, and executing the target query statement to obtain document template data; the document template data is sent to the terminal, so that the terminal configures a plurality of signature keywords and signature types of each signature keyword according to the document template data, and acquires a plurality of pieces of electronic signature information from a preset memory database; setting the plurality of electronic signature information, the plurality of signature keywords and the signature type of each signature keyword as signature configuration information, and carrying out encryption processing on the signature configuration information according to a preset encryption algorithm to obtain an encryption character string.
Optionally, in a second implementation manner of the first aspect of the present invention, the receiving a multiparty electronic signature synthesis request sent by the terminal, determining the document template data and the encrypted string based on the multiparty electronic signature synthesis request includes: receiving a multiparty electronic signature synthesis request sent by the terminal, and analyzing the multiparty electronic signature synthesis request to obtain a parameter analysis result; respectively verifying the parameter name and the parameter value of the parameter analysis result to obtain a verification result; and when the verification result is that verification passes, reading the document template data and the encrypted character strings from the parameter analysis result, wherein the number of the encrypted character strings corresponds to the number of the signature keywords.
Optionally, in a third implementation manner of the first aspect of the present invention, the decrypting the encrypted string according to a preset decrypting algorithm to obtain the plurality of electronic signature information, the plurality of signature keywords, and signature types of each signature keyword, and determining signature offset configuration information corresponding to each signature keyword according to the signature type of each signature keyword includes: obtaining a key corresponding to a preset decryption algorithm, decrypting the encrypted character string according to the key through the preset decryption algorithm to obtain a plurality of pieces of electronic signature information, a plurality of signature keywords and signature types of each signature keyword; checking the integrity of the signature on the plurality of pieces of electronic signature information to obtain a checking result, wherein the checking result comprises successful checking and failed checking; when the verification result is that the verification fails, generating early warning information, and sending the early warning information to the terminal so that the terminal prompts the early warning information to a target person; and when the verification result is that the verification is successful, inquiring a preset database table according to the signature type of each signature keyword to obtain signature offset configuration information corresponding to each signature keyword.
Optionally, in a fourth implementation manner of the first aspect of the present invention, the signature synthesis processing is performed on the plurality of electronic signature information and the document template data according to the plurality of signature keywords and the signature offset configuration information corresponding to each signature keyword, so as to obtain a signed document file, and the signed document file is pushed to the terminal, so that the terminal displays and/or downloads the signed document file, including: respectively retrieving the document template data according to the signature keywords to obtain a plurality of pieces of position information to be signed; synthesizing the plurality of electronic signature information into the document template data based on the plurality of position information to be signed and the signature offset configuration information corresponding to each signature keyword to obtain a synthesis result; when the synthesis result is that the synthesis is successful, obtaining a document template data stream containing the multiparty electronic signature, and carrying out file export operation on the document template data stream containing the multiparty electronic signature to obtain a signed document file; and acquiring file path information corresponding to the signed document file, and pushing the file path information to the terminal through a preset queue so that the terminal displays and/or downloads the signed document file according to the file path information.
Optionally, in a fifth implementation manner of the first aspect of the present invention, after performing signature synthesis processing on the plurality of electronic signature information and the document template data according to the plurality of signature keywords and the signature offset configuration information corresponding to each signature keyword, to obtain a signed document file, and pushing the signed document file to the terminal, so that the terminal displays and/or downloads the signed document file, the multiparty electronic signature synthesis method further includes: receiving a file uploading request, and reading a document file to be uploaded according to the file uploading request, wherein the document file to be uploaded belongs to the signed document file; and sequentially carrying out encryption and compression treatment on the document file to be uploaded to obtain a compressed document file, and uploading the compressed document file to a cloud server.
Optionally, in a sixth implementation manner of the first aspect of the present invention, the receiving a file upload request, reading a document file to be uploaded according to the file upload request, where the document file to be uploaded belongs to the signed document file, includes: receiving a file uploading request, and analyzing the file uploading request to obtain a file identifier to be uploaded and user identification information; judging whether the user identification information exists in a preset file uploading authority data table or not; and if the user identification information exists in the preset file uploading authority data table, reading a document file to be uploaded from the preset file configuration data table according to the identifier of the document file to be uploaded, wherein the document file to be uploaded belongs to the signed document file.
A second aspect of the present invention provides a multiparty electronic signature composition apparatus, comprising: the encryption module is used for receiving a signature data acquisition request sent by a terminal, reading document template data according to the signature data acquisition request, and sending the document template data to the terminal so that the terminal carries out signature encryption processing on signature configuration information according to the document template data to obtain an encryption character string, wherein the signature configuration information comprises a plurality of electronic signature information, a plurality of signature keywords and signature types of each signature keyword; the determining module is used for receiving a multiparty electronic signature synthesis request sent by the terminal and determining the document template data and the encryption character string based on the multiparty electronic signature synthesis request; the decryption module is used for decrypting the encrypted character string according to a preset decryption algorithm to obtain the plurality of electronic signature information, the plurality of signature keywords and the signature type of each signature keyword, and determining signature offset configuration information corresponding to each signature keyword according to the signature type of each signature keyword; and the synthesis module is used for carrying out signature synthesis processing on the plurality of electronic signature information and the document template data according to the plurality of signature keywords and the signature offset configuration information corresponding to each signature keyword to obtain a signed document file, and pushing the signed document file to the terminal so that the terminal can display and/or download the signed document file.
Optionally, in a first implementation manner of the second aspect of the present invention, the encryption module is specifically configured to: receiving a signature data acquisition request sent by a terminal, and carrying out parameter analysis on the signature data acquisition request to obtain a document template identifier; generating a target query statement according to a structured query language grammar rule, a preset database table and the document template identifier, and executing the target query statement to obtain document template data; the document template data is sent to the terminal, so that the terminal configures a plurality of signature keywords and signature types of each signature keyword according to the document template data, and acquires a plurality of pieces of electronic signature information from a preset memory database; setting the plurality of electronic signature information, the plurality of signature keywords and the signature type of each signature keyword as signature configuration information, and carrying out encryption processing on the signature configuration information according to a preset encryption algorithm to obtain an encryption character string.
Optionally, in a second implementation manner of the second aspect of the present invention, the determining module is specifically configured to: receiving a multiparty electronic signature synthesis request sent by the terminal, and analyzing the multiparty electronic signature synthesis request to obtain a parameter analysis result; respectively verifying the parameter name and the parameter value of the parameter analysis result to obtain a verification result; and when the verification result is that verification passes, reading the document template data and the encrypted character strings from the parameter analysis result, wherein the number of the encrypted character strings corresponds to the number of the signature keywords.
Optionally, in a third implementation manner of the second aspect of the present invention, the decryption module is specifically configured to: obtaining a key corresponding to a preset decryption algorithm, decrypting the encrypted character string according to the key through the preset decryption algorithm to obtain a plurality of pieces of electronic signature information, a plurality of signature keywords and signature types of each signature keyword; checking the integrity of the signature on the plurality of pieces of electronic signature information to obtain a checking result, wherein the checking result comprises successful checking and failed checking; when the verification result is that the verification fails, generating early warning information, and sending the early warning information to the terminal so that the terminal prompts the early warning information to a target person; and when the verification result is that the verification is successful, inquiring a preset database table according to the signature type of each signature keyword to obtain signature offset configuration information corresponding to each signature keyword.
Optionally, in a fourth implementation manner of the second aspect of the present invention, the synthesis module is specifically configured to: respectively retrieving the document template data according to the signature keywords to obtain a plurality of pieces of position information to be signed; synthesizing the plurality of electronic signature information into the document template data based on the plurality of position information to be signed and the signature offset configuration information corresponding to each signature keyword to obtain a synthesis result; when the synthesis result is that the synthesis is successful, obtaining a document template data stream containing the multiparty electronic signature, and carrying out file export operation on the document template data stream containing the multiparty electronic signature to obtain a signed document file; and acquiring file path information corresponding to the signed document file, and pushing the file path information to the terminal through a preset queue so that the terminal displays and/or downloads the signed document file according to the file path information.
Optionally, in a fifth implementation manner of the second aspect of the present invention, the multiparty electronic signature synthesizing device further includes: the reading module is used for receiving a file uploading request, and reading a document file to be uploaded according to the file uploading request, wherein the document file to be uploaded belongs to the signed document file; and the uploading module is used for sequentially encrypting and compressing the document file to be uploaded to obtain a compressed document file, and uploading the compressed document file to the cloud server.
Optionally, in a sixth implementation manner of the second aspect of the present invention, the reading module may be further specifically configured to: receiving a file uploading request, and analyzing the file uploading request to obtain a file identifier to be uploaded and user identification information; judging whether the user identification information exists in a preset file uploading authority data table or not; and if the user identification information exists in the preset file uploading authority data table, reading a document file to be uploaded from the preset file configuration data table according to the identifier of the document file to be uploaded, wherein the document file to be uploaded belongs to the signed document file.
A third aspect of the present invention provides a multiparty electronic signature composition apparatus, comprising: a memory and at least one processor, the memory having instructions stored therein; the at least one processor invokes the instructions in the memory to cause the multiparty electronic signature composition device to perform the multiparty electronic signature composition method described above.
A fourth aspect of the present invention provides a computer-readable storage medium having instructions stored therein that, when executed on a computer, cause the computer to perform the above-described multiparty electronic signature composition method.
In the technical scheme provided by the invention, a signature data acquisition request sent by a terminal is received, document template data is read according to the signature data acquisition request, and the document template data is sent to the terminal, so that the terminal performs signature encryption processing on signature configuration information according to the document template data to obtain an encrypted character string, wherein the signature configuration information comprises a plurality of electronic signature information, a plurality of signature keywords and signature types of each signature keyword; receiving a multiparty electronic signature synthesis request sent by the terminal, and determining the document template data and the encryption character string based on the multiparty electronic signature synthesis request; decrypting the encrypted character string according to a preset decryption algorithm to obtain the plurality of electronic signature information, the plurality of signature keywords and the signature type of each signature keyword, and determining signature offset configuration information corresponding to each signature keyword according to the signature type of each signature keyword; and carrying out signature synthesis processing on the plurality of electronic signature information and the document template data according to the plurality of signature keywords and the signature offset configuration information corresponding to each signature keyword to obtain a signed document file, and pushing the signed document file to the terminal so that the terminal displays and/or downloads the signed document file. In the embodiment of the invention, the security of the transmission of the electronic signature information is improved by encrypting and decrypting the plurality of electronic signature information, the plurality of signature keywords and the signature type of each signature keyword; the server determines corresponding signature offset configuration information according to the signature type of each signature keyword, synthesizes a plurality of pieces of electronic signature information into document template data according to the plurality of signature keywords and the signature offset configuration information, realizes the matching of the electronic signature information and the signature keywords, ensures the accuracy of the signing position of the multiparty electronic signature, and improves the accuracy and the signing efficiency of multiparty electronic signature synthesis.
Detailed Description
The embodiment of the invention provides a multiparty electronic signature synthesis method, a multiparty electronic signature synthesis device, multiparty electronic signature synthesis equipment and a multiparty electronic signature synthesis storage medium, which are used for improving the safety of electronic signature information transmission by encrypting and decrypting a plurality of electronic signature information, a plurality of signature keywords and signature types of each signature keyword; and matching of the electronic signature information and the signature keywords is realized, and the accuracy of the signing position of the multiparty electronic signature is ensured.
The terms "first," "second," "third," "fourth" and the like in the description and in the claims and in the above drawings, if any, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments described herein may be implemented in other sequences than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed or inherent to such process, method, article, or apparatus.
For ease of understanding, the following describes a specific flow of an embodiment of the present invention, referring to fig. 1, and one embodiment of a multiparty electronic signature synthesizing method in an embodiment of the present invention includes:
101. receiving a signature data acquisition request sent by a terminal, reading document template data according to the signature data acquisition request, and sending the document template data to the terminal, so that the terminal performs signature encryption processing on signature configuration information according to the document template data to obtain an encrypted character string, wherein the signature configuration information comprises a plurality of electronic signature information, a plurality of signature keywords and signature types of each signature keyword.
That is, after the server sends the document template data to the terminal based on the signature data acquisition request, the terminal initializes the signature keywords based on the hypertext markup language HTML5 page, initializes a plurality of signature keywords for the multiparty signature, and generates different encrypted character strings. The server analyzes each signature encryption string which is traversed when extracting the signature, and then the server locates each electronic signature information synthesis position according to each signature keyword. Further, the terminal receives a plurality of signature keywords input by a user and a signature type of each signature keyword, and caches the signature keywords and the signature type of each signature keyword, wherein the signature type is used for indicating whether the signature type is the principal signature type. And the terminal sends the document template data and the encrypted character string to the server.
Further, the document template data is stored in a blockchain database, and is not limited herein.
It is to be understood that the execution subject of the present invention may be a multiparty electronic signature synthesizing device, and may also be a terminal or a server, which is not limited herein. The embodiment of the invention is described by taking a server as an execution main body as an example.
102. And receiving a multiparty electronic signature synthesis request sent by the terminal, and determining the document template data and the encryption character string based on the multiparty electronic signature synthesis request.
The multiparty electronic signature synthesis request refers to that the server synthesizes the electronic signature information and the signature keywords of a plurality of clients into the same document template data, the encrypted character string is a character string encrypted in advance according to a preset encryption algorithm, the encrypted character string may be one or a plurality of, and the method is not limited in particular here, for example, the server obtains 3 encrypted character strings from the signature synthesis request. Specifically, the server performs parameter analysis on the multiparty electronic signature synthesis request to obtain document template data and an encrypted character string.
103. And decrypting the encrypted character string according to a preset decryption algorithm to obtain a plurality of pieces of electronic signature information, a plurality of signature keywords and signature types of the signature keywords, and determining signature offset configuration information corresponding to the signature keywords according to the signature types of the signature keywords.
The preset decryption algorithm corresponds to the preset encryption algorithm one by one, for example, the server encrypts plaintext data (a plurality of electronic signature information, a plurality of signature keywords and a signature type of each signature keyword) and an encryption key by adopting a symmetric encryption algorithm (preset encryption algorithm), generates an encryption character string and sends the encryption character string to the server, and the server decrypts the encryption character string by using the encryption key and an inverse algorithm (preset decryption algorithm) of the preset encryption algorithm to obtain the plaintext data (i.e., the plurality of electronic signature information, the plurality of signature keywords and the signature type of each signature keyword). And then, the server inquires the signature offset configuration information corresponding to each signature keyword from a preset database table according to the signature type of each signature keyword.
104. And carrying out signature synthesis processing on the plurality of electronic signature information and the document template data according to the plurality of signature keywords and the signature offset configuration information corresponding to each signature keyword to obtain a signed document file, and pushing the signed document file to the terminal so that the terminal displays and/or downloads the signed document file.
The signature keywords are used for indicating signature keywords of different clients, such as a main right contract, a common person signature at the second party and a borrowing person signature at the third party. Signature multiplexing and the same document multi-person signature can be finally realized by combining a terminal and a server. Further, the server sets a plurality of signature keywords, signature offset configuration information corresponding to each signature keyword, a plurality of electronic signature information and document template data as interface input parameters, calls a preset signature synthesis interface based on the interface input parameters, synthesizes the plurality of electronic signature information into the document template data to obtain synthesized document data, and generates a signed document file based on the synthesized document data; further, the server acquires the storage path information of the signed document file, and the server pushes the storage path information of the signed document file to the terminal, so that the terminal displays and/or downloads the signed document file according to the storage path information of the signed document file.
It will be appreciated that the documents compose a signature and the server locates the signature location based on the signature key. Specifically, the server scans the content of the document template data, matches the content corresponding to each signature keyword in the document template data, and synthesizes the electronic signature onto the document template data according to preset signature offset configuration information.
In the embodiment of the invention, the security of the transmission of the electronic signature information is improved by encrypting and decrypting the plurality of electronic signature information, the plurality of signature keywords and the signature type of each signature keyword; the server determines corresponding signature offset configuration information according to the signature type of each signature keyword, synthesizes a plurality of pieces of electronic signature information into document template data according to the plurality of signature keywords and the signature offset configuration information, realizes the matching of the electronic signature information and the signature keywords, ensures the accuracy of the signing position of the multiparty electronic signature, and improves the accuracy and the signing efficiency of multiparty electronic signature synthesis.
Referring to fig. 2, another embodiment of the multiparty electronic signature composition method in an embodiment of the present invention includes:
201. receiving a signature data acquisition request sent by a terminal, reading document template data according to the signature data acquisition request, and sending the document template data to the terminal, so that the terminal performs signature encryption processing on signature configuration information according to the document template data to obtain an encrypted character string, wherein the signature configuration information comprises a plurality of electronic signature information, a plurality of signature keywords and signature types of each signature keyword.
It should be noted that the signature type of each signature keyword includes a principal signature type and a non-principal signature type, the signature position of the principal signature type is before the signature position of the non-principal signature type, that is, the offset of the corresponding signature keyword is different.
Optionally, the server receives a signature data acquisition request sent by the terminal, and the server performs parameter analysis on the signature data acquisition request to obtain a document template identifier; the server generates a target query statement according to the structured query language grammar rule, a preset database table and a document template identifier, and executes the target query statement to obtain document template data; the server sends the document template data to the terminal so that the terminal configures a plurality of signature keywords and the signature type of each signature keyword according to the document template data, and acquires a plurality of electronic signature information from a preset memory database; the terminal sets a plurality of pieces of electronic signature information, a plurality of signature keywords and signature types of the signature keywords as signature configuration information, and encrypts the signature configuration information according to a preset encryption algorithm to obtain an encrypted character string. It can be appreciated that the terminal adopts the preset memory database to improve the data query efficiency.
The preset encryption algorithm includes a symmetric encryption algorithm (shared key encryption algorithm) and an asymmetric encryption algorithm (public key encryption algorithm), and the preset encryption algorithm may also be a digital signature encryption algorithm, which is not limited herein. The server performs encryption processing on the signature configuration information to obtain encrypted data (encrypted character string) of the client signature. The signature mode is set according to the signature key words returned by the server. The signature key word returned by the server can be dynamically configured in the template setting process. That is, the terminal pre-configures the signature keywords of the document template according to the actual document application scene.
202. And receiving a multiparty electronic signature synthesis request sent by the terminal, and determining the document template data and the encryption character string based on the multiparty electronic signature synthesis request.
Wherein the multiparty electronic signature composition request is used to instruct the composition of a plurality of electronic signature information into the document template data. Optionally, the server receives a multiparty electronic signature synthesis request sent by the terminal, analyzes the multiparty electronic signature synthesis request, and obtains a parameter analysis result; the server respectively verifies the parameter name and the parameter value of the parameter analysis result to obtain a verification result, wherein the verification result comprises verification passing and verification failing, and when the parameter name does not accord with the preset parameter name or the parameter value is a null value, the server determines that the verification result is verification failing, generates prompt information and sends the prompt information to the terminal; when the verification result is that verification passes, the server reads the document template data and the encrypted character strings from the parameter analysis result, wherein the number of the encrypted character strings corresponds to the number of the signature keywords.
203. And decrypting the encrypted character string according to a preset decryption algorithm to obtain a plurality of pieces of electronic signature information, a plurality of signature keywords and signature types of the signature keywords, and determining signature offset configuration information corresponding to the signature keywords according to the signature types of the signature keywords.
It should be noted that, the signature offset configuration information corresponding to each signature keyword is preset signature location information, for example, the server uses an identification field issself to perform data type identification, where Y is denoted as the principal, N is denoted as the non-principal, and the terminal sets the offset of the electronic signature according to the indication field and the plurality of signature keywords, that is, sets coordinate values of an X axis and a Y axis for the signature keywords, so that the electronic signature information can be synthesized to a suitable location in the document template data.
Optionally, the server obtains a key corresponding to a preset decryption algorithm, decrypts the encrypted character string according to the key through the preset decryption algorithm, and obtains a plurality of pieces of electronic signature information, a plurality of signature keywords and signature types of each signature keyword; the server verifies the integrity of the signature on the plurality of pieces of electronic signature information to obtain a verification result, wherein the verification result comprises verification success and verification failure; when the verification result is that verification fails, early warning information is generated, and the server sends the early warning information to the terminal so that the terminal prompts the early warning information to a target person; and when the verification result is that the verification is successful, the server queries a preset database table according to the signature type of each signature keyword to obtain signature offset configuration information corresponding to each signature keyword.
When the verification result is that the verification fails, the server determines that at least one piece of electronic signature information has an incomplete signature, so that the server notifies the terminal that the electronic signature information has an abnormality.
204. And carrying out signature synthesis processing on the plurality of electronic signature information and the document template data according to the plurality of signature keywords and the signature offset configuration information corresponding to each signature keyword to obtain a signed document file, and pushing the signed document file to the terminal so that the terminal displays and/or downloads the signed document file.
The document template data includes document, seal information and signature information, which are all pre-configured in the document template. Different business documents (document template data) have different signature keywords, and the same document has a plurality of signature keywords. The terminal adopts the mapping keywords to sequentially map a plurality of signature keywords on the same document to a plurality of different signature keywords, and then the terminal and the server initialize by using the mapped signature keywords, so that the signature effect is finally realized, and the accuracy and the signature efficiency of multiparty electronic signature synthesis are improved.
Optionally, the server searches the document template data according to the plurality of signature keywords respectively to obtain a plurality of position information to be signed; the server synthesizes a plurality of electronic signature information into document template data based on a plurality of position information to be signed and signature offset configuration information corresponding to each signature keyword to obtain a synthesis result; when the synthesis result is that the synthesis is successful, the server acquires a document template data stream containing the multiparty electronic signature, and carries out file export operation on the document template data stream containing the multiparty electronic signature to obtain a signed document file; the server acquires file path information corresponding to the signed document file, and pushes the file path information to the terminal through a preset queue, so that the terminal displays and/or downloads the signed document file according to the file path information.
It can be understood that when the terminal configures the document template data, if the client signature in the document is modified in the actual service, the signature keyword needs to be set according to the actual service condition. For example, a master bond contract requires a customer principal signature that is signed at "Party C" and a co-principal signature that is signed at "Party B". When the server synthesizes the signature, the server locates according to the signature keywords (party C or party B), then the server sets the client signature (namely, the corresponding electronic signature information) to the corresponding position in the document template data based on the signature offset configuration information corresponding to each signature keyword to obtain a document template data stream containing the multiparty electronic signature, and the server converts the document template data stream containing the multiparty electronic signature into a signed document file.
205. And receiving a file uploading request, and reading a document file to be uploaded according to the file uploading request, wherein the document file to be uploaded belongs to the signed document file.
That is, the server performs file backup on the signed document file according to the file uploading request, so that the security of the document file is improved, and the abnormal or lost condition of the file is prevented. Optionally, the server receives a file uploading request, analyzes the file uploading request, and obtains a file identifier to be uploaded and user identification information; the server judges whether the user identification information exists in a preset file uploading authority data table or not; if the user identification information exists in the preset file uploading authority data table, the server reads the document file to be uploaded from the preset file configuration data table according to the identifier of the document file to be uploaded, wherein the document file to be uploaded belongs to the signed document file. The server determines that the user has the file uploading authority when the user identification information exists in the preset file uploading authority data table, so that the safety and stability of file uploading are improved.
206. And sequentially carrying out encryption and compression treatment on the document file to be uploaded to obtain a compressed document file, and uploading the compressed document file to a cloud server.
That is, the server performs file encryption processing on the document file to be uploaded according to a preset file encryption algorithm to obtain an encrypted document file; the server calls a preset file compression instruction to compress the encrypted document file to obtain the compressed document file, data encapsulation is carried out on the compressed document file through a preset file transmission protocol, the encapsulated document file is uploaded to the cloud server, and the cloud server is used for carrying out backup storage on the document file to be uploaded, so that the security and the transmission efficiency of document file transmission are improved.
It should be noted that the preset file encryption algorithm may be a message-digest algorithm (MD 5), or may be other file encryption algorithms, which is not limited herein. The preset file compression instruction may include tar, zip, gzip or bzip2, which is not limited herein. The preset file transfer protocol may be a file transfer protocol (file transfer protocol, FTP) or a secure file transfer protocol (secure file transfer protocol, SFTP), which is not limited herein.
In the embodiment of the invention, the security of the transmission of the electronic signature information is improved by encrypting and decrypting the plurality of electronic signature information, the plurality of signature keywords and the signature type of each signature keyword; the server determines corresponding signature offset configuration information according to the signature type of each signature keyword, synthesizes a plurality of pieces of electronic signature information into document template data according to the plurality of signature keywords and the signature offset configuration information, realizes the matching of the electronic signature information and the signature keywords, ensures the accuracy of the signing position of the multiparty electronic signature, and improves the accuracy and the signing efficiency of multiparty electronic signature synthesis.
The multi-party electronic signature synthesizing method in the embodiment of the present invention is described above, and the multi-party electronic signature synthesizing apparatus in the embodiment of the present invention is described below, referring to fig. 3, one embodiment of the multi-party electronic signature synthesizing apparatus in the embodiment of the present invention includes:
the encryption module 301 is configured to receive a signature data acquisition request sent by a terminal, read document template data according to the signature data acquisition request, and send the document template data to the terminal, so that the terminal performs signature encryption processing on signature configuration information according to the document template data to obtain an encrypted string, where the signature configuration information includes a plurality of electronic signature information, a plurality of signature keywords, and a signature type of each signature keyword;
a determining module 302, configured to receive a multiparty electronic signature synthesis request sent by a terminal, and determine document template data and an encrypted character string based on the multiparty electronic signature synthesis request;
the decryption module 303 is configured to decrypt the encrypted string according to a preset decryption algorithm to obtain a plurality of electronic signature information, a plurality of signature keywords, and a signature type of each signature keyword, and determine signature offset configuration information corresponding to each signature keyword according to the signature type of each signature keyword;
And the synthesis module 304 is configured to perform signature synthesis processing on the plurality of electronic signature information and the document template data according to the plurality of signature keywords and the signature offset configuration information corresponding to each signature keyword, obtain a signed document file, and push the signed document file to the terminal, so that the terminal displays and/or downloads the signed document file.
Further, the document template data is stored in a blockchain database, and is not limited herein.
In the embodiment of the invention, the security of the transmission of the electronic signature information is improved by encrypting and decrypting the plurality of electronic signature information, the plurality of signature keywords and the signature type of each signature keyword; the server determines corresponding signature offset configuration information according to the signature type of each signature keyword, synthesizes a plurality of pieces of electronic signature information into document template data according to the plurality of signature keywords and the signature offset configuration information, realizes the matching of the electronic signature information and the signature keywords, ensures the accuracy of the signing position of the multiparty electronic signature, and improves the accuracy and the signing efficiency of multiparty electronic signature synthesis.
Referring to fig. 4, another embodiment of the multiparty electronic signature combining apparatus according to an embodiment of the present invention includes:
The encryption module 301 is configured to receive a signature data acquisition request sent by a terminal, read document template data according to the signature data acquisition request, and send the document template data to the terminal, so that the terminal performs signature encryption processing on signature configuration information according to the document template data to obtain an encrypted string, where the signature configuration information includes a plurality of electronic signature information, a plurality of signature keywords, and a signature type of each signature keyword;
a determining module 302, configured to receive a multiparty electronic signature synthesis request sent by a terminal, and determine document template data and an encrypted character string based on the multiparty electronic signature synthesis request;
the decryption module 303 is configured to decrypt the encrypted string according to a preset decryption algorithm to obtain a plurality of electronic signature information, a plurality of signature keywords, and a signature type of each signature keyword, and determine signature offset configuration information corresponding to each signature keyword according to the signature type of each signature keyword;
and the synthesis module 304 is configured to perform signature synthesis processing on the plurality of electronic signature information and the document template data according to the plurality of signature keywords and the signature offset configuration information corresponding to each signature keyword, obtain a signed document file, and push the signed document file to the terminal, so that the terminal displays and/or downloads the signed document file.
Optionally, the encryption module 301 may be further specifically configured to:
receiving a signature data acquisition request sent by a terminal, and carrying out parameter analysis on the signature data acquisition request to obtain a document template identifier;
generating a target query statement according to the structured query language grammar rule, a preset database table and a document template identifier, and executing the target query statement to obtain document template data;
the method comprises the steps of sending document template data to a terminal, enabling the terminal to configure a plurality of signature keywords and signature types of each signature keyword according to the document template data, and obtaining a plurality of electronic signature information from a preset memory database;
setting a plurality of pieces of electronic signature information, a plurality of signature keywords and signature types of the signature keywords as signature configuration information, and carrying out encryption processing on the signature configuration information according to a preset encryption algorithm to obtain an encryption character string.
Optionally, the determining module 302 may be further specifically configured to:
receiving a multiparty electronic signature synthesis request sent by a terminal, and analyzing the multiparty electronic signature synthesis request to obtain a parameter analysis result;
respectively verifying the parameter name and the parameter value of the parameter analysis result to obtain a verification result;
And when the verification result is that the verification passes, reading the document template data and the encrypted character strings from the parameter analysis result, wherein the number of the encrypted character strings corresponds to the number of the signature keywords.
Optionally, the decryption module 303 may be further specifically configured to:
obtaining a key corresponding to a preset decryption algorithm, decrypting the encrypted character string according to the key through the preset decryption algorithm, and obtaining a plurality of pieces of electronic signature information, a plurality of signature keywords and signature types of each signature keyword;
checking the integrity of the signature on the plurality of electronic signature information to obtain a checking result, wherein the checking result comprises a successful checking and a failed checking;
when the verification result is that verification fails, generating early warning information, and sending the early warning information to the terminal so that the terminal prompts the early warning information to a target person;
and when the verification result is that the verification is successful, inquiring a preset database table according to the signature type of each signature keyword to obtain the signature offset configuration information corresponding to each signature keyword.
Optionally, the synthesis module 304 may be further specifically configured to:
respectively retrieving document template data according to the plurality of signature keywords to obtain a plurality of pieces of position information to be signed;
synthesizing a plurality of electronic signature information into document template data based on a plurality of position information to be signed and signature offset configuration information corresponding to each signature keyword to obtain a synthesis result;
When the synthesis result is that the synthesis is successful, obtaining a document template data stream containing the multiparty electronic signature, and carrying out file export operation on the document template data stream containing the multiparty electronic signature to obtain a signed document file;
and acquiring file path information corresponding to the signed document file, and pushing the file path information to the terminal through a preset queue, so that the terminal displays and/or downloads the signed document file according to the file path information.
Optionally, the multiparty electronic signature synthesizing device further comprises:
the reading module 305 is configured to receive a file upload request, and read a document file to be uploaded according to the file upload request, where the document file to be uploaded belongs to a signed document file;
and the uploading module 306 is configured to sequentially encrypt and compress the document file to be uploaded to obtain a compressed document file, and upload the compressed document file to the cloud server.
Optionally, the reading module 305 may be further specifically configured to:
receiving a file uploading request, and analyzing the file uploading request to obtain a file identifier to be uploaded and user identification information;
judging whether the user identification information exists in a preset file uploading authority data table or not;
If the user identification information exists in the preset file uploading authority data table, reading the document file to be uploaded from the preset file configuration data table according to the identifier of the document file to be uploaded, wherein the document file to be uploaded belongs to the signed document file.
In the embodiment of the invention, the security of the transmission of the electronic signature information is improved by encrypting and decrypting the plurality of electronic signature information, the plurality of signature keywords and the signature type of each signature keyword; the server determines corresponding signature offset configuration information according to the signature type of each signature keyword, synthesizes a plurality of pieces of electronic signature information into document template data according to the plurality of signature keywords and the signature offset configuration information, realizes the matching of the electronic signature information and the signature keywords, ensures the accuracy of the signing position of the multiparty electronic signature, and improves the accuracy and the signing efficiency of multiparty electronic signature synthesis.
Fig. 3 and fig. 4 above describe the multiparty electronic signature synthesizing apparatus in the embodiment of the present invention in detail from the viewpoint of modularization, and the multiparty electronic signature synthesizing device in the embodiment of the present invention is described in detail from the viewpoint of hardware processing.
Fig. 5 is a schematic diagram of a multi-party electronic signature synthesis device according to an embodiment of the present invention, where the multi-party electronic signature synthesis device 500 may have a relatively large difference due to different configurations or performances, and may include one or more processors (central processing units, CPU) 510 (e.g., one or more processors) and a memory 520, and one or more storage media 530 (e.g., one or more mass storage devices) storing application programs 533 or data 532. Wherein memory 520 and storage medium 530 may be transitory or persistent storage. The program stored in storage medium 530 may include one or more modules (not shown), each of which may include a series of instruction operations for multiparty electronic signature composition device 500. Still further, the processor 510 may be configured to communicate with the storage medium 530 and execute a series of instruction operations in the storage medium 530 on the multiparty electronic signature composition device 500.
Multiparty electronic signature composition device 500 may also include one or more power supplies 540, one or more wired or wireless network interfaces 550, one or more input/output interfaces 560, and/or one or more operating systems 531, such as Windows Serve, mac OS X, unix, linux, freeBSD, and the like. It will be appreciated by those skilled in the art that the multi-party electronic signature composition device structure shown in fig. 5 does not constitute a limitation of the multi-party electronic signature composition device, and may include more or fewer components than shown, or may combine certain components, or may be arranged in a different arrangement of components.
The present invention also provides a computer readable storage medium, which may be a non-volatile computer readable storage medium, and may also be a volatile computer readable storage medium, where instructions are stored in the computer readable storage medium, when the instructions are executed on a computer, cause the computer to perform the steps of the multiparty electronic signature synthesis method.
The invention also provides a multiparty electronic signature synthesizing device, which comprises a memory and a processor, wherein the memory stores instructions which, when executed by the processor, cause the processor to execute the steps of the multiparty electronic signature synthesizing method in the above embodiments.
Further, the computer-readable storage medium may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created from the use of blockchain nodes, and the like.
The blockchain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, encryption algorithm and the like. The Blockchain (Blockchain), which is essentially a decentralised database, is a string of data blocks that are generated by cryptographic means in association, each data block containing a batch of information of network transactions for verifying the validity of the information (anti-counterfeiting) and generating the next block. The blockchain may include a blockchain underlying platform, a platform product services layer, an application services layer, and the like.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a read-only memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.