CN104680215A - Making method and decoding method for two-dimensional code graph - Google Patents

Making method and decoding method for two-dimensional code graph Download PDF

Info

Publication number
CN104680215A
CN104680215A CN201310632361.3A CN201310632361A CN104680215A CN 104680215 A CN104680215 A CN 104680215A CN 201310632361 A CN201310632361 A CN 201310632361A CN 104680215 A CN104680215 A CN 104680215A
Authority
CN
China
Prior art keywords
data group
information
standard
dimension code
code pattern
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
CN201310632361.3A
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.)
Ku Choi Pio
Original Assignee
Ku Choi Pio
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 Ku Choi Pio filed Critical Ku Choi Pio
Priority to CN201310632361.3A priority Critical patent/CN104680215A/en
Publication of CN104680215A publication Critical patent/CN104680215A/en
Pending legal-status Critical Current

Links

Landscapes

  • Storage Device Security (AREA)

Abstract

The invention discloses a making method of a two-dimensional code graph, which comprises the following steps: encoding a first type of information to generate a first data set; encoding and encrypting a second type of information to generate a second data set; sequentially connecting the first data set, a self-defined separator and the second data set into a third data set; generating the two-dimensional code graph by the third data set. The invention also discloses a decoding method for the two-dimensional code graph, which comprises the following steps: scanning the two-dimensional code graph to obtain the third data set; detecting whether the third data set comprises the self-defined separator; if the third data set comprises the self-defined separator, extracting data behind the separator in the third data set and using the extracted data as the second data set and then carrying out decryption and decoding on the second data set to obtain the private second type of information, or prompting error information. According to the invention, by adopting an encrypting means, safety transmission of private information is implemented; by adopting the separator, the same two-dimensional graph can bear two or more types of information so as to implement two purposes of one code.

Description

The method for making of two-dimension code pattern and coding/decoding method
Technical field
The present invention relates to technical field of information processing, be specifically related to a kind of method for making and coding/decoding method of two-dimension code pattern.
Background technology
Two-dimensional bar code/Quick Response Code is according to certain rules in the chequered with black and white graphic recording data symbol information of planar directional spreding with certain specific geometric figure.Compared with one-dimension code, Quick Response Code constantly can store letter and number can also store the information such as Chinese character, numeral and picture, therefore the application of Quick Response Code wants much wide, and along with the smart mobile phone of camera, the widespread use of panel computer, the scope that should have of Quick Response Code constantly expands.
Quick Response Code has a lot of coding standard, namely different code systems, wherein QR code, and being a kind of more common coding standard, is a kind of standard of opening, in the application, quotes the coding standard of existing QR code.
Inventor finds in research process, existing Quick Response Code is generally that a two-dimension code pattern only includes a category information, that is to say a two-dimension code pattern meeting QR code standard, a fixing information can only be obtained after decoding, as different classes of information need be transmitted, just need to adopt two or more two-dimension code pattern.In addition, same two-dimension code pattern, disclosed in all smart machines being provided with Versatile two-dimension code decoding software being all, is unfavorable for the propagation of private information, is especially unfavorable for relating to the transmission that finance wait sensitive informations.
Summary of the invention
A technical matters to be solved by this invention is on the basis of transmission public information, the two-dimension code pattern method for making providing a kind of energy safe transmission private information and the method for decoding to it.
In order to solve the problems of the technologies described above, the invention provides a kind of method for making of two-dimension code pattern, for information to be encoded is made as two-dimension code pattern, this information to be encoded comprises the Equations of The Second Kind information of disclosed type I information and secret, and described method for making comprises the steps:
S1: encode to type I information, generates the first data group;
S2: encode to Equations of The Second Kind information, encrypt, generates the second data group;
S3: described first data group, self-defining separator are linked in sequence into the 3rd data group with the second data group;
S4: generate two-dimension code pattern by described 3rd data group.
As preferably, the coding step in described step S1 adopts QR code standard.
As preferably, the coding step in described step S2 adopts QR code standard, and encrypting step adopts Base64 standard.
As preferably, in described step S4, generate two-dimension code pattern according to QR code standard by the 3rd data group.
As preferably, described self-defining separator adopts the full stop in QR code standard.
Present invention also offers a kind of coding/decoding method of two-dimension code pattern, comprise the steps:
S1: scanning two-dimension code pattern, obtains the 3rd data group,
S2: detect in described 3rd data group whether comprise self-defining separator, then performs step S31 as comprised, otherwise performs step S32: display error information;
S31: extract in the 3rd data group data after being positioned at separator as the second data group, is then decrypted this second data group and decodes and obtain the Equations of The Second Kind information of secret.
As preferably, described self-defining separator adopts the full stop in QR code standard.
As preferably, the decryption step wherein in step S31 adopts Base64 standard, decoding step to adopt QR code standard.
As preferably, while performing step S31, also perform step 4: the data before being positioned at separator in extraction the 3rd data group, as the first data group, are then carried out decoding to this first data group and obtained disclosed type I information.
Compared with prior art, beneficial effect of the present invention is: by adopt cryptographic means, realize the safe transmission of private information, by adopt separator, same two-dimension code pattern can carry two classes or the above information of two classes, realize one yard dual-purpose even multiplex.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of the method for making of the two-dimension code pattern of the first embodiment of the present invention.
Fig. 2 is the process flow diagram of the coding/decoding method of the two-dimension code pattern of the second embodiment of the present invention.
The two-dimension code pattern that Fig. 3 adopts for the first and second embodiments.
The process flow diagram that Fig. 4 decodes to the two-dimension code pattern shown in Fig. 3 for adopting prior art.
Fig. 5 is the process flow diagram of the coding/decoding method of the two-dimension code pattern of the third embodiment of the present invention.
Embodiment
Below in conjunction with the drawings and specific embodiments, the present invention is described in further detail, but not as a limitation of the invention.
First state, Base64 standard involved in the present invention and QR code standard are open standard, and those skilled in the art can obtain correlation technique data, does not repeat them here.
As shown in Figure 1, in the method for making of the two-dimension code pattern of the first embodiment, the information for two-dimension code pattern to be encoded comprises the Equations of The Second Kind information of disclosed type I information and secret, and this method for making comprises the steps:
S1: encode to type I information, generates the first data group;
S2: encode to Equations of The Second Kind information, encrypt, generates the second data group;
S3: described first data group, self-defining separator are linked in sequence into the 3rd data group with the second data group;
S4: generate two-dimension code pattern by described 3rd data group.
Wherein, the coding step in described step S1 adopts QR code standard.Coding step in step S2 also adopts QR code standard, and encrypting step adopts Base64 standard.In described step S4, generate two-dimension code pattern according to QR code standard by the 3rd data group.Coding step in step S1, step S2 can also adopt other Quick Response Code standards, and this will determine according to the two-dimension code pattern type of selected use, as long as the Quick Response Code Code And Decode standard be suitable for, all can directly adopt.The step that 3rd data group generates two-dimension code pattern is also like this, can adopt all known two-dimension code pattern technology comprising QR code standard.
As preferably, described self-defining separator adopts the full stop in QR code standard.Like this, for the general Quick Response Code decode system adopting QR code standard, the data after separator are no longer decoded.In a word, the effect that " self-defining separator " must play segmentation first group of data and second group of data is somebody's turn to do.If adopt the full stop in QR code standard, when adopting the decoding software of general QR code standard to decode, when running into full stop, will think that the 3rd data group terminates, only processing the first data group before being positioned at full stop.
The present embodiment by adopt separator, achieve a two-dimension code pattern and can carry two classes or the above information of two classes, realize one yard dual-purpose even multiplex, by adopt cryptographic means, realize the safe transmission of private information.Wherein, type I information can be the public informations such as network address, general text, picture, Equations of The Second Kind information be account, password, personally identifiable information etc. comparatively responsive be not easy to disclosed private information.Adopt the solution of the present invention, a two-dimension code pattern can carry two category informations, private information can not identify by general decoding device (software), be conducive to the safe transmission of information, but this two-dimension code pattern can carry disclosed information again simultaneously, can do propaganda and promote the use of, make full use of the feature contained much information that two-dimension code pattern has, reduce the quantity of the two-dimension code pattern used.
As shown in Figure 2, the coding/decoding method of the two-dimension code pattern of the second embodiment comprises the steps:
S1: scanning two-dimension code pattern, obtains the 3rd data group,
S2: detect in described 3rd data group whether comprise self-defining separator, if comprised, performs step S31, otherwise performs step S32: display error information.
S31: the data extracted in the 3rd data group after being positioned at separator are the second data group, are then decrypted the Equations of The Second Kind information obtaining secret with decoding step.
As preferably, described self-defining separator adopts the full stop in QR code standard.
Corresponding with the method for making of above-mentioned two-dimension code pattern, the decryption step in step S31 adopts Base64 standard, decoding step to adopt QR code standard.Certainly, the decoding step in step S31 is determined according to this two-dimension code pattern institute's accepted standard, and the encryption method that decryption step adopts according to Equations of The Second Kind information is determined.
The embody rule situation of above-mentioned first embodiment and the second embodiment is illustrated below in conjunction with Fig. 3 and table 1.
Wherein, by the type I information listed by table 1 and Equations of The Second Kind information according to the process encoding shown in Fig. 1, and encrypting step adopts Base64 standard, and coding adopts QR code standard, obtains the first data group as shown in table 1 and the second data group, use branch "; " as separator, be merged into the 3rd data group:
" http://www.yopoint.net/merchant.action code=WVBDVE0lM0JNOTk5OTk5OTk5OTk5OSUzQnRlcS3RzaG9w; TTk5OTk5OTk5OTk5OTt0ZXN0c2hvcA==", employing QR code standard is generated two-dimension code pattern as shown in Figure 3.When decoding to the two-dimension code pattern shown in Fig. 3, just obtain the Equations of The Second Kind information in table 1.If adopt the Quick Response Code decode system of prior art as shown in Figure 4 to decode to the two-dimension code pattern shown in Fig. 3, obtain the type I information in table 1.
Table 1 type I information and Equations of The Second Kind information is corresponding with the data after its coding shows
Fig. 5 shows the process flow diagram of the coding/decoding method of the two-dimension code pattern of the third embodiment of the present invention.As shown in Figure 5, the difference of the 3rd embodiment and the second embodiment is, while extraction second data group, extracts the first data group, and carries out decoding to the first data group and obtain type I information.Same as the prior art to the decode procedure of the first data group, repeat no more.
Above embodiment is only exemplary embodiment of the present invention, and be not used in restriction the present invention, protection scope of the present invention is defined by the claims.Those skilled in the art can in essence of the present invention and protection domain, and make various amendment or equivalent replacement to the present invention, this amendment or equivalent replacement also should be considered as dropping in protection scope of the present invention.

Claims (9)

1. a method for making for two-dimension code pattern, for information to be encoded is made as two-dimension code pattern, this information to be encoded comprises the Equations of The Second Kind information of disclosed type I information and secret, it is characterized in that, described method for making comprises the steps:
S1: encode to type I information, generates the first data group;
S2: encode to Equations of The Second Kind information, encrypt, generates the second data group;
S3: described first data group, self-defining separator are linked in sequence into the 3rd data group with the second data group;
S4: generate two-dimension code pattern by described 3rd data group.
2. the method for making of Quick Response Code according to claim 1, is characterized in that, the coding step in described step S1 adopts QR code standard.
3. the method for making of Quick Response Code according to claim 2, is characterized in that, the coding step in described step S2 adopts QR code standard, and encrypting step adopts Base64 standard.
4. the method for making of the Quick Response Code according to any one of claim 1-3, is characterized in that, in described step S4, generates two-dimension code pattern according to QR code standard by the 3rd data group.
5. the method for making of Quick Response Code according to claim 4, is characterized in that, described self-defining separator adopts the full stop in QR code standard.
6. a coding/decoding method for two-dimension code pattern, is characterized in that, comprises the steps:
S1: scanning two-dimension code pattern, obtains the 3rd data group,
S2: detect in described 3rd data group whether comprise self-defining separator, then performs step S31 as comprised, otherwise performs step S32: display error information;
S31: extract in the 3rd data group data after being positioned at separator as the second data group, is then decrypted this second data group and decodes and obtain the Equations of The Second Kind information of secret.
7. the coding/decoding method of two-dimension code pattern according to claim 6, is characterized in that, described self-defining separator adopts the full stop in QR code standard.
8. the coding/decoding method of the two-dimension code pattern according to claim 6 or 7, is characterized in that, the decryption step wherein in step S31 adopts Base64 standard, decoding step to adopt QR code standard.
9. the coding/decoding method of the two-dimension code pattern according to claim 6 or 7, it is characterized in that, also step 4 is performed: the data before being positioned at separator in extraction the 3rd data group, as the first data group, are then carried out decoding to this first data group and obtained disclosed type I information while performing step S31.
CN201310632361.3A 2013-11-29 2013-11-29 Making method and decoding method for two-dimensional code graph Pending CN104680215A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310632361.3A CN104680215A (en) 2013-11-29 2013-11-29 Making method and decoding method for two-dimensional code graph

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310632361.3A CN104680215A (en) 2013-11-29 2013-11-29 Making method and decoding method for two-dimensional code graph

Publications (1)

Publication Number Publication Date
CN104680215A true CN104680215A (en) 2015-06-03

Family

ID=53315230

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310632361.3A Pending CN104680215A (en) 2013-11-29 2013-11-29 Making method and decoding method for two-dimensional code graph

Country Status (1)

Country Link
CN (1) CN104680215A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106815622A (en) * 2015-11-27 2017-06-09 阿里巴巴集团控股有限公司 The generation of information, acquisition, processing method and processing device, method of payment and client
CN106845595A (en) * 2017-02-13 2017-06-13 济南浪潮高新科技投资发展有限公司 A kind of coding method of Quick Response Code, coding/decoding method, code device and decoding apparatus
CN107294964A (en) * 2017-06-16 2017-10-24 北京鼎九信息工程研究院有限公司 A kind of method of information transfer
CN108566540A (en) * 2018-06-21 2018-09-21 福建省应急通信运营有限公司 One kind realizing video monitoring dispatching device and method by barcode scanning
CN110197243A (en) * 2018-02-26 2019-09-03 Opto电子有限公司 Two dimensional code, two dimensional code output system and method, two dimensional code read system and method
WO2022228100A1 (en) * 2021-04-30 2022-11-03 华为技术有限公司 Data processing method and related apparatus

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003178277A (en) * 2001-12-11 2003-06-27 Ricoh Co Ltd Two-dimensional code, two-dimensional code making method, two-dimensional code decoding method, device for executing these methods, program for executing these methods by computer and computer readable recording medium for recording its program
US7088859B1 (en) * 1999-06-03 2006-08-08 Fujitsu Limited Apparatus for processing machine-readable code printed on print medium together with human-readable information
CN101493901A (en) * 2009-02-27 2009-07-29 深圳华为通信技术有限公司 Two-dimensional code data compressing and decompressing method and terminal
CN102902997A (en) * 2012-09-21 2013-01-30 华南农业大学 Two-dimensional code hybrid coding and decoding device and method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7088859B1 (en) * 1999-06-03 2006-08-08 Fujitsu Limited Apparatus for processing machine-readable code printed on print medium together with human-readable information
JP2003178277A (en) * 2001-12-11 2003-06-27 Ricoh Co Ltd Two-dimensional code, two-dimensional code making method, two-dimensional code decoding method, device for executing these methods, program for executing these methods by computer and computer readable recording medium for recording its program
CN101493901A (en) * 2009-02-27 2009-07-29 深圳华为通信技术有限公司 Two-dimensional code data compressing and decompressing method and terminal
CN102902997A (en) * 2012-09-21 2013-01-30 华南农业大学 Two-dimensional code hybrid coding and decoding device and method

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106815622A (en) * 2015-11-27 2017-06-09 阿里巴巴集团控股有限公司 The generation of information, acquisition, processing method and processing device, method of payment and client
CN106815622B (en) * 2015-11-27 2020-03-06 阿里巴巴集团控股有限公司 Information generation, acquisition and processing method and device, payment method and client
US11062311B2 (en) 2015-11-27 2021-07-13 Advanced New Technologies Co., Ltd. Information generation, acquisition, and processing to improve service efficiency
US11127007B2 (en) 2015-11-27 2021-09-21 Advanced New Technologies Co., Ltd. Information generation, acquisition, and processing to improve service efficiency
US11449867B2 (en) 2015-11-27 2022-09-20 Advanced New Technologies Co., Ltd. Information generation, acquisition, and processing to improve service efficiency
CN106845595A (en) * 2017-02-13 2017-06-13 济南浪潮高新科技投资发展有限公司 A kind of coding method of Quick Response Code, coding/decoding method, code device and decoding apparatus
CN107294964A (en) * 2017-06-16 2017-10-24 北京鼎九信息工程研究院有限公司 A kind of method of information transfer
CN107294964B (en) * 2017-06-16 2022-01-11 北京鼎九信息工程研究院有限公司 Information transmission method
CN110197243A (en) * 2018-02-26 2019-09-03 Opto电子有限公司 Two dimensional code, two dimensional code output system and method, two dimensional code read system and method
CN108566540A (en) * 2018-06-21 2018-09-21 福建省应急通信运营有限公司 One kind realizing video monitoring dispatching device and method by barcode scanning
WO2022228100A1 (en) * 2021-04-30 2022-11-03 华为技术有限公司 Data processing method and related apparatus

Similar Documents

Publication Publication Date Title
CN104835046B (en) A kind of data false distinguishing method for two-dimension code safe verification
CN106100850B (en) Intelligent and safe chip signing messages transmission method and system based on two dimensional code
CN104680215A (en) Making method and decoding method for two-dimensional code graph
CN101295343B (en) Two-dimensional code multi-enciphering anti-fake printing method
CN102075547B (en) Dynamic password generating method and device and authentication method and system
CN104618334A (en) Method and system for generating and verifying dynamic two-dimensional code
CN107302435B (en) Identity information processing method and system and corresponding server
CN105389493A (en) Password management method and password management system
CN103049777A (en) Security application method for two-dimension code and encoding/decoding system
CN104268610A (en) Method for generating and reading graded QR code
CN105976005A (en) Two-dimensional code encrypting method, two-dimensional code generating device and two-dimensional code scanning device
CN103415007A (en) Mobile phone two-dimensional code safe use method based on information hiding
WO2020233047A1 (en) Page test method and apparatus
CN103532960B (en) Decrypt device
CN103414727A (en) Encryption protection system for input password input box and using method thereof
CN112202794A (en) Transaction data protection method and device, electronic equipment and medium
CN104253689A (en) User identity module card generated dynamic password authentication method and system based on QR (quick response) code
CN105187357A (en) Two-dimension code verification method and system
EP2910042B1 (en) Secure information transfer via bar codes
CN106357608A (en) Method for encrypting and decrypting private data for personal healthcare data
TWI493939B (en) A Communication System Using Fingerprint Information Authentication and Its Use
CN114357524B (en) Electronic document processing method and device
CN105610811B (en) Authentication method and its relevant equipment and system
CN104992206A (en) Two-dimension code coding and decoding system
CN104732137A (en) Android-based method of recognizing multi-mode AES-encrypted (advanced encryption standard encrypted) QR (quick response) codes

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent of invention or patent application
CB02 Change of applicant information

Address after: L, 17 floor, 180 Southeast Asia Business Center, Song Yusheng square, Macao, China

Applicant after: Gu Cuibiao

Address before: L, 7 floor, 180 Southeast Asia Business Center, Song Yusheng square, Macao, China

Applicant before: Gu Cuibiao

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20150603