CN104424497A - Method and device for generating dynamic two-dimensional codes - Google Patents
Method and device for generating dynamic two-dimensional codes Download PDFInfo
- Publication number
- CN104424497A CN104424497A CN201310408127.2A CN201310408127A CN104424497A CN 104424497 A CN104424497 A CN 104424497A CN 201310408127 A CN201310408127 A CN 201310408127A CN 104424497 A CN104424497 A CN 104424497A
- Authority
- CN
- China
- Prior art keywords
- segmentation
- content
- quick response
- response code
- array
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 18
- 230000011218 segmentation Effects 0.000 claims description 63
- 238000005520 cutting process Methods 0.000 claims description 12
- 239000002131 composite material Substances 0.000 claims description 3
- 238000004519 manufacturing process Methods 0.000 claims description 3
- 230000009286 beneficial effect Effects 0.000 abstract description 2
- 238000005516 engineering process Methods 0.000 description 5
- 230000002123 temporal effect Effects 0.000 description 4
- 230000004048 modification Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 239000007787 solid Substances 0.000 description 2
- 238000012795 verification Methods 0.000 description 2
- 230000032683 aging Effects 0.000 description 1
- 230000015572 biosynthetic process Effects 0.000 description 1
- 238000009826 distribution Methods 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
Landscapes
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a method and device for generating dynamic two-dimensional codes. The method comprises the following steps: obtaining two-dimensional code contents; adding a current timestamp header before the obtained two-dimensional code contents to generate coded contents; coding the coded contents; dividing the coded contents into N-numbered equal parts to obtain a subsection array and an array size N after equal division, wherein N is the quantity of final two-dimensional codes in the dynamic two-dimensional codes; traversing the subsection array; displaying a two-dimensional code array obtained after traversing is completed according to a set display rule. The method and the device have the beneficial effects that as the dynamic two-dimensional codes are displayed on an electronic screen by adopting a screen refreshing frame number adjustable output mode rather than a picture file output mode, the problem of preventing electronic two-dimensional codes from being copied is thoroughly solved.
Description
Technical field
The present invention relates to mobile communication technology field, particularly relate to method and the device of the generation of a kind of dynamic two-dimension code.
Background technology
Quick Response Code uses specific geometric figure, according to the of new generation barcode technology of certain rule in the chequered with black and white rectangle square formation technical data symbolic information of plane distribution, be widely used in the every field of society, it is large that Quick Response Code has information capacity, the advantages such as error correcting capability is strong, the fast and comprehensive recognition of recognition speed.Along with the arrival in Internet of Things epoch, a large amount of line reach the standard grade under the form of information the more carrier present, Quick Response Code is cheap with it, the characteristic that multichip carrier presents, undisputed becomes with under line on Internet of Things epoch line, multichip carrier, the information entry of multimedia platform.
But along with the widespread use of Quick Response Code, common solid size encryption generates, the mode that solid size recognition is resolved, environment that is safer to Quick Response Code in society, that have more standby ageing, more complicated use can not be met.
Summary of the invention
For the problem that above-mentioned background technology relates to, the invention provides method and the device of a kind of dynamic two-dimension code generation.
The invention provides a kind of method that dynamic two-dimension code generates, comprise the following steps;
Obtain Quick Response Code content;
Before the Quick Response Code content of described acquisition, add current time stamp head generate encoded content;
Described encoded content is encoded;
Content after encoding is carried out N decile, obtains the segmentation array after decile and array size N, wherein N is the quantity of final Quick Response Code in dynamic two-dimension code;
Traversing operation is carried out to described segmentation array;
Obtain Quick Response Code array after traversal being terminated to show according to the display rule of setting.
Further, describedly to be encoded by described encoded content, concrete employing comprises:
Described encoded content is carried out Base64 coding.
Preferably, described described encoded content is encoded after, also comprise:
Content after being encoded by Base64 carries out cutting according to the version of the Quick Response Code that will show.
Further, described traversing operation is carried out to described segmentation array, specifically comprises the following steps:
The content of segmentation array is done a public key encryption algorithm rsa encryption and obtain segmentation ciphertext;
The sequence number of dynamic two-dimension code version number, segmentation and total segmentation Quick Response Code quantity are formed segmentation Quick Response Code content as head and segmentation ciphertext; Wherein, the serial number information of described segmentation comes from original setting, and described serial number information comprises sequence number quantity and sequence number ordering rule;
Described segmentation Quick Response Code content is generated Quick Response Code.
Present invention also offers the device that a kind of dynamic two-dimension code generates, described device comprises:
Acquiring unit, for obtaining Quick Response Code content;
Timestamp adding device, generates encoded content for adding current time stamp head before the Quick Response Code content of described acquisition;
Coding unit, for encoding described encoded content;
Cutting unit, for the content after encoding is carried out N decile, obtain the segmentation array after decile and array size N, wherein N is the quantity of final Quick Response Code in dynamic two-dimension code;
Traversal Unit, for carrying out traversing operation to described segmentation array;
Produce display unit, for by traversal terminate after obtain Quick Response Code array according to setting display rule show.
Further, described coding unit, specifically for;
Described encoded content is carried out Base64 coding.
Preferably, described cutting unit, also comprises:
Content after being encoded by Base64 carries out cutting according to the version of the Quick Response Code that will show.
Further, described Traversal Unit, specifically comprises;
Encrypting module, obtains segmentation ciphertext for the content of segmentation array being done a public key encryption algorithm rsa encryption;
Composite module, for forming segmentation Quick Response Code content using the sequence number of dynamic two-dimension code version number, segmentation and total segmentation Quick Response Code quantity as head and segmentation ciphertext; Wherein, the serial number information of described segmentation comes from original setting, and described serial number information comprises sequence number quantity and sequence number ordering rule;
Production module, for generating Quick Response Code by described segmentation Quick Response Code content.
Beneficial effect of the present invention is as follows:
Embodiments provide method and the device of the generation of a kind of dynamic two-dimension code, establish a kind of many yards of Quick Response Codes by time, sequence number, function generation means and generate reading methods, the information utilizing Quick Response Code itself to possess can edit characteristic, by temporal information when raw code or verification, and by the different sequence numbers in structure link coded system obtain many yards, combine corresponding function again, in addition the incidental input information of Quick Response Code itself, integrates and generates Quick Response Code that is in groups multiple and association.Adopt dynamic or non-dynamic form display in a planar form.After recognition end obtains dynamic or non-dynamic image, after many yards of information are distinguished in success, corresponding sequence number and temporal information is obtained according to the inverse operation of function, after the sequence number feature of simultaneously holding this locality to pre-set this information and recognition and local clock information do logic comparison, successfully resolve original two dimensional code information attached in many yards.The Quick Response Code that the present invention generates can provide more wide application for Quick Response Code uses with universal.
Accompanying drawing explanation
The schematic flow sheet that Fig. 1 is the method that provides dynamic two-dimension code to generate in the embodiment of the present invention one;
The schematic flow sheet of traversal method of Fig. 2 for providing in the embodiment of the present invention;
The apparatus structure schematic diagram that Fig. 3 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with Figure of description, embodiments of the present invention is further illustrated, but the present invention is not limited to the following examples.
Embodiment one:
As shown in Figure 1, be the method flow schematic diagram that a kind of dynamic two-dimension code provided in the embodiment of the present invention one generates, said method comprising the steps of:
Step 101: obtain Quick Response Code content;
Step 102: add current time stamp head and generate encoded content before the Quick Response Code content of described acquisition;
Step 103: described encoded content is encoded;
Step 104: the content after encoding is carried out N decile, obtains the segmentation array after decile and array size N, and wherein N is the quantity of final Quick Response Code in dynamic two-dimension code;
Step 105: traversing operation is carried out to described segmentation array;
Step 106: obtain Quick Response Code array after traversal being terminated and show according to the display rule of setting.
Quick Response Code generation=f (raw information+key), wherein, f is self-defining function, and variable is the combination of raw information and key.
Key part=f (timestamp+serial number information), temporal information when timestamp is the raw code or verification that define, its time information content takes from the system clock of raw code system or recognition system, also the clock of the server end of raw code or recognition system can be taken from, when the raw code system of individuality and the clock of recognition system is inconsistent there are differences time, temporal information also may be thought of as the time range including its values of disparity variable.
Serial number information comes from original setting, it comprises sequence number quantity and sequence number ordering rule, and raw code and recognition two ends need sequence number Rule Information unified, or the information function of sequence number rule unified (can be one group of special sortord, also can be the sortords that many groups meet unified function).
Step 102 in embodiments of the present invention: add that before Quick Response Code content current time stamp head obtains wanting encoded content as shown below:
Timestamp | Space | Quick Response Code content |
Wherein step 103 specifically adopts and described encoded content is carried out Base64 coding.
Described described encoded content is encoded after, comprising: the content after encoding is carried out N decile, obtain the segmentation array after decile and array size N, wherein N is the quantity of final Quick Response Code in dynamic two-dimension code; Or the content after Base64 can being encoded carries out cutting according to the version of the Quick Response Code that will show.
Perform step 105 specifically to comprise the following steps:
Step 201: the content of segmentation array is done a public key encryption algorithm rsa encryption and obtain segmentation ciphertext;
Step 202: the sequence number of dynamic two-dimension code version number, segmentation and total segmentation Quick Response Code quantity are formed segmentation Quick Response Code content as head and segmentation ciphertext; Wherein, the serial number information of described segmentation comes from original setting, and described serial number information comprises sequence number quantity and sequence number ordering rule;
Step 203: described segmentation Quick Response Code content is generated Quick Response Code.
Shown in figure specific as follows:
Edition code | Space | Sequence number | Space | Total segments | Space | Ciphertext |
As shown in Figure 3, for a kind of device that the embodiment of the present invention provides, described device is the device with text editor and call function, and as having mobile phone or smart mobile phone, the panel computer pad etc. of text editor and call function, the embodiment of the present invention is not limited in any way this.
The device that dynamic two-dimension code generates, described device comprises:
Acquiring unit 301, for obtaining Quick Response Code content;
Timestamp adding device 302, generates encoded content for adding current time stamp head before the Quick Response Code content of described acquisition;
Coding unit 303, for encoding described encoded content;
Cutting unit 304, for the content after encoding is carried out N decile, obtain the segmentation array after decile and array size N, wherein N is the quantity of final Quick Response Code in dynamic two-dimension code;
Traversal Unit 305, for carrying out traversing operation to described segmentation array;
Produce display unit 306, for by traversal terminate after obtain Quick Response Code array according to setting display rule show.
Wherein state coding unit 303, specifically for:
Described encoded content is carried out Base64 coding.
Further, described cutting unit 304, also comprises:
Content after being encoded by Base64 carries out cutting according to the version of the Quick Response Code that will show.
Wherein, described Traversal Unit 305, specifically comprises:
Encrypting module, obtains segmentation ciphertext for the content of segmentation array being done a public key encryption algorithm rsa encryption;
Composite module, for forming segmentation Quick Response Code content using the sequence number of dynamic two-dimension code version number, segmentation and total segmentation Quick Response Code quantity as head and segmentation ciphertext; Wherein, the serial number information of described segmentation comes from original setting, and described serial number information comprises sequence number quantity and sequence number ordering rule;
Production module, for generating Quick Response Code by described segmentation Quick Response Code content.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.
Claims (8)
1. a method for dynamic two-dimension code generation, is characterized in that, comprise the following steps:
Obtain Quick Response Code content;
Before the Quick Response Code content of described acquisition, add current time stamp head generate encoded content;
Described encoded content is encoded;
Content after encoding is carried out N decile, obtains the segmentation array after decile and array size N, wherein N is the quantity of final Quick Response Code in dynamic two-dimension code;
Traversing operation is carried out to described segmentation array;
Obtain Quick Response Code array after traversal being terminated to show according to the display rule of setting.
2. the method that generates of dynamic two-dimension code as claimed in claim 1, is characterized in that, is describedly encoded by described encoded content, and concrete employing comprises:
Described encoded content is carried out Base64 coding.
3. the method that generates of dynamic two-dimension code as claimed in claim 2, is characterized in that, described described encoded content is encoded after, also comprise:
Content after being encoded by Base64 carries out cutting according to the version of the Quick Response Code that will show.
4. the method that generates of dynamic two-dimension code as claimed in claim 3, is characterized in that, describedly carries out traversing operation to described segmentation array, specifically comprises the following steps:
The content of segmentation array is done a public key encryption algorithm rsa encryption and obtain segmentation ciphertext;
The sequence number of dynamic two-dimension code version number, segmentation and total segmentation Quick Response Code quantity are formed segmentation Quick Response Code content as head and segmentation ciphertext; Wherein, the serial number information of described segmentation comes from original setting, and described serial number information comprises sequence number quantity and sequence number ordering rule;
Described segmentation Quick Response Code content is generated Quick Response Code.
5. a device for dynamic two-dimension code generation, it is characterized in that, described device comprises:
Acquiring unit, for obtaining Quick Response Code content;
Timestamp adding device, generates encoded content for adding current time stamp head before the Quick Response Code content of described acquisition;
Coding unit, for encoding described encoded content;
Cutting unit, for the content after encoding is carried out N decile, obtain the segmentation array after decile and array size N, wherein N is the quantity of final Quick Response Code in dynamic two-dimension code;
Traversal Unit, for carrying out traversing operation to described segmentation array;
Produce display unit, for by traversal terminate after obtain Quick Response Code array according to setting display rule show.
6. device as claimed in claim 5, is characterized in that, described coding unit, specifically for:
Described encoded content is carried out Base64 coding.
7. device as claimed in claim 6, it is characterized in that, described cutting unit, also comprises:
Content after being encoded by Base64 carries out cutting according to the version of the Quick Response Code that will show.
8. device as claimed in claim 7, it is characterized in that, described Traversal Unit, specifically comprises:
Encrypting module, obtains segmentation ciphertext for the content of segmentation array being done a public key encryption algorithm rsa encryption;
Composite module, for forming segmentation Quick Response Code content using the sequence number of dynamic two-dimension code version number, segmentation and total segmentation Quick Response Code quantity as head and segmentation ciphertext; Wherein, the serial number information of described segmentation comes from original setting, and described serial number information comprises sequence number quantity and sequence number ordering rule;
Production module, for generating Quick Response Code by described segmentation Quick Response Code content.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310408127.2A CN104424497B (en) | 2013-09-10 | 2013-09-10 | A kind of method and device that dynamic two-dimension code generates |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310408127.2A CN104424497B (en) | 2013-09-10 | 2013-09-10 | A kind of method and device that dynamic two-dimension code generates |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104424497A true CN104424497A (en) | 2015-03-18 |
CN104424497B CN104424497B (en) | 2019-05-28 |
Family
ID=52973405
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310408127.2A Expired - Fee Related CN104424497B (en) | 2013-09-10 | 2013-09-10 | A kind of method and device that dynamic two-dimension code generates |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104424497B (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106339741A (en) * | 2016-08-31 | 2017-01-18 | 陈凌云 | Dynamic two-dimensional code generation method, device, identification method and device |
CN106981012A (en) * | 2017-03-21 | 2017-07-25 | 上海动联信息技术股份有限公司 | A kind of dynamic two-dimension code order generation method and equipment |
CN108449184A (en) * | 2018-03-22 | 2018-08-24 | 顾家豪 | A kind of dynamic two-dimension code generates and identifying system |
CN109840576A (en) * | 2019-01-18 | 2019-06-04 | 深圳大学 | The generation method and coding/decoding method of anti-copying two dimensional code based on segmentation insertion |
CN109948763A (en) * | 2017-12-21 | 2019-06-28 | 武汉矽感科技有限公司 | A kind of method and device generating dynamic two-dimension code |
CN110718004A (en) * | 2019-09-29 | 2020-01-21 | 深圳深岚视觉科技有限公司 | Unlocking method and device and storage medium |
CN113344161A (en) * | 2021-06-29 | 2021-09-03 | 平安普惠企业管理有限公司 | Dynamic QR code generation method and device, computer equipment and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1710929A (en) * | 2005-07-11 | 2005-12-21 | 北京中星微电子有限公司 | Data communication system and method of hand-held apparatus |
JP2008269550A (en) * | 2007-03-27 | 2008-11-06 | Masayuki Taguchi | Recognition system for dynamically displayed two-dimensional code |
CN101593279A (en) * | 2008-05-28 | 2009-12-02 | 中华电信股份有限公司 | Dynamic bar codes shows and authentication method |
CN102760242A (en) * | 2012-05-16 | 2012-10-31 | 孟智平 | Encoding and decoding method for three-dimensional codes and using method |
CN102831163A (en) * | 2012-07-20 | 2012-12-19 | 江苏缨思贝睿物联网科技有限公司 | Data transfer method and data transfer system |
US20130020393A1 (en) * | 2011-07-22 | 2013-01-24 | Electronics And Telecommunications Research Institute | Apparatus and method for dynamic multidimensional codes with time and visual recognition information |
KR20130033516A (en) * | 2011-09-16 | 2013-04-04 | 강석영 | Method for providing information using 2-dimensional code |
-
2013
- 2013-09-10 CN CN201310408127.2A patent/CN104424497B/en not_active Expired - Fee Related
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1710929A (en) * | 2005-07-11 | 2005-12-21 | 北京中星微电子有限公司 | Data communication system and method of hand-held apparatus |
JP2008269550A (en) * | 2007-03-27 | 2008-11-06 | Masayuki Taguchi | Recognition system for dynamically displayed two-dimensional code |
CN101593279A (en) * | 2008-05-28 | 2009-12-02 | 中华电信股份有限公司 | Dynamic bar codes shows and authentication method |
US20130020393A1 (en) * | 2011-07-22 | 2013-01-24 | Electronics And Telecommunications Research Institute | Apparatus and method for dynamic multidimensional codes with time and visual recognition information |
KR20130033516A (en) * | 2011-09-16 | 2013-04-04 | 강석영 | Method for providing information using 2-dimensional code |
CN102760242A (en) * | 2012-05-16 | 2012-10-31 | 孟智平 | Encoding and decoding method for three-dimensional codes and using method |
CN102831163A (en) * | 2012-07-20 | 2012-12-19 | 江苏缨思贝睿物联网科技有限公司 | Data transfer method and data transfer system |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106339741A (en) * | 2016-08-31 | 2017-01-18 | 陈凌云 | Dynamic two-dimensional code generation method, device, identification method and device |
CN106981012A (en) * | 2017-03-21 | 2017-07-25 | 上海动联信息技术股份有限公司 | A kind of dynamic two-dimension code order generation method and equipment |
CN109948763A (en) * | 2017-12-21 | 2019-06-28 | 武汉矽感科技有限公司 | A kind of method and device generating dynamic two-dimension code |
CN108449184A (en) * | 2018-03-22 | 2018-08-24 | 顾家豪 | A kind of dynamic two-dimension code generates and identifying system |
CN109840576A (en) * | 2019-01-18 | 2019-06-04 | 深圳大学 | The generation method and coding/decoding method of anti-copying two dimensional code based on segmentation insertion |
CN110718004A (en) * | 2019-09-29 | 2020-01-21 | 深圳深岚视觉科技有限公司 | Unlocking method and device and storage medium |
CN113344161A (en) * | 2021-06-29 | 2021-09-03 | 平安普惠企业管理有限公司 | Dynamic QR code generation method and device, computer equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN104424497B (en) | 2019-05-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104424497A (en) | Method and device for generating dynamic two-dimensional codes | |
CN103870861B (en) | A kind of method and apparatus generating Quick Response Code | |
US11328450B2 (en) | Point cloud encoding method, point cloud decoding method, encoder, and decoder | |
US20170155937A1 (en) | Method and apparatus for transmitting video data | |
CN107292808B (en) | Image processing method and device and image coprocessor | |
CN101261740B (en) | Processing method of an image storage | |
CN104424498B (en) | A kind of method and device of high speed transformation two dimensional code coding | |
CN115098888B (en) | Map data packet full-flow adaptive generation and encryption method, device and equipment | |
EP4336835A1 (en) | Encoding method and apparatus, decoding method and apparatus, device, storage medium, and computer program and product | |
CN105025102B (en) | The network storage call method and storage system of a kind of 3D printing model file | |
CN105407384A (en) | Method, device and system for identifying media player content by using two-dimensional code | |
Lee et al. | Omnidirectional video coding using latitude adaptive down‐sampling and pixel rearrangement | |
CN106713739B (en) | Two-dimensional code identification method based on electronic screen display | |
CN103606141A (en) | Method and system for realizing image display based on two-dimension code | |
CN115797178A (en) | Video super-resolution method based on 3D convolution | |
CN105719268B (en) | A kind of processing method and processing device of map datum | |
CN103268619B (en) | The method of image data batch compression in swf file and device | |
CN103226673A (en) | Method and device for processing SWF (Shock Wave Flash) separation encryption in batches | |
CN103260260B (en) | A kind of method of mobile device accesses network and relevant apparatus and system | |
CN106445888A (en) | Method and device for making artistic words | |
CN105530528A (en) | Data synchronizing and sharing method and device | |
CN116681574B (en) | Method, device, equipment and storage medium for generating clear watermark of webpage information system | |
CN104915162A (en) | Electronic device, display system and image processing method | |
CN103745318A (en) | Method for processing production order information | |
CN103455311A (en) | Drawing code generation system and method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20190710 Address after: 100094 4th Floor 412-1, Building 5, East Yard, No. 10 Wangdong Road, Northwest Haidian District, Beijing Patentee after: Yirui Xinchuang Science & Technology Co., Ltd., Beijing Address before: 150000 room 1405, unit 1, West three road 28, Daoli District, Harbin, Heilongjiang. Patentee before: Wang Yue |
|
TR01 | Transfer of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20190528 Termination date: 20200910 |
|
CF01 | Termination of patent right due to non-payment of annual fee |