CN107423793A - A kind of Quick Response Code generation identification technology of new type of safe - Google Patents

A kind of Quick Response Code generation identification technology of new type of safe Download PDF

Info

Publication number
CN107423793A
CN107423793A CN201710291007.7A CN201710291007A CN107423793A CN 107423793 A CN107423793 A CN 107423793A CN 201710291007 A CN201710291007 A CN 201710291007A CN 107423793 A CN107423793 A CN 107423793A
Authority
CN
China
Prior art keywords
quick response
response code
information
code
new type
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710291007.7A
Other languages
Chinese (zh)
Inventor
陈健
张奇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanjing Post and Telecommunication University
Nanjing University of Posts and Telecommunications
Original Assignee
Nanjing Post and Telecommunication University
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 Nanjing Post and Telecommunication University filed Critical Nanjing Post and Telecommunication University
Priority to CN201710291007.7A priority Critical patent/CN107423793A/en
Publication of CN107423793A publication Critical patent/CN107423793A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record 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/06009Record 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/06046Constructional details
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record 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/06009Record 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/06046Constructional details
    • G06K19/06056Constructional details the marking comprising a further embedded marking, e.g. a 1D bar code with the black bars containing a smaller sized coding

Abstract

The invention discloses a kind of Quick Response Code of new type of safe to generate identification technology, solves the problems, such as in life because Quick Response Code may carry the virus and fishing website of malice.In common Quick Response Code identification; positioning is scanned by the positioning color lump to center; information pre-processing is added in decoding section; for the problem of direct read/write, the url information of the carrying in Quick Response Code being screened and being isolated, completes the pretreatment to information before recognition in traditional Quick Response Code transmission; the database for establishing backstage simultaneously carries out screening comparison; then user is fed back to, realizes the protection to user's barcode scanning safety, prevents fishing website and virus from being damaged to personal information security.

Description

A kind of Quick Response Code generation identification technology of new type of safe
Technical field
The present invention relates to a kind of Quick Response Code of new type of safe to generate identification technology, and in particular to points to webpage by Quick Response Code During with paying, the generation identification technology of userspersonal information's safety is ensured, belonging to Quick Response Code generation identification technology field.
Background technology
Now we in daily life, Quick Response Code has become an easily instrument during we live.Traditional Principle two-dimensional bar code/Quick Response Code (2-dimensional bar code) of Quick Response Code is by one with certain specific geometric figure The chequered with black and white graphic recording data symbol information that set pattern rule is distributed in plane (on two-dimensional directional);It is skilful on coding It is corresponding with binary system using several wonderfully using " 0 ", the concept of " 1 " bit stream for forming computer-internal logical foundations Geometrical body represent word numerical information, by image input device or photoelectric scanning device automatically identifying and reading to realize information Automatically process:It has some general character of barcode technology:Every kind of code system has its specific character set;Each character occupies certain Width;With certain verifying function etc..Also there is the information automatic identification function to not going together and processing figure rotation simultaneously Change point.
Present Quick Response Code is most to be applied among our smart mobile phone, however, in recent years, being planted among Quick Response Code Enter malicious websites, be implanted into trojan horse, the situation for intercepting mobile phone identifying code progress financial swindling emerges in an endless stream, how existing Ensure that our personal account is not encroached on by mobile phone trojan horse in malice Quick Response Code, fishing website on cell phone platform.According to Correlation study, with flourishing for domestic Internet of Things industry, it is believed that more planar bar code technology application solutions are developed Out, the day-to-day operations life of all trades and professions is applied to, Quick Response Code really becomes a reality as mobile interchange web portal.One A little criminals are utilized, and the potential risk that mobile phone viruses, rogue program, fishing website etc. are propagated by Quick Response Code be can not ignore, Herein, it is badly in need of ensureing our personal information security using the Quick Response Code app barcode scannings software of new type of safe technology.
The content of the invention
The technical problems to be solved by the invention are:A kind of Quick Response Code generation identification technology of new type of safe is provided, ensured The personal information of user is not encroached on by the mobile phone trojan horse in malice Quick Response Code or fishing website.
The present invention uses following technical scheme to solve above-mentioned technical problem:
A kind of Quick Response Code generation identification technology of new type of safe, comprises the following steps:
Step 1, according to the international standard of Quick Response Code, it is determined that the version and error-correction level of the Quick Response Code to be generated, are used Base64 AESs generate original two-dimensional code;
Step 2, random generation and the center non-information correction verification module size identical colour block of original two-dimensional code, the colour Block includes the black four kinds of colors of RGB, and the colored block is inserted to the center non-information correction verification module of original two-dimensional code, obtains two dimension Code;
Step 3, the center non-information correction verification module of Quick Response Code is scanned, identifies institute in the non-information correction verification module of center Coloured rgb value, and if only if when recognizing the rgb value of the black four kinds of colors of RGB, into step 4;
Step 4, it is that data module is decrypted to other parts of the Quick Response Code in addition to the non-information correction verification module of center, obtains The information carried to data module, the information carried to data module are handled and judged, when the information that data module carries When risk be present, to the Quick Response Code currently identified isolate simultaneously alert notice user.
As a preferred embodiment of the present invention, the international standard of Quick Response Code described in step 1 is QR Code.
As a preferred embodiment of the present invention, the version of Quick Response Code described in step 1 includes 40 kinds of specifications, and minimum gauge is The pixel of 21 pixels × 21, maximum specification are the pixel of 177 pixels × 177, and the length of side differs 4 between two neighboring specification Pixel.
As a preferred embodiment of the present invention, the error-correction level of Quick Response Code described in step 1 includes L, M, Q, H tetra- etc. Level.
As a preferred embodiment of the present invention, the information carried described in step 4 to data module is handled and judged Detailed process is:The safety database of Quick Response Code is established, the information in information and safety database that data module is carried is entered Row is compared and judged.
The present invention compared with prior art, has following technique effect using above technical scheme:
The present invention includes RGB in Quick Response Code generation phase, by the center non-information correction verification module insertion in Quick Response Code The colored block of black four kinds of colors, generates new Quick Response Code;In the center non-information of Quick Response Code cognitive phase, first identification Quick Response Code Correction verification module, and if only if when recognizing the rgb value of the black four kinds of colors of RGB, starts backstage protection mechanism, to two-dimentional yardage Processing is identified according to module, rear number of units is passed through to fishing website that may be present, trojan horse etc. in present mobile phone two-dimension code According to the judgement in storehouse, alarmed in mobile phone display end, realize the protection to user security.
Brief description of the drawings
Fig. 1 is the product process figure of new type of safe Quick Response Code of the present invention.
Fig. 2 is that the backstage of new type of safe Quick Response Code of the present invention judges structure chart.
Fig. 3 is the identification process figure of new type of safe Quick Response Code of the present invention.
Embodiment
Embodiments of the present invention are described below in detail, the example of the embodiment is shown in the drawings.Below by The embodiment being described with reference to the drawings is exemplary, is only used for explaining the present invention, and is not construed as limiting the claims.
As shown in Figure 1, Figure 2, Figure 3 shows, it is the generation identification process of new type of safe Quick Response Code.With the pixel of 21 pixels × 21 Exemplified by version, the colored block for black four color of center RGB that a size is 6*6 is added in the central area of conventional two-dimensional code, The color lump information added in this block region will not affect that the information bit of Quick Response Code, and the information of Quick Response Code is remained able to according to original Some standards are written and read.When reading Quick Response Code, the read-write of the color rgb values of RGBL tetra- is carried out to Quick Response Code center module.It is whole in mobile phone When holding processing data, a read-write protection to Quick Response Code suspicious data is realized, accomplishes to intercept suspicious 2 D code information.
Here it can table look-up and learn RGBL respective value, red R values are 255, G, B 0;And the rgb value of black is 0, white rgb value is 255, is handled by the scan operation of the RGB color block to central area, can internally start sound Should.
Preferentially using the safety database established in advance in the information connection by Quick Response Code among scanning, then will 2 D code information is compared and screened, and the malice Quick Response Code for having potential threat is alarmed to user.
According to existing Quick Response Code (QR Code) standard sequentially generate position sensing figure, position sensing figure separator, Figure, format information, version information are positioned, positions figure:For the positioning to Quick Response Code, for each Quick Response Code, position All fixed to exist, simply size specification can difference;:Specification determines that the quantity of correction graph and position also determine that;Lattice Formula information:Expression changes the level of error correction of Quick Response Code, is divided into L, M, Q, H;Version information:That is the specification of Quick Response Code, QR code signs are total to There is the matrix (generally black and white) of 40 kinds of specifications, from 21 × 21 (versions 1), to 177 × 177 (edition 4s 0), each version symbol Number than previous version per side increase by 4 modules, now we be used for webpage be mostly version 1.
During coding, sign character is converted into by corresponding character set;Error-correction level is selected, certain in specification Under the conditions of, the capacity of its higher True Data of error-correction level is smaller.Data encoding:Using Base64 encryption methods, by data word Symbol is converted to bit stream, every 8 code words, is monolithically fabricated the codeword sequence of a data.Know this code word data sequence just It is aware of the data content of Quick Response Code.Need codeword sequence piecemeal above again, and according to error-correction level and the code word of piecemeal, Error correction code word is produced, and error correction code word is added to behind code word data sequence, turns into a new sequence.In Quick Response Code specification In the case of being determined with error-correction level, it can be accommodated in fact code word sum and error correcting code number of words also determine that, in specification Under conditions of it is determined that, caused sequence in order above is put as in piecemeal, by regulation deblocking, then each piece entered Row calculates, and draws corresponding error correcting code block block, error correcting code block block is formed a sequence in order, is added to original number Behind codeword sequence.
Then by mask figure be used for symbol coding region so that in two-dimension code pattern dark color and light color (black and White) region being capable of the optimal distribution of ratio.Along with generation form and version information are put into respective regions.Version 7-40 is Version information is contained, no version information is all 0.Two positions contain version information on Quick Response Code, and they are redundancies 's.Version information totally 18,6 × 3 matrix, wherein data are at 6, such as version number 8,001000 during the information of data bit, 12 below are error correction bits.
Finally at center, check field generates our 6*6 centers colour block.
The check bit of traditional Quick Response Code center is changed into the center identification pattern of the invention designed, has not influenceed On the premise of original 2 D code information amount, network address that information Quick Response Code is provided, information is compared by background data base Mode, to containing malicious virus, the dangerous Quick Response Code for network address of going fishing will inform the user that and not open.Meanwhile to that may be present The data and text of Quick Response Code contact are pre-processed, and risk website that may be present and link are isolated and alarmed, is protected Demonstrate,prove the security of user profile.
The technological thought of above example only to illustrate the invention, it is impossible to protection scope of the present invention is limited with this, it is every According to technological thought proposed by the present invention, any change done on the basis of technical scheme, the scope of the present invention is each fallen within Within.

Claims (5)

1. the Quick Response Code generation identification technology of a kind of new type of safe, it is characterised in that comprise the following steps:
Step 1, according to the international standard of Quick Response Code, it is determined that the version and error-correction level of the Quick Response Code to be generated, using Base64 AES generates original two-dimensional code;
Step 2, random generation and the center non-information correction verification module size identical colour block of original two-dimensional code, the colored block bag The black four kinds of colors of RGB are included, the colored block is inserted to the center non-information correction verification module of original two-dimensional code, obtains Quick Response Code;
Step 3, the center non-information correction verification module of Quick Response Code is scanned, identifies all face in the non-information correction verification module of center The rgb value of color, and if only if when recognizing the rgb value of the black four kinds of colors of RGB, into step 4;
Step 4, it is that data module is decrypted to other parts of the Quick Response Code in addition to the non-information correction verification module of center, is counted The information carried according to module, the information carried to data module are handled and judged, when the information that data module carries is present During risk, to the Quick Response Code currently identified isolate simultaneously alert notice user.
2. the Quick Response Code generation identification technology of new type of safe according to claim 1, it is characterised in that two-dimentional described in step 1 The international standard of code is QR Code.
3. the Quick Response Code generation identification technology of new type of safe according to claim 1, it is characterised in that two-dimentional described in step 1 The version of code includes 40 kinds of specifications, and minimum gauge is the pixel of 21 pixels × 21, and maximum specification is the picture of 177 pixels × 177 Vegetarian refreshments, the length of side differs 4 pixels between two neighboring specification.
4. the Quick Response Code generation identification technology of new type of safe according to claim 1, it is characterised in that two-dimentional described in step 1 The error-correction level of code includes tetra- grades of L, M, Q, H.
5. the Quick Response Code generation identification technology of new type of safe according to claim 1, it is characterised in that logarithm described in step 4 The information carried according to module is handled and judged detailed process and is:The safety database of Quick Response Code is established, data module is taken The information of band is compared and judged with the information in safety database.
CN201710291007.7A 2017-04-28 2017-04-28 A kind of Quick Response Code generation identification technology of new type of safe Pending CN107423793A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710291007.7A CN107423793A (en) 2017-04-28 2017-04-28 A kind of Quick Response Code generation identification technology of new type of safe

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710291007.7A CN107423793A (en) 2017-04-28 2017-04-28 A kind of Quick Response Code generation identification technology of new type of safe

Publications (1)

Publication Number Publication Date
CN107423793A true CN107423793A (en) 2017-12-01

Family

ID=60424309

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710291007.7A Pending CN107423793A (en) 2017-04-28 2017-04-28 A kind of Quick Response Code generation identification technology of new type of safe

Country Status (1)

Country Link
CN (1) CN107423793A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109450619A (en) * 2018-10-07 2019-03-08 杭州安恒信息技术股份有限公司 A kind of two-dimension code safe means of defence and system

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102799920A (en) * 2012-06-28 2012-11-28 王学武 Two-dimensional code generation system and method and two-dimensional code identification system and method in combination with image
CN102916804A (en) * 2012-08-28 2013-02-06 华南农业大学 Two-dimension code coding and decoding method and device based on local color verification
CN104376356A (en) * 2014-12-02 2015-02-25 合肥城市云数据中心有限公司 Two-dimensional code generating method with encryption function
US20150332136A1 (en) * 2014-05-16 2015-11-19 Denso Wave Incorporated Information code generation method, information code, and information code use system
CN105243539A (en) * 2015-09-15 2016-01-13 重庆智韬信息技术中心 Identity authentication method for realizing two-dimensional code safety payment
CN105447546A (en) * 2015-11-25 2016-03-30 林蔚 Two-dimensional code capable of being embedded with large-ratio graph as well as coding and decoding method and device therefor
CN105706107A (en) * 2013-11-07 2016-06-22 斯坎特拉斯特股份有限公司 Two dimensional barcode and method of authentication of such barcode
CN105787413A (en) * 2016-02-04 2016-07-20 中国联合网络通信集团有限公司 Method and apparatus for positioning two-dimensional code content display area

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102799920A (en) * 2012-06-28 2012-11-28 王学武 Two-dimensional code generation system and method and two-dimensional code identification system and method in combination with image
CN102916804A (en) * 2012-08-28 2013-02-06 华南农业大学 Two-dimension code coding and decoding method and device based on local color verification
CN105706107A (en) * 2013-11-07 2016-06-22 斯坎特拉斯特股份有限公司 Two dimensional barcode and method of authentication of such barcode
US20150332136A1 (en) * 2014-05-16 2015-11-19 Denso Wave Incorporated Information code generation method, information code, and information code use system
CN104376356A (en) * 2014-12-02 2015-02-25 合肥城市云数据中心有限公司 Two-dimensional code generating method with encryption function
CN105243539A (en) * 2015-09-15 2016-01-13 重庆智韬信息技术中心 Identity authentication method for realizing two-dimensional code safety payment
CN105447546A (en) * 2015-11-25 2016-03-30 林蔚 Two-dimensional code capable of being embedded with large-ratio graph as well as coding and decoding method and device therefor
CN105787413A (en) * 2016-02-04 2016-07-20 中国联合网络通信集团有限公司 Method and apparatus for positioning two-dimensional code content display area

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109450619A (en) * 2018-10-07 2019-03-08 杭州安恒信息技术股份有限公司 A kind of two-dimension code safe means of defence and system
CN109450619B (en) * 2018-10-07 2022-08-19 杭州安恒信息技术股份有限公司 Two-dimensional code safety protection method and system

Similar Documents

Publication Publication Date Title
US10863202B2 (en) Encoding data in a source image with watermark image codes
CN105447546B (en) The two dimensional code and its coding and decoding methods and equipment of embeddable large scale figure
USRE44982E1 (en) Mixed code, and method and apparatus for generating the same
USRE44139E1 (en) Method and apparatus for decoding mixed code
US11790198B2 (en) Method and apparatus for processing encoded pattern, storage medium, and electronic apparatus
US20140119647A1 (en) Method and Apparatus for Decoding Mixed Code
AU2010234172B2 (en) Two-dimensional array code
CN110766594B (en) Information hiding method and device, detection method and device and anti-counterfeiting tracing method
CN105718979B (en) A method of generating two-dimension code image
Chou et al. The nested QR code
CN107944527A (en) A kind of encryption of anti-fake two-dimension code and coding/decoding method
AU2010234173B2 (en) Two-dimensional array code
CN105718980A (en) Method for generating two-dimensional code picture
US9064138B2 (en) Method for detecting reorgination of barcodes
CN106067054A (en) A kind of Quick Response Code based on QR code
CN107423793A (en) A kind of Quick Response Code generation identification technology of new type of safe
CN105701529A (en) Method of realizing color picture display on two-dimension code
KR20220149028A (en) Method for generating table information based on the image
CN105160378A (en) Color invisible image code generating method
KR102085561B1 (en) QR code forgery prevention apparatus and method
US20210203994A1 (en) Encoding data in a source image with watermark image codes
CN109376825A (en) A kind of two-dimensional code generation method and device
US10621482B2 (en) Graphic two-dimensional barcode and creating method thereof
CN106339907A (en) Data tracing interaction method
WO2020199393A1 (en) Anti-counterfeiting system and anti-counterfeiting method

Legal Events

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

Application publication date: 20171201