CN111832081A - OFD quick signing method - Google Patents

OFD quick signing method Download PDF

Info

Publication number
CN111832081A
CN111832081A CN202010706952.0A CN202010706952A CN111832081A CN 111832081 A CN111832081 A CN 111832081A CN 202010706952 A CN202010706952 A CN 202010706952A CN 111832081 A CN111832081 A CN 111832081A
Authority
CN
China
Prior art keywords
signature
file
ofd
seal
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
CN202010706952.0A
Other languages
Chinese (zh)
Other versions
CN111832081B (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.)
Hangzhou Tiangu Information Technology Co ltd
Original Assignee
Hangzhou Tiangu Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Tiangu Information Technology Co ltd filed Critical Hangzhou Tiangu Information Technology Co ltd
Priority to CN202010706952.0A priority Critical patent/CN111832081B/en
Publication of CN111832081A publication Critical patent/CN111832081A/en
Application granted granted Critical
Publication of CN111832081B publication Critical patent/CN111832081B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Bioethics (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Storage Device Security (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The invention provides an OFD quick signing method, which comprises the following steps: s1, logging in the electronic signature system by the user; s2, selecting an electronic seal for signing, dragging the electronic seal to a specified position, and repeating corresponding operations; s3, clicking to confirm signing, forming a list of signing information and packaging, and submitting the signing information list to a back end for processing; s4, analyzing the signing information list, inquiring and acquiring a specific electronic seal file according to the seal ID, and carrying out OFD signature on an OFD file to be signed; s5, abstracting the signature file, assembling data to be signed in a national secret format, performing electronic signature by using a corresponding digital certificate, assembling signature data in the national secret format, and generating a signature value file; and S6, compressing to generate the signed OFD file. The invention only carries out the hash abstract and the digital signature of all the files once, thereby improving the user experience, and each signature domain uses a real digital signature which accords with the OFD standard.

Description

OFD quick signing method
Technical Field
The invention relates to an electronic signature method, in particular to an OFD quick signature method.
Background
The OFD is a domestic format file, is popularized and popular at present, and is widely used in the fields of the industries such as electronic invoices, file storage, electronic certificates and the like; the corresponding OFD signed scenarios and applications are also increasing. However, OFD signature technology is in the beginning of its work, and a relatively large number of technologies are now applied, namely fixed position single page stamping. The same user may need to stamp multiple locations at different locations on the OFD file; the conventional method is to cover one electronic signature and then cover the next electronic signature until all positions are covered with the electronic signatures.
The main defects are as follows: since each time an electronic signature is applied, all files inside the OFD need to be hashed and then signed repeatedly. The number M of the files in the OFD is related to the page number of the OFD and the elements of the OFD; if the number of OFDs is large, or the number of elements of the OFDs is large, the time for performing hash digest is long; if the seal needs to be carried out at N positions, the hash digests of M files and the signatures of N times need to be repeated for N times, so that the system is often overtime or long-time user waiting is caused, and the experience is very poor;
disclosure of Invention
The invention provides an OFD quick signing method, which solves the efficiency problem that sealing is required to be carried out at a plurality of positions of the same OFD file; and at the same time, to comply with the OFD digital certificate signing standard. The technical scheme is as follows:
an OFD quick signing method comprises the following steps:
s1, logging in the electronic signature system by a user, uploading the OFD file to be signed to the electronic signature system, and displaying a signature page;
s2, selecting the electronic seal for signing, dragging to the appointed position, and repeating the corresponding operation until the electronic seal for signing is placed at all the appointed positions;
s3, clicking to confirm signing, forming a list of signing information and packaging, wherein the signing information comprises signing types, seal IDs and specific positions of falling seals, and submitting the signing information list to a back end for processing;
s4, analyzing a signing information list, inquiring and acquiring a specific electronic seal file according to the seal ID, and carrying out OFD signature on the OFD file to be signed, wherein the OFD signature comprises an entry file Signaturexml, a signature file Signature.xml, a seal file seal.esl and a signature value SignValue.dat described by the signature;
s5, abstracting the signature file Signature.xml, assembling data to be signed in a national-secret format, carrying out electronic signature by using a corresponding digital certificate, assembling signature data in the national-secret format, and generating a signature value file SignValue.dat;
and S6, compressing to generate the signed OFD file.
Further, in step S2, the electronic seal can select a single-page seal, multiple-page seals, or a seal with a perforation.
Further, in step S3, the signature type includes a single page, multiple pages, and a seam, and the specific position includes a specific page number, an abscissa, and an ordinate.
Further, in step S4, the OFD signature includes the steps of:
s11: converting the electronic seal file and the specific positions of the dropped seals into OFD signature appearance StampAnnos, and constructing a list StampAnnos by a plurality of StampAnnos;
s12: decompressing the OFD compressed file, creating or updating an entry point file Signatures.xml described by the signature, creating a signature directory Sign _ N, creating a signature file Signature.xml, and writing the signature file seal.esl;
s13: a signature appearance node stampanot list stampannos is created inside the signature file,
s14: and simultaneously, carrying out file hash abstract on all files protected by the signature in the OFD compressed packet, generating an abstract node list References, and simultaneously writing a security algorithm provider, a signature algorithm and signature time into the files.
Xml defines the binary summary information of all the files protected by the current signature, specifies the appearance of the current signature, stampanot, and defines the node SignValue of the signature value file SignValue.
A digital signature can be associated with 1 or more signature appearances, or can be unassociated; when a plurality of positions need to be electronically signed, the electronic signatures are converted into the appearances of signatures with corresponding numbers, and meanwhile, the digital signatures point to the same, so that the file abstract and the signatures are only needed to be signed once.
The OFD quick signing method only carries out hash digests and digital signatures on all files once, improves user experience, and each signature domain uses a real digital signature, and accords with OFD standards.
Drawings
FIG. 1 is a schematic illustration of a current signature on a PDF document provided by an electronic contract;
FIG. 2 is a schematic diagram of an optimized signature of the present invention;
fig. 3 is an exemplary diagram of an OFD file opened with winrar;
FIG. 4 is a schematic flow chart of an embodiment of the present invention.
Detailed Description
As shown in fig. 1, in the original practice, assuming that 3 chapters need to be signed on a PDF document, OFD stamping needs to be performed three times, and each stamping needs to be performed with a digest of the OFD file and a digital signature. The signature information comprises a signature provider, a signature algorithm, signature time, a file abstract list and signature appearance, and the signature appearance can call a seal file.
As shown in fig. 2, the present invention optimizes the process of multiple signatures, and the optimized method is: and 3-time stamping is changed into 1-time stamping, the abstract and the digital signature of the OFD file are only carried out once, and 3 signature appearances corresponding to the 3-time stamping are converted into three signature appearances in the one-time stamping.
The OFD signature comprises an entry file signature. Xml defines the binary summary information of all the files protected by the current signature, designates the appearance StampAnnot of the current signature (the signature appearance refers to the specific sample presented by an electronic signature and includes information such as the position, page number, horizontal and vertical coordinates, length and width of the signature, and a seal picture of the signature), and defines the node SignValue pointing to the signature value file SignValue.dat of the current signature; one digital signature may or may not be associated with 1 or more signature appearances; when a plurality of positions need to be electronically signed, the electronic signatures are converted into the appearances of signatures with corresponding numbers, and meanwhile, the digital signatures point to the same, so that the file abstract and the signatures are only needed to be signed once.
Therefore, a user needs to stamp at a plurality of positions in one OFD file, such as stamping according to keyword positioning, multi-page stamping, perforation stamping and other scenes, if the positions needing to be stamped have a plurality of positions, multiple Hash abstracts and digital signatures need to be carried out, the flow is blocked due to the Hash abstracts and the signature efficiency, and the user experience is influenced. And the optimized process only carries out hash abstract and digital signature of all files once, so that the user experience is improved, and each signature domain uses a real digital signature and conforms to the OFD standard.
As shown in fig. 4, in a specific embodiment, the method comprises the following steps:
s1, logging in the electronic signature system by a user, uploading the OFD file to be signed to the electronic signature system, and displaying a signature page;
s2, selecting an electronic seal for signing, dragging the electronic seal to a specified position, and selecting a single-page seal, a multi-page seal and a joint seal; repeating the corresponding operation until the electronic seal for signing is placed at all the appointed positions;
and S3, clicking to confirm signing, packaging a list of signing information, wherein the signing information comprises signing types (types comprise single page, multiple pages and seal on the perforation), a seal ID, specific positions (specific page number, abscissa and ordinate) of falling seals and the like, and submitting the signing information list to a back end for processing.
S4, analyzing the signing information list, and inquiring and acquiring the specific electronic seal file (electronic seal data in a national seal format and the length and width of the seal) according to the seal ID. Converting the electronic seal file and the specific position of the seal drop into OFD signature appearance StampAnnot, and constructing a plurality of StampAnnos into a list
StampAnnos. Decompressing OFD compressed file, creating or updating signature description entry point file
Xml, creating a signature directory Sign _ N, creating a signature file signature xml, writing in a seal file seal, creating a signature appearance node StampAnnos list in the signature file, simultaneously performing file hash summarization on all files protected by signatures in an OFD compressed packet, generating a summary node list References, and simultaneously writing a security algorithm provider, a signature algorithm, signature time and the like in the files.
S5, abstracting the signature file Signature.xml, assembling the data to be signed in a national secret format (meeting the digital format requirement of an electronic signature in GBT 38540 and 2020 secure electronic signature password technical specification issued by the national secret agency), carrying out electronic signature by using a corresponding digital certificate, assembling the signature data in the national secret format, and generating a signature value file SignValue.dat.
S6, compressing and generating signed OFD file (though the suffix OFD file is OFD, but actually is a ZIP compressed file, and the compressed file is a stack of XML file and file directory, and fig. 3 is an example of opening OFD file with winrar).

Claims (6)

1. An OFD quick signing method comprises the following steps:
s1, logging in the electronic signature system by a user, uploading the OFD file to be signed to the electronic signature system, and displaying a signature page;
s2, selecting the electronic seal for signing, dragging to the appointed position, and repeating the corresponding operation until the electronic seal for signing is placed at all the appointed positions;
s3, clicking to confirm signing, forming a list of signing information and packaging, wherein the signing information comprises signing types, seal IDs and specific positions of falling seals, and submitting the signing information list to a back end for processing;
s4, analyzing a signing information list, inquiring and acquiring a specific electronic seal file according to the seal ID, and carrying out OFD signature on the OFD file to be signed, wherein the OFD signature comprises an entry file Signaturexml, a signature file Signature.xml, a seal file seal.esl and a signature value SignValue.dat described by the signature;
s5, abstracting the signature file Signature.xml, assembling data to be signed in a national-secret format, carrying out electronic signature by using a corresponding digital certificate, assembling signature data in the national-secret format, and generating a signature value file SignValue.dat;
and S6, compressing to generate the signed OFD file.
2. The OFD quick stick method according to claim 1, wherein: in step S2, the electronic seal can select a single-page seal, multiple-page seals, or a seal with a perforation.
3. The OFD quick stick method according to claim 1, wherein: in step S3, the signature types include single page, multiple pages, and a seam, and the specific position includes a specific page number, abscissa, and ordinate.
4. The OFD quick stick method according to claim 1, wherein: in step S4, the OFD signature includes the steps of:
s11: converting the electronic seal file and the specific positions of the dropped seals into OFD signature appearance StampAnnos, and constructing a list StampAnnos by a plurality of StampAnnos;
s12: decompressing the OFD compressed file, creating or updating an entry point file Signatures.xml described by the signature, creating a signature directory Sign _ N, creating a signature file Signature.xml, and writing the signature file seal.esl;
s13: a signature appearance node stampanot list stampannos is created inside the signature file,
s14: and simultaneously, carrying out file hash abstract on all files protected by the signature in the OFD compressed packet, generating an abstract node list References, and simultaneously writing a security algorithm provider, a signature algorithm and signature time into the files.
5. The OFD quick stick method according to claim 1, wherein: xml defines the binary summary information of all the files protected by the current signature, specifies the appearance of the current signature, stampanot, and defines the node SignValue pointing to the signature value file SignValue.
6. The OFD quick stick method according to claim 5, wherein: a digital signature can be associated with 1 or more signature appearances, or can be unassociated; when a plurality of positions need to be electronically signed, the electronic signatures are converted into the appearances of signatures with corresponding numbers, and meanwhile, the digital signatures point to the same, so that the file abstract and the signatures are only needed to be signed once.
CN202010706952.0A 2020-07-21 2020-07-21 OFD quick signing method Active CN111832081B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010706952.0A CN111832081B (en) 2020-07-21 2020-07-21 OFD quick signing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010706952.0A CN111832081B (en) 2020-07-21 2020-07-21 OFD quick signing method

Publications (2)

Publication Number Publication Date
CN111832081A true CN111832081A (en) 2020-10-27
CN111832081B CN111832081B (en) 2024-05-31

Family

ID=72923969

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010706952.0A Active CN111832081B (en) 2020-07-21 2020-07-21 OFD quick signing method

Country Status (1)

Country Link
CN (1) CN111832081B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112347493A (en) * 2020-11-04 2021-02-09 杭州天谷信息科技有限公司 Encryption, decryption and graying method for OFD (office file)
CN112732649A (en) * 2020-12-21 2021-04-30 航天信息股份有限公司 OFD document signing method, electronic device and medium
CN113541973A (en) * 2021-09-17 2021-10-22 杭州天谷信息科技有限公司 Electronic signature packaging method
CN113781015A (en) * 2021-09-27 2021-12-10 深圳法大大网络科技有限公司 File signing method and device, computer equipment and storage medium
CN114064621A (en) * 2021-10-28 2022-02-18 江苏未至科技股份有限公司 Method for judging repeated data
CN115455492A (en) * 2022-09-30 2022-12-09 百望股份有限公司 OFD file manufacturing method and device
CN116167090A (en) * 2023-04-21 2023-05-26 云筑信息科技(成都)有限公司 Method for batch processing of PDF file electronic signatures based on UKey

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007006122A (en) * 2005-06-23 2007-01-11 Mitsubishi Electric Information Systems Corp Electronic seal system and electronic seal program
WO2008145058A1 (en) * 2007-05-25 2008-12-04 Sursen Corp. An implement method and a device of electronic seal
CN105162594A (en) * 2015-07-31 2015-12-16 飞天诚信科技股份有限公司 Quick signing method and signing device
CN109753826A (en) * 2019-01-25 2019-05-14 杭州天谷信息科技有限公司 The endorsement method and system of dynamic electric stamp
CN109831302A (en) * 2017-11-23 2019-05-31 杭州天谷信息科技有限公司 PDF electronic signature method and system based on national secret algorithm
CN110532812A (en) * 2019-09-02 2019-12-03 江西金格科技股份有限公司 A kind of electronics license warehouse-out method based on OFD form format
CN110532811A (en) * 2019-08-30 2019-12-03 杭州天谷信息科技有限公司 A kind of PDF signature method and PDF sealing system
CN111368335A (en) * 2020-04-01 2020-07-03 北京天威诚信电子商务服务有限公司 Electronic signature method of PDF (Portable document Format) file and electronic signature verification method and system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007006122A (en) * 2005-06-23 2007-01-11 Mitsubishi Electric Information Systems Corp Electronic seal system and electronic seal program
WO2008145058A1 (en) * 2007-05-25 2008-12-04 Sursen Corp. An implement method and a device of electronic seal
CN105162594A (en) * 2015-07-31 2015-12-16 飞天诚信科技股份有限公司 Quick signing method and signing device
CN109831302A (en) * 2017-11-23 2019-05-31 杭州天谷信息科技有限公司 PDF electronic signature method and system based on national secret algorithm
CN109753826A (en) * 2019-01-25 2019-05-14 杭州天谷信息科技有限公司 The endorsement method and system of dynamic electric stamp
CN110532811A (en) * 2019-08-30 2019-12-03 杭州天谷信息科技有限公司 A kind of PDF signature method and PDF sealing system
CN110532812A (en) * 2019-09-02 2019-12-03 江西金格科技股份有限公司 A kind of electronics license warehouse-out method based on OFD form format
CN111368335A (en) * 2020-04-01 2020-07-03 北京天威诚信电子商务服务有限公司 Electronic signature method of PDF (Portable document Format) file and electronic signature verification method and system

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112347493A (en) * 2020-11-04 2021-02-09 杭州天谷信息科技有限公司 Encryption, decryption and graying method for OFD (office file)
CN112732649A (en) * 2020-12-21 2021-04-30 航天信息股份有限公司 OFD document signing method, electronic device and medium
CN112732649B (en) * 2020-12-21 2024-03-12 航天信息股份有限公司 OFD document signing method, electronic equipment and medium
CN113541973A (en) * 2021-09-17 2021-10-22 杭州天谷信息科技有限公司 Electronic signature packaging method
CN113781015A (en) * 2021-09-27 2021-12-10 深圳法大大网络科技有限公司 File signing method and device, computer equipment and storage medium
CN114064621A (en) * 2021-10-28 2022-02-18 江苏未至科技股份有限公司 Method for judging repeated data
CN114064621B (en) * 2021-10-28 2022-07-15 江苏未至科技股份有限公司 Method for judging repeated data
CN115455492A (en) * 2022-09-30 2022-12-09 百望股份有限公司 OFD file manufacturing method and device
CN115455492B (en) * 2022-09-30 2024-02-13 百望股份有限公司 Method and device for manufacturing OFD file
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
CN111832081B (en) 2024-05-31

Similar Documents

Publication Publication Date Title
CN111832081A (en) OFD quick signing method
CN110532811B (en) PDF (Portable document Format) signature method and PDF signature system
CN101702150A (en) Method for protecting, verifying and repealing content of PDF document page
CN109636553B (en) Credential management method, apparatus, computer device and storage medium
CN107908632A (en) Site file processing method, device, site file processing platform and storage medium
CN103347137A (en) Method and device for processing user service handling data
CN116579295B (en) Method for dynamically inserting pages, moving bits and hiding and displaying multi-format file subscription
CN110377762A (en) Information query method, device and computer equipment based on electronics folder
US20100076937A1 (en) Feed processing
CN113627145A (en) Method, device, equipment and medium for generating file of parameterized configuration
CN111625787A (en) OFD-based electronic signature multi-version traceable rapid signature checking method
CN104392197A (en) Method for increasing reading rate and encryption of website two-dimensional code tags
US20200382284A1 (en) Tracking, storage and authentication of documented intellectual property
CN111191263A (en) Pdf electronic signature method and system
CN101562795A (en) Group multimedia messaging service business card application system
CN113704794B (en) Bid file processing method and device in electronic bidding system
CN112862425B (en) Device and technology for reading OFD format file life cycle information
Moon Authentication and security aspect of information privacy using anti-forensic audio–video embedding technique
CN116910820A (en) Data report processing method, device, computer equipment and storage medium
CA2345148C (en) Method for the separate authentication of a template and user data
CN1620060A (en) Integrating browser-incompatible information into web content and method for displaying the information
US20240061912A1 (en) Process and platform for traceability of an attachment generated by a third party from a source document by means of a blockchain system
Andy et al. Simple duplicate frame detection of MJPEG codec for video forensic
CN114239501A (en) Contract generation method, apparatus, device and medium
CN106156625A (en) The method of a kind of plug-in unit signature and electronic equipment

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