The content of the invention
For the defect of prior art, the present invention is intended to provide the electronics confirmation request side of automatically generating based on safe Quick Response CodeMethod and system, can solve the problem of numerous and diverse, timeliness is low, security is poor that worked in many ways in circular for confirmation business.
In a first aspect, the invention provides the electronics confirmation request automatic generation method based on safe Quick Response Code, including it is followingStep:
Step S1:Obtain the source data information for generating electronics confirmation request;
Step S2:According to the source data information of the electronics confirmation request, the digital digest letter of the electronics confirmation request is generatedBreath;
Step S3:Digital digest information formation using certificate information and corresponding private key to the electronics confirmation request is signedName information;
Step S4:The signing messages is generated into the blank space that safe Quick Response Code is placed in the electronics confirmation request;
Step S5:PDF generation modules are called to generate the PDF document of the electronics confirmation request.
The electronics confirmation request automatic generation method based on safe Quick Response Code that the present invention is provided, which can be generated quickly, to be carriedThe PDF document of the electronics confirmation request of safe Quick Response Code, is effectively prevented in electronics confirmation request by the important information quilt of circular for confirmation enterpriseSteal or distort.
Further, the step S1 is specifically included:
Step S101:Electronics confirmation request type according to actual needs, passes through the electronics confirmation request of network call the typeTemplate Information;
Step S102:The source data information in local data base is called to generate the html file of electronics confirmation request.
Further, the step S2 is specifically included:
Step S201:Hiding important information is needed in the source data information for obtaining electronics confirmation request;
Step S202:Using the important information with carrying out Hash operation as input by audit business licenses information, obtainDigital digest information.
Further, the step S3 is specifically included:
Step S301:Receive the digital digest information A of the electronics confirmation request;
Step S302:Using by audit enterprise certificate information and corresponding private key P1 to the digital digest information AThe first encrypted cipher text A1 of composition is encrypted;
Step S303:Use the first encrypted cipher text A1 described in the public key P2 and corresponding certification factor pair of letter in reply side's certificateThe second encrypted cipher text A2 (A1) of encryption generation;
Step S304:The signature that the first encrypted cipher text A1 and second encrypted cipher text A2 (A1) combination producing are encryptedInformation C1.
The certificate information by audit enterprise includes any one or its in certificate content, certificate ID, cryptographic certificateIn any combination.
After bank is decrypted using the signing messages of the second encryption described in decryption secret key pair, it can obtain after the decryptionDigital digest information the second encrypted cipher text.By the second encrypted cipher text of the digital digest information after the decryption and described theOne encrypted cipher text is calculated and compared, and understands whether the first encrypted cipher text of the digital digest information is illegally usurped by comparingCorrect one's mistakes.
The present invention is China's finance certification using CFCA (China Financial Certification Authority)The i.e. corresponding certification factor pair of public key for the bank certificate that the electronic signature that center is issued makes passes through by audit enterprise for the first timeThe signing messages of the reliable secondary encryption generation of progress of digital digest information after encryption, with legal effect, and securityIt is stronger, it can effectively prevent third party's distorting to the important information in electronics confirmation request.
Further, the step S4 is specifically included:
Step S401:Obtain the signing messages C1 of the encryption;
Step S402:The signing messages of the encryption is encoded to Quick Response Code form, safe Quick Response Code W1 is obtained;
Step S403:The safe Quick Response Code W1 is arranged to the blank space of the electronics confirmation request.
Signing messages is regenerated Quick Response Code by the present invention after encrypting twice, is solved prior art and is added using Quick Response CodeCipher telegram subdocument steals its information and causes asking by the loss audited in business economic easily by malicious third parties scanning recognitionTopic.
The present invention utilizes digital signature information and two-dimensional code data memory technology, by the important information of electronics confirmation request (such asThe tool of promoter and the name of enterprise customer, phone, registration mailbox number, digital certificate numbering, letter in reply person employee number and bankBody information etc.) blank space of the electronics confirmation request is effectively placed in the form of safe Quick Response Code, it is ensured that by audit enterpriseThe safety of important information, prevents its content from being stolen by criminal, and be used.
Further, the step S5 is specifically included:
Step S501:The source data list for being packaged into html format in the local database is obtained, PDF generation modules are calledThe html format source data list is generated to the electronics confirmation request of PDF format;
Step S502:Call the electronics confirmation request addition watermark that watermark generation module is the PDF format.
Further, the electronics confirmation request type includes but is not limited to Types Below:Audit operations bank electronic circular for confirmationLetter, certification of registered capital business bank confirmation request, foreign trade confirmation request, enterprise's contact confirmation request, lawyer's confirmation request etc..
As shown from the above technical solution, the electronics confirmation request automatic generation method based on safe Quick Response Code that the present invention is providedWith traditional circular for confirmation business compared to the prior art, the technical scheme that the embodiment of the present invention one is proposed can automatically generate a kind of electronicsCan be substituted in confirmation request must frequently be travelled to and fro between in traditional circular for confirmation business by circular for confirmation enterprise, Certified Public Accountants Firm, bank paperMatter confirmation request.User can at any time be operated in multiple terminals such as PC, mobile devices, improve the operating efficiency of circular for confirmation business.ThisA whole set of digital signature and encryption technology that inventive embodiments one are provided using China's finance authentication center CFCA, solve complexityIdentification problem, it is ensured that the security and integrality of circular for confirmation business datum.The embodiment of the present invention one realize thoroughly withoutPaperization is handled official business, reduction carbon emission, environmental protection, meanwhile, realize concentration and send a letter, reply, reduce risk.
Second aspect, the invention provides the electronics confirmation request automatic creation system based on safe Quick Response Code, including:
Source data information acquisition module:For obtaining the source data information for being used for generating electronics confirmation request;
Digital digest information generating module:For the source data information according to the electronics confirmation request, the electronics is generatedThe digital digest information of confirmation request;
Signing messages generation module:For using the numeral of certificate information and corresponding private key to the electronics confirmation requestSummary info formation signing messages;
Two-dimensional code generation module:For the signing messages to be generated into the blank that Quick Response Code is placed in the electronics confirmation requestPlace;
PDF generation modules:PDF document for generating the electronics confirmation request.
Further, the signing messages generation module includes:
Receiving unit:Digital digest information for receiving the electronics confirmation request;
First encrypted cipher text generation unit:For using certificate information and corresponding private key by audit enterprise to describedThe first encrypted cipher text of composition is encrypted in digital digest information;
Second encrypted cipher text generation unit:For described in the public key and corresponding certification factor pair using letter in reply side's certificateFirst encrypted cipher text encryption the second encrypted cipher text of generation;
Signing messages generation unit:For what first encrypted cipher text and the second encrypted cipher text combination producing were encryptedSigning messages.
Further, the safe two-dimensional code generation module includes:
Signing messages acquiring unit:Signing messages for obtaining the encryption;
Safe Quick Response Code generation unit:For the signing messages of the encryption to be encoded into Quick Response Code form, safety is obtainedQuick Response Code;
Safe Quick Response Code setting unit:The safe Quick Response Code is arranged to the blank space of the electronics confirmation request.
As shown from the above technical solution, the electronics confirmation request automatic creation system based on safe Quick Response Code that the present invention is providedThere is provided achievable step S1 to step S5 methods describeds platform.Its compared with traditional circular for confirmation business and existing technology,In the system, hash storage is carried out to circular for confirmation data.In addition, the system is solved again using CFCA digital signature and sign test technologyMiscellaneous identification problem, it is ensured that the security and integrality of circular for confirmation business datum.User can be how whole in PC, mobile device etc.End is operated at any time, improves the operating efficiency of circular for confirmation business.In addition, the system realizes confirmation electronization transmission, realizeThoroughly non-support cable, reduction carbon emission, environmental protection.
Embodiment
The embodiment of technical solution of the present invention is described in detail below in conjunction with accompanying drawing.Following examples are only used forClearly illustrate technical scheme, therefore be intended only as example, and the protection of the present invention can not be limited with thisScope.It should be noted that unless otherwise indicated, technical term or scientific terminology used in this application should be institute of the present inventionThe ordinary meaning that category art personnel are understood.
According to Fig. 1, the embodiment of the present invention one provides the electronics confirmation request side of automatically generating based on safe Quick Response CodeMethod, comprises the following steps:
Step S1:Obtain the source data information for generating electronics confirmation request;
Step S2:According to the source data information of the electronics confirmation request, the digital digest letter of the electronics confirmation request is generatedBreath;
Step S3:Digital digest information formation using certificate information and corresponding private key to the electronics confirmation request is signedName information;
Step S4:The signing messages is generated into the blank space that safe Quick Response Code is placed in the electronics confirmation request;
Step S5:PDF generation modules are called to generate the PDF document of the electronics confirmation request.
The electronics confirmation request automatic generation method based on safe Quick Response Code that the embodiment of the present invention one is provided can be quicklyThe PDF document of electronics confirmation request of the generation with safe Quick Response Code, is effectively prevented in electronics confirmation request by the weight of circular for confirmation enterpriseInformation is wanted to be stolen or distort.
In the present embodiment, the step S1 is specifically included:
Step S101:Electronics confirmation request type according to actual needs, passes through the electronics confirmation request of network call the typeTemplate Information;
Step S102:The source data information in local data base is called to generate the html file of electronics confirmation request.
In the present embodiment, the step S2 is specifically included:
Step S201:Hiding important information is needed in the source data information for obtaining electronics confirmation request;
Step S202:Using the important information with carrying out Hash operation as input by the authorization message of audit enterprise, obtainTo digital digest information.
In the present embodiment, the step S3 is specifically included:
Step S301:Receive the digital digest information A of the electronics confirmation request;
Step S302:Using by audit enterprise certificate information and corresponding private key P1 to the digital digest information AThe first encrypted cipher text A1 of composition is encrypted;
Step S303:Use the first encrypted cipher text A1 described in the public key P2 and corresponding certification factor pair of letter in reply side's certificateThe second encrypted cipher text A2 (A1) of encryption generation;
Step S304:The signature that the first encrypted cipher text A1 and second encrypted cipher text A2 (A1) combination producing are encryptedInformation C1.
The embodiment of the present invention one is China using CFCA (China Financial Certification Authority)The i.e. corresponding certification factor pair of public key for letter in reply side's certificate that the electronic signature that China Financial Certification Authority is issued makes is by being auditedThe signing messages of the reliable secondary encryption generation of progress of digital digest information after enterprise's encryption for the first time, is imitated with lawPower, and security is stronger, can effectively prevent third party's distorting to the important information in electronics confirmation request.Letter in reply side refers to offerThe third-party institution of enterprise for information about with existing situation, including but not limited to bank, customs, enterprise etc..
In the present embodiment, the step S4 is specifically included:
Step S401:Obtain the signing messages C1 of the encryption;
Step S402:The signing messages of the encryption is encoded to Quick Response Code form, safe Quick Response Code W1 is obtained;
Step S403:The safe Quick Response Code W1 is arranged to the blank space of the electronics confirmation request.
In the present embodiment, the decryption step of the digital digest information A is as follows:
Step one:The information for extracting safe Quick Response Code W1 obtains the signing messages C1 of the encryption;
Step 2:The secret signing messages C1 is decomposed into the first encrypted cipher text A1 and the second encrypted cipher text A2 (A1)Combination;
Step 3:The certificate P2' provided in system database using letter in reply side is decrypted the second encrypted cipher text A2 (A1);
Step 4:The ciphertext that step 3 kind is decrypted is compared computing with the first encrypted cipher text A1, if distinctThen attestation-signatures information C1 is tampered;
Step 5:The first encrypted cipher text A1 is decrypted using private key P1', signing messages C1 is obtained.
Signing messages is regenerated Quick Response Code by the embodiment of the present invention one after encrypting twice, is solved prior art and is usedQuick Response Code encrypted electronic document steals its information and causes to be audited in business economic easily by malicious third parties scanning recognitionThe problem of loss.
The step of electronics confirmation request of safe Quick Response Code is in actual use that be provided with that the embodiment of the present invention one is provided is wrappedInclude:
Step one:Received and safe Quick Response Code is decoded first by audit enterprise after the electronics confirmation request, solvedThe second encrypted cipher text information after code;
Step 2:The decryption key provided using letter in reply side obtains the first encrypted cipher text information;
Step 3:The decoding of the first encrypted cipher text information is obtained comprising number using by the certificate information and private key of audit enterpriseThe electronics confirmation request of word summary info.
The first encrypted cipher text preserved in step one and step 2 using the system database of letter in reply side and the second encryptionCipher-text information and decoded first encrypted cipher text information and decoded second encrypted cipher text information contrasted knowable to instituteState whether information is distorted by malicious third parties.
The embodiment of the present invention one utilizes digital signature information and two-dimensional code data memory technology, by the important of electronics confirmation requestInformation (name of such as promoter and enterprise customer, phone, registration mailbox number, digital certificate numbering, letter in reply person employee number and silverCapable specifying information etc.) blank space of the electronics confirmation request is effectively placed in the form of safe Quick Response Code, it is ensured that auditedThe safety of the important information of enterprise, prevents its content from being stolen by criminal, and be used.
In the present embodiment, the step S5 is specifically included:
Step S501:The source data list for being packaged into html format in the local database is obtained, PDF generation modules are calledThe html format source data list is generated to the electronics confirmation request of PDF format;
Step S502:Call the electronics confirmation request addition watermark that watermark generation module is the PDF format.
In the present embodiment, the watermark generation module adds the specific step of watermark for the electronics confirmation request of the PDF formatSuddenly it is:
Step one:By the Segment of the electronics confirmation request of the PDF format;
Step 2:PDF document structure elucidation is carried out to the electronics confirmation request of the PDF format, file header A, file is obtainedBody B, cross reference table C and tetra- parts of end-of-file D;
Step 3:Generate the authentication information { A1, B1, C1, D1 } of aforementioned four part;
Step 4:The authentication information { A1, B1, C1, D1 } generated in step 3 is compressed and added after being encrypted with keyPlus PDF format information I;
Step 5:PDF objects J to be added is generated by above-mentioned PDF format information I;
Step 6:PDF objects J to be added in step 5 is merged to the PDFF forms obtained containing watermark with watermark information HElectronics confirmation request.
The authentication method that the embodiment of the present invention one is embedded in using watermark can be judged distorting for pdf document, also canPositioned to distorting.
The method for the electronics confirmation request insertion watermark that the present embodiment one is used is ensureing to realize that watermark is sightless simultaneously, literaryPart increment is small, controls within 1%.It is high to the detection accuracy distorted, and false drop rate is low, can be effective against replacing, addWith delete etc. distort.
In the present embodiment, the electronics confirmation request type includes but is not limited to Types Below:Audit operations bank electronic is askDemonstrate,prove letter, certification of registered capital business bank confirmation request, foreign trade confirmation request, enterprise's contact confirmation request, lawyer's confirmation request etc..
In the present embodiment, when addresser initiates circular for confirmation service request first, PDF text of the generation with 2 D code informationPart, is committed to enterprise customer.Authorized party is committed to letter in reply side user after authorizing successfully, after the side of letter in reply user replys successfully, beProduct process is tracked pdf document and opinion pdf document by system, most promoter's information, enterprise user information, letter in reply side assistant director at lastInformation, flow tracking PDF, suggestion feedback PDF synthesize a total pdf document with watermark.Mobile phone scans the pdf documentIn Quick Response Code, you can check part confirmation request information.Wherein, addresser refers to the side for initiating confirmation request, such as audit servicesInstitute, lawyer's office, enterprise etc.;Authorized party refers to the object of this confirmation;Letter in reply side refer to offer enterprise for information about with existing shapeThe third-party institution of condition, including but not limited to bank, customs, enterprise etc..
It is combined by digital certificate with safe Quick Response Code, the electronics of PDF format is ask on the premise of security is strengthenedDemonstrate,proving letter more directly perceived, and the addition of watermark in the electronics confirmation request, the papery confirmation request after printing can be authenticated.
The embodiment of the present invention one is signature function, sign test function, PDF function of browse perfect adaptations so that visitor of the inventionFamily end structure is compact, compact and flexible, and occupancy computer resource is few, improves the utilization rate of computer, is convenient for users to operate.
The electronics confirmation request automatic generation method and traditional circular for confirmation based on safe Quick Response Code that the embodiment of the present invention one is providedCompared to the prior art, the technical scheme that the embodiment of the present invention one is proposed can be automatically generated can in a kind of electronics confirmation request for businessWith substitute must frequently be travelled to and fro between in traditional circular for confirmation business by circular for confirmation enterprise, Certified Public Accountants Firm, bank papery confirmation request.WithFamily can at any time be operated in multiple terminals such as PC, mobile devices, improve the operating efficiency of circular for confirmation business.The embodiment of the present invention oneThe a whole set of digital signature and encryption technology provided using China's finance authentication center CFCA, the identification for solving complexity is askedTopic, it is ensured that the security and integrality of circular for confirmation business datum.The embodiment of the present invention one realizes thoroughly non-support cable, dropLow-carbon emission, environmental protection, meanwhile, realize concentration and send a letter, reply, reduce risk.
According to Fig. 2 to Fig. 4, the embodiment of the present invention two is given birth to automatically there is provided the electronics confirmation request based on safe Quick Response CodeInto system, including:
Source data information acquisition module 1:For obtaining the source data information for being used for generating electronics confirmation request;
Digital digest information generating module 2:For the source data information according to the electronics confirmation request, the electronics is generatedThe digital digest information of confirmation request;
Signing messages generation module 3:For using the number of certificate information and corresponding private key to the electronics confirmation requestWord summary info formation signing messages;
Two-dimensional code generation module 4:For the signing messages to be generated into the blank that Quick Response Code is placed in the electronics confirmation requestPlace;
PDF generation modules 5:PDF document for generating the electronics confirmation request.
Further, the signing messages generation module 3 includes:
Receiving unit 301:Digital digest information for receiving the electronics confirmation request;
First encrypted cipher text generation unit 302:For using by the certificate information and corresponding private key pair of audit enterpriseThe first encrypted cipher text of composition is encrypted in the digital digest information;
Second encrypted cipher text generation unit 303:For the public key and corresponding certification factor pair using confirmation side's certificateFirst encrypted cipher text encryption, second encrypted cipher text of generation;
Signing messages generation unit 304:For first encrypted cipher text and the second encrypted cipher text combination producing to be addedClose signing messages.
Further, the safe two-dimensional code generation module 4 includes:
Signing messages acquiring unit 401:Signing messages for obtaining the encryption;
Safe Quick Response Code generation unit 402:For the signing messages of the encryption to be encoded into Quick Response Code form, pacifiedFull Quick Response Code;
Safe Quick Response Code setting unit 403:The safe Quick Response Code is arranged to the blank space of the electronics confirmation request.
The electronics confirmation request automatic generation method based on safe Quick Response Code that the embodiment of the present invention two is provided is provided can be realShow step S1 to the platform of step S5 methods describeds.It is in the present system, right compared with traditional circular for confirmation business and existing technologyCircular for confirmation data carry out hash storage.In addition, the identity that the system solves complexity using CFCA digital signature and sign test technology is knownOther problem, it is ensured that the security and integrality of circular for confirmation business datum.User can at any time be carried out in multiple terminals such as PC, mobile devicesOperation, improves the operating efficiency of circular for confirmation business.In addition, the system realize confirmation electronization transmission, realize thoroughly withoutPaperization is handled official business, reduction carbon emission, environmental protection.
Finally it should be noted that:Various embodiments above is merely illustrative of the technical solution of the present invention, rather than its limitations;To the greatest extentThe present invention is described in detail with reference to foregoing embodiments for pipe, it will be understood by those within the art that:Its according toThe technical scheme described in foregoing embodiments can so be modified, or which part or all technical characteristic are enteredRow equivalent substitution;And these modifications or replacement, the essence of appropriate technical solution is departed from various embodiments of the present invention technologyThe scope of scheme, it all should cover among the claim of the present invention and the scope of specification.