CN105844520A - Electronic receipt generating and verifying method - Google Patents

Electronic receipt generating and verifying method Download PDF

Info

Publication number
CN105844520A
CN105844520A CN201510016668.XA CN201510016668A CN105844520A CN 105844520 A CN105844520 A CN 105844520A CN 201510016668 A CN201510016668 A CN 201510016668A CN 105844520 A CN105844520 A CN 105844520A
Authority
CN
China
Prior art keywords
electronic receipt
transaction information
digital signature
quick response
response code
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
CN201510016668.XA
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN201510016668.XA priority Critical patent/CN105844520A/en
Publication of CN105844520A publication Critical patent/CN105844520A/en
Pending legal-status Critical Current

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The invention discloses an electronic receipt generating and verifying method, and relates to the field of identity authentication. The invention aims at solving problems that time and labor are wasted and a seal is liable to be forged because the seal of an electronic receipt needs to be affixed manually in the prior art. The technical scheme of the embodiment of the invention comprises the steps: S10, receiving an electronic receipt generation induction transmitted by a user terminal; S20, obtaining transaction information corresponding to the electronic receipt generation induction from a preset database; S30, signing the transaction information according to a preset digital certificate, and obtaining a digital signature; S40, generating a two-dimensional code corresponding to the transaction information and the digital signature; S50, generating an electronic receipt with the transaction information and the two-dimensional code, and returning the electronic receipt to the user terminal.

Description

The generation of electronic receipt and verification method
Technical field
The present invention relates to field of identity authentication, particularly relate to generation and the verification method of a kind of electronic receipt.
Background technology
At present, the electronic receipt of the mechanisms such as bank is both needed to an official seal affixed just effective after printing, seal needs work Personnel add a cover by hand;Not only waste time and energy, and be easier to forge.
Summary of the invention
The present invention provides generation and the verification method of a kind of electronic receipt, it is possible to time saving and energy saving, and is difficult to forge.
The present invention solves technical problem and adopts the following technical scheme that a kind of generation method of electronic receipt, including: The electronic receipt that S10, reception user terminal send generates instruction;S20, from default data base obtain institute State electronic receipt and generate the Transaction Information that instruction is corresponding;S30, according to preset number certificate to described Transaction Information Sign, obtain digital signature;S40, generate the Quick Response Code that described Transaction Information is corresponding with digital signature; It is back to described user terminal after the electronic receipt of S50, the generation described Transaction Information of record and described Quick Response Code.
Optionally, S40 described in the generation method of the electronic receipt that the present embodiment provides, including: generate institute State the Quick Response Code that Transaction Information is corresponding with digital signature;Or, generate described Transaction Information and numeral signed Two Quick Response Codes that name is corresponding.
Optionally, S50 described in the generation method of the electronic receipt that the present embodiment provides, including: S501, According to the electronic receipt number that Transaction Information described in default numeration Rule is corresponding;S502, generation are recorded described It is back to described user terminal after the electronic receipt of electronic receipt number, described Transaction Information and Quick Response Code.
Optionally, S40 described in the generation method of the electronic receipt that the present embodiment provides, including: S401, By default compression storehouse, described Transaction Information is compressed coding, obtains compression information;S402, generation institute State the Quick Response Code that compression information is corresponding with described digital signature.
The present invention solves technical problem and adopts the following technical scheme that the verification method of a kind of electronic receipt, including: S10, to receipt server send electronic receipt generate instruction after, receive described receipt server return electronics Receipt, described electronic receipt is recorded Transaction Information and Quick Response Code, described Quick Response Code be described Transaction Information and By preset number certificate, described Transaction Information is signed what the digital signature obtained generated;S20, scanning institute State the Quick Response Code on electronic receipt, extract described Transaction Information and digital signature;S30, by default PKI pair Described digital signature is verified, is verified result;When S40, described the result are for being proved to be successful, aobvious Show described Transaction Information, make user according to the Transaction Information of display and the transaction letter of record on described electronic receipt Breath is compared.
Optionally, the generation method of the electronic receipt that the present embodiment provides, also include: S50, described checking knot When fruit is authentication failed, show the information that described electronic receipt is invalid.
Optionally, the generation method of electronic receipt that the present embodiment provides, also include: S60, to receive user defeated The print instruction entered, and print described electronic receipt.
Optionally, S20 described in the generation method of the electronic receipt that the present embodiment provides, including: S201, Scan the Quick Response Code on described electronic receipt, extract described Transaction Information and compression information, described compression information Described Transaction Information obtains through presetting compression storehouse compressed encoding;S202, by described compression storehouse to described Compression information decompresses, and obtains described Transaction Information.
The present invention solves technical problem and adopts the following technical scheme that a kind of generation method of electronic receipt, including: S10, server receive the electronic receipt generation instruction that user terminal sends;S20, server are from default number The Transaction Information that instruction is corresponding is generated according to storehouse obtains described electronic receipt;S30, server are according to preset number Described Transaction Information is signed by certificate, obtains digital signature;S40, server are sent out to described user terminal Send described digital signature and Transaction Information;S50, described user terminal receive the numeral label that described server sends Name and Transaction Information;Described digital signature is verified by S60, described user terminal by default PKI, To the result;When S70, described the result are for being proved to be successful, described user terminal generates described transaction letter Cease the Quick Response Code corresponding with digital signature;S80, described user terminal generate records described Transaction Information and described The electronic receipt of Quick Response Code.
There is advantages that owing to digital certificate has act of law, therefore make digital certificate The digital signature obtained of signing Transaction Information has act of law, i.e. records Transaction Information and numeral is signed The electronic receipt of the Quick Response Code that name is corresponding is effective.The technical scheme that the embodiment of the present invention provides, it is only necessary at electronics Receipt carries out signature by digital certificate before generating can ensure the effectiveness of electronic receipt, generates electronic receipt During participate in without artificial, be difficult to forge, solving the seal of electronic receipt in prior art needs people Work is added a cover, and not only wastes time and energy, and the problem being easier to forge.Additionally, the program makes user to lead to Cross Quick Response Code the verity of electronic receipt is verified, simple to operate.
Accompanying drawing explanation
The flow chart of the generation method of the electronic receipt that Fig. 1 provides for the embodiment of the present invention 1;
The flow chart one of the generation method of the electronic receipt that Fig. 2 provides for the embodiment of the present invention 2;
The flowchart 2 of the generation method of the electronic receipt that Fig. 3 provides for the embodiment of the present invention 2;
The flow chart 3 of the generation method of the electronic receipt that Fig. 4 provides for the embodiment of the present invention 2;
The flow chart of the generation method of the electronic receipt that Fig. 5 provides for the embodiment of the present invention 3.
Detailed description of the invention
Below in conjunction with embodiment and accompanying drawing, technical scheme is further elaborated.
Embodiment 1
As it is shown in figure 1, present embodiments provide a kind of generation method of electronic receipt, including:
Step 101, receives the electronic receipt generation instruction that user terminal sends.
Step 102, obtains electronic receipt from default data base and generates the Transaction Information that instruction is corresponding.
In the present embodiment, when user is traded every time, all can pass through this transaction of preset data library storage Corresponding Transaction Information.Concrete, this Transaction Information may include that receipt type, transaction number, transaction Date, payee's name, account, bank of deposit's title, requestee's title, account, bank of deposit's title, with And currency type and the amount of money etc..
Step 103, signs to this Transaction Information according to default digital certificate, obtains digital signature.
In the present embodiment, for ensureing the effectiveness of electronic receipt, can be by digital certificate to Transaction Information Sign.Particularly, for safe storage Transaction Information, it is also possible to directly preserve data signature.
Step 104, generates the Quick Response Code that Transaction Information is corresponding with digital signature.
In the present embodiment, step 104 can generate the Quick Response Code that Transaction Information is corresponding with digital signature; Particularly, in order to reduce the information content of single image in 2 D code, to reduce the requirement of printing precision and to reduce Identifying difficulty, this step 104 can also generate two Quick Response Codes that Transaction Information is corresponding with digital signature, This is not restricted.
In the present embodiment, step 104 can directly generate the Quick Response Code that Transaction Information is corresponding;For reducing two The data volume of dimension code, this step 104 may include that and is compressed compiling to Transaction Information by default compression storehouse Code, obtains compression information;Generate the Quick Response Code that compression information is corresponding with digital signature.This presets compression storehouse can To include the compressed encoding of the information such as mechanism, street, this compression storehouse can also need to be updated according to user, This is no longer going to repeat them.
Step 105, is back to user terminal after generating the electronic receipt recording this Transaction Information and Quick Response Code.
In the present embodiment, the electronic receipt generated by step 105 can only record Transaction Information and two dimension Code;In order to distinguish different transaction, and preventing receipt from reusing, this electronic receipt can also record electronics Receipt number, concrete, this step 105 includes: obtain, according to preset rules, the electronics that this Transaction Information is corresponding Receipt number;User it is back to eventually after generating the electronic receipt of record electronic receipt number, Transaction Information and Quick Response Code End.
There is advantages that owing to digital certificate has act of law, therefore make digital certificate The digital signature obtained of signing Transaction Information has act of law, i.e. records Transaction Information and numeral is signed The electronic receipt of the Quick Response Code that name is corresponding is effective.The technical scheme that the embodiment of the present invention provides, it is only necessary at electronics Receipt carries out signature by digital certificate before generating can ensure the effectiveness of electronic receipt, generates electronic receipt During participate in without artificial, be difficult to forge, solving the seal of electronic receipt in prior art needs people Work is added a cover, and not only wastes time and energy, and the problem being easier to forge.Additionally, the program makes user to lead to Cross Quick Response Code the verity of electronic receipt is verified, simple to operate.
Embodiment 2
As in figure 2 it is shown, the verification method of the electronic receipt of embodiment of the present invention offer, including:
Step 201, after server sends electronic receipt generation instruction, receives the electronics that this server returns Receipt.
In the present embodiment, step 201 is recorded Transaction Information and Quick Response Code on electronic receipt;This Quick Response Code It is Transaction Information and the digital signature obtained of being signed Transaction Information by preset number certificate generates;Should Transaction Information and digital signature can generate a Quick Response Code, it is also possible to generate two Quick Response Codes, do not make at this Limit.
Step 202, the Quick Response Code on scanning electron receipt, extracts Transaction Information and digital signature.
In the present embodiment, Quick Response Code can directly be resolved by step 202, obtains Transaction Information sum Word is signed;Can also include: the first Quick Response Code on scanning electron receipt, extract Transaction Information and compression letter Breath;Then by compression storehouse, compression information is decompressed, obtain Transaction Information;This compression information is to hand over Easily information is through presetting what compression storehouse compressed encoding obtained.
Step 203, is verified digital signature by default PKI, is verified result.
Step 204, when this result is for being proved to be successful, shows this Transaction Information, makes user according to display Transaction Information and electronic receipt on the Transaction Information recorded compare.
Further, as it is shown on figure 3, the verification method of the electronic receipt of the present embodiment offer, also include:
Step 205, when this result is authentication failed, the information that display electronic receipt is invalid.
Further, as shown in Figure 4, the verification method of the electronic receipt that the present embodiment provides, also include:
Step 206, receives the print instruction of user's input, and prints this electronic receipt.
There is advantages that owing to digital certificate has act of law, therefore make digital certificate The digital signature obtained of signing Transaction Information has act of law, i.e. records Transaction Information and numeral is signed The electronic receipt of the Quick Response Code that name is corresponding is effective.The technical scheme that the embodiment of the present invention provides, it is only necessary at electronics Receipt carries out signature by digital certificate before generating can ensure the effectiveness of electronic receipt, generates electronic receipt During participate in without artificial, be difficult to forge, solving the seal of electronic receipt in prior art needs people Work is added a cover, and not only wastes time and energy, and the problem being easier to forge.Additionally, the program makes user to lead to Cross Quick Response Code the verity of electronic receipt is verified, simple to operate.
Embodiment 3
As it is shown in figure 5, the generation method of the electronic receipt of the present embodiment offer, including:
Step 501, server receives the electronic receipt generation instruction that user terminal sends.
Step 502, server obtains electronic receipt from default data base and generates the transaction letter that instruction is corresponding Breath.
Step 503, Transaction Information is signed according to preset number certificate, is obtained digital signature by server.
Step 504, server sends this digital signature and Transaction Information to user terminal.
Step 505, user terminal receives digital signature and the Transaction Information that server sends.
Step 506, digital signature is verified by default PKI, is verified result by user terminal.
Step 507, when the result is for being proved to be successful, user terminal generates Transaction Information and digital signature pair The Quick Response Code answered.
Step 508, user terminal generates records Transaction Information and the electronic receipt of Quick Response Code.
There is advantages that owing to digital certificate has act of law, therefore make digital certificate The digital signature obtained of signing Transaction Information has act of law, i.e. records Transaction Information and numeral is signed The electronic receipt of the Quick Response Code that name is corresponding is effective.The technical scheme that the embodiment of the present invention provides, it is only necessary at electronics Receipt carries out signature by digital certificate before generating can ensure the effectiveness of electronic receipt, generates electronic receipt During participate in without artificial, be difficult to forge, solving the seal of electronic receipt in prior art needs people Work is added a cover, and not only wastes time and energy, and the problem being easier to forge.Additionally, the program makes user to lead to Cross Quick Response Code the verity of electronic receipt is verified, simple to operate.
The sequencing of above example only for ease of describing, does not represent the quality of embodiment.
Last it is noted that above example is only in order to illustrate technical scheme, rather than it is limited System;Although the present invention being described in detail with reference to previous embodiment, those of ordinary skill in the art It is understood that the technical scheme described in foregoing embodiments still can be modified by it, or to it Middle part technical characteristic carries out equivalent;And these amendments or replacement, do not make appropriate technical solution Essence departs from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (9)

1. the generation method of an electronic receipt, it is characterised in that including:
The electronic receipt that S10, reception user terminal send generates instruction;
S20, from default data base, obtain described electronic receipt generate the Transaction Information that instruction is corresponding;
S30, according to preset number certificate, described Transaction Information is signed, obtain digital signature;
S40, generate the Quick Response Code that described Transaction Information is corresponding with digital signature;
It is back to described user eventually after the electronic receipt of S50, the generation described Transaction Information of record and described Quick Response Code End.
The generation method of electronic receipt the most according to claim 1, it is characterised in that described S40, Including:
Generate the Quick Response Code that described Transaction Information is corresponding with digital signature;Or,
Generate two Quick Response Codes that described Transaction Information is corresponding with digital signature.
The generation method of electronic receipt the most according to claim 1 and 2, it is characterised in that described S50, Including:
S501, the electronic receipt number corresponding according to presetting Transaction Information described in numeration Rule;
Return after the electronic receipt of S502, the generation described electronic receipt number of record, described Transaction Information and Quick Response Code It is back to described user terminal.
The generation method of electronic receipt the most according to claim 1 and 2, it is characterised in that described S40, Including:
S401, described Transaction Information is compressed coding by presetting compression storehouse, obtains compression information;
S402, generate the Quick Response Code that described compression information is corresponding with described digital signature.
5. the verification method of an electronic receipt, it is characterised in that including:
S10, to receipt server send electronic receipt generate instruction after, receive described receipt server return Electronic receipt, described electronic receipt is recorded Transaction Information and Quick Response Code, and described Quick Response Code is described transaction letter Cease and by preset number certificate, described Transaction Information signed what the digital signature obtained generated;
S20, the Quick Response Code scanned on described electronic receipt, extract described Transaction Information and digital signature;
S30, by default PKI, described digital signature is verified, be verified result;
When S40, described the result are for being proved to be successful, show described Transaction Information, make user according to display Transaction Information is compared with the Transaction Information of record on described electronic receipt.
The verification method of electronic receipt the most according to claim 5, it is characterised in that also include:
When S50, described the result are authentication failed, show the information that described electronic receipt is invalid.
The verification method of electronic receipt the most according to claim 5, it is characterised in that also include:
S60, the print instruction of reception user's input, and print described electronic receipt.
8., according to the verification method of the electronic receipt described in any one in claim 5 to 7, its feature exists In, described S20, including:
S201, the Quick Response Code scanned on described electronic receipt, extract described Transaction Information and compression information, institute Stating compression information is that described Transaction Information obtains through presetting compression storehouse compressed encoding;
S202, by described compression storehouse, described compression information is decompressed, obtain described Transaction Information.
9. the generation method of an electronic receipt, it is characterised in that including:
S10, server receive the electronic receipt generation instruction that user terminal sends;
S20, server obtain described electronic receipt from default data base and generate the transaction letter that instruction is corresponding Breath;
Described Transaction Information is signed by S30, server according to preset number certificate, obtains digital signature;
S40, server send described digital signature and Transaction Information to described user terminal;
S50, described user terminal receive digital signature and the Transaction Information that described server sends;
Described digital signature is verified by S60, described user terminal by default PKI, is verified result;
When S70, described the result are for being proved to be successful, described user terminal generates described Transaction Information and numeral The Quick Response Code that signature is corresponding;
S80, described user terminal generate records described Transaction Information and the electronic receipt of described Quick Response Code.
CN201510016668.XA 2015-01-13 2015-01-13 Electronic receipt generating and verifying method Pending CN105844520A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510016668.XA CN105844520A (en) 2015-01-13 2015-01-13 Electronic receipt generating and verifying method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510016668.XA CN105844520A (en) 2015-01-13 2015-01-13 Electronic receipt generating and verifying method

Publications (1)

Publication Number Publication Date
CN105844520A true CN105844520A (en) 2016-08-10

Family

ID=56579803

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510016668.XA Pending CN105844520A (en) 2015-01-13 2015-01-13 Electronic receipt generating and verifying method

Country Status (1)

Country Link
CN (1) CN105844520A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108416562A (en) * 2018-05-04 2018-08-17 亚洲保理(深圳)有限公司 Logistics receipt verification method and device
CN109104411A (en) * 2018-07-13 2018-12-28 中融万博网络科技有限公司 A kind of method that electronic receipt is generated and delivered

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1164554A2 (en) * 2000-05-25 2001-12-19 Payment Engineering LLC System and method for converting check-based bill payments to electronic form
CN102073977A (en) * 2010-12-13 2011-05-25 中国联合网络通信集团有限公司 Methods and equipment for generating and authenticating digital signatures and digital signature system
CN102868688A (en) * 2012-09-05 2013-01-09 天地融科技股份有限公司 Certification system and method and electronic signature tool
CN103106607A (en) * 2012-08-22 2013-05-15 杨磊 Financial certificate processing system and method thereof
CN103747012A (en) * 2013-08-01 2014-04-23 戴林巧 Security verification method, device and system of network transaction
CN103810457A (en) * 2014-03-12 2014-05-21 河南融信数据有限公司 Offline license anti-counterfeiting method based on reliable digital signature and two-dimensional code

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1164554A2 (en) * 2000-05-25 2001-12-19 Payment Engineering LLC System and method for converting check-based bill payments to electronic form
CN102073977A (en) * 2010-12-13 2011-05-25 中国联合网络通信集团有限公司 Methods and equipment for generating and authenticating digital signatures and digital signature system
CN103106607A (en) * 2012-08-22 2013-05-15 杨磊 Financial certificate processing system and method thereof
CN102868688A (en) * 2012-09-05 2013-01-09 天地融科技股份有限公司 Certification system and method and electronic signature tool
CN103747012A (en) * 2013-08-01 2014-04-23 戴林巧 Security verification method, device and system of network transaction
CN103810457A (en) * 2014-03-12 2014-05-21 河南融信数据有限公司 Offline license anti-counterfeiting method based on reliable digital signature and two-dimensional code

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108416562A (en) * 2018-05-04 2018-08-17 亚洲保理(深圳)有限公司 Logistics receipt verification method and device
CN109104411A (en) * 2018-07-13 2018-12-28 中融万博网络科技有限公司 A kind of method that electronic receipt is generated and delivered
CN109104411B (en) * 2018-07-13 2021-09-03 中融万博网络科技有限公司 Electronic receipt generation and delivery method

Similar Documents

Publication Publication Date Title
CN109190347B (en) Electronic signature method
US20160098578A1 (en) System and method for persistent data integrity in document communication
US8085445B2 (en) Method to certify facsimile transmissions
WO2019052226A1 (en) Processing method and apparatus for self-service claim settlement application, computer device and storage medium
US20200403796A1 (en) Platform and method of certification of an electronic contract for electronic identification and trust services (eidas)
CN108764848B (en) Electronic contract signing method and system
US9652768B2 (en) Obfuscating private information using a transaction identifier
JP2010511223A (en) Document verification system and method, and electronic document service providing system
CN107992759B (en) Apparatus, method and computer readable storage medium for implementing electronic seal
US8973110B2 (en) Electronic receipt system, terminal device and method of providing electronic receipt
US20200349146A1 (en) Electronic Document Workflow
US20140245019A1 (en) Apparatus for generating privacy-protecting document authentication information and method of performing privacy-protecting document authentication using the same
CN104636640A (en) File signing method based on intelligent mobile terminal
CN108629637A (en) electronic invoice processing system and electronic invoice processing method
CN104158668A (en) Method and system for realizing electronic signature
US20210272084A1 (en) System and process for electronic payments
KR20000049674A (en) Method for providing and authenticating an electronic signature using a web site
CN105844520A (en) Electronic receipt generating and verifying method
TWM520159U (en) Device for generating and identifying electronic document containing electronic authentication and paper authentication
CN104519054A (en) Digital signature method, device and system
KR101223576B1 (en) An off-line filling-form device based on the bar-code and the method thereof
KR20160028717A (en) System for certificating originality of electronic document using image code and method therefor
KR101359512B1 (en) System and method of authentication for electronic signature on internet
KR101664228B1 (en) Dealing method based on electronic document using verifiable electronic notice of true copy
KR20160130958A (en) System for certificating originality of electronic document using image code and method therefor

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160810