A kind of invoice true check system based on cloud computing and ciphering two-dimension code
Technical field
The present invention relates to a kind of tax invoice verification system, specifically a kind of invoice true check system based on cloud computing and ciphering two-dimension code, also can apply the verification of other similar tax invoice simultaneously.
Background technology
Invoice, as the important component part of China's financial rule, is the important original certificate of accounting, and the Ye Shi tax authority carries out the main effective means that tax adjusts collection, Tax Check.At present, the existing several main true from false of bills of China differentiates that means all have some limitations, and is mainly reflected in:
One: physical security and chemistry false proof
This anti-counterfeiting technology is in invoice printing process, uses special paper or special anti-counterfeiting ink to print invoice, supervise, lower to associated specifications, therefore, there is a large amount of false makings, sell-fake-products, buys vacation, uses the phenomenons such as false.And these means fundamentally cannot solve invoice source and the illegal circulation problem of invoice;
Two: screened by ticket information
By generating Quick Response Code to content of making out an invoice, by this Quick Response Code dump on invoice, when carrying out invoice true from false of bills and differentiating, by comparing to the content of Quick Response Code and nominal value content, being used as true from false of bills and differentiating means.But due to the generation method of Quick Response Code, be all based on disclosed general-purpose algorithm, therefore, the method exists equally by fraudulent copying, carries out the possibility of invoice printing.Further, the invoice content generating Quick Response Code, all based on expressly, therefore, just can be seen private part content wherein, there is the possibility that invoice private data leaks after general Quick Response Code recognizer scanning.Meanwhile, if need the data of scanning and tax office related data to compare, then necessarily require tax office to provide related data, when tax office service disruption, just cannot carry out True-false distinguish.Quick Response Code scanning technique existing at present, more trends towards a kind of means solving Rapid input problem, and the effective foundation can not differentiated as true from false of bills.
The existence of these problems, causing tax office and taxpayer when carrying out True-false distinguish to information such as invoice content, invoice sources, being present in numerous difficulties, can only relying on experience and the professional knowledge of the tax or financial and accountancy personnel.
Summary of the invention
Technical assignment of the present invention is for above-mentioned the deficiencies in the prior art, a kind of invoice true check system based on cloud computing and ciphering two-dimension code is provided, this system, solve trust problem and the problem of data safety of existing invoice verification result, invoice false making can be contained to a certain extent, use false problem.
Technical assignment of the present invention realizes in the following manner: a kind of invoice true check system based on cloud computing and ciphering two-dimension code, comprise tax office cloud computing platform, ciphering two-dimension decoding apparatus and invoice scanning decryption device, described tax office cloud computing platform is used for managing ciphering two-dimension decoding apparatus and invoice scanning decryption device; Described ciphering two-dimension decoding apparatus is used for, for drawer is when invoice issuing, physical invoices printing ciphering two-dimension code; Described invoice scanning decryption device is used for wanting the invoice of verification to scan, deciphers, comparison, and result is carried out exporting as verification foundation according to grade.
Described tax office cloud computing platform, for meeting the demand of the magnanimity invoice data storage of tax office and Multi-task Concurrency identification, comprises electronic invoice data Ku Yun center and security service cloud center,
Information is opened for the electronic invoice storing tax office all in described electronic invoice data Ku Yun center, and externally provides comparing service;
Described security service cloud center adopts asymmetrical encryption algorithm and Digital Envelope Technology, externally provides identification service and provides identity authentication certificate.
Described security service cloud center adopts the asymmetric cryptosystem technology and the Digital Envelope Technology that meet X.509 standard, generates private key, PKI, is applied to ciphering two-dimension decoding apparatus and invoice scanning decryption device respectively.
Described ciphering two-dimension decoding apparatus is encrypted bill billing data by its inner filling private key, and by the data genaration Quick Response Code after encryption, prints to invoice clear area, as invoice verification foundation.
Described invoice scanning decryption device scans wanting the invoice of verification, obtains enciphered data, and is obtained the public key information of this bill billing people by wireless network, be decrypted and comparison enciphered data, export verification result.
Described invoice scanning decryption device is by 3G/2G wireless module access tax office cloud computing platform.
Described verification result comprises I level verification result, II level verification result and III level verification result, and senior verification result has veto power to rudimentary verification result, according to rank from low to high, is followed successively by:
I level, whether successful decryption
II level, whether data decryption is consistent with ticket face data comparison
III level, whether data decryption is consistent with the cloud centre data comparison of electronic invoice data storehouse.
Invoice true check system based on cloud computing and ciphering two-dimension code of the present invention compared with prior art has following outstanding beneficial effect:
(1) use native system, invoice verification result is exported by rank, the invoice verification demand under different environment for use can be met, such as, when tax bureau's cloud computing center cannot be connected, can by the decrypted result of I level as verification result;
(2) asymmetrical encryption algorithm adopted, adopts Digital Envelope Technology to carry out encryption and decryption process to invoice data, can stop the false invoice of the overwhelming majority;
(3) encryption technology is adopted to be encrypted invoice content, part secret identity data can be preserved in the two-dimension code image generated not known by the external world, not only can the information security of effective certified invoice content, also can add the identity identification informations such as the circulation of this invoice, use;
(4) basic as comparing of the electronic invoice information bank of royalities office, fundamentally can set up the faith mechanism of invoice verification result.
Accompanying drawing explanation
Accompanying drawing 1 is the one-piece construction frame diagram of present system;
Accompanying drawing 2 is structural framing figure of ciphering two-dimension decoding apparatus in present system;
Accompanying drawing 3 is structural framing figure of invoice scanning decryption device in present system.
Embodiment
Invoice true check system based on cloud computing and ciphering two-dimension code of the present invention is described in detail below with specific embodiment with reference to Figure of description.
Embodiment:
As shown in Figure 1, the invoice true check system based on cloud computing and ciphering two-dimension code of the present invention comprises tax bureau's cloud computing platform, ciphering two-dimension decoding apparatus and invoice scanning decryption device, and the performing step of this system is as follows:
1) set up cloud computing platform in tax office, mainly comprise " electronic invoice data storehouse cloud " center " and " X.509 standard security service cloud " center ".Wherein, " electronic invoice data storehouse cloud " center " is responsible for storing all electronic invoice of tax office according to relevant criterion and is opened information, and externally provides comparing service.Based on X.509 standard " security service cloud " center ", adopts asymmetrical encryption algorithm and Digital Envelope Technology, externally provides identification service and provides identity authentication certificate.The cloud computing correlation techniques such as electronic invoice data Ku Yun center and the X.509 employing of standard security service cloud center are virtual, Dynamic Resource Allocation for Multimedia, manage computational resource, can meet the demand of the magnanimity invoice data storage of tax office and Multi-task Concurrency identification.
2) at drawer's end, for drawer provides " ciphering two-dimension decoding apparatus ", equipment is issued by tax office security service cloud center.As shown in Figure 2, this equipment is made up of four parts such as microcontroller 1, private data memory block 2, two-dimensional code generation module 3, data encryption module 4.Wherein, microcontroller 1 is responsible for dispatching its excess-three part of module, sends control command and receives result; Private data memory block 2 is responsible for storing the filling private key information in tax office security service cloud center; Data encryption module 4 is responsible for being encrypted make out an invoice business datum and other core sensitive datas of drawer; Data after encryption generate corresponding vector artwork data by two-dimensional code generation module 3, and return to by microcontroller 1 make out an invoice software or printer, print to invoice blank space, as invoice verification foundation.The private key information that private data memory block 2 stores, filling by tax office security service cloud center.
3) user (unit) of invoice verification demand is being had, for it provides invoice to scan decryption device.This equipment by tax office " security service cloud " center " manages, be responsible for identification is carried out to it, the equipment that identification is not passed through, do not possess invoice verification authority.As shown in Figure 3, this equipment is made up of six parts such as microcontroller 5,3G/2G wireless module 6, data decryption module 7, scan camera shooting head 8, picture recognition module 9, private data memory blocks 10.Wherein, microcontroller 5 is responsible for dispatching all the other five part of module, sends control command and receives result; Scan camera shooting head 8 is responsible for scanning the two-dimensional code data in physical invoices; Picture recognition module 9 is responsible for carrying out Quick Response Code decoding to the picture of scanning, obtains original encryption data; Data decryption module 7, by using the PKI in private data memory block 10, oppositely deciphers enciphered data, obtains data clear text; Private data memory block 10, is responsible for store decrypted PKI; 3G/2G wireless module 6, is responsible for by internet or special VPN/APN channel, and the cloud computing platform of access tax office, carries out data interaction.Public key information in private data memory block 10, by microcontroller 5 by wireless module 6, obtains from security service cloud center in real time, and it is for subsequent use that the public key information of acquisition can do buffer memory in this locality.
4) invoice verification flow process is as follows:
When taxpayer take invoice need to carry out True-false distinguish time, need to hold invoice on invoice scanning decryption device
(1) by camera module, invoice is scanned;
(2) after having scanned, dispatch picture recognition module by microcontroller, Quick Response Code is identified, obtain original encryption invoice data;
(3) if success, so notify microprocessor, scheduling 3G/2G wireless module, the security service cloud center of access tax office, obtain the public key information of this bill billing people, and downloaded stored is in private data memory block; If can not find the public key information of this drawer, so from local cache, find buffer memory public key information; If two places all cannot obtain public key information, so point out user " current verification service is unavailable, asks coupled system attendant ";
(4) Microprocessor S3C44B0X data decryption module, uses the PKI got to be decrypted encryption invoice data, deciphers unsuccessfully, then judge that this invoice is as false invoice, successful decryption, then judge that this invoice verification rank is as I level;
(5) taxpayer can compare to the ticket face data after deciphering and physical invoices type information, if data decryption is consistent with ticket face data, so can judge that this invoice verification rank is as II level;
(6) after successful decryption, microprocessor controls 3G/2G wireless module, the ratio docking port at access tax office electronic invoice data Ku Yun center, compares to invoice data, if comparison is consistent, then judges that this invoice verification rank is as III level.
5) different verification ranks is tried out in different verification environment, such as: under normal circumstances, judges that the invoice of III level verification result must be true invoice; When the electronic invoice data storehouse of tax office cloud computing center cannot be accessed, if user judges that verification rank is II level, also can be used as true invoice and process; Cannot recognize when invoice is stained, but when only having two-dimension code area to identify, and the comparison service of tax office because of force majeure factor interrupt time, I level verification result, also can be used as true invoice and processes.