CN103955664B - High-speed document scanner capable of safely decoding two-dimensional code of vehicle approval certificate and decoding method - Google Patents

High-speed document scanner capable of safely decoding two-dimensional code of vehicle approval certificate and decoding method Download PDF

Info

Publication number
CN103955664B
CN103955664B CN201410176419.2A CN201410176419A CN103955664B CN 103955664 B CN103955664 B CN 103955664B CN 201410176419 A CN201410176419 A CN 201410176419A CN 103955664 B CN103955664 B CN 103955664B
Authority
CN
China
Prior art keywords
security module
shield
photographing instrument
key
high photographing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410176419.2A
Other languages
Chinese (zh)
Other versions
CN103955664A (en
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.)
Synthesis Electronic Technology Co Ltd
Original Assignee
Synthesis Electronic 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 Synthesis Electronic Technology Co Ltd filed Critical Synthesis Electronic Technology Co Ltd
Priority to CN201410176419.2A priority Critical patent/CN103955664B/en
Publication of CN103955664A publication Critical patent/CN103955664A/en
Application granted granted Critical
Publication of CN103955664B publication Critical patent/CN103955664B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Lock And Its Accessories (AREA)
  • Time Recorders, Dirve Recorders, Access Control (AREA)

Abstract

The invention provides a high-speed document scanner capable of safely decoding a two-dimensional code of a vehicle approval certificate. A U-type shield security module is inserted or embedded in the high-speed document scanner. The high-speed document scanner is used for collecting a two-dimensional code image. The U-type shield security module is used for converting ciphertext information into plaintext information. A decoding method includes the steps that (a) the high-speed document scanner is connected with a PC, and the U-type shield security module is connected with the high-speed document scanner; (b) the high-speed document scanner judges whether a U-type shield is legal by verifying the correctness of authentication data; (c) the high-speed document scanner collects the two-dimensional code image and obtains a decodable image through an image processing method; (d) the high-speed document scanner conducts decoding to obtain ciphertext binary data of the two-dimensional code; (e) the high-speed document scanner sends a two-dimensional code ciphertext to the U-type shield, and the U-type shield obtains the plaintext information of the two-dimensional code through a decryption algorithm. According to the high-speed document scanner and the decoding method, decoding of the two-dimensional code is conducted in the U-type shield, so that the security of the decryption algorithm and a decryption key is ensured, scanning equipment is not needed, the process is simplified, the data entry efficiency is improved, and expenses for purchasing the scanning equipment are omitted.

Description

A kind of vehicle quality certificates two-dimension code safe decoding high photographing instrument and coding/decoding method
Technical field
The present invention relates to a kind of vehicle quality certificates two-dimension code safe decoding high photographing instrument and coding/decoding method, in particular, especially It is related to a kind of high-definition image of vehicle quality certificates Quick Response Code of utilization high photographing instrument collection and obtains two dimension by U-shield security module The high photographing instrument and coding/decoding method of code cleartext information.
Background technology
With the release of the new edition quality certification, various places vehicle management is caned qualified by directly reading when new car is registered Two-dimensional bar code on card carrys out collection vehicle data, solves the problems, such as that manual typing is slow and error-prone, so as to improve vehicle administration office's vehicle The efficiency and accuracy of registration.National Traffic Management Research Institute, Ministry of Public Security is in " motor vehicle register system " software that the whole nation is unified In increased quality certification two-dimensional bar code automatic reading function, according to the unified plan of Traffic Administration Bureau of the Ministry of Public Security, the software has been issued Each vehicle administration office uses.
In order to prevent the forgery of vehicle quality certificates, the two-dimensional bar code on the quality certification employs the means of data encryption.At present, The cleartext information of two-dimensional bar code only can be just obtained using the dedicated scan rifle for being loaded with decipherment algorithm.Therefore, in vehicle pipe The desk device used is needed to include during reason institute transacting business:
Second-generation resident identification card verifies equipment, for verifying transactor's identity information;
High photographing instrument, retains for shooting image in 2 D code and customer information;
Dedicated scan rifle, for reading the two-dimensional bar code of vehicle quality certificates.
The main process that two-dimensional bar code reads is the process of an image recognition, and by camera the image letter of bar code is obtained Breath, then obtains binary bar code information by the image procossing of computer.In vehicle quality certificates reading process, most first reading What is obtained is the 2 D code information through encrypting, then through the process of decipherment algorithm, the final bar code information for obtaining plaintext.Mesh Before, decipherment algorithm is stored in the processor chips of dedicated scan rifle, after the two-dimensional bar code for reading vehicle quality certificates, is solved Close computing.
High photographing instrument is generally connected by USB port with host computer, and the image that high photographing instrument camera is photographed is through pre- place Host computer is transferred to after reason.The Image semantic classification of high photographing instrument includes frame choosing, mirror image, rotates, cuts, changing image size, instead Color, gray-scale map, binary map, dithering process, colour switching, Gamma correction, increase brightness, reduction brightness, increase saturation degree, reduction Saturation degree etc., can effectively lift the quality of original image.The camera of high photographing instrument can generally achieve 5,000,000 pixels, be higher than Scanner camera, therefore the image obtained by high photographing instrument can accurately read the information of Quick Response Code.
The principle of scanner is to obtain two-dimensional barcode image information by the camera of high-resolution, and then two-dimensional bar code is entered Row decoding process, decryption program is solidificated in barcode scanning gun, and security is poor.High photographing instrument is a kind of image acquisition equipment, therefore, it The image information of two-dimensional bar code can be obtained, image procossing, two-dimensional bar code decoding, decryption oprerations are then carried out, vehicle is obtained and is closed The cleartext information of lattice card.Customer information retention can be so carried out, the acquisition of vehicle quality certificates Quick Response Code can be carried out again, so as to reality The multiplexing of existing high photographing instrument function.
In banking, for service security on catch net, secure hardware U-shield is generally adopted.
U-shield is for protecting Web bank's client secure " SmartGuard "." U-shield " employs to use has physics to be situated between Individual client's certificate of matter, sets up based on the personal certificate authentication system of public key PKI technologies.PKI(Public Key Infrastructure it is) that a kind of utilization public key cryptography for following standard provides a set of safe base for the development of ecommerce The technology and specification of plinth platform.In technical elements, customer's certificate passes through personal certificate certification and digital signature technology, to client's Authentication is implemented in online transaction, and can sign miscellaneous service service agreement, it is ensured that transaction is unique, complete with agreement With it is undeniable.It is a band intelligent chip, is shaped like in flash memory(That is USB flash disk)Hardware in kind, be current Web bank A kind of highest-ranking security tool of client secure.
U-shield security module possesses very strong anti-attack ability on physical hardware, and U-shield chip employs leading in the world at present Information security technology, hard core module adopts smart card cpu chip, internal structure by CPU and encryption logic, RAM, ROM, EEPROM and the parts of I/O five constitute, and are a minicoms with security system.
(1)The code storage of safety:In U-shield chip, cryptographic algorithm can be loaded into U-shield core by the initialization of U-shield Inside piece, once initialization is completed, then the hardware security module of U-shield and Chip Operating System COS can be protected inside U-shield Information can not be by extraneous access.The command interface that all access to U-shield can only be specified by COS is operated.Therefore deposit Cryptographic algorithm code in U-shield is safe.The full name of COS is Chip Operating System (chip operating system), The characteristics of it is usually the smart card serviced tightened around it and develop.
(2)The key storage of safety:In internal intelligent chip, user cannot be from outside directly for the key storage of U-shield Read, the read-write and modification to key file all must call corresponding program file to perform by the CPU inside U-shield, so as to U-shield The outside of interface, can be read out, changes, updates and delete without any one instruction to the content of key zone, so can be with Ensure that disabled user cannot change key using illegal program.
(3)Hardware realizes AES:The built-in CPU of U-shield or intelligent card chip, it is possible to achieve data summarization, data add solution Close and signature various algorithms, encryption and decryption computing is carried out in U-shield, it is ensured that user key is not appeared in calculator memory.
(4)Double-key cipher system:In order to improve security, U-shield employs conbined public or double key cipher system and ensures security, in U When shield is initialized, first cryptographic algorithm program is fired in ROM, then by the Program Generating one of generation public and private key pair To public and private key, after public and private key is produced, public key can be exported to outside U-shield, and private key is then stored in key zone, do not allow outside Access.When being digitally signed and during asymmetric decryption computing, every crypto-operation only can be completed in chip internal, whole Private key can not go out U-shield medium, so as to perfect in safety to ensure the digital certificate authentication with U-shield as storage medium.
The content of the invention
Shortcoming in order to overcome above-mentioned technical problem of the invention, there is provided a kind of vehicle quality certificates two-dimension code safe decoding is high Clap instrument and coding/decoding method.
The vehicle quality certificates two-dimension code safe decoding high photographing instrument of the present invention, claps including carrying out the high of high-definition image collection Instrument, it is characterised in that:The high photographing instrument grafting is embedded with U-shield security module, and high photographing instrument is used for collection vehicle quality certification two dimension The image of code, and the ciphertext binary data of Quick Response Code is obtained by the process to image;U-shield security module is used for ciphertext two Binary data is converted into plaintext binary data, to obtain vehicle registration registration data.
High photographing instrument is used to shoot the two-dimension code pattern of vehicle quality certificates, and utilizes embedded Quick Response Code reading code method by two dimension Code is converted into ciphertext binary data, and the decryption to Quick Response Code ciphertext data is realized in U-shield security module, is effectively guaranteed The security of decipherment algorithm and decruption key.Due to the corresponding information of vehicles of Quick Response Code can be obtained using high photographing instrument, it is to avoid The use of two-dimensional code scanning rifle, simplifies collecting vehicle information step, has saved cost.
The vehicle quality certificates two-dimension code safe decoding high photographing instrument of the present invention, the high photographing instrument is connected with carries out data storage PC, U-shield security module sends the plaintext binary data after conversion to PC.
The vehicle quality certificates two-dimension code safe of the present invention decodes the coding/decoding method of high photographing instrument, it is characterised in that including following Step:A). the connection of equipment, high photographing instrument is connected with the PORT COM of PC, to realize the number between PC and high photographing instrument According to transmission;Initialized U-shield security module is connected with grafting or embedded form with high photographing instrument, to realize high photographing instrument and U Data transfer between shield module;B). identification of equipment validity, the certification that high photographing instrument is sent by checking U-shield security module Whether the correctness of data is legal to judge connected U-shield security module;C). the collection and process of image in 2 D code, height is clapped The original image of instrument collection vehicle quality certification Quick Response Code, and decodable Quick Response Code is obtained by image processing method clearly scheme Picture;D). the acquisition of Quick Response Code ciphertext, image in 2 D code of the high photographing instrument after to process is decoded, and obtains the close of Quick Response Code Literary binary data;E). the acquisition of Quick Response Code plaintext, high photographing instrument sends the ciphertext binary data of Quick Response Code to U-shield safety Module, U-shield security module is decrypted by decipherment algorithm to ciphertext binary data, obtains the plaintext binary number of Quick Response Code According to, and will be stored in plaintext binary data transmission to PC.
The vehicle quality certificates two-dimension code safe of the present invention decodes the coding/decoding method of high photographing instrument, U-shield security module in step a) Initialization realized by following steps:A-1). loading algorithm and key, load vehicle quality certificates in U-shield security module The decipherment algorithm of Quick Response Code, the master key of decruption key and U-shield security module and certification key, if a loading is lost Lose, then provide the advisory alarm of loading error;A-2). input and acquisition information, it is input into encryption factor in U-shield security module Enfac and authorization code PIN, and obtain the unique identifier UID of U-shield security module;A-3). mask key is generated, is pacified using U-shield The unique identifier UID and authorization code PIN of full module generates mask key;A-4). decruption key is encrypted, will be added first Close factor Enfac is filled in behind U-shield security module master key, generates temporary key;Then using temporary key to decryption Key is encrypted, and the decruption key after encryption is stored in U-shield security module;A-5). the encryption of encryption factor, using covering The code key pair encryption factor is encrypted, the encryption factor after being encrypted, so that encryption factor becomes encryption from exposed state State;A-6). information is loaded into into high photographing instrument, authorization code PIN, certification key and encrypted encryption factor are loaded into into high photographing instrument In, complete the initialization of U-shield security module.Wherein, the initialization of U-shield security module is realized in production link.
The vehicle quality certificates two-dimension code safe of the present invention decodes the coding/decoding method of high photographing instrument, Quick Response Code plaintext in step e) Acquisition is realized by following steps:E-1). Quick Response Code ciphertext is sent, high photographing instrument to U-shield security module sends the close of Quick Response Code Literary binary data, so that U-shield security module is decrypted to the ciphertext of Quick Response Code;E-2). send decryption data, high photographing instrument Authorization code PIN and the encryption factor encrypted are sent to U-shield security module;E-3). mask key is generated, U-shield security module is first The unique identifier UID of itself is first obtained, recycles UID to generate the mask of encryption factor Enfac with the authorization code PIN for receiving Key;E-4). encryption factor is obtained, reduction is carried out with the encryption factor after mask key pair encryption and is obtained encryption factor Enfac; E-5). encrypted decruption key is read, U-shield security module reads encrypted decruption key in initialization procedure;e-7). Decruption key is obtained, encryption factor is filled in behind U-shield master key, generate temporary key, added to being in using temporary key The decruption key of close state is decrypted, and obtains decruption key;E-8). Quick Response Code is obtained in plain text, using decruption key to ciphertext Binary data is decrypted, and obtains plaintext binary data, and plaintext binary data is uploaded to into PC.
The vehicle quality certificates two-dimension code safe of the present invention decodes the coding/decoding method of high photographing instrument, and the equipment described in step b) is legal Property certification is realized by following steps:B-1). checking request is sent, high photographing instrument to U-shield security module sends RANDOM NUMBER request, To ask to be mutually authenticated;B-2). passback random number, U-shield security module produces random number and sends it to high photographing instrument;b-3). Authentication data being produced, U-shield security module is by step b-2) random number and the certification key of itself storage that produce carry out RSA fortune Calculate, and the result that computing is obtained sends high photographing instrument to as authentication data;B-4). judge whether operation result is identical, height is clapped Instrument carries out RSA operation using the random number for receiving with the certification key of itself storage, and judges itself operation result and U-shield Whether the authentication data of security module transmission is identical, if identical, then it is assumed that U-shield security module is legal;If it is not the same, then recognizing Illegal, the authentication failed for U-shield security module.
The vehicle quality certificates two-dimension code safe of the present invention decodes the coding/decoding method of high photographing instrument, the two dimension in step c) to obtaining The processing method of code image includes frame choosing, mirror image, rotates, cuts, changing image size, inverse, gray-scale map, binary map, shake Process, colour switching, Gamma correction, increase saturation degree, reduction saturation degree, increase brightness and/or reduction brightness processed.
The vehicle quality certificates two-dimension code safe of the present invention decodes the coding/decoding method of high photographing instrument, high photographing instrument and PC in step a) It is connected by USB port;U-shield security module is connected with high photographing instrument also by USB port.
The invention has the beneficial effects as follows:The vehicle quality certificates two-dimension code safe decoding high photographing instrument of the present invention and coding/decoding method, By the high-definition image of high photographing instrument collection vehicle quality certification Quick Response Code and decode, obtain the ciphertext binary data of Quick Response Code;Profit With decruption key and decipherment algorithm the ciphertext of Quick Response Code is decrypted in U-shield security module, obtains the plaintext two of Quick Response Code Binary data, realizes the acquisition of vehicle registration registration data.Because the decryption of data is carried out in U-shield security module , the security of decipherment algorithm and decruption key is effectively guaranteed, while avoiding existing vehicle, immediately two-dimensional code scanning sets Standby use, not only simplify flow process, improves data inputting efficiency, and also save the spending of buying scanning device.
Due to carrying out data deciphering using the U-shield security module for supporting hot plug, with plug and play, it is easy to carry and protects The advantage of pipe.In existing equipment, decryption program is solidificated in barcode scanning gun, and security is poor, using silver in the present invention Protecting the algorithm and key of the decryption of Quick Response Code, security is very high, Ke Yiyou for the wide variety of secure hardware-U-shield of industry Effect solves the safety problem of vehicle quality certificates Quick Response Code decoding.
The high photographing instrument of the present invention and the advantage of coding/decoding method are embodied in:
(1)The image information of two-dimensional bar code is obtained by high photographing instrument, Image semantic classification and Quick Response Code decoding is then carried out, is entered And operation is decrypted using U-shield, obtain the cleartext information of vehicle quality certificates.Customer information retention, and energy can so be carried out The acquisition of vehicle quality certificates Quick Response Code is carried out, so as to realize the multiplexing of high photographing instrument function.
(2)Dedicated scan rifle need not be used, the government procurement expense of thousand of units per platform can be saved then, while making car The business handling of management institute is more succinct, facilitate.
(3)U-shield security module is inserted in high photographing instrument base USB interface in the form of USB device, or directly against being attached to height Clap on the circuit board of instrument, high photographing instrument is obtained after image, Quick Response Code is decoded by images themselves processing module, and then phase is carried out with U-shield Mutually certification, effectively improves system effectiveness.
(4)In U-shield key and decipherment algorithm by U-shield software and hardware safeguard protection, will not be by unauthorized access.Should in application When scheme reads vehicle quality certificates Quick Response Code, the two-dimensional code data for needing decryption is sent to U-shield security module, U-shield by high photographing instrument Security module is decrypted, and plaintext is sent back to, and in the process the mode of operation of U-shield is the black box of a safety, its inside Algorithm will not leak with key, so as to ensure that security.
(5)Protection is encrypted by U-shield certification protection, to encryption factor and protection is encrypted to master key, have Effect improves the security that system decrypts Quick Response Code.
Description of the drawings
Fig. 1 is the flow chart of the coding/decoding method of the two-dimension code safe decoding high photographing instrument of the present invention;
Fig. 2 is the initialization flowchart of U-shield security module in the present invention;
Fig. 3 is the acquisition flow chart of Quick Response Code plaintext binary data in the present invention;
Fig. 4 is the flow chart that high photographing instrument is mutually authenticated with U-shield security module.
Specific embodiment
Below in conjunction with the accompanying drawings the invention will be further described with embodiment.
The vehicle quality certificates two-dimension code safe decoding high photographing instrument of the present invention is made up of high photographing instrument, U-shield security module and PC, High photographing instrument is used for the image of collection vehicle quality certification Quick Response Code and the other information of registrant, U-shield security module by grafting or Embedded form is connected with high photographing instrument communication, and the image of high photographing instrument collection Quick Response Code simultaneously obtains Quick Response Code by the process to image Ciphertext binary data;U-shield security module is used to for ciphertext binary data to be converted into plaintext binary data, to obtain car Registration data.High photographing instrument can be connected with PC by USB port, and U-shield security module also can pass through with high photographing instrument USB port is connected.
As shown in figure 1, giving the flow chart of the coding/decoding method of the two-dimension code safe decoding high photographing instrument of the present invention, it passes through Following steps are realizing:
A). the connection of equipment, high photographing instrument is connected with the PORT COM of PC, to realize between PC and high photographing instrument Data transfer;Initialized U-shield security module is connected with grafting or embedded form with high photographing instrument, with realize high photographing instrument with Data transfer between U-shield module;
As shown in Fig. 2 the initialization flowchart of U-shield security module is given, the initialization of U-shield security module in the step Realized by following steps:
A-1). loading algorithm and key, decipherment algorithm, the solution of vehicle quality certificates Quick Response Code are loaded in U-shield security module The master key and certification key of key and U-shield security module, if a loading failure, then provides the report of loading error Accuse and remind;
U-shield security module needs to be loaded into three kinds of keys in initialization procedure, for decrypting the decruption key of 2 D code information, For the U-shield master key of encrypted decryption key, and for the unique authentication key of U-shield legitimacy identification.
A-2). input and acquisition information, encryption factor Enfac and authorization code PIN are input into in U-shield security module, and obtain Take the unique identifier UID of U-shield security module;
The UID of U-shield represents the unique identifier of U-shield, is loaded in U-shield production process, it is impossible to by extraneous reading.Authorize Code PIN and encryption factor Enfac are manually set before U-shield initialization, for initialization and two-dimensional code data decrypting process.
A-3). mask key is generated, mask is generated using the unique identifier UID and authorization code PIN of U-shield security module close Key;
U-shield inside UID generates mask key with the PIN of extraneous input.In initialization procedure, mask key is outer for encrypting The Enfac of boundary's input;In two-dimensional code data decrypting process, mask key be used to decrypting extraneous input in encrypted state Enfac。
A-4). decruption key is encrypted, first encryption factor Enfac U-shield security module master key is filled in into Below, temporary key is generated;Then decruption key is encrypted using temporary key, and the decruption key after encryption is stored in In U-shield security module;
Encryption factor Enfac is used to fill U-shield master key, generates temporary key.In initialization procedure, temporary key is used for Encrypted decryption key;In two-dimensional code data decrypting process, temporary key is used for decruption key of the decryption in encrypted state.
A-5). the encryption of encryption factor, be encrypted using the mask key pair encryption factor, the encryption after being encrypted because Son, so that encryption factor becomes encrypted state from exposed state;
A-6). information is loaded into into high photographing instrument, authorization code PIN, certification key and encrypted encryption factor is loaded into high In clapping instrument, the initialization of U-shield security module is completed
B). identification of equipment validity, the correctness of the authentication data that high photographing instrument is sent by checking U-shield security module, Whether the U-shield security module to judge connected is legal;
As shown in figure 4, giving the flow chart that high photographing instrument is mutually authenticated with U-shield security module, equipment is legal in the step Property certification is realized by following steps:
B-1). checking request is sent, high photographing instrument to U-shield security module sends RANDOM NUMBER request, to ask to be mutually authenticated;
B-2). passback random number, U-shield security module produces random number and sends it to high photographing instrument;
B-3). authentication data is produced, U-shield security module is by step b-2) random number that produces is close with the certification that itself is stored Key carries out RSA operation, and the result that computing is obtained sends high photographing instrument to as authentication data;
B-4). judge whether operation result is identical, high photographing instrument is close with the certification that itself is stored using the random number for receiving Key carries out RSA operation, and judges whether the operation result of itself is identical with the authentication data that U-shield security module is transmitted, if phase Together, then it is assumed that U-shield security module is legal;If it is not the same, then think that U-shield security module is illegal, authentication failed.
C). the collection and process of image in 2 D code, the original image of high photographing instrument collection vehicle quality certification Quick Response Code, and pass through Image processing method obtains decodable Quick Response Code picture rich in detail;
The processing method of image in 2 D code includes frame choosing, mirror image, rotates, cuts, changing image size, instead in the step Color, gray-scale map, binary map, dithering process, colour switching, Gamma correction, increase saturation degree, reduce saturation degree, increase brightness and/ Or reduction brightness processed.
D). the acquisition of Quick Response Code ciphertext, image in 2 D code of the high photographing instrument after to process is decoded, and obtains Quick Response Code Ciphertext binary data;
E). the acquisition of Quick Response Code plaintext, high photographing instrument sends the ciphertext binary data of Quick Response Code to U-shield security module, U Shield security module is decrypted by decipherment algorithm to ciphertext binary data, obtains the plaintext binary data of Quick Response Code, and To be stored in plaintext binary data transmission to PC.
As shown in figure 3, the acquisition flow chart of Quick Response Code plaintext binary data in the present invention is given, two dimension in the step The acquisition of code plaintext is realized by following steps:
E-1). Quick Response Code ciphertext is sent, high photographing instrument sends the ciphertext binary data of Quick Response Code to U-shield security module, with Just U-shield security module is decrypted to the ciphertext of Quick Response Code;
E-2). send decryption data, high photographing instrument to U-shield security module send authorization code PIN and the encryption encrypted because Son;
E-3). generate mask key, U-shield security module obtains first the unique identifier UID of itself, recycle UID with The authorization code PIN for receiving generates the mask key of encryption factor Enfac;
E-4). encryption factor is obtained, reduction is carried out with the encryption factor after mask key pair encryption and is obtained encryption factor Enfac;
E-5). encrypted decruption key is read, it is close that U-shield security module reads encrypted decryption in initialization procedure Key;
E-7). decruption key is obtained, encryption factor is filled in behind U-shield master key, generate temporary key, using interim Key is decrypted to the decruption key in encrypted state, obtains decruption key;
E-8). obtain Quick Response Code in plain text, ciphertext binary data is decrypted using decruption key, obtain plaintext two and enter Data processed, and plaintext binary data is uploaded to into PC.
The vehicle quality certificates two-dimension code safe decoding high photographing instrument of the present invention and coding/decoding method, obtain vehicle and close by high photographing instrument Lattice demonstrate,prove the ciphertext binary data of Quick Response Code, then the ciphertext of Quick Response Code is decrypted in U-shield security module, obtain Quick Response Code Plaintext binary data, realize the acquisition of vehicle registration registration data.Because the decryption of data is in U-shield security module In carry out, be effectively guaranteed the security of decipherment algorithm and decruption key, while avoiding existing vehicle immediately Quick Response Code The use of scanning device, not only simplify flow process, improves data inputting efficiency, and also save opening for buying scanning device .

Claims (5)

1. a kind of vehicle quality certificates two-dimension code safe decodes the coding/decoding method of high photographing instrument, and the decoding of vehicle quality certificates two-dimension code safe is high Clapping instrument includes carrying out the high photographing instrument of high-definition image collection, the high photographing instrument grafting or is embedded with U-shield security module, and high photographing instrument is used In the image of collection vehicle quality certification Quick Response Code, and the ciphertext binary data of Quick Response Code is obtained by the process to image;U-shield Security module is used to for ciphertext binary data to be converted into plaintext binary data, to obtain vehicle registration registration data;Institute State high photographing instrument and be connected with the PC for carrying out data storage, U-shield security module sends the plaintext binary data after conversion to PC Machine;Characterized in that, coding/decoding method is comprised the following steps:
A). the connection of equipment, high photographing instrument is connected with the PORT COM of PC, to realize the data between PC and high photographing instrument Transmission;Initialized U-shield security module is connected with grafting or embedded form with high photographing instrument, to realize high photographing instrument and U-shield Data transfer between module;
B). identification of equipment validity, high photographing instrument is sentenced by verifying the correctness of the authentication data that U-shield security module is sent Whether disconnected connected U-shield security module is legal;
C). the collection and process of image in 2 D code, the original image of high photographing instrument collection vehicle quality certification Quick Response Code, and by image Processing method obtains decodable Quick Response Code picture rich in detail;
D). the acquisition of Quick Response Code ciphertext, image in 2 D code of the high photographing instrument after to process is decoded, and obtains the close of Quick Response Code Literary binary data;
E). the acquisition of Quick Response Code plaintext, high photographing instrument sends the ciphertext binary data of Quick Response Code to U-shield security module, U-shield peace Full module is decrypted by decipherment algorithm to ciphertext binary data, obtains the plaintext binary data of Quick Response Code, and will be bright Literary binary data transmission is stored into PC;
Wherein, the initialization of U-shield security module is realized by following steps in step a):
A-1). loading algorithm and key, decipherment algorithm, the decryption that vehicle quality certificates Quick Response Code is loaded in U-shield security module is close The master key and certification key of key and U-shield security module, if a loading failure, then the report for providing loading error is carried Wake up;
A-2). input and acquisition information, encryption factor Enfac and authorization code PIN are input into in U-shield security module, and obtain U-shield The unique identifier UID of security module;
A-3). mask key is generated, using the unique identifier UID and authorization code PIN of U-shield security module mask key is generated;
A-4). decruption key is encrypted, encryption factor Enfac is filled in behind U-shield security module master key first, Generate temporary key;Then decruption key is encrypted using temporary key, and the decruption key after encryption is stored in into U-shield peace In full module;
A-5). the encryption of encryption factor, it is encrypted using the mask key pair encryption factor, the encryption factor after being encrypted, So that encryption factor becomes encrypted state from exposed state;
A-6). information is loaded into into high photographing instrument, authorization code PIN, certification key and encrypted encryption factor are loaded into into high photographing instrument In, complete the initialization of U-shield security module.
2. vehicle quality certificates two-dimension code safe according to claim 1 decodes the coding/decoding method of high photographing instrument, it is characterised in that The acquisition of Quick Response Code plaintext in step e) is realized by following steps:
E-1). Quick Response Code ciphertext is sent, high photographing instrument sends the ciphertext binary data of Quick Response Code to U-shield security module, so as to U-shield Security module is decrypted to the ciphertext of Quick Response Code;
E-2). decryption data are sent, high photographing instrument to U-shield security module sends authorization code PIN and the encryption factor encrypted;
E-3). mask key is generated, U-shield security module obtains first the unique identifier UID of itself, recycle UID and receive The authorization code PIN for arriving generates the mask key of encryption factor Enfac;
E-4). encryption factor is obtained, reduction is carried out with the encryption factor after mask key pair encryption and is obtained encryption factor Enfac;
E-5). encrypted decruption key is read, U-shield security module reads encrypted decruption key in initialization procedure;
E-7). decruption key is obtained, encryption factor is filled in behind U-shield master key, temporary key is generated, using temporary key Decruption key in encrypted state is decrypted, decruption key is obtained;
E-8). obtain Quick Response Code in plain text, ciphertext binary data is decrypted using decruption key, obtain plaintext binary number According to, and plaintext binary data is uploaded to into PC.
3. vehicle quality certificates two-dimension code safe according to claim 1 decodes the coding/decoding method of high photographing instrument, it is characterised in that Identification of equipment validity described in step b) is realized by following steps:
B-1). checking request is sent, high photographing instrument to U-shield security module sends RANDOM NUMBER request, to ask to be mutually authenticated;
B-2). passback random number, U-shield security module produces random number and sends it to high photographing instrument;
B-3). authentication data is produced, U-shield security module is by step b-2) the certification key that stores with itself of the random number that produces enters Row RSA operation, and the result that computing is obtained sends high photographing instrument to as authentication data;
B-4). judge whether operation result is identical, high photographing instrument is entered using the certification key that the random number for receiving is stored with itself Row RSA operation, and judge whether the operation result of itself is identical with the authentication data that U-shield security module is transmitted, if identical, Think that U-shield security module is legal;If it is not the same, then think that U-shield security module is illegal, authentication failed.
4. vehicle quality certificates two-dimension code safe according to claim 1 decodes the coding/decoding method of high photographing instrument, it is characterised in that The processing method of the image in 2 D code in step c) to obtaining includes frame choosing, mirror image, rotates, cuts, changing image size, instead Color, gray-scale map, binary map, dithering process, colour switching, Gamma correction, increase saturation degree, reduce saturation degree, increase brightness and/ Or reduction brightness processed.
5. vehicle quality certificates two-dimension code safe according to claim 1 decodes the coding/decoding method of high photographing instrument, it is characterised in that High photographing instrument is connected with PC by USB port in step a);U-shield security module is connected with high photographing instrument also by USB port.
CN201410176419.2A 2014-04-29 2014-04-29 High-speed document scanner capable of safely decoding two-dimensional code of vehicle approval certificate and decoding method Active CN103955664B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410176419.2A CN103955664B (en) 2014-04-29 2014-04-29 High-speed document scanner capable of safely decoding two-dimensional code of vehicle approval certificate and decoding method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410176419.2A CN103955664B (en) 2014-04-29 2014-04-29 High-speed document scanner capable of safely decoding two-dimensional code of vehicle approval certificate and decoding method

Publications (2)

Publication Number Publication Date
CN103955664A CN103955664A (en) 2014-07-30
CN103955664B true CN103955664B (en) 2017-05-10

Family

ID=51332939

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410176419.2A Active CN103955664B (en) 2014-04-29 2014-04-29 High-speed document scanner capable of safely decoding two-dimensional code of vehicle approval certificate and decoding method

Country Status (1)

Country Link
CN (1) CN103955664B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104240259B (en) * 2014-10-10 2017-04-05 江苏国光信息产业股份有限公司 High photographing instrument voucher intelligence cutting edge correction system and method based on contours segmentation
CN105787403B (en) * 2014-12-19 2019-03-05 新大陆数字技术股份有限公司 A kind of bar code reading method of high pixel image processing and the bar code recognizing apparatus of high pixel image processing
CN106650870A (en) * 2016-11-01 2017-05-10 南京理工大学 Access safety two-dimensional code generation method
CN109005201A (en) * 2018-11-02 2018-12-14 美的集团股份有限公司 Transmission method, server, equipment and the storage medium of creation data
CN111539496A (en) * 2020-04-20 2020-08-14 山东确信信息产业股份有限公司 Vehicle information two-dimensional code generation method, two-dimensional code license plate, authentication method and system
CN112991609A (en) * 2021-02-23 2021-06-18 长久金孚企业管理咨询(深圳)有限公司 Method, device and equipment for identifying authenticity of automobile certificate

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201251784Y (en) * 2008-09-19 2009-06-03 北京飞天诚信科技有限公司 USB Key device for reading a bar code
CN202758366U (en) * 2012-07-24 2013-02-27 吉林省通程科技有限公司 Anti-fake graph code reading system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009239328A (en) * 2008-03-25 2009-10-15 Canon Inc Image processing device, and image processing method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201251784Y (en) * 2008-09-19 2009-06-03 北京飞天诚信科技有限公司 USB Key device for reading a bar code
CN202758366U (en) * 2012-07-24 2013-02-27 吉林省通程科技有限公司 Anti-fake graph code reading system

Also Published As

Publication number Publication date
CN103955664A (en) 2014-07-30

Similar Documents

Publication Publication Date Title
AU2021203184B2 (en) Transaction messaging
KR102560512B1 (en) data check
CN103955664B (en) High-speed document scanner capable of safely decoding two-dimensional code of vehicle approval certificate and decoding method
CN104639516B (en) Identity identifying method, equipment and system
CN101897165B (en) Method of authentication of users in data processing systems
CN105160242B (en) Certificate loading method, certificate update method and the card reader of a kind of card reader
US20100250936A1 (en) Integrated circuit, encryption communication apparatus, encryption communication system, information processing method and encryption communication method
US9800408B2 (en) Method of generating secure tokens and transmission based on (TRNG) generated tokens and split into shares and the system thereof
US10796302B2 (en) Securely storing and using sensitive information for making payments using a wallet application
CN103413159B (en) A kind of RFID electronic certificate off-line false proof realization method and system of Jianzhen based on CPK
CN110677376B (en) Authentication method, related device and system and computer readable storage medium
WO2017045594A1 (en) Anti-counterfeit method
CN103473592B (en) A kind of label off-line authenticating method and device based on CPK system
CN106067205B (en) A kind of gate inhibition's method for authenticating and device
CN104463016B (en) Data safety storing method suitable for IC cards and two-dimension codes
CN106953732B (en) Key management system and method for chip card
CN108681909A (en) The intelligent anti-counterfeiting device realized based on block chain intelligence contract and method for anti-counterfeit of tracing to the source
CN103326864A (en) Electronic tag anti-fake authentication method
KR20170005400A (en) System and method for encryption
CN103345703A (en) Banking transaction authentication method and system based on image authentication
CN103516524A (en) Security authentication method and system
CN104125064A (en) Dynamic password authentication method, client and authentication system
TWI476629B (en) Data security and security systems and methods
CN106953731A (en) The authentication method and system of a kind of terminal management person
CN108418692B (en) On-line writing method of authentication certificate

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Shun high tech Zone of Ji'nan City, Shandong province 250101 China West Road No. 699

Applicant after: SYNTHESIS ELECTRONIC TECHNOLOGY CO., LTD.

Address before: Shun high tech Zone of Ji'nan City, Shandong province 250101 China West Road No. 699

Applicant before: Shandong Synthesis Electronic Technology Co., Ltd.

GR01 Patent grant
GR01 Patent grant