CN108154365A - A kind of safety equipment for generating dynamic two-dimension code, method and system - Google Patents

A kind of safety equipment for generating dynamic two-dimension code, method and system Download PDF

Info

Publication number
CN108154365A
CN108154365A CN201711415447.5A CN201711415447A CN108154365A CN 108154365 A CN108154365 A CN 108154365A CN 201711415447 A CN201711415447 A CN 201711415447A CN 108154365 A CN108154365 A CN 108154365A
Authority
CN
China
Prior art keywords
dynamic factor
factor
server
dynamic
key
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
Application number
CN201711415447.5A
Other languages
Chinese (zh)
Other versions
CN108154365B (en
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.)
Hengbao Co Ltd
Original Assignee
Hengbao Co Ltd
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 Hengbao Co Ltd filed Critical Hengbao Co Ltd
Priority to CN201711415447.5A priority Critical patent/CN108154365B/en
Publication of CN108154365A publication Critical patent/CN108154365A/en
Application granted granted Critical
Publication of CN108154365B publication Critical patent/CN108154365B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3829Payment protocols; Details thereof insuring higher security of transaction involving key management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0861Generation of secret information including derivation or calculation of cryptographic keys or passwords
    • H04L9/0866Generation of secret information including derivation or calculation of cryptographic keys or passwords involving user or device identifiers, e.g. serial number, physical or biometrical information, DNA, hand-signature or measurable physical characteristics

Abstract

The present invention relates to information security field more particularly to a kind of safety equipment for generating dynamic two-dimension code, method and system.The method includes:Initialization sequence number, master key and dynamic factor;Every preset time, two-dimension code image is regenerated according to sequence number, master key and dynamic factor and is shown;Dynamic factor includes at least one of time factor, event factor, random data combination, finger print information collection or face information collection.Using the technical solution of the application, in the generating process of Quick Response Code, dynamic factor is added in, realizes that timing updates the purpose of Quick Response Code, Quick Response Code is prevented to be maliciously tampered.

Description

A kind of safety equipment for generating dynamic two-dimension code, method and system
Technical field
The present invention relates to information security field, due to being related to a kind of safety equipment for generating dynamic two-dimension code, method and being System.
Background technology
Commonly used with Quick Response Code, the payment of Quick Response Code barcode scanning has been applied to the application scenarios of many.Now two The market of code payment is tieed up, Alipay and wechat occupy most market.Trade company use that Alipay and wechat collect money when It waits, the gathering Quick Response Code of oneself can be printed, be attached to the position that client is easier scanning, user pays the bill to trade company When directly scan the gathering Quick Response Code of trade company and pay the bill.
It is static however, as the Quick Response Code printed, is easily distorted by criminal, causes unnecessary economy Loss.Based on this, the present invention is applied and is given birth to.
Invention content
The present invention in order to solve the problems in the existing technology, provide a kind of generation dynamic two-dimension code method of work, Apparatus and system.
The technical solution adopted by the present invention is:A kind of method for generating dynamic two-dimension code, including:
Initialization sequence number, master key and dynamic factor;
Every preset time, Quick Response Code figure is regenerated according to the sequence number, the master key and the dynamic factor Piece is simultaneously shown;
The dynamic factor includes time factor, event factor, random data combination, finger print information collection or face information collection At least one of.
The initialization sequence number, master key and dynamic factor, the specific steps are:
For sequence number of the safety equipment write-in with global unique identification;
Master key is generated according to the sequence number application key decentralized algorithm;
Initialize dynamic factor and server dynamic factor so that dynamic factor is synchronous with server dynamic factor.
The initialization dynamic factor and server dynamic factor so that dynamic factor clothes synchronous with server dynamic factor Business device, specifically includes at least one of following initial method:
When the dynamic factor includes time factor, the safety equipment clock time is set with the server clock time It is set to synchronization;
When the dynamic factor includes event factor, by the thing in the event times and server in the safety equipment Piece number is set as identical;
When the dynamic factor, which includes random data, to be combined, the random data that the safety equipment is received combines row Sequence stores and is sent to server and sequentially stores;
When the dynamic factor includes finger print information collection, multiple fingerprint information datas of the safety equipment typing are arranged Sequence stores and is sent to server and sequentially stores;
When the dynamic factor includes face information collection, multiple face information data that the safety equipment is captured Sequence stores and is sent to server and sequentially stores.
It is described that two-dimension code image is regenerated according to the sequence number, the master key and the dynamic factor, it is specific to wrap Include following sub-step:
It is recalculated, generated according to the sequence number, the master key and current dynamic factor application key schedule Working key;The current dynamic factor includes current time, current event number, is selected from random data combination One random data concentrates the finger print data selected at random from the finger print information, is concentrated at random from the face information At least one of human face data selected;
After working key is calculated, billing address is encrypted using the working key, with obtaining encrypted payment The two-dimensional code data using the encrypted payment address and the working key as two-dimensional code data, is converted to two dimension by location Code picture.
The present invention also provides a kind of safety equipments for generating dynamic two-dimension code, which is characterized in that including:
Initialization module, for initialization sequence number, master key and dynamic factor;
Two-dimensional code generation module, for every preset time, according to the sequence number, the master key and the dynamic because Son regenerates two-dimension code image, and the dynamic factor includes time factor, event factor, random data combination, finger print information At least one of collection or face information collection;
Display module, for showing the two-dimension code image.
The initialization module is specifically used for:There is the sequence number of global unique identification for safety equipment write-in, according to institute Sequence number application key decentralized algorithm generation master key is stated, and initializes dynamic factor and server dynamic factor so that dynamic The factor is synchronous with server dynamic factor.
Dynamic factor and server dynamic factor are initialized in the initialization module so that dynamic factor is moved with server The server of state factor synchronization, is specifically used for:
When the dynamic factor includes time factor, the safety equipment clock time is set with the server clock time It is set to synchronization;
When the dynamic factor includes event factor, by the thing in the event times and server in the safety equipment Piece number is set as identical;
When the dynamic factor, which includes random data, to be combined, the random data that the safety equipment is received combines row Sequence stores and is sent to server and sequentially stores;
When the dynamic factor includes finger print information collection, multiple fingerprint information datas of the safety equipment typing are arranged Sequence stores and is sent to server and sequentially stores;
When the dynamic factor includes face information collection, multiple face information data that the safety equipment is captured Sequence stores and is sent to server and sequentially stores.
The two-dimensional code generation module, is specifically used for:
It is recalculated, generated according to the sequence number, the master key and current dynamic factor application key schedule Working key;The current dynamic factor includes current time, current event number, is selected from random data combination One random data concentrates the finger print data selected at random from the finger print information, is concentrated at random from the face information At least one of human face data selected;
After working key is calculated, billing address is encrypted using the working key, with obtaining encrypted payment The two-dimensional code data using the encrypted payment address and the working key as two-dimensional code data, is converted to two dimension by location Code picture.
The present invention also provides it is a kind of generate dynamic two-dimension code system, including:Above-mentioned safety equipment and mobile equipment and Server;
Including processing module, for scanning the two-dimensional code picture, corresponding two-dimensional code data is sent to for the mobile equipment The server;
The server, including judgment module, for judging whether the two-dimensional code data is correct;Sending module is used for When the two-dimensional code data is correct, the billing address in the two-dimensional code data is sent to the mobile equipment.
The judgment module is specifically used for,
When the dynamic factor includes time factor, according to the sequence number, current timer time, time drift value Recalculated with the master key, obtain working key window, the working key in the two-dimensional code data whether with institute State any one working key matching in working key window;
It is close according to the sequence number, nonce counter number and the master when the dynamic factor includes event factor Key recalculates, and obtains working key, and whether the working key is identical with the working key in the two-dimensional code data;
When the dynamic factor includes random data combination/finger print information collection/face information collection, preserved according to inside The working key window completed, the two dimension are calculated by the random data combination/finger print information collection/face information collection Whether the working key in code data matches with any one working key in the working key window.
The advantageous effect that the present invention obtains is:In the generating process of Quick Response Code, add in dynamic factor, as time factor, Event factor or random data combination, realize that timing updates the purpose of Quick Response Code, the biological characteristic that can also add in trade company such as refers to Line information collection or face information collection more ensure the safety of Quick Response Code generation, Quick Response Code are prevented to be maliciously tampered.
Description of the drawings
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or it will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments described in application, for those of ordinary skill in the art, can also be obtained according to these attached drawings other Attached drawing.
Fig. 1 is a kind of system diagram for generating dynamic two-dimension code;
Fig. 2 is a kind of flow chart of work methods for generation dynamic two-dimension code that the embodiment of the present invention one provides;
Fig. 3 be the embodiment of the present invention one provide scan the two-dimensional code after concrete operations flow chart;
Fig. 4 is a kind of system block diagram for generating dynamic two-dimension code provided by Embodiment 2 of the present invention.
Specific embodiment
The application provides a kind of safety equipment, method of work and system for generating dynamic two-dimension code, realizes Quick Response Code Dynamic change, Quick Response Code failure after server authentication cannot pass through, ensure that timeliness and the safety of Quick Response Code.
With reference to the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete Ground describes, it is clear that described embodiment is part of the embodiment of the present invention, instead of all the embodiments.Based on the present invention In embodiment, those skilled in the art's all other embodiments obtained without making creative work, all Belong to the scope of protection of the invention.
Referring to Fig. 1, the system that the method for work of the generation dynamic two-dimension code of the application is applied sets 110 including safety, moves Dynamic equipment 120 and server 130.Wherein, each equipment is described in detail below:
Safety equipment 110, has been internally integrated safety chip, timer, and outside is provided with display screen, is stored in safety chip There are the sequence number with global uniqueness, master key and a user biological characteristic or random data etc., in safety equipment 110 Timer every preset time, two-dimensional code data is recalculated in triggering, is converted into two-dimension code image and passes through display screen Display so that Quick Response Code has timeliness, changes with the change of time.
Mobile equipment 120, such as mobile phone, tablet computer have the function of the equipment scanned the two-dimensional code, are set for scanning safety The two-dimension code image shown on standby 110, parsing two-dimension code image obtain two-dimensional code data, two-dimensional code data are sent to server 130。
Server 130, the sequence number of built-in security equipment 110, master key corresponding with safety equipment and and safety equipment Identical user biological characteristic or random data etc. are stored, and is provided with the timer synchronous with safety equipment 110, is allowed Having time is drifted about, when receive the two-dimensional code data from mobile equipment 120 and verify two-dimensional code data by after, by Quick Response Code Billing address in data is sent to mobile equipment 120.
Embodiment one
2 it is further described the method for work provided by the invention for generating dynamic two-dimension code, concrete operations below in conjunction with the accompanying drawings It is as follows:
Step 210:Safety equipment initializes;
Safety equipment initialization includes initialization sequence number, dynamic factor and master key, specially:It is written for safety equipment Sequence number with global unique identification generates master key, initialization dynamic according to the sequence number by key decentralized algorithm The factor is synchronous with server dynamic factor;
Wherein, dynamic factor can be time factor, event factor, random typed values, finger print information collection or face information At least one of collection.
When dynamic factor includes time factor, initialization is specially:By safety equipment clock time and server clock Time is set as synchronous;Wherein time factor change with the time and change.
When dynamic factor includes event factor, initialization is specially:By the event times and server in safety equipment In event times it is identical;Wherein event factor generates number with Quick Response Code and changes.
When dynamic factor, which includes random data, to be combined, initialization is specially:The random data that safety equipment is received Combination sequence, which stores and is sent to server, sequentially to be stored;Random data combination can be that trade company is inputted by safety equipment Multi-group data may be safety equipment internal random generation multi-group data.
When dynamic factor includes finger print information collection, initialization is specially:By multiple finger print informations of safety equipment typing Data sorting stores and is sent to server and sequentially stores;Multiple fingerprint information datas can be that multiple finger prints of trade company are believed Breath or the credible finger print information let people related to trade company, for example, by taking five fingers of trade company as an example, set in safety The sequence typing according to thumb, forefinger, middle finger, the third finger and little finger of toe and storage of sorting, then send out these finger print informations in standby Server is given, server also stores in that same order.
When dynamic factor includes face information collection, initialization is specially:Multiple faces that safety equipment is captured are believed Breath data sorting, which stores and is sent to server, sequentially to be stored.Face information data can be that trade company itself face information can also It is the set of the credible face information let people of trade company, safety equipment is sequentially stored and is sent to the face information data captured Server is stored by same sequence.
Further, when dynamic factor includes random data combination or at least one finger print information collection or face information collection When, it can also be in the following way:Safety equipment prompts user input data information or acquisition fingerprint again every preset time Information or typing face information after above- mentioned information is received, calculate Quick Response Code;Using in this instant input mode safety equipment Portion need not preserve data information/finger print information/face information, more ensure that safety.
Step 220:Safety equipment generates two-dimension code image according to sequence number, master key and dynamic factor and shows.
Specifically, safety equipment generates Quick Response Code according to sequence number, master key and time factor includes following sub-step:
Step 2201:Safety equipment is after preset time, according to sequence number, current dynamic factor and master key, application Preset algorithm recalculates, and obtains working key;
Current dynamic factor include current time, current event number, selected from random data combination one it is random Data concentrate the finger print data selected at random, the face number selected at random from face information concentration from finger print information At least one of according to;
Come by taking the finger print data selected at random during current dynamic factor is current event number and finger print information as an example It illustrates, according to sequence number, current event number, a finger print data and master key, is counted again using key schedule It calculates, obtains working key and specifically include:
Using the sum of sequence number, current event number and finger print data as the first data, when the first data byte number not During the integral multiple of foot 8, a byte 0x80 is added after the first data, then mends 0x00 again until supplying the integral multiple to 8;It should The first data after cover and master key are calculated with key algorithm, obtain working key;
For example, Serial No. 0x22113210128A 71556394, current event number is 0x546283749C 81, is referred to Line data are 0x1545165475A4B6C5AD, are added to obtain the first data as 0x22267726BB 629980C5C2 by three, The byte number of first data is 10, the integral multiple less than 8, therefore, first mends 0x80 after the first data, and it is 11 to obtain byte number, Then the 0x00 of 5 bytes is mended, obtains 8 multiple, i.e., the first data 0x22267726BB of 16 bytes Then 629980C5C2800000000000 calculates the first data and master key, obtains working key.
Step 2202:Billing address is encrypted in safety equipment application working key, obtains encrypted payment address, will add Close billing address and working key are as two-dimensional code data;
Safety equipment first mends a byte using network address to be shown and content as confidential information to be added after confidential information to be added 0x80, integral multiple of the byte number of confidential information to be added less than 8 then obtained then mend 0x00 until supplying integral multiple to 8; Using predetermined encryption algorithm, the confidential information to be added after cover is encrypted using working key, obtains two-dimensional code data, then Two-dimensional code data is converted to two-dimension code image to show by safety equipment display screen.
Safety equipment recalculates one action key every preset time, the timeliness of working key is ensure that, in work After making key failure, server authentication cannot pass through, and Quick Response Code is prevented to be tampered, and ensure that the safety of Quick Response Code.
Referring to Fig. 3, two-dimensional code data is generated, and be shown in safety equipment in the form of two-dimension code image and show in safety equipment After on screen, after user is by mobile device scan two-dimension code image, following operation is performed:
Step 310:After mobile device scan two-dimension code image, corresponding two-dimensional code data is sent to server;
Step 320:Server parses two-dimensional code data, obtains encrypted payment address and working key;
Step 330:Server is obtained according to the safety equipment sequence number, current dynamic factor and master key calculation of storage inside To working key window;
Specifically, the dynamic factor kind of safety equipment generation working key is carried in safety equipment generation two-dimensional code data Class, server obtain dynamic factor type from two-dimensional code data, according to dynamic factor type obtain corresponding current dynamic because Son;Dynamic factor type includes at least one of time, event, random data combination, fingerprint, face information.
When dynamic factor includes time factor, according to sequence number, current timer time, time drift value and master key It recalculates, obtains working key window;
When dynamic factor includes event factor, recalculated, obtained according to sequence number, nonce counter number and master key To working key;
When dynamic factor be random data combination/finger print information collection/face information collection when, according to inside preserve by with Machine data combination/finger print information collection/face information collection calculates the working key window completed.
Illustrate so that dynamic factor type is event and fingerprint as an example, according to sequence number, current dynamic factor and master key Working key window is calculated to specifically include:
Current event number and whole fingerprint data sets are got according to dynamic factor type;According to sequence number, master key, Current event number, each finger print data are calculated, and generate multiple working keys, are formed working key window.
For example, getting current event number as 30 times, whole fingerprint data sets are thumb, forefinger, middle finger, the third finger and Then little finger of toe calculates five working keys respectively according to current event and five fingers, form working key window.
Further, if dynamic factor only for random data combination/finger print information collection/face information concentrate it is arbitrary it For the moment, server when being verified first judges whether that working key window can be got from memory block, if it is, Step 340 is performed, multiple data for otherwise being concentrated according to random data combination/finger print information collection/face information that inside preserves, Sequence number and master key calculation generate multiple working keys, are combined working key window, and preserve into memory block, then hold Row step 340.
It should be noted that when dynamic factor is event factor, it is only close comprising a job in working key window Key, when dynamic factor is time factor/random data combination/finger print information collection/face information collection, working key window includes more A working key.
Step 340:Server compare working key in two-dimensional code data and working key window whether successful match, such as Fruit is then to perform step 350, otherwise returns to error message.
This step specifically includes following situation:
(1) when dynamic factor is time factor, compare in the working key window for calculating generation with the presence or absence of any one A working key is matched with the working key in two-dimensional code data;
(2) when dynamic factor is event factor, compare the only one work in the working key window for calculating generation It is whether identical with the working key in two-dimensional code data;
(3) when dynamic factor is random data combination/finger print information collection/face information collection, compare the work in memory block Make to match with the working key in two-dimensional code data with the presence or absence of any one working key in key window.
Step 350:Server application presets decipherment algorithm, and encrypted payment address is decrypted using working key, is obtained To billing address and it is sent to mobile equipment.
In the present embodiment, further, when dynamic factor includes random data combination/finger print information collection/face information collection When, in step 2202, the serial number of current dynamic factor is further included in two-dimensional code data, then in a step 330, according to storage inside Safety equipment sequence number, current dynamic factor and master key calculation obtain working key window, specifically include:According to Quick Response Code Serial number in data obtains corresponding dynamic factor numerical value, then calculates generation work according to sequence number, master key and dynamic factor Make key, whether the working key compared in the working key and Quick Response Code of generation is identical, is to perform step 350.
Embodiment two
The work side for the safety equipment that dynamic two-dimension code is generated in embodiment one is described above in association with attached drawing 2 and attached drawing 3 Method, the system that generation dynamic two-dimension code is introduced below in conjunction with attached drawing 4, including;Safety equipment 410, mobile equipment 420 and server 430;
Safety equipment 410 includes:
Initialization module 4101, for initialization sequence number, master key and dynamic factor;
Two-dimensional code generation module 4102, for every preset time, being given birth to again according to sequence number, master key and dynamic factor Into two-dimension code image;
Display module, for two-dimensional code display picture.
Mobile equipment 420, including processing module 4201, for scanning the two-dimensional code picture, corresponding two-dimensional code data is sent out It send to server 430.
Server 430, including
Judgment module 4301, for judging whether two-dimensional code data is correct;
Sending module 4302, for when two-dimensional code data is correct, the billing address in two-dimensional code data to be sent to shifting Dynamic equipment 420.
Above-mentioned module is specifically described below:
Initialization module 4101 is specifically used for:For sequence number of the safety equipment write-in with global unique identification, according to sequence Row number dispersion generation master key, initialization dynamic factor are synchronous with server dynamic factor;
Specifically, in initialization module 4101, initialize dynamic factor in initialization module and server dynamic factor is same Step, is specifically used for:
When dynamic factor is time factor, initialization safety equipment clock time and server clock time synchronization;When When dynamic factor is event factor, the event times initialized in safety equipment are identical with the event times in server;When dynamic When the state factor is combined for random data, the random data received in safety equipment combination is sent to server and is stored; When dynamic factor is finger print information collection, multiple fingerprint information datas sequence of typing is stored and is sent to service by safety equipment Device sequentially stores;When dynamic factor is face information collection, safety equipment deposits the multiple face information data sortings captured It stores up and is sent to server and sequentially store.Two-dimensional code generation module 4102, is specifically used for:
When dynamic factor is time factor/event factor, according to sequence number, current time/event times and master key It recalculates, obtains working key;When dynamic factor is combined for random data, according to sequence number, master key and from random number It is recalculated according to the random data selected in combination, obtains working key;When dynamic factor is finger print information collection, according to It sequence number, master key and is concentrated from finger print information and selects a finger print data at random and recalculate, obtain working key;When dynamic When the factor is face information collection, a human face data is selected again at random according to sequence number, master key and from face information concentration It calculates, obtains working key;
After working key is calculated, billing address is encrypted using working key, obtains encrypted payment address, it will Two-dimensional code data is converted to two-dimension code image by encrypted payment address and working key as two-dimensional code data.
Judgment module 4301 is specifically used for:
It is close according to sequence number, current timer time, time drift value and the master when dynamic factor is time factor Key recalculates, and obtains working key window, compare working key in two-dimensional code data whether in working key window Any one working key matches;
When dynamic factor is event factor, is recalculated, obtained according to sequence number, nonce counter number and master key It is whether identical with the working key in two-dimensional code data to compare working key for working key;
When dynamic factor be random data combination/finger print information collection/face information collection when, according to inside preserve by with Machine data combination/finger print information collection/face information collection calculates the working key window completed, and compares the work in two-dimensional code data Whether key matches with any one working key in working key window.
Sending module 4302 is specifically used for, using default decipherment algorithm, using working key to adding in two-dimensional code data Close billing address is decrypted, and obtains billing address and is sent to mobile equipment.
Although the preferred embodiment of the application has been described, those skilled in the art once know basic creation Property concept, then additional changes and modifications may be made to these embodiments.So appended claims be intended to be construed to include it is excellent It selects embodiment and falls into all change and modification of the application range.Obviously, those skilled in the art can be to the application Various modification and variations are carried out without departing from spirit and scope.If in this way, these modifications and variations of the application Belong within the scope of the application claim and its equivalent technologies, then the application is also intended to exist comprising these modification and variations It is interior.

Claims (10)

  1. A kind of 1. method for generating dynamic two-dimension code, which is characterized in that including:
    Initialization sequence number, master key and dynamic factor;
    Every preset time, two-dimension code image is regenerated simultaneously according to the sequence number, the master key and the dynamic factor Display;
    The dynamic factor includes what time factor, event factor, random data combination, finger print information collection or face information were concentrated At least one.
  2. 2. the method as described in claim 1, which is characterized in that the initialization sequence number, master key and dynamic factor, specifically Step is:
    For sequence number of the safety equipment write-in with global unique identification;
    Master key is generated according to the sequence number application key decentralized algorithm;
    Initialize dynamic factor and server dynamic factor so that dynamic factor is synchronous with server dynamic factor.
  3. 3. method as claimed in claim 2, which is characterized in that the initialization dynamic factor and server dynamic factor make Dynamic factor and server dynamic factor sync server are obtained, specifically includes at least one of following initial method:
    When the dynamic factor includes time factor, the safety equipment clock time is set as with the server clock time It is synchronous;
    When the dynamic factor includes event factor, by the event time in the event times and server in the safety equipment Number is set as identical;
    When the dynamic factor, which includes random data, to be combined, the random data combination sequence that the safety equipment receives is deposited It stores up and is sent to server and sequentially store;
    When the dynamic factor includes finger print information collection, multiple fingerprint information datas sequence of the safety equipment typing is deposited It stores up and is sent to server and sequentially store;
    When the dynamic factor includes face information collection, multiple face information data sortings that the safety equipment is captured It stores and is sent to server and sequentially store.
  4. 4. method as claimed in claim 3, which is characterized in that described according to the sequence number, the master key and described dynamic The state factor regenerates two-dimension code image, specifically includes following sub-step:
    It is recalculated according to the sequence number, the master key and current dynamic factor application key schedule, generates work Key;The current dynamic factor includes current time, current event number, select one from random data combination Random data concentrates the finger print data selected at random from the finger print information, is selected at random from face information concentration An at least one of human face data;
    After working key is calculated, billing address is encrypted using the working key, obtains encrypted payment address, it will The two-dimensional code data is converted to Quick Response Code figure by the encrypted payment address and the working key as two-dimensional code data Piece.
  5. 5. a kind of safety equipment for generating dynamic two-dimension code, which is characterized in that including:
    Initialization module, for initialization sequence number, master key and dynamic factor;
    Two-dimensional code generation module, for every preset time, according to the sequence number, the master key and the dynamic factor weight Newly-generated two-dimension code image, the dynamic factor include time factor, event factor, random data combination, finger print information collection or At least one of face information collection;
    Display module, for showing the two-dimension code image.
  6. 6. safety equipment as claimed in claim 5, which is characterized in that the initialization module is specifically used for:For safety equipment Sequence number of the write-in with global unique identification generates master key, and initial according to the sequence number application key decentralized algorithm Change dynamic factor and server dynamic factor so that dynamic factor is synchronous with server dynamic factor.
  7. 7. safety equipment as claimed in claim 6, which is characterized in that dynamic factor and clothes are initialized in the initialization module Business device dynamic factor so that the dynamic factor server synchronous with server dynamic factor is specifically used for:
    When the dynamic factor includes time factor, the safety equipment clock time is set as with the server clock time It is synchronous;
    When the dynamic factor includes event factor, by the event time in the event times and server in the safety equipment Number is set as identical;
    When the dynamic factor, which includes random data, to be combined, the random data combination sequence that the safety equipment receives is deposited It stores up and is sent to server and sequentially store;
    When the dynamic factor includes finger print information collection, multiple fingerprint information datas sequence of the safety equipment typing is deposited It stores up and is sent to server and sequentially store;
    When the dynamic factor includes face information collection, multiple face information data sortings that the safety equipment is captured It stores and is sent to server and sequentially store.
  8. 8. safety equipment as claimed in claim 7, which is characterized in that the two-dimensional code generation module is specifically used for:
    It is recalculated according to the sequence number, the master key and current dynamic factor application key schedule, generates work Key;The current dynamic factor includes current time, current event number, select one from random data combination Random data concentrates the finger print data selected at random from the finger print information, is selected at random from face information concentration An at least one of human face data;
    After working key is calculated, billing address is encrypted using the working key, obtains encrypted payment address, it will The two-dimensional code data is converted to Quick Response Code figure by the encrypted payment address and the working key as two-dimensional code data Piece.
  9. 9. a kind of system for generating dynamic two-dimension code, which is characterized in that including:Safety as described in one of claim 5-8 is set Standby and mobile equipment and server;
    The mobile equipment including processing module, for scanning the two-dimensional code picture, corresponding two-dimensional code data is sent to described Server;
    The server, including judgment module, for judging whether the two-dimensional code data is correct;Sending module, for working as State two-dimensional code data it is correct when, the billing address in the two-dimensional code data is sent to the mobile equipment.
  10. 10. system as claimed in claim 9, which is characterized in that the judgment module is specifically used for,
    When the dynamic factor includes time factor, according to the sequence number, current timer time, time drift value and institute State master key to recalculate, obtain working key window, the working key in the two-dimensional code data whether with the work Make any one working key matching in key window;
    When the dynamic factor includes event factor, according to the sequence number, nonce counter number and the master key weight It is new to calculate, working key is obtained, whether the working key is identical with the working key in the two-dimensional code data;
    When the dynamic factor includes random data combination/finger print information collection/face information collection, passed through according to what inside preserved The random data combination/finger print information collection/face information collection calculates the working key window completed, the two dimension yardage Whether the working key in matches with any one working key in the working key window.
CN201711415447.5A 2017-12-19 2017-12-19 Safety equipment, method and system for generating dynamic two-dimensional code Active CN108154365B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711415447.5A CN108154365B (en) 2017-12-19 2017-12-19 Safety equipment, method and system for generating dynamic two-dimensional code

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711415447.5A CN108154365B (en) 2017-12-19 2017-12-19 Safety equipment, method and system for generating dynamic two-dimensional code

Publications (2)

Publication Number Publication Date
CN108154365A true CN108154365A (en) 2018-06-12
CN108154365B CN108154365B (en) 2020-02-14

Family

ID=62464414

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711415447.5A Active CN108154365B (en) 2017-12-19 2017-12-19 Safety equipment, method and system for generating dynamic two-dimensional code

Country Status (1)

Country Link
CN (1) CN108154365B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108830364A (en) * 2018-05-10 2018-11-16 广州市贺氏办公设备有限公司 A kind of Dynamic Two-dimensional code generating method and system
CN109922068A (en) * 2019-03-13 2019-06-21 特斯联(北京)科技有限公司 Security protection patrol robot, security system and its secret communication method
CN109936448A (en) * 2019-02-26 2019-06-25 北京钰安信息科技有限公司 A kind of data transmission method and device
CN110322237A (en) * 2019-05-23 2019-10-11 平安银行股份有限公司 A kind of method, apparatus and storage medium generating transaction code
CN111104685A (en) * 2019-11-26 2020-05-05 广州羊城通有限公司 Dynamic updating method and device for two-dimensional code
CN111104629A (en) * 2019-11-26 2020-05-05 广州羊城通有限公司 Verification method and device of dynamic two-dimensional code
CN111429622A (en) * 2020-05-06 2020-07-17 辽宁百思特达半导体科技有限公司 Wisdom lamp pole management system based on developments two-dimensional code
CN112418373A (en) * 2020-09-29 2021-02-26 武汉格事化信息技术有限公司 Internet of things dynamic two-dimensional code generation method, storage medium and system
CN113159771A (en) * 2021-04-27 2021-07-23 中国工商银行股份有限公司 Safety payment device and method, computer equipment and readable storage medium
CN115204340A (en) * 2022-09-14 2022-10-18 北京紫光青藤微系统有限公司 Method and device for generating two-dimensional code, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103501228A (en) * 2013-08-01 2014-01-08 沈阳华矿新能源装备科技有限公司 Dynamic two-dimension code token and authentication method of dynamic two-dimension code instruction
CN103905196A (en) * 2012-12-28 2014-07-02 北京握奇数据系统有限公司 PIN switch encryption method
CN104394001A (en) * 2014-12-12 2015-03-04 恒宝股份有限公司 Dynamic password authentication method and system based on two-dimensional code
US20170243040A1 (en) * 2013-08-07 2017-08-24 International Business Machines Corporation Creation and management of dynamic quick response (qr) codes

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103905196A (en) * 2012-12-28 2014-07-02 北京握奇数据系统有限公司 PIN switch encryption method
CN103501228A (en) * 2013-08-01 2014-01-08 沈阳华矿新能源装备科技有限公司 Dynamic two-dimension code token and authentication method of dynamic two-dimension code instruction
US20170243040A1 (en) * 2013-08-07 2017-08-24 International Business Machines Corporation Creation and management of dynamic quick response (qr) codes
CN104394001A (en) * 2014-12-12 2015-03-04 恒宝股份有限公司 Dynamic password authentication method and system based on two-dimensional code

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108830364A (en) * 2018-05-10 2018-11-16 广州市贺氏办公设备有限公司 A kind of Dynamic Two-dimensional code generating method and system
CN108830364B (en) * 2018-05-10 2021-02-26 广州市贺氏办公设备有限公司 Dynamic two-dimensional code generation method and system
CN109936448A (en) * 2019-02-26 2019-06-25 北京钰安信息科技有限公司 A kind of data transmission method and device
CN109922068A (en) * 2019-03-13 2019-06-21 特斯联(北京)科技有限公司 Security protection patrol robot, security system and its secret communication method
CN109922068B (en) * 2019-03-13 2020-01-31 特斯联(北京)科技有限公司 Security patrol robot, security system and security communication method thereof
CN110322237A (en) * 2019-05-23 2019-10-11 平安银行股份有限公司 A kind of method, apparatus and storage medium generating transaction code
CN111104629A (en) * 2019-11-26 2020-05-05 广州羊城通有限公司 Verification method and device of dynamic two-dimensional code
CN111104685A (en) * 2019-11-26 2020-05-05 广州羊城通有限公司 Dynamic updating method and device for two-dimensional code
CN111104629B (en) * 2019-11-26 2023-04-11 广州羊城通有限公司 Verification method and device of dynamic two-dimensional code
CN111429622A (en) * 2020-05-06 2020-07-17 辽宁百思特达半导体科技有限公司 Wisdom lamp pole management system based on developments two-dimensional code
CN112418373A (en) * 2020-09-29 2021-02-26 武汉格事化信息技术有限公司 Internet of things dynamic two-dimensional code generation method, storage medium and system
CN113159771A (en) * 2021-04-27 2021-07-23 中国工商银行股份有限公司 Safety payment device and method, computer equipment and readable storage medium
CN115204340A (en) * 2022-09-14 2022-10-18 北京紫光青藤微系统有限公司 Method and device for generating two-dimensional code, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN108154365B (en) 2020-02-14

Similar Documents

Publication Publication Date Title
CN108154365A (en) A kind of safety equipment for generating dynamic two-dimension code, method and system
US9864983B2 (en) Payment method, payment server performing the same and payment system performing the same
CN101272237B (en) Method and system for automatically generating and filling login information
CN102638447B (en) Method and device for system login based on autonomously generated password of user
CN106850209A (en) A kind of identity identifying method and device
CN109478221B (en) Secure transmission of sensitive data
CN104464117B (en) Based on dynamic two-dimension code ATM (automatic teller machine) withdrawal method and system
CN107609873A (en) A kind of barcode scanning safe checking method and device
CN106452777A (en) Electronic device and method for generating random and unique code
CN101897165A (en) Method of authentication of users in data processing systems
CN103856640A (en) Method and system for processing user resource information
CN108229956A (en) Network bank business method, apparatus, system and mobile terminal
CN103929411B (en) Information displaying method, terminal, safety server and system
CN101815091A (en) Cipher providing equipment, cipher authentication system and cipher authentication method
CN105848153A (en) Embedded type SIM card registration method, embedded type SIM card authentication method and corresponding systems
CN107317807A (en) A kind of apparatus bound method, apparatus and system
CN106060073A (en) Channel key negotiation method
CN106780782A (en) The ticket checking scheme recommended based on server carries out method, system and the equipment of ticket checking
Gupta et al. A Review on Cryptography based Data Security Techniques for the Cloud Computing
US20230164142A1 (en) Authentication server, authentication system, control method of authentication server, and storage medium
CN104954127A (en) Authorization method, biological characteristic information sending method and apparatus
CN107682156A (en) A kind of encryption communication method and device based on SM9 algorithms
CN113302876A (en) Offline non-interception interaction with cryptocurrency network using network-disabled devices
CN108122108A (en) Mobile device authentication system and mobile equipment authentication method
CN110070365A (en) Commodity based on block chain deposit card method and apparatus, electronic equipment

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
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20180612

Assignee: BEIJING DONGFANG YINGKA DIGITAL INFORMATION TECHNOLOGY Co.,Ltd.

Assignor: HENGBAO Corp.

Contract record no.: X2020990000491

Denomination of invention: A security device, method and system for generating dynamic two-dimensional code

Granted publication date: 20200214

License type: Common License

Record date: 20200914

EE01 Entry into force of recordation of patent licensing contract