A kind of image in 2 D code encryption system and image in 2 D code generation method
Technical field
The present invention relates to Quick Response Code application technology, especially relate to a kind of generation method of encryption system and encrypted image of image in 2 D code.
Background technology
Nowadays Quick Response Code has been widely used in the various fields such as commodity counterfeit prevention, logistics management, anti-channel conflict and shopping, also has at home many individuals or group at Devoting Major Efforts To Developing planar bar code technology.But, nowadays the coding rule of most Quick Response Code is disclosed, the generation of image in 2 D code does not have authorized and effective management yet, cause a lot of image in 2 D code to be cracked and obtain the information of product, and be used to copy out a large amount of counterfeit and shoddy goods, damage the legitimate interests of consumer and generation producer.Meanwhile, be to ensure the validity of image in 2 D code, 2 D code information management platform need to by complete, offer application units without the view data of compression, these view data also can take larger storage space.Given this, applicant develops the covert Quick Response Code of a kind of coded system, and the present invention proposes on the basis of this Quick Response Code of applicant oneself research and development.
Summary of the invention
Task of the present invention is will be for above-mentioned technical matters, a kind of safety, efficient image in 2 D code encryption system are provided, and utilize this system to generate the method for image in 2 D code, be characterized in that 2 D code information is safer, in the process of distribution and storage data, data volume is little.
Technological means: the invention discloses a kind of image in 2 D code encryption system, this system is made up of management end and client two parts, and management end comprises database, information management platform and Quick Response Code generation server, and client comprises Quick Response Code client terminal, wherein:
Database: generate Quick Response Code code value, storage Quick Response Code code value and the storage information corresponding with Quick Response Code code value for answering user to ask, and Quick Response Code code value is encoded and formed Serial No.;
Information management platform: for auditing user's request, and transfer Serial No. from database, sent into Quick Response Code generation server;
Quick Response Code generation server: for Serial No. is encoded again, and generate the data file that includes Quick Response Code data message;
Quick Response Code client terminal: for utilizing data file to generate image in 2 D code.
Database, information management platform and Quick Response Code generation server integrate, and jointly form Quick Response Code data management server; Quick Response Code data file is the file of XML form.
The invention also discloses a kind of image in 2 D code generation method, the method is the image in 2 D code that utilizes above-mentioned image in 2 D code encryption system to generate, and comprises the following steps:
A, Quick Response Code user propose to include the use request of application batch and usage quantity to information management platform;
B, information management platform examination & verification request for utilization, and send request for utilization to database;
C, database be according to usage quantity request Mass production Quick Response Code code value, and each code value is encoded and generated Serial No. one to one, simultaneously database storage Quick Response Code code value and the information corresponding with code value;
D, information management platform are transferred Serial No., and are sent into Quick Response Code generation server;
E, Quick Response Code generation server are encoded respectively to each Serial No. and are preserved in batches and generate a data file that includes Quick Response Code data message, and this data file are offered to the Quick Response Code user who proposes request for utilization;
Data file is inputted Quick Response Code client terminal by f, Quick Response Code user, obtains in batches image in 2 D code.
Wherein step f comprises:
Step f1: resolution data document, obtains all Serial No.s that generate in step c;
Step f2: utilize respectively each Serial No. to generate corresponding with it image in 2 D code.
In the request for utilization that wherein Quick Response Code user proposes, contain and comprise application batch and the information of usage quantity, the data file that contains Quick Response Code data message is the file of XML form.
Beneficial effect: 1, distribute Quick Response Code quantity according to commodity number, make every product have unique Quick Response Code; 2, adopt the mode of secondary coding, the data file that contains Quick Response Code data message from database generation code value to output, through twice scrambled, improves its confidentiality, more safe and reliable; 3, the data file of the XML form that contains a large amount of Quick Response Code data messages generating is sent to Quick Response Code user by management end, utilize the Quick Response Code client terminal of oneself to generate image in 2 D code by Quick Response Code user, than the image in 2 D code of direct transmission Lossless Compression, reduce the data volume in transmission distribution and storing process, make it more rapidly and efficiently, and more secret; 4, the information that the image in 2 D code generating comprises comprises the information such as product batches and usage quantity of associated product, and that does exercises supervision from source, and antifalse effect is better.
Brief description of the drawings
Fig. 1 is system architecture schematic diagram of the present invention;
Fig. 2 is one of process flow diagram of image in 2 D code generation;
Fig. 3 be image in 2 D code generate process flow diagram two.
Embodiment
Embodiment 1
As described in Figure 1, the invention discloses a kind of image in 2 D code encryption system, this system is made up of management end and client two parts, management end comprises information management platform 1, database 2 and Quick Response Code generation server 3, client comprises Quick Response Code client terminal 4, data, 2, information management platform 1 and Quick Response Code generation server 3 integrate, common formation Quick Response Code data management server, wherein:
Information management platform 1: for accepting, audit user's request, and transfer Serial No. from database, sent into Quick Response Code generation server;
Database 2: obtain user's request by information management platform, answer user to ask to generate Quick Response Code code value, storage Quick Response Code code value and the storage user request information corresponding with Quick Response Code code value, and Quick Response Code code value is encoded and formed Serial No.;
Quick Response Code generation server 3: Serial No. is encoded again, and generate the data file of the XML form that includes Quick Response Code data message;
Quick Response Code client terminal 4: for utilizing data file to generate image in 2 D code.
Embodiment 2
The present invention is utilizing on the basis of the disclosed a kind of image in 2 D code encryption system of embodiment 1, also discloses a kind of image in 2 D code generation method, and as shown in Figures 2 and 3, the method comprises the following steps:
A, Quick Response Code user propose request for utilization according to the demand of oneself to information management platform, use Related product that request must comprise that application uses batch and the information such as the usage quantity of this batch products;
B, information management platform examination & verification request for utilization, and send request for utilization to database;
C, database be according to usage quantity request Mass production Quick Response Code code value, and each code value is encoded and generated Serial No. one to one, simultaneously database storage Quick Response Code code value and the information corresponding with code value;
D, information management platform are transferred Serial No., and are sent into Quick Response Code generation server;
E, Quick Response Code generation server are encoded respectively to each Serial No. and are preserved in batches the data file that generates a XML form, and this data file are offered to the Quick Response Code user who proposes request for utilization;
Data file is inputted Quick Response Code client terminal by f, Quick Response Code user, obtains in batches image in 2 D code.
Wherein step f comprises:
Step f1: resolution data document, obtains all Serial No.s that generate in step c;
Step f2: utilize respectively each Serial No. to generate corresponding with it image in 2 D code.