CN111931139A - Method for realizing position fine adjustment during electronic signature adding based on format document support - Google Patents

Method for realizing position fine adjustment during electronic signature adding based on format document support Download PDF

Info

Publication number
CN111931139A
CN111931139A CN202010683723.1A CN202010683723A CN111931139A CN 111931139 A CN111931139 A CN 111931139A CN 202010683723 A CN202010683723 A CN 202010683723A CN 111931139 A CN111931139 A CN 111931139A
Authority
CN
China
Prior art keywords
signature
data
document
fine adjustment
format document
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.)
Pending
Application number
CN202010683723.1A
Other languages
Chinese (zh)
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.)
Jiangxi Kinggrid Technology Co ltd
Original Assignee
Jiangxi Kinggrid 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 Jiangxi Kinggrid Technology Co ltd filed Critical Jiangxi Kinggrid Technology Co ltd
Priority to CN202010683723.1A priority Critical patent/CN111931139A/en
Publication of CN111931139A publication Critical patent/CN111931139A/en
Pending legal-status Critical Current

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/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/189Automatic justification
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/06Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols the encryption apparatus using shift registers or memories for block-wise or stream coding, e.g. DES systems or RC4; Hash functions; Pseudorandom sequence generators
    • H04L9/0643Hash functions, e.g. MD5, SHA, HMAC or f9 MAC

Abstract

The invention discloses a method for realizing position fine adjustment when electronic signature is added based on format document support, wherein a support signature position fine adjustment option is additionally arranged on an operation interface; generating signature intermediate data according to a signature generation flow, and adding the signature intermediate data into the format document; modifying the intermediate data of the signature and the related document data; according to the intermediate signature data and the relevant information of the adjusting position, making a digital signature and generating final complete signature data; and writing the signature data into a corresponding storage path in the format document. When the invention is used for signing, the adjustment of the signature position is supported, the normal use of the signature is not influenced, and the adjustment effect can be achieved; the final verification result and the change of the final structure of the document are not influenced, and the normal signature requirement can be met; the signature process is more flexible and supports optional operations.

Description

Method for realizing position fine adjustment during electronic signature adding based on format document support
Technical Field
The invention relates to an electronic signature technology in a format document, in particular to a method for realizing position fine adjustment when electronic signature is added based on format document support.
Background
When a document is signed based on a standard format, according to a standard signature flow, after signature, if the position of the signature is adjusted, signature verification fails, the document is tampered, and the purpose of detecting whether the document is tampered cannot be achieved. The existing method is that when stamping, the position of the signature must be determined, if the position has deviation, the adjustment of the signature position after the signature cannot be carried out, the existing signature must be cancelled or deleted, and then the electronic seal is stamped again to solve the problem. The influence brought by the existing implementation mode is as follows: firstly, the signature position cannot be adjusted after signature; secondly, if the position of the signature needs to be adjusted, the signature must be cancelled and then the signature must be added again, which affects the normal use of the signature.
Disclosure of Invention
The invention aims to provide a method for realizing position fine adjustment during electronic signature stamping, which generates intermediate transitional data under the condition of not changing a signature data generation step, adds a final digital signature step to generate signature data meeting requirements, and effectively protects signature contents after adjusting the signature position by changing a signature structure.
To solve the above problems, the present invention is achieved as such. The method for realizing position fine adjustment when electronic signature is added based on format document support comprises the following steps:
1) when a signature button is clicked, a fine adjustment option for supporting the signature position is newly added on an operation interface;
2) generating signature intermediate data according to a signature generation flow, and adding the signature intermediate data into the format document;
3) after the signature position is adjusted to a proper position, modifying the intermediate data and the related document data of the signature;
4) selecting a signature object, right-clicking a menu bar, and adding a digital signature option;
5) when the signature digital signature is selected, the digital signature is made according to the intermediate signature data and the relevant information of the adjusting position, and final complete signature data is generated;
6) if the signature digital signature does not exist, prompting whether the document is digitally signed or not when the document is closed, if the document is not closed, determining the signature intermediate data generated during the previous signature, and performing cleaning treatment, wherein the signature operation fails;
7) taking the content of the document to be protected, and calculating the content by using a hash algorithm SM3 and SHA25 to obtain a hash value;
8) packaging the hash value, the seal data and the signer certificate obtained in the step 7) into signature intermediate data together according to a SEQUENCE mode in the ASN.1;
9) adding the intermediate signature data into a storage path corresponding to the signature data in the format document;
10) adjusting the signature position according to the signature requirement;
11) selecting a digital signature, modifying the signature position information in the document according to the position adjustment information, updating the protected content, and recalculating the hash value;
12) packaging the hash value recalculated in the step 5) and the signature intermediate data in the step 2) into standard signature data to be signed;
13) according to the data to be signed in the step 6), carrying out digital signature on the data by using an intelligent key disc, and finally assembling into formal signature data;
14) and writing the signature data into a corresponding storage path in the format document.
When the invention is used for signing, the adjustment of the signature position is supported, the normal use of the signature is not influenced, and the adjustment effect can be achieved; the final verification result and the change of the final structure of the document are not influenced, and the normal signature requirement can be met; the signature process is more flexible and supports optional operations.
Drawings
FIG. 1 is a business flow diagram of the present invention;
FIG. 2 is a functional diagram of the present invention;
fig. 3 is a data diagram of the present invention.
Detailed Description
The invention is further illustrated by the following figures and examples. Referring to fig. 1 to 3, when a signature starts (as shown in fig. 1), if position fine adjustment is required to be supported during signature, position fine adjustment options need to be selected, and after the operation, corresponding adjustment can be performed on the basis of the original signature flow and signature data structure, so that the requirement of position adjustment after the signature can be met, the normal use of the signature is not influenced, and the fine adjustment effect of the signature position can be achieved without canceling the re-signature. The specific adjustment comprises the following steps:
1) clicking a signature button to perform signature operation, and adding a fine adjustment option for supporting a signature position on an operation interface;
2) and if the checking supports the fine adjustment of the signature position, generating the signature intermediate data according to the signature generation flow. The signature intermediate data structure is assembled according to corresponding rules (as shown in figure 3) and added into the designated position of the layout document;
3) at this time, the first operation of signature is completed, the signature picture is normally displayed in the document, and the signature position can be adjusted. After the position is adjusted to a proper position, automatically modifying the generated signature intermediate data and the related data in the document;
4) clicking a signature object by a right key, popping up a right key menu bar, and selecting a newly added digital signature option;
5) when the signature digital signature option is selected, digital signature is carried out according to the intermediate data of the signature and the relevant information of the adjusting position, and final complete signature data is generated.
6) If the signature digital signature is not carried out, whether the document is digitally signed or not is prompted when the document is closed, if the document is not digitally signed, the signature intermediate data and other related data generated during previous signature are cleaned, and the signature operation is cancelled;
7) taking the content of the format document needing to be protected, and carrying out hash calculation on the content by utilizing a hash algorithm SM3 or SHA25 and the like to obtain a hash value;
8) the hash value, the seal data and the signer certificate obtained in the step 7) are utilized and encapsulated into signature intermediate data (as shown in figure 3) together according to the SEQUENCE mode in the ASN.1 rule;
9) adding the intermediate signature data into a storage path corresponding to the signature data in the format document;
10) adjusting the signature position according to the signature requirement;
11) selecting a digital signature, modifying the signature position information in the document according to the position adjustment information, updating the protected content, and recalculating the hash value;
12) packaging the hash value recalculated in the step 5) and the signature intermediate data in the step 2) into standard signature data to be signed;
13) according to the data to be signed in the step 6), carrying out digital signature on the data by using an intelligent key disc, and finally assembling formal complete signature data;
14) and writing the signature data into a corresponding storage path in the format document.
The principle of operation data flow of the present invention (as shown in FIG. 2) is as follows:
1) performing a sequence of hash algorithm on the document to obtain the content of the document to be protected;
2) respectively reading the data content of the seal, obtaining a signer certificate and the hash value of the content to be protected in the step 1);
3) the data structure assembled in step 2) according to the ASN format is stored in the designated position in the document;
4) after the signature position is adjusted, the obtained position adjustment information needs to be updated to the document and the data in the step 3) is updated;
5) and 4) carrying out digital signature on the updated data in the step 4), regenerating a final complete signature data structure, and then storing the signature data structure in a storage position.
The signature intermediate data (shown in FIG. 3) includes the following modules:
and the version number represents the signature data structure version number.
Electronic seal data: representing electronic seal data used to generate an electronic signature.
Time information: the time information corresponding to the electronic signature can be a time stamp or UTCTIME time.
Hashing of original text: a hash value representing the original to be signed.
Original text attribute information: attribute information representing the textual data, such as: document ID, date, paragraph, byte number of original content, indication information, signature protection range, etc., which are protected by signature, the specific meaning of propertyInfo can be defined by itself.
Signer certificate: the representative sign person carries out the sign operation of this time is the digital certificate.
The signature algorithm identifies: the representative signature algorithm OID follows GM/T0006. For example: the OID signed using SM2 was 1.2.156.10197.1.501.
Before signing, if position fine adjustment is required to be supported when signing, position fine adjustment options are required to be selected, so that corresponding adjustment can be performed on the basis of the original signing flow and the original signing data structure, the requirement of position adjustment after signing can be met, the normal use of the signing is not influenced, and the fine adjustment effect of the signing position can be achieved without canceling the re-signing.
The invention adds a signature position fine adjustment option and a digital signature step after position adjustment, can self-define a signature intermediate data structure, and automatically adjusts the data structure when supporting position adjustment; the signature position can be directly adjusted without canceling the signature; after the position is adjusted, the digital signature operation is supported, and the complete signature process is achieved.

Claims (1)

1. The method for realizing position fine adjustment when electronic signature is added based on format document support is characterized by comprising the following steps of:
1) when a signature button is clicked, a fine adjustment option for supporting the signature position is newly added on an operation interface;
2) generating signature intermediate data according to a signature generation flow, and adding the signature intermediate data into the format document;
3) after the signature position is adjusted to a proper position, modifying the intermediate data and the related document data of the signature;
4) selecting a signature object, right-clicking a menu bar, and newly adding a locking signature option;
5) when the signature digital signature is selected, the digital signature is made according to the intermediate signature data and the relevant information of the adjusting position, and final complete signature data is generated;
6) if the signature digital signature does not exist, prompting whether the document is digitally signed or not when the document is closed, if the document is not closed, determining the signature intermediate data generated during the previous signature, and performing cleaning treatment, wherein the signature operation fails;
7) taking the content of the document to be protected, and calculating the content by using a hash algorithm SM3 and SHA25 to obtain a hash value;
8) packaging the hash value, the seal data and the signer certificate obtained in the step 7) into signature intermediate data together according to a SEQUENCE mode in the ASN.1;
9) adding the intermediate signature data into a storage path corresponding to the signature data in the format document;
10) adjusting the signature position according to the signature requirement;
11) selecting a digital signature, modifying the signature position information in the document according to the position adjustment information, updating the protected content, and recalculating the hash value;
12) packaging the hash value recalculated in the step 5) and the signature intermediate data in the step 2) into standard signature data to be signed;
13) according to the data to be signed in the step 6), carrying out digital signature on the data by using an intelligent key disc, and finally assembling into formal signature data;
14) and writing the signature data into a corresponding storage path in the format document.
CN202010683723.1A 2020-07-16 2020-07-16 Method for realizing position fine adjustment during electronic signature adding based on format document support Pending CN111931139A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010683723.1A CN111931139A (en) 2020-07-16 2020-07-16 Method for realizing position fine adjustment during electronic signature adding based on format document support

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010683723.1A CN111931139A (en) 2020-07-16 2020-07-16 Method for realizing position fine adjustment during electronic signature adding based on format document support

Publications (1)

Publication Number Publication Date
CN111931139A true CN111931139A (en) 2020-11-13

Family

ID=73313440

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010683723.1A Pending CN111931139A (en) 2020-07-16 2020-07-16 Method for realizing position fine adjustment during electronic signature adding based on format document support

Country Status (1)

Country Link
CN (1) CN111931139A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113112222A (en) * 2021-04-02 2021-07-13 北京点聚信息技术有限公司 Automatic signature method and system for OFD format file based on big data analysis

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101167297A (en) * 2005-01-19 2008-04-23 国际商业机器公司 Method and apparatus for adding signature information to electronic documents
CN101702150A (en) * 2009-12-02 2010-05-05 江西金格网络科技有限责任公司 Method for protecting, verifying and repealing content of PDF document page
CN110379476A (en) * 2019-06-28 2019-10-25 杭州师范大学 A kind of method and device of electronic health record progress note PDF Electronic Signature

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101167297A (en) * 2005-01-19 2008-04-23 国际商业机器公司 Method and apparatus for adding signature information to electronic documents
CN101702150A (en) * 2009-12-02 2010-05-05 江西金格网络科技有限责任公司 Method for protecting, verifying and repealing content of PDF document page
CN110379476A (en) * 2019-06-28 2019-10-25 杭州师范大学 A kind of method and device of electronic health record progress note PDF Electronic Signature

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
刘强: "国密 SM2 算法电子印章设计原理浅谈", 《福建电脑》 *
李宝萍: "电子签章系统在青海电力办公自动化系统中的应用", 《青海电力》 *
胡荣磊 等: "版式文档 OFD 签章模块的研究与实现", 《信息技术》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113112222A (en) * 2021-04-02 2021-07-13 北京点聚信息技术有限公司 Automatic signature method and system for OFD format file based on big data analysis
CN113112222B (en) * 2021-04-02 2024-02-09 北京点聚信息技术有限公司 Automatic signature method and system for OFD format file based on big data analysis

Similar Documents

Publication Publication Date Title
US9954683B2 (en) Natural visualization and routing of digital signatures
JP4339891B2 (en) Electronic document management system
JP2012520530A (en) System and method for document management conversion and security
US7428484B2 (en) Apparatus and method for modeling and analyzing network simulation for network simulation package
US6751632B1 (en) Method of creating authenticated verifiable reproductions of electronic documents
JP2009093576A (en) E-mail information management program, e-mail information management apparatus, and e-mail information management method
CN102725729A (en) Analyzing objects from a graphical interface for standards verification
CN106789091B (en) Method and device for realizing Open XML document digital signature and signature verification
JP2002229448A (en) Method and apparatus and performing electronic signature to document having structure
CN112632475B (en) Picture copyright protection system and method based on national password and picture steganography
Kajan Information technology encyclopedia and acronyms
CN111931139A (en) Method for realizing position fine adjustment during electronic signature adding based on format document support
CN1855979B (en) Communication device and communication method
JPWO2003013054A1 (en) Apparatus and method for generating data for detecting tampering of encrypted data with processing
CN107357588B (en) Object code generation method and device
CN111581606A (en) PDF file digital signature method and system
US10445404B2 (en) Information processing apparatus and non-transitory computer readable medium
CN110347678B (en) Financial data storage method, system, device and equipment
CN107748838A (en) The method, apparatus and storage medium and electronic equipment of installation kit generation
JP2003216601A (en) Electronic document processing apparatus and computer program
JP2003114884A (en) Electronic document edit and display system
CN111552946A (en) PDF file digital signature method, system and storage medium
US20190057127A1 (en) Information processing apparatus and non-transitory computer readable medium
CN112507014B (en) Data storage method, device and system based on credible account book database
US20200126541A1 (en) Phonetic Representor, System, and Method

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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20201113

WD01 Invention patent application deemed withdrawn after publication