CN111832081B - OFD quick signing method - Google Patents
OFD quick signing method Download PDFInfo
- Publication number
- CN111832081B CN111832081B CN202010706952.0A CN202010706952A CN111832081B CN 111832081 B CN111832081 B CN 111832081B CN 202010706952 A CN202010706952 A CN 202010706952A CN 111832081 B CN111832081 B CN 111832081B
- 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.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/64—Protecting 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, a user logs in an electronic signature system; s2, selecting an electronic seal for signing, dragging the electronic seal to a designated position, and repeating corresponding operations; s3, clicking to confirm signing, packaging a signing information forming list, and submitting the signing information list to a rear 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 signing on the OFD file to be signed; s5, abstracting the signature file, assembling the data to be signed in the national cryptographic format, carrying out electronic signature by using the corresponding digital certificate, assembling the signature data in the national cryptographic format, and generating a signed value file; s6, compressing to generate the signed OFD file. The invention only carries out all file hash digests and digital signatures once, improves user experience, uses real digital signatures for each signature domain and accords with the OFD standard.
Description
Technical Field
The invention relates to an electronic signature method, in particular to an OFD quick signature method.
Background
OFD is a domestic format file, and has been gradually popularized and popular at present, and the format file has been widely used in the fields of industries such as electronic invoice, archival storage, electronic license, electronic contract and the like; the corresponding OFD signature is also increasingly used in the field. However, the OFD signature technique is still in the start phase, and a relatively large number of techniques are currently used to seal a single page at a fixed position. The same user may need to perform stamping of multiple locations at different locations on top of the OFD file; the existing practice is to cover one electronic signature and then cover the next until all positions are covered with the electronic signature.
The main defects are as follows: since the electronic signature is applied once, it is necessary to repeatedly hash all files in the OFD and then sign the hashed digest. The number M of the files in the OFD is related to the number of pages of the OFD and the elements of the OFD; if the number of OFD pages is large or the number of OFD elements is large, the hash digest time is longer; if stamping is required at N positions, the hash digests of M files and the signature of N times are required to be repeated for N times, so that the system is always overtime or long-time user waiting is caused, and the experience is poor;
Disclosure of Invention
The invention provides an OFD quick signing method, which solves the problem of efficiency of stamping at a plurality of positions of the same OFD file; and at the same time, the problem of conforming to the OFD digital certificate signature standard is solved. The technical scheme is as follows:
an OFD shortcut signature method comprises the following steps:
s1, a user logs in an electronic signature system, an OFD file to be signed is uploaded to the electronic signature system, and a signing page is displayed;
S2, selecting the electronic seal for signing, dragging the electronic seal to a designated position, and repeating corresponding operation until the electronic seal for signing is placed at all the designated positions;
s3, clicking to confirm signing, packaging a signing information forming list, wherein the signing information comprises signing types, seal IDs and specific positions of seal falling, and submitting the signing information list to a rear end for processing;
S4, analyzing the signing information list, inquiring according to the stamp ID to obtain a specific electronic stamp file, and carrying out OFD signing on the OFD file to be signed, wherein the OFD signing comprises an entry file signature. Xml, a signature file signature. Xml, a stamp file seal. Est, a signature value sign value. Dat of signature description;
S5, abstracting signature file signature.xml, assembling the data to be signed in a national cryptographic format, carrying out electronic signature by using a corresponding digital certificate, assembling the signature data in the national cryptographic format, and generating a signature value file SignValue.
S6, compressing to generate the signed OFD file.
Further, in step S2, the electronic seal may select a single-page seal, a multi-page seal, and a saddle-stitch seal.
Further, in step S3, the signature type includes a single page, multiple pages, and a saddle stitch, and the specific position includes a specific page number, an abscissa, and an ordinate.
Further, in step S4, the OFD signature includes the following steps:
s11: converting the specific positions of the electronic seal file and the seal falling file into an OFD signature appearance StampAnnot, and constructing a list StampAnnots by a plurality of StampAnnot;
S12: decompressing the OFD compressed file, creating or updating an entry point file signature. Xml of the signature description, creating a signature catalog sign_N, creating a signature file signature. Xml, and writing a seal file seal.
S13: a list StampAnnots of signature appearance nodes StampAnnot is created inside the signature file,
S14: and simultaneously, carrying out file hash digest on all files protected by signature in the OFD compressed package to generate a digest node list REFERENCES, and simultaneously writing a security algorithm provider, a signature algorithm and signature time into the files.
Further, in step S4, signature file signature.xml defines binary digest information of all files protected by the present signature, designates appearance StampAnnot of the present signature, and defines node SignValue pointing to signature value file sign value.
One digital signature may or may not be associated with 1 or more signature appearances; when a plurality of positions need to be signed, the electronic signatures are converted into corresponding signature appearances, and meanwhile, the digital signatures point to the same signature, so that the document abstract and the signature are only needed to be processed once.
The OFD shortcut signature method only performs all file hash digests and digital signatures once, improves user experience, uses real digital signatures for each signature domain and accords with the OFD standard.
Drawings
FIG. 1 is a schematic diagram of a signature currently 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 invention.
Detailed Description
As shown in fig. 1, assuming that 3 chapters are required to be signed on a PDF document, OFD sealing needs to be performed three times, and the digest of the OFD file and the digital signature need to be performed every time the sealing. The signature information includes a signature provider, a signature algorithm, a signature time, a list of file digests, a signature appearance, which invokes the stamp file.
As shown in fig. 2, the method optimizes the process of a plurality of signatures, and the optimized method comprises the following steps: 3 times of stamping are changed into 1 time of stamping, the abstract and the digital signature of the OFD file are only carried out once, and 3 signature appearances corresponding to the 3 times of stamping are converted into three signature appearances in one time of stamping.
The OFD signature consists of an entry file signature. Xml, a signature file signature. Xml, a seal file seal. Est and a signature value signature. Dat of a signature description. Signature file signature.xml defines binary summary information of all files protected by the signature, designates appearance StampAnnot of the signature (signature appearance refers to the specific appearance presented by the electronic signature and comprises the information of the position, page number, abscissa, length and width of the signature, stamp picture of the signature and the like), and defines node SignValue pointing to signature value file sign value. A digital signature may or may not be associated with 1 or more signature appearances; when a plurality of positions need to be signed, the electronic signatures are converted into corresponding signature appearances, and meanwhile, the digital signatures point to the same signature, so that the document abstract and the signature are only needed to be processed once.
Therefore, the user needs to seal a plurality of positions in one OFD file, such as sealing according to keyword positioning, multi-page sealing, saddle joint sealing and other scenes, and if the positions needing to seal are provided with a plurality of positions, the user needs to perform hash abstract and digital signature for a plurality of times, and the problems of hash abstract and signature efficiency lead to flow blockage and influence on user experience. And the optimized flow only carries out all file hash digests and digital signatures once, so that the user experience is improved, and each signature domain uses a real digital signature, thereby conforming to the OFD standard.
As shown in fig. 4, in a specific embodiment, the method comprises the following steps:
s1, a user logs in an electronic signature system, an OFD file to be signed is uploaded to the electronic signature system, and a signing page is displayed;
S2, selecting an electronic seal for signing, dragging the electronic seal to a designated position, and selecting a single-page seal, a multi-page seal and a saddle stitch seal; repeating the corresponding operation until the electronic seal for signing is placed at all the appointed positions;
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 saddle stitch chapters), seal IDs, specific positions (specific page numbers, abscissas and ordinates) of the falling chapters and the like, and submitting the signing information list to a back end for processing.
S4, analyzing the signed information list, and inquiring according to the seal ID to obtain a specific electronic seal file (the electronic seal data in the national seal format and the length and width of the seal). Converting the specific positions of the electronic seal file and the seal falling file into an OFD signature appearance StampAnnot, and constructing a list by a plurality of StampAnnot
StampAnnots. Decompressing OFD compressed files, creating or updating entry point files for signature descriptions
Signature. Xml, creating signature catalog sign_n, creating signature file signature. Xml, writing into seal file seal. Est, creating signature appearance node StampAnnot list StampAnnots in the signature file, simultaneously performing file hash digest on all files protected by signature in the OFD compression package, generating digest node list REFERENCES, and simultaneously writing the security algorithm provider, signature algorithm, signature time and the like into the files.
S5, abstracting signature file signature.xml, assembling to-be-signed data in a national secret format (to meet the digital format requirement about electronic signature in GBT 38540-2020 safety electronic signature password technical Specification issued by the national institutes), performing electronic signature by using a corresponding digital certificate, assembling signature data in the national secret format, and generating a signed value file SignValue.
S6, compressing to generate a signed OFD file (the suffix of the OFD file is OFD, but is actually a ZIP compressed file, and the compressed file is decompressed to form a stack of XML files and file directories, and FIG. 3 is an example of opening the OFD file by winrar).
Claims (6)
1. An OFD shortcut signature method comprises the following steps:
s1, a user logs in an electronic signature system, an OFD file to be signed is uploaded to the electronic signature system, and a signing page is displayed;
S2, selecting the electronic seal for signing, dragging the electronic seal to a designated position, and repeating corresponding operation until the electronic seal for signing is placed at all the designated positions;
s3, clicking to confirm signing, packaging a signing information forming list, wherein the signing information comprises signing types, seal IDs and specific positions of seal falling, and submitting the signing information list to a rear end for processing;
s4, analyzing the signing information list, inquiring according to the stamp ID to obtain a specific electronic stamp file, and carrying out OFD signing on the OFD file to be signed, wherein the OFD signing comprises an entry file signature. Xml, a signature file signature. Xml, a stamp file seal. Est, and a signature value file signature. Dat of signature description;
S5, the electronic signature system carries out hash digest on signature file signature.xml, assembles data to be signed in a national cipher format, carries out electronic signature by using a corresponding digital certificate, assembles signature data in the national cipher format, and generates a signature value file SignValue.
S6, the electronic signature system compresses and generates a signed OFD file.
2. The OFD shortcut signature method as in claim 1, wherein: in step S2, the electronic seal may select a single-page seal, a multi-page seal, and a saddle seal.
3. The OFD shortcut signature method as in claim 1, wherein: in step S3, the signing type includes a single page, multiple pages, and a saddle stitch, and the specific position includes a specific page number, an abscissa, and an ordinate.
4. The OFD shortcut signature method as in claim 1, wherein: in step S4, the OFD signature includes the steps of:
s11: converting the specific positions of the electronic seal file and the seal falling file into an OFD signature appearance StampAnnot, and constructing a list StampAnnots by a plurality of StampAnnot;
s12: decompressing the OFD compressed file, creating or updating an entry file signature. Xml of the signature description, creating a signature catalog sign_N, creating a signature file signature. Xml, and writing a seal file seal.
S13: a node list StampAnnots of signature appearances StampAnnot is created inside the signature file,
S14: and simultaneously, carrying out file hash digest on all files protected by signature in the OFD compressed file to generate a digest node list REFERENCES, and simultaneously writing a security algorithm provider, a signature algorithm and signature time into the signature file.
5. The OFD shortcut signature method as in claim 1, wherein: in step S4, signature file signature.xml defines binary digest information of all files protected by the present signature, designates the appearance StampAnnot of the present signature, and defines a node SignValue pointing to the signature value file sign value.
6. The OFD shortcut signature method as set forth in claim 5, wherein: one digital signature may or may not be associated with 1 or more signature appearances; when a plurality of positions need to be signed, the electronic signatures are converted into corresponding signature appearances, and meanwhile, the digital signatures point to the same signature, so that the document abstract and the signature are only needed to be processed once.
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 CN111832081A (en) | 2020-10-27 |
| CN111832081B true 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) |
Families Citing this family (11)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112347493A (en) * | 2020-11-04 | 2021-02-09 | 杭州天谷信息科技有限公司 | A kind of OFD document encryption and decryption and de-encryption and graying method |
| CN112732649B (en) * | 2020-12-21 | 2024-03-12 | 航天信息股份有限公司 | OFD document signing method, electronic equipment and medium |
| CN113541973B (en) * | 2021-09-17 | 2021-12-21 | 杭州天谷信息科技有限公司 | Electronic signature packaging method |
| CN113781015A (en) * | 2021-09-27 | 2021-12-10 | 深圳法大大网络科技有限公司 | File signing method and device, computer equipment and storage medium |
| CN114064621B (en) * | 2021-10-28 | 2022-07-15 | 江苏未至科技股份有限公司 | Method for judging repeated data |
| CN114021203A (en) * | 2021-10-28 | 2022-02-08 | 卓望数码技术(深圳)有限公司 | Electronic signature method, electronic device and storage medium |
| CN115271836A (en) * | 2022-07-11 | 2022-11-01 | 中铁程科技有限责任公司 | Electronic invoice generation method, system, equipment and medium for railway electronic passenger ticket |
| CN115455492B (en) * | 2022-09-30 | 2024-02-13 | 百望股份有限公司 | Method and device for manufacturing OFD file |
| CN116167090B (en) * | 2023-04-21 | 2023-08-22 | 云筑信息科技(成都)有限公司 | Method for batch processing of PDF file electronic signatures based on UKey |
| CN119376846B (en) * | 2024-12-31 | 2025-04-22 | 中金金融认证中心有限公司 | OFD document saddle-seal signing method, device, electronic device and storage medium |
| CN120105492B (en) * | 2025-05-08 | 2025-07-29 | 杭州天谷信息科技有限公司 | PDF (Portable document Format) signature method and system for preventing seal from being copied |
Citations (8)
| 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 |
-
2020
- 2020-07-21 CN CN202010706952.0A patent/CN111832081B/en active Active
Patent Citations (8)
| 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 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN111832081A (en) | 2020-10-27 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111832081B (en) | OFD quick signing method | |
| CN106599321B (en) | Plug-in for generation and analysis of DWG file annotation and signature and use method thereof | |
| JP4949269B2 (en) | Method and apparatus for adding signature information to an electronic document | |
| CN101702150A (en) | Method for protecting, verifying and repealing content of PDF document page | |
| CN110598460B (en) | Block chain-based electronic signature method and device and storage medium | |
| CN111611440B (en) | Method for rapidly improving OFD signature, signature and verification | |
| CN112328565B (en) | Method and device for sharing resources based on blockchain | |
| US11791985B2 (en) | Tracking, storage and authentication of documented intellectual property | |
| CN113627145A (en) | Method, device, equipment and medium for generating file of parameterized configuration | |
| CN109636553B (en) | Credential management method, apparatus, computer device and storage medium | |
| CN115086048B (en) | Data processing method, device, electronic equipment and readable storage medium | |
| CN113704794B (en) | Bid file processing method and device in electronic bidding system | |
| CN114386103B (en) | Secret information hiding method, secret information extraction method and transmission system | |
| CN102004762B (en) | Generate the method and apparatus of e-book and download the method and apparatus of e-book | |
| CN101118558A (en) | Resource file conversion method and device | |
| CN112862425B (en) | Device and technology for reading OFD format file life cycle 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 | |
| CN111191295A (en) | Unordered electronic signature method under PDF file | |
| Moon | Authentication and security aspect of information privacy using anti-forensic audio–video embedding technique | |
| CN209401021U (en) | An Electronic Evidence Fixing System | |
| US20230221987A1 (en) | Control method, non-transitory computer-readable recording medium storing control program, and information processing device | |
| CN102316385A (en) | User operating device, system and method for realizing programming | |
| CN113743959A (en) | Method for verifying OFD electronic invoice signature, computer device and computer readable storage medium | |
| CN115454939A (en) | Method for stamping additional page of OFD format file after stamping | |
| CN114039967A (en) | A file transmission method, device, device and 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 |