CN115859319A - Method, device and storage medium for signing and sealing electronic documents - Google Patents

Method, device and storage medium for signing and sealing electronic documents 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
seal
signature
signing
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

一种电子单据的签字和盖章方法、装置及存储介质Method, device and storage medium for signing and sealing electronic documents

技术领域technical field

本发明涉及数据安全技术领域,具体涉及一种电子单据的签字和盖章方法、装置及存储介质。The invention relates to the technical field of data security, in particular to a method, device and storage medium for signing and sealing electronic documents.

背景技术Background technique

现有技术中,电子单据的签字和盖章不能按照单据的类型自动获取签署位置,导致签字者需要手动查找签字位置,费时费力,且不能签字和签章在一次操作中完成;电子印章一般保存本地的ukey中,安全性相对较低。In the existing technology, the signature and stamping of electronic documents cannot automatically obtain the signing position according to the type of document, causing the signer to manually search for the signing position, which is time-consuming and laborious, and cannot be completed in one operation; electronic seals are generally saved In the local ukey, the security is relatively low.

现有技术中无法实现批量同类型单据的签名及盖章,导致签字者需要重复进行工作,效率低。In the prior art, it is impossible to realize the signature and stamping of batches of the same type of documents, which leads to the need for the signer to repeat the work, and the efficiency is low.

现有技术中,不同签字者的签名图像存在一起,导致安全性较差。In the prior art, signature images of different signers exist together, resulting in poor security.

发明内容Contents of the invention

本发明针对上述现有技术中一个或多个技术缺陷,提出了如下技术方案。In view of one or more technical defects in the above-mentioned prior art, the present invention proposes the following technical solutions.

一种电子单据的签字和盖章方法,该方法包括:A method for signing and sealing an electronic document, the method comprising:

获取步骤,从电子单据数据库中获取未经签字和盖章的电子单据,并获取每一个电子单据的类型标识;The obtaining step is to obtain unsigned and sealed electronic documents from the electronic document database, and obtain the type identification of each electronic document;

聚类步骤,基于电子单据的类型标识将获取的未经签字和盖章的电子单据划分为N个电子单据集合,其中每一个电子单据集合中的电子单据为同一类型,每一个电子单据集中具有M张电子单据,N≥1,M≥1;In the clustering step, based on the type identification of the electronic documents, the obtained unsigned and sealed electronic documents are divided into N electronic document sets, wherein the electronic documents in each electronic document set are of the same type, and each electronic document set has M electronic documents, N≥1, M≥1;

签字步骤,选择第i个电子单据集合中的第j张电子单据,获取签字者的权限,基于签字者的权限和电子单据的类型获取该签字者的签字坐标,基于所述签字坐标在所述电子单据上生成该签字者的电子签名,并将所述电子签名图像进行保存,其中,N≥i≥1,M≥j≥1;In the signing step, select the j-th electronic document in the i-th electronic document set, obtain the authority of the signer, obtain the signature coordinates of the signer based on the authority of the signer and the type of the electronic document, and obtain the signature coordinates of the signer based on the signature coordinates in the Generate the electronic signature of the signer on the electronic document, and save the image of the electronic signature, wherein, N≥i≥1, M≥j≥1;

盖章步骤,基于该电子单据的类型获取盖章坐标及从云服务器中获取该电子单据类型对应的电子印章,基于所述盖章坐标在所述电子单据上生成电子印章,并将所述电子印章图像进行保存;The stamping step is to obtain the seal coordinates based on the type of the electronic document and obtain the electronic seal corresponding to the electronic document type from the cloud server, generate an electronic seal on the electronic document based on the stamp coordinates, and transfer the electronic seal to the electronic document. Save the stamp image;

批处理步骤,判断M-1是否大于0,如果是,对于该第i个电子单据集合中的其余的电子单据基于所述签字坐标和盖章坐标加载保存的电子签名图像和电子印章图像,以完成对其余电子单据的签名和盖章。The batch processing step is to determine whether M-1 is greater than 0, and if so, load the saved electronic signature image and electronic seal image based on the signature coordinates and seal coordinates for the rest of the electronic documents in the i-th electronic document set, to Complete the signing and stamping of the rest of the electronic documents.

更进一步地,获取签字的权限的操作为:签字者登录签字系统时,根据签字者的账号获取对应的签字权限。Furthermore, the operation of obtaining the signing authority is: when the signer logs into the signing system, obtain the corresponding signing authority according to the signer's account.

更进一步地,基于签字者的权限和电子单据的类型获取该签字者的签字坐标的操作为:在电子单据中查找需要签字的所有位置,将签字者的权限与每一个签字位置进行匹配,匹配成功的位置作为签字坐标。Furthermore, the operation of obtaining the signature coordinates of the signer based on the authority of the signer and the type of the electronic document is: find all the positions that need to be signed in the electronic document, match the authority of the signer with each signature position, and match Successful locations serve as signed coordinates.

更进一步地,从云服务器中获取该电子单据类型对应的电子印章的操作为:将所述电子单据的类型标识发送至云服务器,云服务器基于所述类型标识查找对应的电子印章,并将所述电子印章加密后返回。Further, the operation of obtaining the electronic seal corresponding to the electronic document type from the cloud server is: sending the type identification of the electronic document to the cloud server, and the cloud server searches for the corresponding electronic seal based on the type identification, and sends the The above electronic seal is encrypted and returned.

更进一步地,在基于所述盖章坐标在所述电子单据上生成电子印章之后,将电子单据发送至云服务器进行电子印章验证,验证通过则电子盖章有效,否则无效。Furthermore, after the electronic seal is generated on the electronic document based on the seal coordinates, the electronic document is sent to the cloud server for verification of the electronic seal, and if the verification passes, the electronic seal is valid, otherwise it is invalid.

更进一步地,电子印章验证的操作为:将从电子单据中提取电子印章图像与所述云服务器中存储的电子印章图像进行匹配,如果匹配成功,则验证通过,否则,验证不通过。Furthermore, the operation of electronic seal verification is: matching the image of the electronic seal extracted from the electronic document with the image of the electronic seal stored in the cloud server, if the matching is successful, the verification is passed; otherwise, the verification is not passed.

更进一步地,将所述电子签名图像进行保存的操作为:基于所述签名者的权限在内存中开辟一个内存空间,将该内存空间的读写权限设置为该签名者,将电子签名图像加密后存在该内存空间。Further, the operation of saving the electronic signature image is: open up a memory space in the memory based on the authority of the signer, set the read and write authority of the memory space to the signer, and encrypt the electronic signature image After the memory space exists.

更进一步地,将所述电子印章图像进行保存的操作为:判断该内存空间剩余空间是否能够存储该电子印章图像,如果是,则直接将该电子印章图像加密后存储在该内存空间,如果否,调用该签名者的权限对该内存空间进行扩展,扩展后再将该电子印章图像加密后存储在该扩展后的内存空间。Further, the operation of saving the image of the electronic seal is: judging whether the remaining space of the memory space can store the image of the electronic seal, if yes, directly encrypting the image of the electronic seal and storing it in the memory space, if not , calling the authority of the signer to expand the memory space, and after the expansion, the electronic seal image is encrypted and stored in the expanded memory space.

本发明还提出了一种电子单据的签字和盖章装置,该装置包括:The present invention also proposes a device for signing and sealing electronic documents, which device includes:

获取单元,从电子单据数据库中获取未经签字和盖章的电子单据,并获取每一个电子单据的类型标识;The acquiring unit acquires unsigned and sealed electronic documents from the electronic document database, and obtains the type identification of each electronic document;

聚类单元,基于电子单据的类型标识将获取的未经签字和盖章的电子单据划分为N个电子单据集合,其中每一个电子单据集合中的电子单据为同一类型,每一个电子单据集中具有M张电子单据,N≥1,M≥1;The clustering unit divides the obtained unsigned and sealed electronic documents 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, and each electronic document set has M electronic documents, N≥1, M≥1;

签字单元,选择第i个电子单据集合中的第j张电子单据,获取签字者的权限,基于签字者的权限和电子单据的类型获取该签字者的签字坐标,基于所述签字坐标在所述电子单据上生成该签字者的电子签名,并将所述电子签名图像进行保存,其中,N≥i≥1,M≥j≥1;The signing unit selects the j-th electronic document in the i-th electronic document set, obtains the authority of the signer, obtains the signature coordinates of the signer based on the authority of the signer and the type of the electronic document, and based on the signature coordinates in the Generate the electronic signature of the signer on the electronic document, and save the image of the electronic signature, wherein, N≥i≥1, M≥j≥1;

盖章单元,基于该电子单据的类型获取盖章坐标及从云服务器中获取该电子单据类型对应的电子印章,基于所述盖章坐标在所述电子单据上生成电子印章,并将所述电子印章图像进行保存;The stamping unit obtains the seal coordinates based on the type of the electronic document and obtains the electronic seal corresponding to the electronic document type from the cloud server, generates an electronic seal on the electronic document based on the stamp coordinates, and sends the electronic seal to the electronic document. Save the stamp image;

批处理单元,判断M-1是否大于0,如果是,对于该第i个电子单据集合中的其余的电子单据基于所述签字坐标和盖章坐标加载保存的电子签名图像和电子印章图像,以完成对其余电子单据的签名和盖章。The batch processing unit determines whether M-1 is greater than 0, and if so, loads the saved electronic signature image and electronic seal image based on the signature coordinates and seal coordinates for the rest of the electronic documents in the i-th electronic document set, to Complete the signing and stamping of the rest of the electronic documents.

更进一步地,获取签字的权限的操作为:签字者登录签字系统时,根据签字者的账号获取对应的签字权限。Furthermore, the operation of obtaining the signing authority is: when the signer logs into the signing system, obtain the corresponding signing authority according to the signer's account.

更进一步地,基于签字者的权限和电子单据的类型获取该签字者的签字坐标的操作为:在电子单据中查找需要签字的所有位置,将签字者的权限与每一个签字位置进行匹配,匹配成功的位置作为签字坐标。Furthermore, the operation of obtaining the signature coordinates of the signer based on the authority of the signer and the type of the electronic document is: find all the positions that need to be signed in the electronic document, match the authority of the signer with each signature position, and match Successful locations serve as signed coordinates.

更进一步地,从云服务器中获取该电子单据类型对应的电子印章的操作为:将所述电子单据的类型标识发送至云服务器,云服务器基于所述类型标识查找对应的电子印章,并将所述电子印章加密后返回。Further, the operation of obtaining the electronic seal corresponding to the electronic document type from the cloud server is: sending the type identification of the electronic document to the cloud server, and the cloud server searches for the corresponding electronic seal based on the type identification, and sends the The above electronic seal is encrypted and returned.

更进一步地,在基于所述盖章坐标在所述电子单据上生成电子印章之后,将电子单据发送至云服务器进行电子印章验证,验证通过则电子盖章有效,否则无效。Furthermore, after the electronic seal is generated on the electronic document based on the seal coordinates, the electronic document is sent to the cloud server for verification of the electronic seal, and if the verification passes, the electronic seal is valid, otherwise it is invalid.

更进一步地,在基于所述盖章坐标在所述电子单据上生成电子印章之后,将电子单据发送至云服务器进行电子印章验证,验证通过则电子盖章有效,否则无效。Furthermore, after the electronic seal is generated on the electronic document based on the seal coordinates, the electronic document is sent to the cloud server for verification of the electronic seal, and if the verification passes, the electronic seal is valid, otherwise it is invalid.

更进一步地,电子印章验证的操作为:将从电子单据中提取电子印章图像与所述云服务器中存储的电子印章图像进行匹配,如果匹配成功,则验证通过,否则,验证不通过。Furthermore, the operation of electronic seal verification is: matching the image of the electronic seal extracted from the electronic document with the image of the electronic seal stored in the cloud server, if the matching is successful, the verification is passed; otherwise, the verification is not passed.

更进一步地,将所述电子签名图像进行保存的操作为:基于所述签名者的权限在内存中开辟一个内存空间,将该内存空间的读写权限设置为该签名者,将电子签名图像加密后存在该内存空间;Further, the operation of saving the electronic signature image is: open up a memory space in the memory based on the authority of the signer, set the read and write authority of the memory space to the signer, and encrypt the electronic signature image After the memory space exists;

更进一步地,将所述电子印章图像进行保存的操作为:判断该内存空间剩余空间是否能够存储该电子印章图像,如果是,则直接将该电子印章图像加密后存储在该内存空间,如果否,调用该签名者的权限对该内存空间进行扩展,扩展后再将该电子印章图像加密后存储在该扩展后的内存空间。Further, the operation of saving the image of the electronic seal is: judging whether the remaining space of the memory space can store the image of the electronic seal, if yes, directly encrypting the image of the electronic seal and storing it in the memory space, if not , calling the authority of the signer to expand the memory space, and after the expansion, the electronic seal image is encrypted and stored in the expanded memory space.

本发明还提出了一种计算机可读存储介质,所述存储介质上存储有计算机程序代码,当所述计算机程序代码被计算机执行时执行上述之任一的方法。The present invention also proposes a computer-readable storage medium, on which computer program codes are stored, and when the computer program codes are executed by a computer, any one of the above-mentioned methods is executed.

本发明的技术效果在于:本发明的一种电子单据的签字和盖章方法、装置及存储介质,该方法包括:获取步骤S101,从电子单据数据库中获取未经签字和盖章的电子单据,并获取每一个电子单据的类型标识;聚类步骤S102,基于电子单据的类型标识将获取的未经签字和盖章的电子单据划分为N个电子单据集合,其中每一个电子单据集合中的电子单据为同一类型,每一个电子单据集中具有M张电子单据,N≥1,M≥1;签字步骤S103,选择第i个电子单据集合中的第j张电子单据,获取签字者的权限,基于签字者的权限和电子单据的类型获取该签字者的签字坐标,基于所述签字坐标在所述电子单据上生成该签字者的电子签名,并将所述电子签名图像进行保存,其中,N≥i≥1,M≥j≥1;盖章步骤S104,基于该电子单据的类型获取盖章坐标及从云服务器中获取该电子单据类型对应的电子印章,基于所述盖章坐标在所述电子单据上生成电子印章,并将所述电子印章图像进行保存;批处理步骤S105,判断M-1是否大于0,如果是,对于该第i个电子单据集合中的其余的电子单据基于所述签字坐标和盖章坐标加载保存的电子签名图像和电子印章图像,以完成对其余电子单据的签名和盖章。本发明中先将多张待签字和盖章的电子单据根据类型进行聚类,聚类后的每一个集合中的电子单据为同一类型的电子单据,再对其中的任一张电子单据基于签字者的权限和电子单据的类型获取该签字者的签字坐标,基于所述签字坐标在所述电子单据上生成该签字者的电子签名,并将所述电子签名图像进行保存,基于该电子单据的类型获取盖章坐标及从云服务器中获取该电子单据类型对应的电子印章,基于所述盖章坐标在所述电子单据上生成电子印章,并将所述电子印章图像进行保存,最后对该电子单据集合中的其余的电子单据,基于所述签字坐标和盖章坐标加载保存的电子签名图像和电子印章图像,以完成对其余电子单据的签名和盖章,从而提高了电子签名和盖章的效率,且保证了签字和盖章的位置准确无误;本发明中先将多张待签字和盖章的电子单据根据类型进行聚类,聚类后的每一个集合中的电子单据为同一类型的电子单据,再对其中的任一张电子单据基于签字者的权限和电子单据的类型获取该签字者的签字坐标,基于所述签字坐标在所述电子单据上生成该签字者的电子签名,并将所述电子签名图像进行保存,基于该电子单据的类型获取盖章坐标及从云服务器中获取该电子单据类型对应的电子印章,基于所述盖章坐标在所述电子单据上生成电子印章,并将所述电子印章图像进行保存,最后对该电子单据集合中的其余的电子单据,基于所述签字坐标和盖章坐标加载保存的电子签名图像和电子印章图像,以完成对其余电子单据的签名和盖章,从而提高了电子签名和盖章的效率,且保证了签字和盖章的位置准确无误;本发明中,将电子签名及电子印章的图像临时保存在对应的签字者权限开辟的内存空间中,该内存空间只有该签字者的权限访问,如果一张单据有多个签字者,电子印章的图像保存在权限最高的签字者的内存空间中,其余的签字者的电子签名图像对应保存在各自权限对应的内存空间中,这样,确保了各个签字者的电子签名图像的安全性,提高了签字系统的安全性。The technical effect of the present invention lies in: a method, device and storage medium for signing and affixing an electronic document according to the present invention, the method includes: acquiring step S101, obtaining an electronic document that has not been signed and affixed a seal from the electronic document database, And obtain the type identification of each electronic document; clustering step S102, based on the type identification of the electronic document, divide the obtained unsigned and stamped electronic documents into N electronic document sets, wherein the electronic documents in each electronic document set The documents are of the same type, and there are M electronic documents in each electronic document set, N≥1, M≥1; signing step S103, select the j-th electronic document in the i-th electronic document set, and obtain the authority of the signer, based on The authority of the signatory and the type of the electronic document obtain the signature coordinates of the signatory, generate the electronic signature of the signatory on the electronic document based on the signature coordinates, and save the electronic signature image, wherein, N≥ i≥1, M≥j≥1; stamping step S104, based on the type of the electronic document to obtain the seal coordinates and obtain the electronic seal corresponding to the electronic document type from the cloud server, based on the stamp coordinates in the electronic Generate an electronic seal on the document, and save the image of the electronic seal; batch processing step S105, judge whether M-1 is greater than 0, if yes, for the remaining electronic documents in the i-th electronic document set based on the signature Coordinates and seal coordinates Load the saved electronic signature image and electronic seal image to complete the signature and seal of the rest of the electronic documents. In the present invention, multiple electronic documents to be signed and sealed are first clustered according to types, and the electronic documents in each set after clustering are electronic documents of the same type, and then any electronic document among them is based on signature Obtain the signature coordinates of the signer based on the authority of the signer and the type of the electronic document, generate the electronic signature of the signer on the electronic document based on the signature coordinates, and save the electronic signature image, based on the electronic document Type obtains the seal coordinates and obtains the electronic seal corresponding to the electronic document type from the cloud server, generates an electronic seal on the electronic document based on the seal coordinates, and saves the image of the electronic seal, and finally the electronic seal For the remaining electronic documents in the document collection, load the saved electronic signature image and electronic seal image based on the signature coordinates and seal coordinates to complete the signing and sealing of the remaining electronic documents, thereby improving the efficiency of electronic signature and sealing. Efficiency, and ensure that the position of signature and seal is correct; In the present invention, multiple electronic documents to be signed and sealed are clustered according to types, and the electronic documents in each set after clustering are of the same type electronic documents, and then obtain the signer’s signature coordinates for any one of the electronic documents based on the signer’s authority and the type of the electronic document, and generate the signer’s electronic signature on the electronic document based on the signature coordinates, and saving the electronic signature image, obtaining the seal coordinates based on the type of the electronic document and obtaining the electronic seal corresponding to the electronic document type from the cloud server, and generating an electronic seal on the electronic document based on the seal coordinates, And save the electronic seal image, and finally load the saved electronic signature image and electronic seal image based on the signature coordinates and seal coordinates for the rest of the electronic documents in the electronic document collection, so as to complete the rest of the electronic documents signature and seal, thereby improving the efficiency of electronic signature and seal, and ensuring that the position of signature and seal is accurate; in the present invention, the images of electronic signature and electronic seal are temporarily stored in the In the memory space, the memory space can only be accessed by the signer. If a document has multiple signers, the image of the electronic seal is saved in the memory space of the signer with the highest authority, and the electronic signature images of the rest of the signers correspond to It is stored in the memory space corresponding to the respective authority, thus ensuring the security of the electronic signature image of each signer and improving the security of the signature system.

附图说明Description of drawings

通过阅读参照以下附图所作的对非限制性实施例所作的详细描述,本申请的其它特征、目的和优点将会变得更明显。Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings.

图1是根据本发明的实施例的一种电子单据的签字和盖章方法的流程图。Fig. 1 is a flowchart of a method for signing and affixing an electronic document according to an embodiment of the present invention.

图2是根据本发明的实施例的一种电子单据的签字和盖章装置的结构图。Fig. 2 is a structural diagram of a device for signing and affixing an electronic document according to an embodiment of the present invention.

具体实施方式Detailed ways

下面结合附图和实施例对本申请作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释相关发明,而非对该发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与有关发明相关的部分。The application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain related inventions, rather than to limit the invention. It should also be noted that, for the convenience of description, only the parts related to the related invention are shown in the drawings.

需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本申请。It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and embodiments.

图1示出了本发明的一种电子单据的签字和盖章方法,该方法包括:Fig. 1 shows a method for signing and sealing an electronic document of the present invention, the method comprising:

获取步骤S101,从电子单据数据库中获取未经签字和盖章的电子单据,并获取每一个电子单据的类型标识;Obtaining step S101, obtaining unsigned and sealed electronic documents from the electronic document database, and obtaining the type identification of each electronic document;

聚类步骤S102,基于电子单据的类型标识将获取的未经签字和盖章的电子单据划分为N个电子单据集合,其中每一个电子单据集合中的电子单据为同一类型,每一个电子单据集中具有M张电子单据,N≥1,M≥1;Clustering step S102, based on the type identification of the electronic documents, the obtained unsigned and sealed electronic documents are divided into N electronic document sets, wherein the electronic documents in each electronic document set are of the same type, and each electronic document set Have M electronic documents, N≥1, M≥1;

签字步骤S103,选择第i个电子单据集合中的第j张电子单据,获取签字者的权限,基于签字者的权限和电子单据的类型获取该签字者的签字坐标,基于所述签字坐标在所述电子单据上生成该签字者的电子签名,并将所述电子签名图像进行保存,其中,N≥i≥1,M≥j≥1;Signing step S103, select the j-th electronic document in the i-th electronic document set, obtain the authority of the signer, and obtain the signature coordinates of the signer based on the authority of the signer and the type of the electronic document, and based on the signature coordinates in the Generate the electronic signature of the signer on the electronic document, and save the image of the electronic signature, wherein, N≥i≥1, M≥j≥1;

盖章步骤S104,基于该电子单据的类型获取盖章坐标及从云服务器中获取该电子单据类型对应的电子印章,基于所述盖章坐标在所述电子单据上生成电子印章,并将所述电子印章图像进行保存;Stamping step S104: Obtain the seal coordinates based on the type of the electronic document and obtain the electronic seal corresponding to the electronic document type from the cloud server, generate an electronic seal on the electronic document based on the seal coordinates, and send the Save the electronic seal image;

批处理步骤S105,判断M-1是否大于0,如果是,对于该第i个电子单据集合中的其余的电子单据基于所述签字坐标和盖章坐标加载保存的电子签名图像和电子印章图像,以完成对其余电子单据的签名和盖章。Batch processing step S105, judging whether M-1 is greater than 0, if so, loading the saved electronic signature image and electronic seal image based on the signature coordinates and seal coordinates for the remaining electronic documents in the i-th electronic document set, To complete the signature and seal of the rest of the electronic documents.

本发明中先将多张待签字和盖章的电子单据根据类型进行聚类,聚类后的每一个集合中的电子单据为同一类型的电子单据,再对其中的任一张电子单据基于签字者的权限和电子单据的类型获取该签字者的签字坐标,基于所述签字坐标在所述电子单据上生成该签字者的电子签名,并将所述电子签名图像进行保存,基于该电子单据的类型获取盖章坐标及从云服务器中获取该电子单据类型对应的电子印章,基于所述盖章坐标在所述电子单据上生成电子印章,并将所述电子印章图像进行保存,最后对该电子单据集合中的其余的电子单据,基于所述签字坐标和盖章坐标加载保存的电子签名图像和电子印章图像,以完成对其余电子单据的签名和盖章,从而提高了电子签名和盖章的效率,且保证了签字和盖章的位置准确无误,这是本发明的一个重要发明点。In the present invention, multiple electronic documents to be signed and sealed are first clustered according to types, and the electronic documents in each set after clustering are electronic documents of the same type, and then any electronic document among them is based on signature Obtain the signature coordinates of the signer based on the authority of the signer and the type of the electronic document, generate the electronic signature of the signer on the electronic document based on the signature coordinates, and save the electronic signature image, based on the electronic document Type obtains the seal coordinates and obtains the electronic seal corresponding to the electronic document type from the cloud server, generates an electronic seal on the electronic document based on the seal coordinates, and saves the image of the electronic seal, and finally the electronic seal For the remaining electronic documents in the document collection, load the saved electronic signature image and electronic seal image based on the signature coordinates and seal coordinates to complete the signing and sealing of the remaining electronic documents, thereby improving the efficiency of electronic signature and sealing. Efficiency, and ensure that the position of signature and seal is accurate, this is an important invention point of the present invention.

在一个实施例中,获取签字的权限的操作为:签字者登录签字系统时,根据签字者的账号获取对应的签字权限。用户(即签字者)可以通过短信验证码、密码、ukey等验证方式登录签字系统。In one embodiment, the operation of obtaining the signing authority is: when the signer logs into the signing system, obtain the corresponding signing authority according to the account number of the signer. The user (ie the signer) can log in to the signing system through verification methods such as SMS verification code, password, ukey, etc.

在一个实施例中,基于签字者的权限和电子单据的类型获取该签字者的签字坐标的操作为:在电子单据中查找需要签字的所有位置,将签字者的权限与每一个签字位置进行匹配,匹配成功的位置作为签字坐标。比如,在一个电子单据中,存在多个需要签字的位置,即一张单据需要多名人员进行签字,签字位置处的文字表述描述了该签字者的权限,将该文字与签字者的权限进行匹配,匹配成功后将该位置作为签字的坐标进行保存,从而提高了后续电子签名的速度和准确率,这是本发明的另一个重要发明点。In one embodiment, the operation of obtaining the signature coordinates of the signer based on the authority of the signer and the type of the electronic document is as follows: find all the positions that need to be signed in the electronic document, and match the authority of the signer with each signature position , the location of the successful match is used as the signature coordinates. For example, in an electronic document, there are multiple positions that need to be signed, that is, a document requires multiple people to sign, and the text expression at the signature position describes the authority of the signer, and the text and the authority of the signer are combined. Matching, after the matching is successful, save the position as the coordinates of the signature, thereby improving the speed and accuracy of the subsequent electronic signature, which is another important invention point of the present invention.

在一个实施例中,从云服务器中获取该电子单据类型对应的电子印章的操作为:将所述电子单据的类型标识发送至云服务器,云服务器基于所述类型标识查找对应的电子印章,并将所述电子印章加密后返回,电子印章加密返回至签字系统后需要进行解密后使用,本发明中基于单据的类型获取对应的电子印章,从而保证了盖章的准确性,并提高了电子印章加盖的效率,这是本发明的另一个重要发明点。In one embodiment, the operation of obtaining the electronic seal corresponding to the electronic document type from the cloud server is: sending the type identification of the electronic document to the cloud server, and the cloud server searches for the corresponding electronic seal based on the type identification, and The electronic seal is encrypted and returned, and the electronic seal needs to be decrypted and used after being encrypted and returned to the signature system. In the present invention, the corresponding electronic seal is obtained based on the type of the document, thereby ensuring the accuracy of the seal and improving the electronic seal. The efficiency of adding a cover is another important invention point of the present invention.

在一个实施例中,在基于所述盖章坐标在所述电子单据上生成电子印章之后,将电子单据发送至云服务器进行电子印章验证,验证通过则电子盖章有效,否则无效。其中,电子印章验证的操作为:将从电子单据中提取电子印章图像与所述云服务器中存储的电子印章图像进行匹配,如果匹配成功,则验证通过,否则,验证不通过。匹配的方式可以通过卷积神经网络进行匹配或者其他诸如图片匹配的方式进行,本发明中,在加盖电子印章后增加了验证操作,从而防止电子印章在从云服务器返回签字系统的过程中被篡改,提高了电子盖章的安全性,这是本发明的另一个重要发明点。可见,本实施例可以实现电子印章生成及验证一步完成。In one embodiment, after the electronic seal is generated on the electronic document based on the seal coordinates, the electronic document is sent to the cloud server for verification of the electronic seal. If the verification passes, the electronic seal is valid, otherwise it is invalid. Wherein, the operation of the verification of the electronic seal is: matching the image of the electronic seal extracted from the electronic document with the image of the electronic seal stored in the cloud server, if the matching is successful, the verification is passed; otherwise, the verification is not passed. The matching method can be carried out by convolutional neural network or other methods such as picture matching. In the present invention, after the electronic seal is affixed, a verification operation is added to prevent the electronic seal from being returned to the signature system from the cloud server. Tampering improves the security of the electronic seal, which is another important invention point of the present invention. It can be seen that in this embodiment, the generation and verification of the electronic seal can be completed in one step.

在一个实施例中,将所述电子签名图像进行保存的操作为:基于所述签名者的权限在内存中开辟一个内存空间,将该内存空间的读写权限设置为该签名者,将电子签名图像加密后存在该内存空间;将所述电子印章图像进行保存的操作为:判断该内存空间剩余空间是否能够存储该电子印章图像,如果是,则直接将该电子印章图像加密后存储在该内存空间,如果否,调用该签名者的权限对该内存空间进行扩展,扩展后再将该电子印章图像加密后存储在该扩展后的内存空间。In one embodiment, the operation of saving the electronic signature image is: open up a memory space in the memory based on the authority of the signer, set the read and write authority of the memory space to the signer, and save the electronic signature There is this memory space after image encryption; The operation that described electronic seal image is preserved is: judge whether this memory space remaining space can store this electronic seal image, if yes, then store in this internal memory after directly encrypting this electronic seal image space, if not, call the authority of the signer to expand the memory space, and then encrypt the electronic seal image and store it in the expanded memory space.

本发明中,将电子签名及电子印章的图像临时保存在对应的签字者权限开辟的内存空间中,该内存空间只有该签字者的权限访问,如果一张单据有多个签字者,电子印章的图像保存在权限最高的签字者的内存空间中,其余的签字者的电子签名图像对应保存在各自权限对应的内存空间中,这样,确保了各个签字者的电子签名图像的安全性,提高了签字系统的安全性,这是本发明的另一个重要发明点。In the present invention, the images of the electronic signature and the electronic seal are temporarily stored in the memory space opened by the corresponding signer's authority, and the memory space is only accessed by the signer's authority. The image is stored in the memory space of the signer with the highest authority, and the electronic signature images of the rest of the signers are correspondingly stored in the memory space corresponding to their respective authority. In this way, the security of the electronic signature image of each signer is ensured and the signature is improved. The security of system, this is another important invention point of the present invention.

图2示出了本发明的一种电子单据的签字和盖章装置,该装置包括:Fig. 2 shows a device for signing and sealing an electronic document according to the present invention, which device includes:

获取单元201,从电子单据数据库中获取未经签字和盖章的电子单据,并获取每一个电子单据的类型标识;Obtaining unit 201, which acquires unsigned and sealed electronic documents from the electronic document database, and obtains the type identification of each electronic document;

聚类单元202,基于电子单据的类型标识将获取的未经签字和盖章的电子单据划分为N个电子单据集合,其中每一个电子单据集合中的电子单据为同一类型,每一个电子单据集中具有M张电子单据,N≥1,M≥1;The clustering unit 202 divides the acquired unsigned and sealed electronic documents 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, and each electronic document set Have M electronic documents, N≥1, M≥1;

签字单元203,选择第i个电子单据集合中的第j张电子单据,获取签字者的权限,基于签字者的权限和电子单据的类型获取该签字者的签字坐标,基于所述签字坐标在所述电子单据上生成该签字者的电子签名,并将所述电子签名图像进行保存,其中,N≥i≥1,M≥j≥1;The signing unit 203 selects the j-th electronic document in the i-th electronic document set, obtains the authority of the signer, obtains the signature coordinates of the signer based on the authority of the signer and the type of the electronic document, and obtains the signature coordinates of the signer based on the signature coordinates in the electronic document. Generate the electronic signature of the signer on the electronic document, and save the image of the electronic signature, wherein, N≥i≥1, M≥j≥1;

盖章单元204,基于该电子单据的类型获取盖章坐标及从云服务器中获取该电子单据类型对应的电子印章,基于所述盖章坐标在所述电子单据上生成电子印章,并将所述电子印章图像进行保存;The stamping unit 204 obtains stamping coordinates based on the type of the electronic document and obtains the electronic seal corresponding to the electronic document type from the cloud server, generates an electronic seal on the electronic document based on the stamping coordinates, and sends the Save the electronic seal image;

批处理单元205,判断M-1是否大于0,如果是,对于该第i个电子单据集合中的其余的电子单据基于所述签字坐标和盖章坐标加载保存的电子签名图像和电子印章图像,以完成对其余电子单据的签名和盖章。The batch processing unit 205 judges whether M-1 is greater than 0, and if so, loads the saved electronic signature image and electronic seal image based on the signature coordinates and seal coordinates for the remaining electronic documents in the i-th electronic document set, To complete the signature and seal of the rest of the electronic documents.

本发明中先将多张待签字和盖章的电子单据根据类型进行聚类,聚类后的每一个集合中的电子单据为同一类型的电子单据,再对其中的任一张电子单据基于签字者的权限和电子单据的类型获取该签字者的签字坐标,基于所述签字坐标在所述电子单据上生成该签字者的电子签名,并将所述电子签名图像进行保存,基于该电子单据的类型获取盖章坐标及从云服务器中获取该电子单据类型对应的电子印章,基于所述盖章坐标在所述电子单据上生成电子印章,并将所述电子印章图像进行保存,最后对该电子单据集合中的其余的电子单据,基于所述签字坐标和盖章坐标加载保存的电子签名图像和电子印章图像,以完成对其余电子单据的签名和盖章,从而提高了电子签名和盖章的效率,且保证了签字和盖章的位置准确无误,这是本发明的一个重要发明点。In the present invention, multiple electronic documents to be signed and sealed are first clustered according to types, and the electronic documents in each set after clustering are electronic documents of the same type, and then any electronic document among them is based on signature Obtain the signature coordinates of the signer based on the authority of the signer and the type of the electronic document, generate the electronic signature of the signer on the electronic document based on the signature coordinates, and save the electronic signature image, based on the electronic document Type obtains the seal coordinates and obtains the electronic seal corresponding to the electronic document type from the cloud server, generates an electronic seal on the electronic document based on the seal coordinates, and saves the image of the electronic seal, and finally the electronic seal For the remaining electronic documents in the document collection, load the saved electronic signature image and electronic seal image based on the signature coordinates and seal coordinates to complete the signing and sealing of the remaining electronic documents, thereby improving the efficiency of electronic signature and sealing. Efficiency, and ensure that the position of signature and seal is accurate, this is an important invention point of the present invention.

在一个实施例中,为提升传输效率和安全性,通过传输电子印章的唯一码完成电子印章的申请,即:云服务器不必每次都传输电子印章,而是在结算单据注册时,先从云服务器申请电子印章的唯一码,然后存放在电子单据里面,每次签署时,传输该唯一码即可。In one embodiment, in order to improve the 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 registering the settlement document, firstly from the cloud The server applies for the unique code of the electronic seal, and then stores it in the electronic document, and transmits the unique code every time it is signed.

在一个实施例中,获取签字的权限的操作为:签字者登录签字系统时,根据签字者的账号获取对应的签字权限。用户(即签字者)可以通过短信验证码、密码、ukey等验证方式登录签字系统。In one embodiment, the operation of obtaining the signing authority is: when the signer logs into the signing system, obtain the corresponding signing authority according to the account number of the signer. The user (ie the signer) can log in to the signing system through verification methods such as SMS verification code, password, ukey, etc.

在一个实施例中,基于签字者的权限和电子单据的类型获取该签字者的签字坐标的操作为:在电子单据中查找需要签字的所有位置,将签字者的权限与每一个签字位置进行匹配,匹配成功的位置作为签字坐标。比如,在一个电子单据中,存在多个需要签字的位置,即一张单据需要多名人员进行签字,签字位置处的文字表述描述了该签字者的权限,将该文字与签字者的权限进行匹配,匹配成功后将该位置作为签字的坐标进行保存,从而提高了后续电子签名的速度和准确率,这是本发明的另一个重要发明点。In one embodiment, the operation of obtaining the signature coordinates of the signer based on the authority of the signer and the type of the electronic document is as follows: find all the positions that need to be signed in the electronic document, and match the authority of the signer with each signature position , the location of the successful match is used as the signature coordinates. For example, in an electronic document, there are multiple positions that need to be signed, that is, a document requires multiple people to sign, and the text expression at the signature position describes the authority of the signer, and the text and the authority of the signer are combined. Matching, after the matching is successful, save the position as the coordinates of the signature, thereby improving the speed and accuracy of the subsequent electronic signature, which is another important invention point of the present invention.

在一个实施例中,从云服务器中获取该电子单据类型对应的电子印章的操作为:将所述电子单据的类型标识发送至云服务器,云服务器基于所述类型标识查找对应的电子印章,并将所述电子印章加密后返回,电子印章加密返回至签字系统后需要进行解密后使用,本发明中基于单据的类型获取对应的电子印章,从而保证了盖章的准确性,并提高了电子印章加盖的效率,这是本发明的另一个重要发明点。In one embodiment, the operation of obtaining the electronic seal corresponding to the electronic document type from the cloud server is: sending the type identification of the electronic document to the cloud server, and the cloud server searches for the corresponding electronic seal based on the type identification, and The electronic seal is encrypted and returned, and the electronic seal needs to be decrypted and used after being encrypted and returned to the signature system. In the present invention, the corresponding electronic seal is obtained based on the type of the document, thereby ensuring the accuracy of the seal and improving the electronic seal. The efficiency of adding a cover is another important invention point of the present invention.

在一个实施例中,在基于所述盖章坐标在所述电子单据上生成电子印章之后,将电子单据发送至云服务器进行电子印章验证,验证通过则电子盖章有效,否则无效。其中,电子印章验证的操作为:将从电子单据中提取电子印章图像与所述云服务器中存储的电子印章图像进行匹配,如果匹配成功,则验证通过,否则,验证不通过。匹配的方式可以通过卷积神经网络进行匹配或者其他诸如图片匹配的方式进行,本发明中,在加盖电子印章后增加了验证操作,从而防止电子印章在从云服务器返回签字系统的过程中被篡改,提高了电子盖章的安全性,这是本发明的另一个重要发明点。In one embodiment, after the electronic seal is generated on the electronic document based on the seal coordinates, the electronic document is sent to the cloud server for verification of the electronic seal. If the verification passes, the electronic seal is valid, otherwise it is invalid. Wherein, the operation of the verification of the electronic seal is: matching the image of the electronic seal extracted from the electronic document with the image of the electronic seal stored in the cloud server, if the matching is successful, the verification is passed; otherwise, the verification is not passed. The matching method can be carried out by convolutional neural network or other methods such as picture matching. In the present invention, after the electronic seal is affixed, a verification operation is added to prevent the electronic seal from being returned to the signature system from the cloud server. Tampering improves the security of the electronic seal, which is another important invention point of the present invention.

在一个实施例中,将所述电子签名图像进行保存的操作为:基于所述签名者的权限在内存中开辟一个内存空间,将该内存空间的读写权限设置为该签名者,将电子签名图像加密后存在该内存空间;将所述电子印章图像进行保存的操作为:判断该内存空间剩余空间是否能够存储该电子印章图像,如果是,则直接将该电子印章图像加密后存储在该内存空间,如果否,调用该签名者的权限对该内存空间进行扩展,扩展后再将该电子印章图像加密后存储在该扩展后的内存空间。In one embodiment, the operation of saving the electronic signature image is: open up a memory space in the memory based on the authority of the signer, set the read and write authority of the memory space to the signer, and save the electronic signature There is this memory space after image encryption; The operation that described electronic seal image is preserved is: judge whether this memory space remaining space can store this electronic seal image, if yes, then store in this internal memory after directly encrypting this electronic seal image space, if not, call the authority of the signer to expand the memory space, and then encrypt the electronic seal image and store it in the expanded memory space.

本发明中,将电子签名及电子印章的图像临时保存在对应的签字者权限开辟的内存空间中,该内存空间只有该签字者的权限访问,如果一张单据有多个签字者,电子印章的图像保存在权限最高的签字者的内存空间中,其余的签字者的电子签名图像对应保存在各自权限对应的内存空间中,这样,确保了各个签字者的电子签名图像的安全性,提高了签字系统的安全性,这是本发明的另一个重要发明点。In the present invention, the images of the electronic signature and the electronic seal are temporarily stored in the memory space opened by the corresponding signer's authority, and the memory space is only accessed by the signer's authority. The image is stored in the memory space of the signer with the highest authority, and the electronic signature images of the rest of the signers are correspondingly stored in the memory space corresponding to their respective authority. In this way, the security of the electronic signature image of each signer is ensured and the signature is improved. The security of system, this is another important invention point of the present invention.

本发明一个实施例中提出了一种计算机存储介质,所述计算机存储介质上存储有计算机程序,当所述计算机存储介质上的计算机程序被处理器执行时实现上述的方法,该计算机存储介质可以是硬盘、DVD、CD、闪存等等存储器。One embodiment of the present invention proposes a computer storage medium, on which a computer program is stored, and when the computer program on the computer storage medium is executed by a processor, the above-mentioned method is realized, and the computer storage medium can It is hard disk, DVD, CD, flash memory and so on.

本发明的为了描述的方便,描述以上装置时以功能分为各种单元分别描述。当然,在实施本申请时可以把各单元的功能在同一个或多个软件和/或硬件中实现。For the convenience of description in the present invention, when describing the above devices, the functions are divided into various units and described separately. Of course, when implementing the present application, the functions of each unit can be implemented in one or more pieces of software and/or hardware.

通过以上的实施方式的描述可知,本领域的技术人员可以清楚地了解到本申请可借助软件加必需的通用硬件平台的方式来实现。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例或者实施例的某些部分所述的装置。It can be known from the above description of the implementation manners that those skilled in the art can clearly understand that the present application can be implemented by means of software plus a necessary general-purpose hardware platform. Based on this understanding, the essence of the technical solution of this application or the part that contributes to the prior art can be embodied in the form of software products, and the computer software products can be stored in storage media, such as ROM/RAM, disk , optical disc, etc., including several instructions to enable a computer device (which may be a personal computer, server, or network device, etc.) to execute the apparatus described in various embodiments or some parts of the embodiments of the present application.

最后所应说明的是:以上实施例仅以说明而非限制本发明的技术方案,尽管参照上述实施例对本发明进行了详细说明,本领域的普通技术人员应当理解:依然可以对本发明进行修改或者等同替换,而不脱离本发明的精神和范围的任何修改或局部替换,其均应涵盖在本发明的权利要求范围当中。Finally, it should be noted that: the above embodiments are only to illustrate and not limit the technical solutions of the present invention, although the present invention has been described in detail with reference to the above embodiments, those of ordinary skill in the art should understand that: the present invention can still be modified or Any modification or partial replacement without departing from the spirit and scope of the present invention shall fall within the scope of the claims of the present invention.

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 山东鲁能软件技术有限公司 A method and system for generating electronic documents and electronic signatures 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 山东鲁能软件技术有限公司 A method and system for generating electronic documents and electronic signatures 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
CN108810006B (en) Resource access method, device, equipment and storage medium
US20210037270A1 (en) System and techniques for digital data lineage verification
CN109784922B (en) Electronic contract signing method, electronic contract signing device, computer equipment and storage medium
US11700113B2 (en) Audit result data storage method and device, audit result data query method and device, and audit item storage method and device
CN101241569B (en) Electronic signature method and device and system
CN109614825B (en) Contract signing method, contract signing device, computer equipment and storage medium
CN111415158B (en) Wind control method and system based on block chain
CN111314172B (en) Block chain-based data processing method, device, equipment and storage medium
CN107342867A (en) Signature sign test method and apparatus
CN107453874B (en) Digital seal and generation method thereof, service request and providing method and electronic equipment
CN110826091B (en) File signature method and device, electronic equipment and readable storage medium
CN107342866A (en) Electronic document verification method, equipment and system
CN112800477A (en) Data encryption and decryption system and method based on biological characteristic value
CN115859319B (en) Electronic bill signing and stamping method, device and storage medium
CN115248919A (en) Method and device for calling function interface, electronic equipment and storage medium
CN114222288A (en) Equipment identifier generation method, equipment identifier verification method and device
CN117171185B (en) Logistics data changing method and related equipment based on industrial identification
US20220164794A1 (en) Method of verifying identity for a computerized account, computing device, and storage medium
CN110602051A (en) Information processing method based on consensus protocol and related device
CN111539728B (en) Method for realizing anonymization identity verification based on computer software
CN116015846A (en) Identity authentication method, device, computer equipment and storage medium
TWM637891U (en) Electronic contract signature system and contract processing server
CN113781015A (en) File signing method and device, computer equipment and storage medium
CN114329030A (en) Information processing method and device, computer equipment and storage medium
CN113313540A (en) Contract generation method and device, electronic equipment and readable storage medium

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