CN115859319A - Signing and sealing method and device for electronic document and storage medium - Google Patents

Signing and sealing method and device for electronic document and storage medium Download PDF

Info

Publication number
CN115859319A
CN115859319A CN202211372556.4A CN202211372556A CN115859319A CN 115859319 A CN115859319 A CN 115859319A CN 202211372556 A CN202211372556 A CN 202211372556A CN 115859319 A CN115859319 A CN 115859319A
Authority
CN
China
Prior art keywords
electronic
electronic document
signing
seal
signature
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202211372556.4A
Other languages
Chinese (zh)
Other versions
CN115859319B (en
Inventor
张伟宁
来骥
郭恒涛
郑然�
李宁杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BEIJING BRON S&T Ltd
State Grid Corp of China SGCC
Original Assignee
BEIJING BRON S&T Ltd
State Grid Corp of China SGCC
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by BEIJING BRON S&T Ltd, State Grid Corp of China SGCC filed Critical BEIJING BRON S&T Ltd
Priority to CN202211372556.4A priority Critical patent/CN115859319B/en
Publication of CN115859319A publication Critical patent/CN115859319A/en
Application granted granted Critical
Publication of CN115859319B publication Critical patent/CN115859319B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Storage Device Security (AREA)

Abstract

The invention provides a signing and sealing method, a device and a storage medium of an electronic document, wherein the method comprises the following steps: acquiring electronic documents which are not signed and sealed from an electronic document database, and acquiring type identification of each electronic document; dividing the obtained electronic documents which are not signed and sealed into N electronic document sets based on the type identification of the electronic documents; selecting the jth electronic document in the ith electronic document set, acquiring the authority of a signer, acquiring signature coordinates and stamping coordinates of the signer, generating an electronic signature of the signer on the electronic document based on the signature coordinates, generating an electronic seal on the electronic document based on the stamping coordinates, and loading the stored electronic signature image and electronic seal image on the rest of the electronic documents based on the signature coordinates and the stamping coordinates so as to finish signing and stamping the rest of the electronic documents. The efficiency and the security of signature seal have been improved.

Description

Signing and sealing method and device for electronic document and storage medium
Technical Field
The invention relates to the technical field of data security, in particular to a signing and sealing method and device for an electronic document and a storage medium.
Background
In the prior art, the signature and seal of the electronic document can not automatically acquire the signature position according to the type of the document, so that a signer needs to manually search the signature position, time and labor are wasted, and the signature and seal can not be completed in one operation; electronic seals are generally stored locally in ukey, and the security is relatively low.
In the prior art, the signature and the seal of the same type of documents in batches cannot be realized, so that a signer needs to repeatedly work, and the efficiency is low.
In the prior art, signature images of different signatories exist together, so that the security is poor.
Disclosure of Invention
The present invention proposes the following technical solutions to address one or more technical defects in the prior art.
A method of signing and sealing an electronic document, the method comprising:
an acquisition step, acquiring electronic documents which are not signed or stamped from an electronic document database, and acquiring the type identifier of each electronic document;
a clustering step, namely dividing the obtained electronic documents which are not signed and sealed into N electronic document sets based on the type identification of the electronic documents, wherein the electronic documents in each electronic document set are of the same type, M electronic documents are contained in each electronic document set, and N is more than or equal to 1,M and is more than or equal to 1;
signing, namely selecting a jth electronic document in an ith electronic document set, acquiring the authority of a signatory, acquiring the signing coordinate of the signatory based on the authority of the signatory and the type of the electronic document, generating an electronic signature of the signatory on the electronic document based on the signing coordinate, and storing an electronic signature image, wherein N is more than or equal to i and more than or equal to 1,M and more than or equal to j and more than or equal to 1;
a stamping step, namely acquiring a stamping coordinate based on the type of the electronic document, acquiring an electronic seal corresponding to the type of the electronic document from a cloud server, generating an electronic seal on the electronic document based on the stamping coordinate, and storing an image of the electronic seal;
and a batch processing step, namely judging whether the M-1 is larger than 0, and if so, loading the stored electronic signature image and electronic seal image on the other electronic documents in the ith electronic document set based on the signature coordinate and the stamping coordinate so as to finish the signature and stamping of the other electronic documents.
Further, the operation of acquiring the authority of signature is: and when the signatory logs in the signing system, the corresponding signing authority is obtained according to the account number of the signatory.
Further, the operation of obtaining the signing coordinates of the signatory based on the authority of the signatory and the type of the electronic document is: and searching all positions needing signing in the electronic document, matching the authority of the signatory with each signing position, and taking the successfully matched position as a signing coordinate.
Furthermore, the operation of obtaining the electronic seal corresponding to the electronic document type from the cloud server is as follows: and sending the type identifier of the electronic document to a cloud server, searching a corresponding electronic seal by the cloud server based on the type identifier, encrypting the electronic seal and returning the encrypted electronic seal.
Furthermore, after the electronic seal is generated on the electronic document based on the stamping coordinate, the electronic document is sent to a cloud server for electronic seal verification, if the verification is passed, the electronic stamping is valid, otherwise, the electronic stamping is invalid.
Furthermore, the electronic seal verification operation is as follows: and matching the electronic seal image extracted from the electronic document with the electronic seal image stored in the cloud server, wherein if the matching is successful, the verification is passed, and otherwise, the verification is not passed.
Further, the operation of saving the electronic signature image is as follows: and opening up a memory space in the memory based on the authority of the signer, setting the read-write authority of the memory space as the signer, and encrypting the electronic signature image to store the electronic signature image in the memory space.
Further, the operation of saving the electronic seal image is as follows: and judging whether the residual space of the memory space can store the electronic seal image, if so, directly encrypting the electronic seal image and storing the encrypted electronic seal image in the memory space, if not, calling the authority of the signer to expand the memory space, and encrypting the electronic seal image and storing the encrypted electronic seal image in the expanded memory space.
The invention also provides a signing and sealing device of the electronic document, which comprises:
the acquisition unit is used for acquiring electronic documents which are not signed and sealed from the electronic document database and acquiring the type identifier of each electronic document;
the clustering unit is used for dividing the obtained electronic documents without signature and seal into N electronic document sets based on the type identification of the electronic documents, wherein the electronic documents in each electronic document set are of the same type, M electronic documents are contained in each electronic document set, and N is more than or equal to 1,M and is more than or equal to 1;
the signing unit is used for selecting the jth electronic document in the ith electronic document set, acquiring the authority of a signatory, acquiring the signing coordinate of the signatory based on the authority of the signatory and the type of the electronic document, generating the electronic signature of the signatory on the electronic document based on the signing coordinate, and storing the electronic signature image, wherein N is more than or equal to i and more than or equal to 1,M and more than or equal to j and more than or equal to 1;
the stamping unit is used for acquiring stamping coordinates based on the type of the electronic document, acquiring an electronic stamp corresponding to the type of the electronic document from the cloud server, generating an electronic stamp on the electronic document based on the stamping coordinates, and storing an image of the electronic stamp;
and the batch processing unit is used for judging whether the M-1 is larger than 0, and if so, loading the stored electronic signature image and the electronic seal image on the rest electronic documents in the ith electronic document set based on the signature coordinate and the stamping coordinate so as to finish signing and stamping the rest electronic documents.
Further, the operation of acquiring the authority of signature is: and when the signatory logs in the signing system, the corresponding signing authority is obtained according to the account number of the signatory.
Further, the operation of acquiring the signing coordinates of the signatory based on the authority of the signatory and the type of the electronic document is as follows: and searching all positions needing signing in the electronic document, matching the authority of the signatory with each signing position, and taking the successfully matched position as a signing coordinate.
Further, the operation of obtaining the electronic seal corresponding to the electronic document type from the cloud server is as follows: and sending the type identifier of the electronic document to a cloud server, searching a corresponding electronic seal by the cloud server based on the type identifier, encrypting the electronic seal and returning the encrypted electronic seal.
Furthermore, after the electronic seal is generated on the electronic document based on the stamping coordinate, the electronic document is sent to a cloud server for electronic seal verification, if the verification is passed, the electronic stamping is valid, otherwise, the electronic stamping is invalid.
Furthermore, after the electronic seal is generated on the electronic document based on the stamping coordinate, the electronic document is sent to a cloud server for electronic seal verification, if the verification is passed, the electronic stamping is valid, otherwise, the electronic stamping is invalid.
Furthermore, the electronic seal verification operation is as follows: and matching the electronic seal image extracted from the electronic document with the electronic seal image stored in the cloud server, wherein if the matching is successful, the verification is passed, and otherwise, the verification is not passed.
Further, the operation of saving the electronic signature image is: opening up a memory space in the memory based on the authority of the signer, setting the read-write authority of the memory space as the signer, and encrypting the electronic signature image to store the electronic signature image in the memory space;
further, the operation of saving the electronic seal image is as follows: and judging whether the residual space of the memory space can store the electronic seal image, if so, directly encrypting the electronic seal image and storing the encrypted electronic seal image in the memory space, if not, calling the authority of the signer to expand the memory space, and encrypting the electronic seal image and storing the encrypted electronic seal image in the expanded memory space.
The invention also proposes a computer-readable storage medium having stored thereon computer program code which, when executed by a computer, performs any of the methods described above.
The invention has the technical effects that: the invention discloses a signing and sealing method, a device and a storage medium of an electronic document, wherein the method comprises the following steps: an acquisition step S101, acquiring electronic documents without signature and seal from an electronic document database, and acquiring type identification of each electronic document; a clustering step S102, dividing the obtained electronic documents which are not signed and sealed into N electronic document sets based on the type identification of the electronic documents, wherein the electronic documents in each electronic document set are of the same type, M electronic documents are contained in each electronic document set, and N is more than or equal to 1,M and more than or equal to 1; a signing step S103, selecting the jth electronic document in the ith electronic document set, acquiring the authority of a signer, acquiring signing coordinates of the signer based on the authority of the signer and the type of the electronic document, generating an electronic signature of the signer on the electronic document based on the signing coordinates, and storing an electronic signature image, wherein N is more than or equal to i and more than or equal to 1,M and more than or equal to j and more than or equal to 1; a stamping step S104, acquiring a stamping coordinate based on the type of the electronic document, acquiring an electronic seal corresponding to the type of the electronic document from a cloud server, generating an electronic seal on the electronic document based on the stamping coordinate, and storing an image of the electronic seal; and a batch processing step S105, judging whether the M-1 is larger than 0, if so, loading the stored electronic signature image and electronic seal image on the basis of the signature coordinate and the stamping coordinate for the rest electronic documents in the ith electronic document set so as to finish the signature and the stamping of the rest electronic documents. Firstly, clustering a plurality of electronic documents to be signed and stamped according to types, wherein the electronic documents in each clustered set are the same type of electronic documents, then obtaining signature coordinates of a signer of any one of the electronic documents based on the authority of the signer and the type of the electronic document, generating an electronic signature of the signer on the electronic documents based on the signature coordinates, storing an electronic signature image, obtaining stamping coordinates based on the type of the electronic documents and obtaining an electronic seal corresponding to the type of the electronic documents from a cloud server, generating an electronic seal on the electronic documents based on the stamping coordinates, storing the electronic seal image, and finally loading the stored electronic signature image and the stored electronic seal image on the basis of the signature coordinates and the stamping coordinates for finishing the signing and stamping of the other electronic documents, so that the efficiency of the electronic signature and the stamping is improved, and the accurate signature and stamping positions are ensured; firstly, clustering a plurality of electronic documents to be signed and stamped according to types, wherein the electronic documents in each clustered set are the same type of electronic documents, then obtaining signature coordinates of a signer of any one of the electronic documents based on the authority of the signer and the type of the electronic document, generating an electronic signature of the signer on the electronic documents based on the signature coordinates, storing an electronic signature image, obtaining stamping coordinates based on the type of the electronic documents and obtaining an electronic seal corresponding to the type of the electronic documents from a cloud server, generating an electronic seal on the electronic documents based on the stamping coordinates, storing the electronic seal image, and finally loading the stored electronic signature image and the stored electronic seal image on the basis of the signature coordinates and the stamping coordinates for finishing the signing and stamping of the other electronic documents, so that the efficiency of the electronic signature and the stamping is improved, and the accurate signature and stamping positions are ensured; in the invention, the electronic signature and the image of the electronic seal are temporarily stored in the memory space opened up by the corresponding signatory authority, the memory space is only accessed by the signatory, if one document has a plurality of signatories, the image of the electronic seal is stored in the memory space of the signatory with the highest authority, and the electronic signature images of the rest signatories are correspondingly stored in the memory spaces corresponding to the respective authorities, thereby ensuring the security of the electronic signature images of the signatories and improving the security of the signing system.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings.
Fig. 1 is a flow chart of a method of signing and sealing an electronic document according to an embodiment of the present invention.
Fig. 2 is a block diagram of a signing and sealing apparatus for electronic documents according to an embodiment of the present invention.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the present invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
Fig. 1 shows a method of signing and sealing an electronic document of the invention, the method comprising:
an acquisition step S101, acquiring electronic documents without signature and seal from an electronic document database, and acquiring type identification of each electronic document;
a clustering step S102, dividing the obtained electronic documents which are not signed and sealed into N electronic document sets based on the type identification of the electronic documents, wherein the electronic documents in each electronic document set are of the same type, M electronic documents are contained in each electronic document set, and N is more than or equal to 1,M and more than or equal to 1;
a signing step S103, selecting the jth electronic document in the ith electronic document set, acquiring the authority of a signer, acquiring the signature coordinates of the signer based on the authority of the signer and the type of the electronic document, generating the electronic signature of the signer on the electronic document based on the signature coordinates, and storing the electronic signature image, wherein N is more than or equal to i and more than or equal to 1,M and more than or equal to j and more than or equal to 1;
a stamping step S104, acquiring a stamping coordinate based on the type of the electronic document, acquiring an electronic seal corresponding to the type of the electronic document from a cloud server, generating an electronic seal on the electronic document based on the stamping coordinate, and storing an image of the electronic seal;
and a batch processing step S105, judging whether M-1 is larger than 0, if so, loading the stored electronic signature image and electronic seal image for the rest electronic documents in the ith electronic document set based on the signature coordinate and the stamping coordinate so as to finish the signature and stamping of the rest electronic documents.
The invention firstly clusters a plurality of electronic documents to be signed and stamped according to types, the electronic documents in each clustered set are electronic documents of the same type, then any one of the electronic documents obtains signing coordinates of a signer based on the authority of the signer and the type of the electronic document, an electronic signature of the signer is generated on the electronic document based on the signing coordinates, the electronic signature image is stored, stamping coordinates are obtained based on the type of the electronic document and an electronic seal corresponding to the type of the electronic document is obtained from a cloud server, an electronic seal is generated on the electronic document based on the stamping coordinates, the electronic seal image is stored, and finally the stored electronic signature image and electronic seal image are loaded based on the signing coordinates and stamping coordinates for completing the signing and stamping of the other electronic documents in the electronic document set, so that the electronic signature and stamping efficiency is improved, and the stamping positions of signing and stamping are guaranteed to be accurate.
In one embodiment, the operation of obtaining the right to sign is: and when the signatory logs in the signing system, the corresponding signing authority is obtained according to the account number of the signatory. The user (i.e., the signatory) can log in the signing system through verification modes such as a short message verification code, a password, a ukey and the like.
In one embodiment, the operation of obtaining the signing coordinates of the signatory based on the authority of the signatory and the type of the electronic document is: and searching all positions needing signing in the electronic document, matching the authority of the signatory with each signing position, and taking the successfully matched position as a signing coordinate. For example, in an electronic document, there are multiple positions to be signed, that is, a document needs multiple persons to sign, the words in the signing position describe the authority of the signer, the words are matched with the authority of the signer, and the position is stored as the coordinate of the signature after the matching is successful, so that the speed and accuracy of the subsequent electronic signature are improved.
In one embodiment, the operation of obtaining the electronic seal corresponding to the electronic document type from the cloud server is as follows: the type identification of the electronic document is sent to the cloud server, the cloud server searches for the corresponding electronic seal based on the type identification, the electronic seal is encrypted and then returned, the electronic seal is encrypted and returned to the signing system and then needs to be decrypted and used, and the corresponding electronic seal is obtained based on the type of the document, so that the stamping accuracy is guaranteed, and the stamping efficiency of the electronic seal is improved.
In one embodiment, after an electronic seal is generated on the electronic document based on the stamping coordinate, the electronic document is sent to a cloud server for electronic seal verification, if the electronic seal is verified, the electronic seal is valid, and if the electronic seal is not verified, the electronic seal is invalid. The electronic seal verification operation comprises the following steps: and matching the electronic seal image extracted from the electronic document with the electronic seal image stored in the cloud server, wherein if the matching is successful, the verification is passed, and otherwise, the verification is not passed. The matching mode can be matched through a convolutional neural network or other modes such as picture matching, and in the invention, verification operation is added after the electronic seal is stamped, so that the electronic seal is prevented from being tampered in the process of returning to a signature system from a cloud server, and the safety of the electronic seal is improved, which is another important invention point of the invention. Therefore, the electronic seal generation and verification can be completed in one step.
In one embodiment, the operation of saving the electronic signature image is: opening up a memory space in the memory based on the authority of the signer, setting the read-write authority of the memory space as the signer, and encrypting the electronic signature image to store the electronic signature image in the memory space; the operation of storing the electronic seal image is as follows: and judging whether the residual space of the memory space can store the electronic seal image, if so, directly encrypting the electronic seal image and storing the encrypted electronic seal image in the memory space, if not, calling the authority of the signer to expand the memory space, and encrypting the electronic seal image and storing the encrypted electronic seal image in the expanded memory space.
In the invention, the electronic signature and the image of the electronic seal are temporarily stored in the memory space opened up by the corresponding signatory authority, the memory space is only accessed by the signatory, if a document has a plurality of signatories, the image of the electronic seal is stored in the memory space of the signatory with the highest authority, and the electronic signature images of the rest signatories are correspondingly stored in the memory spaces corresponding to the respective authorities, thereby ensuring the security of the electronic signature images of the signatories and improving the security of a signature system, which is another important invention point of the invention.
Fig. 2 shows a signing and sealing apparatus for an electronic document of the present invention, the apparatus comprising:
the acquiring unit 201 is used for acquiring electronic documents which are not signed and sealed from an electronic document database, and acquiring the type identifier of each electronic document;
the clustering unit 202 is used for dividing the obtained electronic documents without signature and seal into N electronic document sets based on the type identification of the electronic documents, wherein the electronic documents in each electronic document set are of the same type, M electronic documents are contained in each electronic document set, and N is more than or equal to 1,M and is more than or equal to 1;
the signing unit 203 selects the jth electronic document in the ith electronic document set, acquires the authority of a signer, acquires the signing coordinate of the signer based on the authority of the signer and the type of the electronic document, generates the electronic signature of the signer on the electronic document based on the signing coordinate, and stores the electronic signature image, wherein N is more than or equal to i and more than or equal to 1,M and more than or equal to j and more than or equal to 1;
the stamping unit 204 is used for acquiring stamping coordinates based on the type of the electronic document, acquiring an electronic seal corresponding to the type of the electronic document from a cloud server, generating an electronic seal on the electronic document based on the stamping coordinates, and storing an image of the electronic seal;
and the batch processing unit 205 judges whether the M-1 is greater than 0, and if so, loads the stored electronic signature image and electronic seal image to the rest electronic documents in the ith electronic document set based on the signature coordinate and the stamping coordinate to complete the signature and stamping of the rest electronic documents.
The invention firstly clusters a plurality of electronic documents to be signed and stamped according to types, the electronic documents in each clustered set are the same type of electronic documents, then any one of the electronic documents obtains signing coordinates of a signer based on the authority of the signer and the type of the electronic document, an electronic signature of the signer is generated on the electronic document based on the signing coordinates, an electronic signature image is stored, stamping coordinates are obtained based on the type of the electronic document, an electronic seal corresponding to the type of the electronic document is obtained from a cloud server, an electronic seal is generated on the electronic document based on the stamping coordinates, the electronic seal image is stored, finally, the stored electronic signature image and the stored electronic seal image are loaded based on the signing coordinates and the stamping coordinates, so that the signing and stamping of the other electronic documents are completed, the efficiency of electronic signature and stamping is improved, and the accurate signing and stamping positions are ensured.
In one embodiment, in order to improve transmission efficiency and security, the application of the electronic seal is completed by transmitting the unique code of the electronic seal, that is: the cloud server does not need to transmit the electronic seal every time, but when the settlement document is registered, the cloud server applies for the unique code of the electronic seal first, then the unique code is stored in the electronic document, and the unique code is transmitted every time the settlement document is signed.
In one embodiment, the operation of obtaining the right to sign is: and when the signatory logs in the signing system, the corresponding signing authority is obtained according to the account number of the signatory. The user (i.e., the signatory) can log in the signing system through verification modes such as a short message verification code, a password, a ukey and the like.
In one embodiment, the operation of obtaining the signing coordinates of the signatory based on the authority of the signatory and the type of the electronic document is: and searching all positions needing signing in the electronic document, matching the authority of the signatory with each signing position, and taking the successfully matched position as a signing coordinate. For example, in an electronic document, there are multiple positions to be signed, that is, a document needs multiple persons to sign, the words in the signing position describe the authority of the signer, the words are matched with the authority of the signer, and the position is stored as the coordinate of the signature after the matching is successful, so that the speed and accuracy of the subsequent electronic signature are improved.
In one embodiment, the operation of obtaining the electronic seal corresponding to the electronic document type from the cloud server is as follows: the type identification of the electronic document is sent to the cloud server, the cloud server searches for the corresponding electronic seal based on the type identification, the electronic seal is encrypted and then returned, the electronic seal is encrypted and returned to the signing system and then needs to be decrypted and used, and the corresponding electronic seal is obtained based on the type of the document, so that the stamping accuracy is guaranteed, and the stamping efficiency of the electronic seal is improved.
In one embodiment, after an electronic seal is generated on the electronic document based on the stamping coordinate, the electronic document is sent to a cloud server for electronic seal verification, if the electronic seal is verified, the electronic seal is valid, and if the electronic seal is not verified, the electronic seal is invalid. The electronic seal verification operation comprises the following steps: and matching the electronic seal image extracted from the electronic document with the electronic seal image stored in the cloud server, wherein if the matching is successful, the verification is passed, and otherwise, the verification is not passed. The matching mode can be matched through a convolutional neural network or other modes such as picture matching, and in the invention, verification operation is added after the electronic seal is stamped, so that the electronic seal is prevented from being tampered in the process of returning to a signature system from a cloud server, and the safety of the electronic seal is improved, which is another important invention point of the invention.
In one embodiment, the operation of saving the electronic signature image is: opening up a memory space in the memory based on the authority of the signer, setting the read-write authority of the memory space as the signer, and encrypting the electronic signature image to store the electronic signature image in the memory space; the operation of storing the electronic seal image is as follows: and judging whether the residual space of the memory space can store the electronic seal image, if so, directly encrypting the electronic seal image and storing the encrypted electronic seal image in the memory space, if not, calling the authority of the signer to expand the memory space, and encrypting the electronic seal image and storing the encrypted electronic seal image in the expanded memory space.
In the invention, the electronic signature and the image of the electronic seal are temporarily stored in the memory space opened up by the corresponding signatory authority, the memory space is only accessed by the signatory authority, if a document has a plurality of signatories, the image of the electronic seal is stored in the memory space of the signatory with the highest authority, and the electronic signature images of the rest signatories are correspondingly stored in the memory spaces corresponding to the respective authorities, so that the security of the electronic signature images of the signatories is ensured, and the security of a signature system is improved, which is another important invention point of the invention.
An embodiment of the present invention provides a computer storage medium, on which a computer program is stored, which when executed by a processor implements the above-mentioned method, and the computer storage medium can be a hard disk, a DVD, a CD, a flash memory, or the like.
For convenience of description, the above devices are described as being divided into various units for separate description. Of course, the functionality of the various elements may be implemented in the same one or more pieces of software and/or hardware in the practice of the present application.
From the above description of the embodiments, it is clear to those skilled in the art that the present application can be implemented by software plus a necessary general hardware platform. Based on such understanding, the technical solutions of the present application may be essentially implemented or the portions that contribute to the prior art may be embodied in the form of a software product, which may be stored in a storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the apparatuses described in the embodiments or some portions of the embodiments of the present application.
Finally, it should be noted that: although the present invention has been described in detail with reference to the above embodiments, it should be understood by those skilled in the art that: modifications and equivalents may be made thereto without departing from the spirit and scope of the invention and it is intended to cover in the claims the invention any modifications and equivalents.

Claims (10)

1. A method of signing and sealing an electronic document, the method comprising:
an acquisition step, acquiring electronic documents which are not signed or stamped from an electronic document database, and acquiring the type identifier of each electronic document;
a clustering step, namely dividing the obtained electronic documents which are not signed and sealed into N electronic document sets based on the type identification of the electronic documents, wherein the electronic documents in each electronic document set are of the same type, M electronic documents are contained in each electronic document set, and N is more than or equal to 1,M and is more than or equal to 1;
signing, namely selecting a jth electronic document in an ith electronic document set, acquiring the authority of a signatory, acquiring the signing coordinate of the signatory based on the authority of the signatory and the type of the electronic document, generating an electronic signature of the signatory on the electronic document based on the signing coordinate, and storing an electronic signature image, wherein N is more than or equal to i and more than or equal to 1,M and more than or equal to j and more than or equal to 1;
a stamping step, namely acquiring a stamping coordinate based on the type of the electronic document, acquiring an electronic stamp corresponding to the type of the electronic document from a cloud server, generating an electronic stamp on the electronic document based on the stamping coordinate, and storing an image of the electronic stamp;
and a batch processing step, namely judging whether the M-1 is larger than 0, and if so, loading the stored electronic signature image and electronic seal image on the other electronic documents in the ith electronic document set based on the signature coordinate and the stamping coordinate so as to finish the signature and stamping of the other electronic documents.
2. Method according to claim 1, characterized in that the operation of obtaining the right to sign is: and when the signatory logs in the signing system, the corresponding signing authority is obtained according to the account number of the signatory.
3. A method as claimed in claim 2, characterized in that the operation of obtaining the signing coordinates of the signatory on the basis of the authority of the signatory and the type of electronic document is: and searching all positions needing signing in the electronic document, matching the authority of the signatory with each signing position, and taking the successfully matched position as a signing coordinate.
4. The method according to claim 3, wherein the operation of obtaining the electronic seal corresponding to the electronic document type from the cloud server comprises: and sending the type identifier of the electronic document to a cloud server, searching a corresponding electronic seal by the cloud server based on the type identifier, encrypting the electronic seal and returning the encrypted electronic seal.
5. The method according to claim 4, characterized in that after generating an electronic seal on the electronic document based on the stamping coordinates, the electronic document is sent to a cloud server for electronic seal verification, if the verification is passed, the electronic stamping is valid, otherwise, the electronic stamping is invalid;
the electronic seal verification operation comprises the following steps: matching the electronic seal image extracted from the electronic document with the electronic seal image stored in the cloud server, if the matching is successful, the verification is passed, otherwise, the verification is not passed;
the operation of saving the electronic signature image is as follows: opening up a memory space in the memory based on the authority of the signer, setting the read-write authority of the memory space as the signer, and encrypting the electronic signature image to store the electronic signature image in the memory space;
the operation of storing the electronic seal image is as follows: and judging whether the residual space of the memory space can store the electronic seal image, if so, directly encrypting the electronic seal image and storing the encrypted electronic seal image in the memory space, if not, calling the authority of the signer to expand the memory space, and encrypting the electronic seal image and storing the encrypted electronic seal image in the expanded memory space.
6. A device for signing and sealing an electronic document, the device comprising:
the acquisition unit is used for acquiring electronic documents which are not signed and sealed from the electronic document database and acquiring the type identifier of each electronic document;
the clustering unit is used for dividing the obtained electronic documents without signature and seal into N electronic document sets based on the type identification of the electronic documents, wherein the electronic documents in each electronic document set are of the same type, M electronic documents are contained in each electronic document set, and N is more than or equal to 1,M and is more than or equal to 1;
the signing unit is used for selecting the jth electronic document in the ith electronic document set, acquiring the authority of a signer, acquiring signing coordinates of the signer based on the authority of the signer and the type of the electronic document, generating an electronic signature of the signer on the electronic document based on the signing coordinates, and storing an electronic signature image, wherein N is more than or equal to i and more than or equal to 1,M and more than or equal to j and more than or equal to 1;
the stamping unit is used for acquiring stamping coordinates based on the type of the electronic document, acquiring an electronic stamp corresponding to the type of the electronic document from the cloud server, generating an electronic stamp on the electronic document based on the stamping coordinates, and storing an image of the electronic stamp;
and the batch processing unit is used for judging whether the M-1 is larger than 0, and if so, loading the stored electronic signature image and electronic seal image on the basis of the signature coordinate and the seal coordinate for the rest electronic documents in the ith electronic document set so as to finish the signature and seal of the rest electronic documents.
7. The apparatus of claim 6, wherein the act of obtaining the right to sign is: when a signatory logs in a signing system, acquiring corresponding signing authority according to an account number of the signatory; the operation of acquiring the signing coordinates of the signatory based on the authority of the signatory and the type of the electronic document is as follows: and searching all positions needing signing in the electronic document, matching the authority of the signatory with each signing position, and taking the successfully matched position as a signing coordinate.
8. The apparatus according to claim 7, wherein the operation of obtaining the electronic seal corresponding to the electronic document type from the cloud server is: and sending the type identification of the electronic document to a cloud server, searching a corresponding electronic seal by the cloud server based on the type identification, and returning the electronic seal after encrypting the electronic seal.
9. The apparatus according to claim 8, wherein after generating an electronic seal on the electronic document based on the stamping coordinates, the electronic document is sent to a cloud server for electronic seal verification, and if the verification is passed, the electronic stamping is valid, otherwise the electronic stamping is invalid.
10. A computer storage medium having a computer program stored thereon, the computer program on the computer storage medium, when executed by a processor, implementing the method of any of claims 1-5.
CN202211372556.4A 2022-11-02 2022-11-02 Electronic bill signing and stamping method, device and storage medium Active CN115859319B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211372556.4A CN115859319B (en) 2022-11-02 2022-11-02 Electronic bill signing and stamping method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211372556.4A CN115859319B (en) 2022-11-02 2022-11-02 Electronic bill signing and stamping method, device and storage medium

Publications (2)

Publication Number Publication Date
CN115859319A true CN115859319A (en) 2023-03-28
CN115859319B CN115859319B (en) 2024-08-20

Family

ID=85662470

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211372556.4A Active CN115859319B (en) 2022-11-02 2022-11-02 Electronic bill signing and stamping method, device and storage medium

Country Status (1)

Country Link
CN (1) CN115859319B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116167090A (en) * 2023-04-21 2023-05-26 云筑信息科技(成都)有限公司 Method for batch processing of PDF file electronic signatures based on UKey

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110532811A (en) * 2019-08-30 2019-12-03 杭州天谷信息科技有限公司 A kind of PDF signature method and PDF sealing system
CN110942284A (en) * 2019-11-22 2020-03-31 山东鲁能软件技术有限公司 Method and system for generating electronic document and electronic signature based on Ftp

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110532811A (en) * 2019-08-30 2019-12-03 杭州天谷信息科技有限公司 A kind of PDF signature method and PDF sealing system
CN110942284A (en) * 2019-11-22 2020-03-31 山东鲁能软件技术有限公司 Method and system for generating electronic document and electronic signature based on Ftp

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张喜健;: "票据制在企业安全管理中的创新运用", 新疆钢铁, no. 03, 15 September 2007 (2007-09-15), pages 54 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116167090A (en) * 2023-04-21 2023-05-26 云筑信息科技(成都)有限公司 Method for batch processing of PDF file electronic signatures based on UKey
CN116167090B (en) * 2023-04-21 2023-08-22 云筑信息科技(成都)有限公司 Method for batch processing of PDF file electronic signatures based on UKey

Also Published As

Publication number Publication date
CN115859319B (en) 2024-08-20

Similar Documents

Publication Publication Date Title
CN109660356B (en) Data uplink method, device, equipment and computer readable storage medium
CN106790156B (en) Intelligent device binding method and device
CN110457945B (en) List query method, query party device, service party device and storage medium
CN109614825B (en) Contract signing method, contract signing device, computer equipment and storage medium
CN113472720B (en) Digital certificate key processing method, device, terminal equipment and storage medium
CN112367164B (en) Service request processing method and device, computer equipment and storage medium
CN111275448A (en) Face data processing method and device and computer equipment
CN109754322A (en) A kind of data service system
CN115859319A (en) Signing and sealing method and device for electronic document and storage medium
CN115514492A (en) BIOS firmware verification method, device, server, storage medium and program product
WO2024187903A1 (en) Did-based payment method and apparatus, readable storage medium, and electronic device
CN114386058A (en) Model file encryption and decryption method and device
CN108965335B (en) Method for preventing malicious access to login interface, electronic device and computer medium
CN110399706A (en) Authorization and authentication method, device and computer system
CN113407968B (en) Encryption method, device, equipment and storage medium of target detection model
CN115967537A (en) Block chain-based power grid service data storage method and system
CN112732676B (en) Block chain-based data migration method, device, equipment and storage medium
CN115378609A (en) Electronic certificate display method, verification method, terminal and server
CN114239004A (en) Electronic signature generation method and device, computer equipment and storage medium
CN110717157B (en) User authentication method, device, computer equipment and storage medium
CN110599386B (en) Identity authentication method, device, storage medium and computer equipment
CN115129229A (en) Information storage method, device, storage medium and device
CN112380577A (en) Multiparty-supported electronic contract repeated signing method and device and computer equipment
CN114338060A (en) Authority verification method, device, system, equipment and storage medium
CN111539728A (en) Method for realizing anonymization identity verification based on computer software

Legal Events

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