CN106570548B - A kind of mixing two dimensional code based on the encryption of multi-level information - Google Patents
A kind of mixing two dimensional code based on the encryption of multi-level information Download PDFInfo
- Publication number
- CN106570548B CN106570548B CN201610920148.6A CN201610920148A CN106570548B CN 106570548 B CN106570548 B CN 106570548B CN 201610920148 A CN201610920148 A CN 201610920148A CN 106570548 B CN106570548 B CN 106570548B
- Authority
- CN
- China
- Prior art keywords
- region
- code
- information
- area
- general
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K19/00—Record carriers for use with machines and with at least a part designed to carry digital markings
- G06K19/06—Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
- G06K19/06009—Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking
- G06K19/06037—Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking multi-dimensional coding
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Storage Device Security (AREA)
Abstract
The present invention discloses a kind of mixing two dimensional code based on the encryption of multi-level information, comprising: general code region and minisize code region;Wherein, the general code region includes: functional area and the first code area, the functional area includes: to be quickly detected the position sensing region of MC code and index region for the first of general information decoding order, and first code area is used to store general information content and corrects the error correcting code that general information is lost;The minisize code region, in the position sensing region in general code region, it include: localization region, the second index region and second code area, the localization region is for positioning miniature code position, second index region is used to index the decoding order of encryption information, and error correcting code is lost for storing important information content and amendment important information in the second code area domain.Using technical solution of the present invention, the problem that existing two-dimensional barcode information amount is very few and information security is insufficient can solve.
Description
Technical field
The invention belongs to artificial intelligence field more particularly to a kind of mixing two dimensional codes based on the encryption of multi-level information.
Background technique
Currently, rectangle two dimensional code especially QR two dimensional code has been obtained and is widely applied.Existing QR planar bar code technology
Be no longer satisfied the information storage requirements under unit area.The information storage capacity of the QR coding of one version 1 is only
216bit, this is that is, to store the information of higher data volume, it is necessary to higher version is used, and for current stamp
For method, this also means that needing bigger image in 2 D code area.And the information encryption of existing two dimensional code is all usual
It disposably to encrypt, is easily cracked, safety cannot be protected.
Summary of the invention
The technical problem to be solved by the present invention is to provide a kind of mixing two dimensional code based on the encryption of multi-level information, with solution
The problem that certainly existing two-dimensional barcode information amount is very few and information security is insufficient.
To solve the above problems, the present invention adopts the following technical scheme that:
A kind of mixing two dimensional code based on the encryption of multi-level information, comprising: general code region and minisize code region;Wherein,
The general code region includes: functional area and the first code area, and the functional area includes: the position for being quickly detected MC code
Search coverage and region is indexed for the first of general information decoding order, first code area is for storing in general information
Hold and correct the error correcting code that general information is lost;The minisize code region, in the position sensing region in general code region, packet
Include: localization region, the second index region and second code area, the localization region is for positioning miniature code position, the second index
Region is used to index the decoding order of encryption information, and the second code area domain is for storing important information content and correcting important
Information loses error correcting code.
Preferably, the position sensing region in the general code region is two concentric six among general code region
Side shape, the first index region in the general code region and second code area domain are located at around position sensing region, with hexagon
The data member of honeycomb type structure is formed;The index region is the intersection region in 3 regular hexagon regions, and is located at position and visits
Survey region six angles on, wherein 5 differences with black white come distinguish coding and decoding sequence, another non-flanged, use
Region is indexed in determining;Remaining area is the first coding region, for storing encoded information.
Preferably, the localization region in the minisize code region is two concentric six sides among position sensing region
Shape, the second index region in the minisize code region and second code area domain are located at around localization region, with hexagon honeycomb
The data member of formula structure is formed;;Second index region is the intersection region in 3 regular hexagon regions, and is located at positioning
On six angles in region, wherein 5 differences with black white distinguish coding and decoding sequence, another non-flanged is used for
Determine index region;Remaining area is second code area domain, for storing encoded information.
The technical solution adopted in the present invention, the advantage compared to common two dimensional code are:
First, data information is made of the big code and miniature Internal Code of periphery, and the bearing capacity of data can greatly increase, for
The positioning and description of merchandise news can quickly detect required information, especially when network data is limited with adding comprehensively
When, still available a large amount of merchandise news, my businessman can the corresponding service of consumer's offer.
Second, safety and confidentiality are more preferable.Since mixing two dimensional code of the invention contains minisize code, so that it is multiple to fake
The cost of compound key processed is greatly increased with difficulty, and fakement can be authenticated rapidly with compound key is forged.
Third, mixing two dimensional code of the invention is adapted to different product and application demand, on some products, mixing
After receiving destruction, the minisize code for mixing two dimensional code can also continue to using and minisize code is small in size, holds the outer code of two dimensional code
It easily hides, can be used alone protection commodity.
4th, mixing two dimensional code of the invention can further upgrade excessively to minisize code, beat for the update of system
Good basis is descended.
5th, minisize code can be brought great convenience with compatible optical and wireless reading code system for the use of system, right
In automatic reading code system, the production management of commodity, logistics management, sales management create it is more scientific, it is more advanced and more convenient
Condition.
Detailed description of the invention
Fig. 1 is the structural schematic diagram of two dimensional code of the present invention;
Fig. 2 is the structural schematic diagram in the general code region of two dimensional code of the present invention;
Fig. 3 is the structural schematic diagram in the minisize code region of two dimensional code of the present invention;
Fig. 4 is the application example flow chart of two dimensional code of the present invention;
Fig. 5 is that information encrypts schematic diagram in Fig. 4 two dimensional code application example;
Fig. 6 is interlaced code schematic diagram of the present invention;
Fig. 7 is the symmetrical encryption and decryption schematic diagram of the present invention.
Specific embodiment
Below with reference to specific embodiment shown in the drawings, invention is further described in detail.
As shown in Figure 1, the embodiment of the present invention provides a kind of mixing two dimensional code based on the encryption of multi-level information, comprising: logical
With code region and minisize code region.Wherein, the general code region includes: functional area and the first code area, the functional areas
Domain includes: to be quickly detected the position sensing region of MC code and index region for the first of general information decoding order, described
First code area is used to store general information content and corrects the error correcting code that general information is lost.The minisize code region, is located at
In the position sensing region in general code region, comprising: localization region, the second index region and second code area, the positioning area
Domain is used to index the decoding order of encryption information, the second code area domain for positioning miniature code position, the second index region
Error correcting code is lost for storing important information content and amendment important information.
Further, as shown in Fig. 2, the position sensing region in the general code region is among general code region
Two concentric hexagons, the first index region in the general code region and second code area domain are located at position sensing region week
It encloses, is formed with the data member of hexagon honeycomb type structure;The index region is the intersection region in 3 regular hexagon regions,
And be located at position sensing region six angles on, wherein 5 differences with black white come distinguish coding and decoding sequentially, in addition
One non-flanged, for determining index region;Remaining area is the first coding region, for storing encoded information.
Further, as shown in figure 3, the localization region in the minisize code region is two among position sensing region
A concentric hexagon, the second index region in the minisize code region and second code area domain are located at around localization region, with
The data member of hexagon honeycomb type structure is formed;;Second index region is the intersection region in 3 regular hexagon regions,
And be located at localization region six angles on, wherein 5 differences with black white come distinguish coding and decoding sequentially, another
Non-flanged, for determining index region;Remaining area is second code area domain, for storing encoded information.
Further, the general code coding mode is as follows: encrypted information is passed through QR two-dimensional barcode information coding staff
Formula is converted to binary number information.The binary message is one group with 16 bytes and is packaged, insufficient to mend 0.For compiling
A group information { A, B, C } after code, wherein A is 8 bytes, and B is 4 bytes, and C is 4 bytes, and the color of stored money member is
{ A, 16*B+4,16*C+9 }, the respectively corresponding YUV component of the color.General information is converted into color group at this time, by certain suitable
Sequence is placed in the first coding region.
Further, the coding mode of the minisize code is as follows: by information by QR two-dimensional barcode information coding mode and
Error correcting code system is converted to binary number information, and two-dimensional barcode information is converted to color letter in a manner of general code same treatment
Breath, is placed in second code area domain.
The general code decoding process are as follows:
1, crawl includes the image of MC code;
2, the hexagon for navigating to position sensing region, determines scanning area;
3, by index region detection index information, the index region of scanning patter is rotated into direction as shown in Figure 2, really
1 area's reading order of code of delimiting the organizational structure be from top to bottom successively by row scan, every row scanning mode be from left to right, encounter index region and
It then skips localization region
4, colouring information is scanned in order, if the color block of total information storage is n, is followed successively by (y by scanning sequency1,u1,
v1)、(y2,u2,v2)、…、(yn,un,vn);
5, so its colouring information is (y1,u1,v1, y2,u2,v2..., yn,un,vn), the prime information after conversion isInformation after conversion is converted into binary system letter
Breath, the corresponding binary message of citing (23,9,7) are 101,111,001 0111.
The decoding process of the minisize code are as follows:
It 1, include the image of minisize code by task equipment crawl;
2, the regular hexagon for navigating to localization region, determines scanning area;
3, the size of image where adjusting scanning area by localization region size, enhances marginal information;
4, by the second index region detection index information, the second index region of scanning patter is rotated into such as Fig. 2 institute
Show direction, determine second code area domain reading order be from top to bottom successively by row scan, every row scanning mode be from left to right,
When encountering the second index region and localization region, then skip;
5, colouring information is scanned in order, if the color block of total information storage is n, is followed successively by (yy by scanning sequency1,
uu1,vv1)、(yy2,uu2,vv2)、…、(yyn,uun,vvn);
6, gained scanning colouring information is converted into binary message with the method for general code decoding process step 5.
As shown in figure 4, the information required for product after server end first passes around network layer encryption, is divided in Information Level
Encrypted information is obtained after layer encryption, after interleaver, obtains information to be compiled, by these information, carries out two dimensional code
Coding, obtains two dimensional code, is placed on product.
In network layer information secure context, cipher mode is divided into symmetric cryptography and asymmetric encryption.Symmetric cryptography needs
Same key is used when encryption and decryption.It is so-called symmetrical such as Fig. 7, it is exactly the same key of businessman and server usage mode
It is encrypted and decrypted.Key is control encryption and the instruction of decrypting process.Algorithm is one group of rule, it is specified that how to be encrypted
And decryption.The advantages of symmetric encipherment algorithm is that algorithm discloses, calculation amount is small, enciphering rate is fast, encryption efficiency is high.Its speed is fast,
But key management is more too fat to move, lacks flexibility.
In asymmetric encryption, encryption code key is different with decryption code key, and encryption code key is known as public key, and decrypts code key and be known as
Private key.As shown in fig. 6, give public key publication to other people after the present invention generates a pair of of public key and private key by algorithm, businessman can be with
By message using being issued after public key encryption to server, after server receives message, using the private key of server by message solution
It is close.
In this application, symmetric cryptography can be used according to actual needs, as DES algorithm, 3DES, AES or it is asymmetric plus
It is close, such as RSA Algorithm, Elgamal algorithm, local message Encryption Algorithm.
As shown in figure 5, the information layered ciphering process is, raw information turns to obtain binary message by binary system,
After network layer encryption, data are carried out to the multi-level encryption of Information Level, obtain input data.Wherein Information Level adds at many levels
Close, each key is key 1, key 2 ..., key N, for the obtained data after encrypting s, and if only if acquisition
Key key s, key s+1 ..., the data after obtaining encryption s can be successively decrypted after key N.
Channel coding is by introducing redundant digit in the data transmitted, to avoid digital signal from going out in transmit process
Existing error code.Channel coding for detecting mistake is referred to as error detection coding, and both can error detection can the channel coding of error correction claimed
Make Error Correction of Coding.The introducing of redundant digit improves the reliability of channel communication, but redundant digit introduces will will increase signal again
Transmission rate will also reduce bandwidth.
Many codings, such as Hamming code, convolutional code etc., contribute to memoryless channel, are for independent error
Design.But in some cases, mistake is mainly to happen suddenly, and a burst error will cause a succession of mistake.And interlaced code
Burst error that is very long and being not limited only to one can be corrected.
The purpose of interweaving encoding is a longer burst error to be separated into random error, then with correcting random error
(FEC) technology of coding eliminates random error.Interleave depth is bigger, then dispersion is bigger, and anti-burst error ability is also stronger.But
Interleave depth is bigger, and the interweaving encoding processing time is longer, so that data transmission delay be caused to increase, that is to say, that interweaving encoding
It is using the time as cost.Therefore, interweaving encoding belongs to time implied diversity.Decline under practical mobile communication environment will make
At the bursty errors of digital data transmission.Can be discrete using interweaving encoding technology and this bursty errors be corrected, improves and move
The transmission characteristic of dynamic communication.
And after user obtains product, user is scanned the two-dimensional code by scanning device, extracts information to be compiled, is passed through
Obtain encrypted information after crossing the decompiling of interleaver, this is passed through together with existing key communication layers upload onto the server into
Row compares, and feeds back to the information that user accordingly decrypts layer.
Claims (2)
1. a kind of mixing two dimensional code based on the encryption of multi-level information characterized by comprising general code region and minisize code area
Domain;Wherein,
The general code region includes: functional area and the first code area, and the functional area includes: to be quickly detected MC code
Position sensing region and region is indexed for the first of general information decoding order, first code area is for storing letter by ordinary
It ceases content and corrects the error correcting code that general information is lost;
The minisize code region, in the position sensing region in general code region, comprising: localization region, the second index region
And second code area, the localization region are used to index the solution of encryption information for positioning miniature code position, the second index region
Error correcting code is lost for storing important information content and amendment important information in code sequence, the second code area domain;
The position sensing region in the general code region is two concentric hexagons among general code region, described general
The first index region in code region and second code area domain are located at around position sensing region, with the money of hexagon honeycomb type structure
Material member is formed;The index region is the intersection region in 3 regular hexagon regions, and is located at six angles in position sensing region
On, wherein 5 differences with black white come distinguish coding and decoding sequence, another non-flanged, for determining index area
Domain;Remaining area is the first coding region, for storing encoded information.
2. the mixing two dimensional code as described in claim 1 based on the encryption of multi-level information, which is characterized in that the minisize code area
The localization region in domain is two concentric hexagons among position sensing region, second index area in the minisize code region
Domain and second code area domain are located at around localization region, are formed with the data member of hexagon honeycomb type structure;Described second
The intersection region that region is 3 regular hexagon regions is indexed, and is located on six angles of localization region, wherein 5 white with black
The difference of color come distinguish coding and decoding sequence, another non-flanged, for determine index region;Remaining area is the second coding
Region, for storing encoded information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610920148.6A CN106570548B (en) | 2016-10-21 | 2016-10-21 | A kind of mixing two dimensional code based on the encryption of multi-level information |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610920148.6A CN106570548B (en) | 2016-10-21 | 2016-10-21 | A kind of mixing two dimensional code based on the encryption of multi-level information |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106570548A CN106570548A (en) | 2017-04-19 |
CN106570548B true CN106570548B (en) | 2019-02-26 |
Family
ID=58534127
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610920148.6A Active CN106570548B (en) | 2016-10-21 | 2016-10-21 | A kind of mixing two dimensional code based on the encryption of multi-level information |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106570548B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107180216B (en) * | 2017-06-07 | 2020-06-30 | 福州觉感视觉软件科技有限公司 | Two-dimensional code generation and identification method |
JP7250781B2 (en) * | 2017-10-06 | 2023-04-03 | ソシエテ・デ・プロデュイ・ネスレ・エス・アー | System using binary code to encode container, preparation machine and preparation information |
CN109635904A (en) * | 2018-11-16 | 2019-04-16 | 芜湖智久机器人有限公司 | A kind of positioning unit of two dimensional code, modularization two dimensional code and information increase and decrease method |
CN111461278A (en) * | 2019-01-22 | 2020-07-28 | 国家消防工程技术研究中心 | Three-dimensional code device for independent fire disaster refuge device |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5260556A (en) * | 1988-12-20 | 1993-11-09 | Australian Meat & Live-Stock Research & Development Corp. | Optically readable coded target |
JP2005301656A (en) * | 2004-04-12 | 2005-10-27 | Sakae Shibusawa | Information recording method, device therefor, and multilayer code |
GB2467113A (en) * | 2008-12-22 | 2010-07-28 | Benjamin John Dixon Whitaker | Dynamic barcode display and scanner to defeat barcode copying |
CN203350906U (en) * | 2013-02-25 | 2013-12-18 | 北京金源茂丰新技术开发有限公司 | Product quality tracing anti-counterfeit label |
CN103605950A (en) * | 2013-11-25 | 2014-02-26 | 广西大学 | Method and system for hiding signature in credible two-dimensional code |
CN104145278A (en) * | 2012-05-07 | 2014-11-12 | 赵韩龙 | Label for product authentication, method for generating authentication code of label, method and system for authenticating label, portable terminal for authenticating label, and computer-readable recording medium for authenticating label |
CN104820854A (en) * | 2015-03-24 | 2015-08-05 | 立德高科(北京)数码科技有限责任公司 | Combined anti-counterfeiting mark, and generation method and generation device of combined anti-counterfeiting mark |
CN204808373U (en) * | 2015-06-30 | 2015-11-25 | 宁波国际物流发展股份有限公司 | Anti -fake label of tracing to source |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006351620A (en) * | 2005-06-13 | 2006-12-28 | Toshiba Corp | Semiconductor device, its manufacturing method, and information management system thereof |
JP2017516204A (en) * | 2014-04-10 | 2017-06-15 | アンキ,インコーポレイテッド | Generation and decoding of machine-readable optical codes with aesthetic elements |
-
2016
- 2016-10-21 CN CN201610920148.6A patent/CN106570548B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5260556A (en) * | 1988-12-20 | 1993-11-09 | Australian Meat & Live-Stock Research & Development Corp. | Optically readable coded target |
JP2005301656A (en) * | 2004-04-12 | 2005-10-27 | Sakae Shibusawa | Information recording method, device therefor, and multilayer code |
GB2467113A (en) * | 2008-12-22 | 2010-07-28 | Benjamin John Dixon Whitaker | Dynamic barcode display and scanner to defeat barcode copying |
CN104145278A (en) * | 2012-05-07 | 2014-11-12 | 赵韩龙 | Label for product authentication, method for generating authentication code of label, method and system for authenticating label, portable terminal for authenticating label, and computer-readable recording medium for authenticating label |
CN203350906U (en) * | 2013-02-25 | 2013-12-18 | 北京金源茂丰新技术开发有限公司 | Product quality tracing anti-counterfeit label |
CN103605950A (en) * | 2013-11-25 | 2014-02-26 | 广西大学 | Method and system for hiding signature in credible two-dimensional code |
CN104820854A (en) * | 2015-03-24 | 2015-08-05 | 立德高科(北京)数码科技有限责任公司 | Combined anti-counterfeiting mark, and generation method and generation device of combined anti-counterfeiting mark |
CN204808373U (en) * | 2015-06-30 | 2015-11-25 | 宁波国际物流发展股份有限公司 | Anti -fake label of tracing to source |
Also Published As
Publication number | Publication date |
---|---|
CN106570548A (en) | 2017-04-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106570548B (en) | A kind of mixing two dimensional code based on the encryption of multi-level information | |
US9276739B2 (en) | Method and apparatus for encrypting/decrypting data | |
CN104468090B (en) | Character cipher coding method based on image pixel coordinates | |
CN105825257A (en) | Information hiding and hidden information extraction method based on two-dimensional barcode and information hiding and hidden information extraction system thereof | |
CN103778590B (en) | Using digital picture storage and the method and apparatus of transmission information | |
CN105976004A (en) | Color two-dimensional code multi-dimensional information encoding and decoding methods and devices | |
CN105099712A (en) | Data encryption method based on double-code verification | |
JP2008541169A (en) | Secret sharing technique in low overhead information content | |
CN103093411B (en) | Based on the encrypt-decrypt method of random binary image | |
CN102594551B (en) | Method for reliable statistics of privacy data on radio frequency identification (RFID) tag | |
Chanu et al. | A survey paper on secret image sharing schemes | |
CN114244507B (en) | Quantum direct communication method, device, equipment and system based on single-path transmission | |
CN107451948A (en) | Image Encrypt and Decrypt method and system based on chaos and DNA dynamic plane computings | |
Fu et al. | A new two-level information protection scheme based on visual cryptography and QR code with multiple decryptions | |
KR102028151B1 (en) | Encryption method and system using authorization key of device | |
CN111083119B (en) | Two-dimensional code-based large-capacity information transmission method | |
CN105718978A (en) | QR code generation method and apparatus, and decoding method and apparatus | |
Bidgar et al. | Key based visual cryptography scheme using novel secret sharing technique with steganography | |
RU2016131164A (en) | METHOD FOR CODING AND DECODING DIGITAL INFORMATION IN THE FORM OF ULTRA-COMPRESSED NANOBAR CODE (OPTIONS) | |
CN101848361A (en) | Provide private data safely from sender to receiver | |
CN103745252A (en) | Coding line, two-dimensional coding method and two-dimensional decoding method | |
Yu et al. | A Novel Three‐Layer QR Code Based on Secret Sharing Scheme and Liner Code | |
Prasanthi et al. | Hybrid approach for securing the IoT devices | |
EP3654576B1 (en) | Computer-implemented method for error-correction-encoding and encrypting of a file | |
KR100737385B1 (en) | Method for transmitting key data in the wireless sensor network |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |