[go: up one dir, main page]

CN108566279A - Synchronous dynamic two dimension code generation method, equipment and system, storage medium - Google Patents

Synchronous dynamic two dimension code generation method, equipment and system, storage medium Download PDF

Info

Publication number
CN108566279A
CN108566279A CN201810251671.3A CN201810251671A CN108566279A CN 108566279 A CN108566279 A CN 108566279A CN 201810251671 A CN201810251671 A CN 201810251671A CN 108566279 A CN108566279 A CN 108566279A
Authority
CN
China
Prior art keywords
dynamic
dimension code
time parameter
password
server
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
CN201810251671.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.)
Shenzhen Dare To Be Special Equipment Internet Of Things Technology Co Ltd
Original Assignee
Shenzhen Dare To Be Special Equipment Internet Of Things Technology 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 Shenzhen Dare To Be Special Equipment Internet Of Things Technology Co Ltd filed Critical Shenzhen Dare To Be Special Equipment Internet Of Things Technology Co Ltd
Publication of CN108566279A publication Critical patent/CN108566279A/en
Pending legal-status Critical Current

Links

Classifications

    • 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/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3226Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using a predetermined code, e.g. password, passphrase or PIN
    • H04L9/3228One-time or temporary data, i.e. information which is sent for every authentication or authorization, e.g. one-time-password, one-time-token or one-time-key
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/06009Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking
    • G06K19/06037Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking multi-dimensional coding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/083Network architectures or network communication protocols for network security for authentication of entities using passwords
    • H04L63/0838Network architectures or network communication protocols for network security for authentication of entities using passwords using one-time-passwords
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Storage Device Security (AREA)

Abstract

The invention discloses a kind of synchronous dynamic two dimension code generation method, equipment and system, storage mediums.The synchronous dynamic two dimension code generation method includes the following steps:Device end obtains the device identification of current device and the time parameter that device end is current;According to preset password algorithm, dynamic two-dimension code is calculated with the device identification and the time parameter;Dynamic two-dimension code image is exported by output equipment.The present invention increases the safe to use and convenience of dynamic password by exporting dynamic password in the form of image in 2 D code, and by the form of mobile scanning terminal Quick Response Code instead of the input process of dynamic code.

Description

Synchronous dynamic two dimension code generation method, equipment and system, storage medium
Technical field
The present invention relates to a kind of information security field more particularly to synchronous dynamic two dimension code generation method, equipment and system, Storage medium.
Background technology
One is the verification techniques that can be changed according to time or time change for dynamic password.Due to dynamic password energy The authentication function of enough effective offer safety, therefore obtained extensive utilization in the development with internet.But dynamic mouth The device end of order is usually E-token dynamic password card or U-shield etc., and dynamic password in device end generally by shapes such as numbers Formula is shown or is exported, user can use the input units such as keyboard by the dynamic password got be input in system into Row verification.But the dynamic password of the forms such as number is in safety and user's ease of use, it is also necessary to it further increases, from And user is made to obtain better usage experience and safety guarantee.
Invention content
The main purpose of the present invention is to provide a kind of synchronous dynamic two dimension code generation method, equipment and system, storages to be situated between Matter, it is intended to solve the problems, such as security risk caused by when dynamic password exports in digital form with it is inconvenient for use.
To achieve the above object, the present invention provides a kind of synchronous dynamic two dimension code generation method, the synchronous dynamic two dimension Code generation method includes the following steps:
Device end obtains the device identification of current device and the time parameter that device end is current;
According to preset password algorithm, dynamic two-dimension code is calculated with the device identification and the time parameter;
Dynamic two-dimension code image is exported by output equipment.
Optionally, the device end obtains device identification and the current time parameter of device end of current device Step includes:
The current time of device end is obtained, the immediate time parameter section of current time with the device end is obtained Point, and the time parameter node is set as to the time parameter of dynamic password.
Optionally, described according to preset password algorithm, dynamic is calculated with the device identification and the time parameter The step of Quick Response Code includes:
According to according to preset password algorithm, the dynamic of plaintext version is calculated with the device identification and the time parameter State password, and image in 2 D code is converted by default transform mode.
In addition, to achieve the above object, the present invention also provides a kind of synchronous dynamic two dimension code generation method, it is described synchronize it is dynamic State two dimension code generation method further includes:
When server receives the dynamic two-dimension code of requests verification, the current time of server is obtained, is worked as according to server The preceding time, and the current time parameter of server is obtained according to current time;
According to the device identification to prestore and preset password algorithm, and the time parameter of verification password, verification password is calculated;
Dynamic two-dimension code is matched with verification password, corresponding control instruction is fed back to by hardware according to matching result Equipment.
Optionally, when the server receives the dynamic two-dimension code of requests verification, the current time of server, root are obtained According to server current time, and the step of obtaining server current time parameter according to current time includes:
The current time of server is obtained, the immediate time parameter node of current time with the server is obtained, And the time parameter node is set as to the time parameter of verification password.
Optionally, described the step of being matched dynamic two-dimension code with verification password, includes:
When the content of dynamic two-dimension code is identical as the verification content of password, then judge matching result for successful match;
When the content of dynamic two-dimension code and the content of verification password differ, then judge that matching result is that it fails to match.
In addition, to achieve the above object, it is described the present invention also provides the device end that a kind of synchronous dynamic Quick Response Code generates Synchronous dynamic Quick Response Code generates device end:It memory, processor and is stored on the memory and can be at the place The synchronous dynamic Quick Response Code generating routine run on reason device, the synchronous dynamic Quick Response Code generating routine are executed by the processor The step of Shi Shixian synchronous dynamic two dimension code generation methods as described above.
In addition, to achieve the above object, it is described same the present invention also provides the server that a kind of synchronous dynamic Quick Response Code generates Step dynamic two-dimension code generates server:It memory, processor and is stored on the memory and can be in the processor The synchronous dynamic Quick Response Code generating routine of upper operation, it is real when the synchronous dynamic Quick Response Code generating routine is executed by the processor Now the step of synchronous dynamic two dimension code generation method as described above.
The present invention in the form of Quick Response Code by synchronous dynamic password by carrying out display output, by dynamic password by illegal point Son is stolen the hidden danger utilized and is effectively reduced, therefore increases the security performance of dynamic password.Quick Response Code is not necessarily in input simultaneously User is manually entered, and can be directly acquired by interface equipment, such as scans the two-dimensional code the dynamic mouth that can be obtained in Quick Response Code It enables, to which simplicity user using the difficulty of dynamic password and takes, avoid user led to dynamic password slowly due to inputting Because time-out leads to the case where it fails to match, the usage experience of user is increased.
Description of the drawings
Fig. 1 be the hardware running environment that the embodiment of the present invention is related to terminal apparatus structure schematic diagram;
Fig. 2 is flow diagram of the synchronous dynamic two dimension code generation method of the present invention for an embodiment of device end;
Fig. 3 is flow diagram of the synchronous dynamic two dimension code generation method of the present invention for another embodiment of server;
Fig. 4 is synchronous dynamic Quick Response Code generation system structural schematic diagram of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific implementation mode
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
As shown in Figure 1, the terminal structure schematic diagram for the hardware running environment that Fig. 1, which is the embodiment of the present invention, to be related to.
Terminal of the embodiment of the present invention can be intelligent terminal, can also be smart mobile phone, tablet computer, pocket computer etc. Packaged type terminal device with display function.
As shown in Figure 1, the terminal may include:Processor 1001, such as CPU, network interface 1004, user interface 1003, memory 1005, communication bus 1002.Wherein, communication bus 1002 is for realizing the connection communication between these components. User interface 1003 may include display screen (Display), input unit such as keyboard (Keyboard), optional user interface 1003 can also include standard wireline interface and wireless interface.Network interface 1004 may include optionally that the wired of standard connects Mouth, wireless interface (such as WI-FI interfaces).Memory 1005 can be high-speed RAM memory, can also be stable memory (non-volatile memory), such as magnetic disk storage.Memory 1005 optionally can also be independently of aforementioned processor 1001 storage device.
Optionally, intelligent terminal can also include camera, RF (Radio Frequency, radio frequency) circuit, sensor, Voicefrequency circuit, WiFi module etc..Wherein, sensor such as optical sensor, motion sensor and other sensors.Intelligence is eventually End can also configure the other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, and details are not described herein.
It will be understood by those skilled in the art that the restriction of the not structure paired terminal of terminal structure shown in Fig. 1, can wrap It includes than illustrating more or fewer components, either combines certain components or different components arrangement.
As shown in Figure 1, as may include that operating system, network are logical in a kind of memory 1005 of computer storage media Believe module, Subscriber Interface Module SIM and synchronous dynamic Quick Response Code generating routine.
In terminal shown in Fig. 1, network interface 1004 is mainly used for connecting background server, is carried out with background server Data communicate;User interface 1003 is mainly used for connecting device end (user terminal), with device end into row data communication;And locate Reason device 1001 can be used for calling the synchronous dynamic Quick Response Code generating routine stored in memory 1005, and execute following operation:
Device end obtains the device identification of current device and the time parameter that device end is current;
According to preset password algorithm, dynamic two-dimension code is calculated with the device identification and the time parameter;
Dynamic two-dimension code image is exported by output equipment.
The device end obtains the step of device identification and device end current time parameter of current device and wraps It includes:
The current time of device end is obtained, the immediate time parameter section of current time with the device end is obtained Point, and the time parameter node is set as to the time parameter of dynamic password.
It is described according to preset password algorithm, dynamic two-dimension code is calculated with the device identification and the time parameter Step includes:
According to according to preset password algorithm, the dynamic of plaintext version is calculated with the device identification and the time parameter State password, and image in 2 D code is converted by default transform mode.
Further, processor 1001 can call the synchronous dynamic Quick Response Code generating routine stored in memory 1005, Also execute following operation:
When server receives the dynamic two-dimension code of requests verification, the current time of server is obtained, is worked as according to server The preceding time, and the current time parameter of server is obtained according to current time;
According to the device identification to prestore and preset password algorithm, and the time parameter of verification password, verification password is calculated;
Dynamic two-dimension code is matched with verification password, corresponding control instruction is fed back to by hardware according to matching result Equipment.
When the server receives the dynamic two-dimension code of requests verification, the current time of server is obtained, according to service Device current time, and the step of obtaining server current time parameter according to current time includes:
The current time of server is obtained, the immediate time parameter node of current time with the server is obtained, And the time parameter node is set as to the time parameter of verification password.
It is described to include with the step of password is matched is verified by dynamic two-dimension code:
When the content of dynamic two-dimension code is identical as the verification content of password, then judge matching result for successful match;
When the content of dynamic two-dimension code and the content of verification password differ, then judge that matching result is that it fails to match.
With reference to Fig. 2, first embodiment of the invention provides a kind of synchronous dynamic two dimension code generation method, the synchronous dynamic two Tieing up code generation method includes:
Step S10, device end obtain the device identification of current device and the time parameter that device end is current;
Specifically, device end periodically can voluntarily generate dynamic password, the generation device end first of dynamic password Its device identification, such as device id etc. can be obtained, and the device identification got is sent to server.
User can send out verification instruction to start dynamic password, device end when using dynamic password to device end When receiving verification instruction, when obtaining the device identification of device end, while calculating current according to device end current time Between time parameter.
Step S20 calculates dynamic password with the device identification and the time parameter, turns according to preset password algorithm Turn to the form of dynamic two-dimension code image;
Specifically, after getting the device identification of device end and the time parameter of current time, by device end Corresponding dynamic password can be calculated in preset password algorithm, and the dynamic password being calculated is converted using Quick Response Code Program is converted into dynamic two-dimension code image.
Step S30 exports dynamic two-dimension code image by output equipment;
Specifically, after terminal device generates dynamic two-dimension code image, by display devices such as display screens by dynamic two-dimension code Display output is carried out, server can be input to by modes such as scannings by Quick Response Code by being user.
In some special areas or place, the use of the special equipments such as elevator or the more stringent permission of maintenance needs Control, it is therefore desirable to which verification technique safe to use carries out user the verification of permission.In existing verification technique, dynamic mouth Order is one of the most widely used safety verification mode, and dynamic password passes through device end (such as U-shield, E-token dynamic password card etc. Terminal device, can also be the device end for being mounted with specified dynamic password control program) configuration is synchronized with server, so Preset password meter is passed through according to device identification (i.e. a unique mark) and time parameter (parameter that can be changed at random) afterwards It calculates algorithm and calculates generation dynamic password (dynamic password algorithm includes the mainstreams such as RSA SecurID, OTP algorithm).Therefore dynamic mouth What is enabled is variable, and the password generated every time is random, so can effectively ensure that safe to use.But dynamic mouth mesh It is preceding mainly to use the plaintext versions such as numerical ciphers, and need user by way of being manually entered, dynamic password is sent out It send to server.When being manually entered, user may lead to dynamic mouth because of the problems such as input error or overtime input time Enable authentication failed.
In the prior art, when device end generates dynamic password, the mouth of the plaintext versions such as number or word can generally be generated It enables, and number or word are also a kind of avatar for the information for facilitating user's progress password entry, but regardless of whether just It is inputted in user, may all there is situations such as input error.The present invention then by showing password in the form of Quick Response Code etc., uses Family is scanned verification by the Quick Response Code for generating device end in corresponding port, you can quickly finishes dynamic password Input, and Quick Response Code significantly more efficient can ensure the safety for moving dynamic two-dimension code compared to forms such as number or words Performance reduces the risk that dynamic two-dimension code is stolen, palms off or cracks.
Device end is by obtaining current time to determine time parameter, time parameter be one obtained according to current time The parameter of a timing node, time parameter is not that can all change at any time, but changeless within the period, because from The verification for generating dynamic two-dimension code to server completion dynamic two-dimension code needs to expend the regular hour, so server and equipment Current time used in terminal may be different.And in order to eliminate since the factors such as network transmission or user's operation cause Time error, therefore time parameter can use the timing node that sets, and be had already passed through according to current time selection Immediate timing node, and after preset period of time, automatically selecting next timing node.Such as setting when Between the period be 1 minute, i.e., often cross one timing node of update in 1 minute, while being also to automatically generate a new dynamic in every 1 minute Password, and timing node is set as 0 second time, i.e., per minute 0 second whole time was preset timing node, and it is current when Between for 0 point 13 seconds 0 minute, then the selection of time parameter is the nearest timing node having been subjected to, exactly 0 point 0 second 0 minute, will at this time Intermediate node calculates dynamic two-dimension code as time parameter and is verified to dynamic two-dimension code.And carrying out dynamic two-dimension code When verification, if there is fortuitous event, user fails to verify in time, server detect the time be more than 0 point 0 second 1 minute When, time parameter will be switched to 0 point of 0 second 1 minute timing node, and the time interval of switching time node can be according to reality Situation is configured.Simultaneously in order to avoid user is when using dynamic password, time of the current time close to switching time parameter Node, for example, user obtain dynamic two-dimension code time be 0 point 59 seconds 0 minute, due to the time gap switching time parameter when Intermediate node is very close, may the case where time of origin Parameters variation leads to authentication failed in authentication procedures.Therefore The remaining time of time parameter distance switching can be exported by information output apparatus such as displays so that user can The change situation of accurate perception dynamic password time parameter.
After calculating time parameter, device end then needs to further calculate dynamic two-dimension code.By with Quick Response Code Form, which is shown, can be pried through by people to avoid dynamic code and be revealed, and increase the security performance of dynamic two-dimension code, and staff The input of dynamic two-dimension code can be completed by mobile scanning terminal Quick Response Code, whole process is not necessarily to carry out operation bidirectional, and Without the step of inputting in plain text, therefore safety and convenience all effectively improve.
The present invention, which can generate dynamic two-dimension code, to be arranged in the equipment such as special lift, and professional when in use, can Will be verified by mobile terminals such as mobile phones by scanning the dynamic two-dimension code generated, scanned by mobile phone, it will be in Quick Response Code Dynamic password be sent to server, server can be matched, and server can feed back to control instruction after successful match Device end, to realize the control to device end.
Further, step S20 device ends obtain the device identification of current device and the time that device end is current The step of parameter includes:
Step S21 obtains the current time of device end, obtains the immediate time parameter that the current time is passed through Node, and the time parameter node is set as to the time parameter of dynamic password.
Specifically, time parameter be calculate dynamic password an important parameter, when calculating time parameter, with it is current when Between on the basis of, obtain timing node within the preset time cycle, and be set to time parameter.
When obtaining time parameter, it is necessary first to current time is obtained, then by current time in preset period of time Specific time node is set as time parameter.Such as timing node is 0 second moment per minute, preset time interval is 60 seconds, 0 second moment of the current time in 60 seconds is 0 ° 0 ' 0 " when, then " it is time parameter with 0 ° 0 ' 0.The mesh of time parameter is arranged such Be that can consume the regular hour since user is when operating dynamic password unlock, and to be that device end calculates dynamic for time parameter State Quick Response Code calculates a critical data of verification password with server, and the time parameter of device end and the time of server join Number is different, can lead to that final it fails to match.If directly using current time as time parameter, user must move generating State Quick Response Code is inputted in a flash, and server receives dynamic two-dimension code while is also required to calculate verification password, And very high requirement is suffered from for the transmission speed of the service speed of user and network in this way, so leading to serious forgiveness very Low, the unlock success rate of user can be also greatly affected.So giving user by way of increasing a time interval Operation and network transmission certain operating time and response time, and the length of time interval can be set according to actual conditions It sets.The acquisition modes of time parameter in the present embodiment so that user can obtain better usage experience, simultaneously for system Security performance will not significantly affect.
Further, step S20 is calculated according to preset password algorithm with the device identification and the time parameter The step of dynamic two-dimension code includes:
Step 22, it according to according to preset password algorithm, is calculated in plain text with the device identification and the time parameter The dynamic password of form, and image in 2 D code is converted by default transform mode.
Specifically, according to preset password algorithm, the dynamic mouth being calculated with the device identification and the time parameter Order is one group of data, it is however generally that is with plaintext versions such as number or characters.But before exporting dynamic password, by pre- If Quick Response Code generate program and will convert dynamic password to the form of image in 2 D code, then pass through display screen etc. and show equipment Export the dynamic password of image in 2 D code form.
Conventional dynamic password is when generating, the cryptogram form of usually digital or character etc..And final output Dynamic password inputs in order to facilitate user, is typically also the digital equal plaintext version convenient for directly inputting, but so only Need the dynamic password content for remembeing to show in device end, so that it may easily to be stolen to dynamic password.The present invention in order to Increase the security performance of dynamic password, the case where preventing dynamic password from easily being stolen, therefore dynamic mouth is shown in device end It is to be shown with indirect modes such as Quick Response Codes, and user passes through the Quick Response Code in corresponding interface scans device end when enabling Dynamic password, so that it may entering and sending dynamic password to server, keep unauthorized person directly aobvious by device end Show that dynamic password gets the actual content of dynamic password, and can not be replicated, is increasing dynamic password safe performance While, the step of user is manually entered dynamic password is also saved, the usage experience of user is increased.
Further, with reference to Fig. 3, second embodiment of the invention also provides a kind of synchronous dynamic two dimension code generation method, institute Stating synchronous dynamic two dimension code generation method includes:
Step S40 when server receives the dynamic two-dimension code of requests verification, obtains the current time of server, according to Server current time, and the current time parameter of server is obtained according to current time;
Specifically, server receives dynamic two-dimension code input by user by network transmission receiving device by port, and And when receiving dynamic two-dimension code, the current time parameter of calculation server, the method for calculating time parameter with device end It is identical, server be equally using current time within the time cycle corresponding timing node as time parameter.
Step S50 is calculated according to the device identification to prestore and preset password algorithm, and the time parameter of verification password Verify password;
Specifically, time parameter is got with after the device identification of the device end to prestore, is passing through preset algorithm meter Verification password is calculated, preset algorithm is identical for calculating the algorithm of dynamic password with device end.
Step S60 matches dynamic two-dimension code with verification password, and server server is by dynamic password and verifies mouth The matching result of order is sent to device end.And corresponding control instruction is sent according to matching result.
Specifically, whether detection dynamic two-dimension code and verification password are identical, and the two is identical, is determined as successful match, if two Person differs, then it fails to match for judgement.And corresponding control instruction is sent to by corresponding hardware device according to matching result And carry out corresponding control.
In the present embodiment, server is logical firstly the need of the device identification for receiving device end transmission and dynamic mouth It enables.When dynamic two-dimension code input by user, the image in 2 D code for the interface scans device end being connect with server can be passed through Information, server obtain dynamic password therein by image in 2 D code information.Server is receiving device end transmission While dynamic password, the current time parameter of calculation server, the calculation of time parameter and the time of device end join Number calculate it is identical, and due to calculate time parameter when there are the buffer time of a time cycle, so as to avoid making service Device calculates current time when time parameter, and the time parameter caused by the error of current time when being calculated with device end is not Together.Therefore the different situation of time parameter caused by system factor can be reduced.
After the time parameter of server is calculated, by with the device end equipment standard that prestores, calculated with preset password Method calculates verification password.Time parameter is then calculated when server receives dynamic two-dimension code, in network environment and is moved In the case of state 2 D code system is all normal, dynamic two-dimension code transmission time calculates verification password with server and is verified Time is all very of short duration, therefore is contemplated that and disregards.And data calculating and network are had also contemplated in design time parameter The Time Delay Impact that transmission belt is come, therefore when calculating time parameter, time interval is devised, time parameter can calculated When, effectively reduce (including the operating time of user, network transmission and system meter because of inevitable time loss when calculating Evaluation time etc.), cause parameter result of calculation error occur.
Server be calculated verification password after, matched with dynamic two-dimension code, if the two is identical, then matching at Work(, server is sent in corresponding control instruction to relevant hardware devices after successful match, to complete the control to hardware device System, such as start machine, operation operation requests etc..And if the two is different, server can then refuse device end transmission behaviour It asks, to ensure the safe to use of equipment.
Further, when step S40 servers receive the dynamic two-dimension code of requests verification, obtain server it is current when Between, according to server current time, and the current time parameter of server is obtained according to current time and includes:
Step S41 obtains the current time of server, obtains the immediate time parameter section that the current time is passed through Point, and by the time parameter node be set as verification password time parameter.
Specifically, time parameter is equally an important parameter for calculating verification password, and time ginseng is calculated with device end Number when it is identical, server is when calculating time parameter, also on the basis of current time, acquisition within the preset time cycle when Intermediate node, and it is set to time parameter.
When obtaining time parameter, it is necessary first to obtain the current time that takes of server, current time herein is that server connects Current time when dynamic two-dimension code is received, then only with mode calculation server when calculating time parameter with device end Time parameter, i.e. the specific time node by the current time of server in preset period of time are set as time parameter.With set Standby terminal calculates time parameter using identical calculation can ensure that calculated time parameter is all in same period It is identical, so with this condition, can avoid the problem that it fails to match caused by time parameter difference.
Further, dynamic two-dimension code is included by step S60 with the step of password is matched is verified:
Step S61 judges successful match when the content of dynamic two-dimension code is identical as the verification content of password;
Step S62, when the content of dynamic two-dimension code is differed with the content for verifying password, it fails to match for judgement.
Specifically, the data for including in dynamic two-dimension code or other content are obtained, the number with the verification password being calculated According to or other content compared, pass through comparing result, it is possible to determine that dynamic two-dimension code with verification password whether match.
Dynamic two-dimension code is the device identification by device end, with device end current time parameter with preset password algorithm It is calculated.Verification password is the device identification by receiving, the current time with server when receiving dynamic two-dimension code Parameter is calculated with preset password algorithm.In the two calculating process, device identification is the device identification of device end, Such as the unique marks such as device id;And time parameter is to calculate to obtain based on current time according to preset calculation;Dynamically The computational algorithm of password is also the algorithm known to prestore in systems.Therefore, Dynamic Two-dimensional identical in time parameter Code in include content, such as number, letter etc., with verification password be consistent, i.e., the clear content that Quick Response Code is included and The clear content of verification password is consistent.And under normal circumstances, the time parameter of the two is identical, therefore verification result It is also identical, the successful match of the two.After successful match, corresponding control instruction can be fed back to hardware device by server, such as The specified order of operation, opens assigned switch etc..
The present invention also carries same synchronous dynamic Quick Response Code and generates device end.
The device end that synchronous dynamic Quick Response Code of the present invention generates includes:Memory, processor and it is stored in the storage On device and the synchronous dynamic Quick Response Code generating routine that can run on the processor, the synchronous dynamic Quick Response Code generating routine Synchronous dynamic two dimension code generation method step as described above is realized when being executed by the processor.
The present invention also carries same synchronous dynamic Quick Response Code and generates server.
The server that synchronous dynamic Quick Response Code of the present invention generates includes:Memory, processor and it is stored in the memory Synchronous dynamic Quick Response Code generating routine that is upper and can running on the processor, the synchronous dynamic Quick Response Code generating routine quilt The processor realizes synchronous dynamic two dimension code generation method step as described above when executing.
The present invention also provides the systems that a kind of synchronous dynamic Quick Response Code generates, and system structure diagram is with reference to Fig. 4.
The system that synchronous dynamic Quick Response Code of the present invention generates includes:Server and device end, the device end can be real Now generate with generating dynamic password and dynamic password and relevant parameter are sent to server synchronize dynamic two-dimension code.
The server may be implemented the dynamic password of receiving device terminal and relevant parameter and go forward side by side the testing of Mobile state password Card.
Wherein, the method realized when dynamic two-dimension code generates is synchronized in the server and device end can refer to The each embodiment of method that synchronous dynamic Quick Response Code of the present invention generates, details are not described herein.
In addition the embodiment of the present invention also proposes a kind of computer readable storage medium.
Synchronous dynamic Quick Response Code generating routine, the synchronous dynamic two are stored on computer readable storage medium of the present invention The step of dimension code generating routine realizes synchronous dynamic two dimension code generation method as described above when being executed by processor.Wherein, exist The synchronous dynamic Quick Response Code generating routine run on the processor is performed realized method and can refer to synchronization of the present invention The each embodiment of Dynamic Two-dimensional code generation method, details are not described herein.
It should be noted that herein, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that process, method, article or system including a series of elements include not only those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or system institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including this There is also other identical elements in the process of element, method, article or system.
The embodiments of the present invention are for illustration only, can not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical scheme of the present invention substantially in other words does the prior art Going out the part of contribution can be expressed in the form of software products, which is stored in one as described above In storage medium (such as ROM/RAM, magnetic disc, CD), including some instructions use so that a station terminal equipment (can be mobile phone, Computer, server, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of synchronous dynamic two dimension code generation method, which is characterized in that the synchronous dynamic two dimension code generation method include with Lower step:
Device end obtains the device identification of current device and the time parameter that device end is current;
According to preset password algorithm, dynamic two-dimension code is calculated with the device identification and the time parameter;
Dynamic two-dimension code image is exported by output equipment.
2. synchronous dynamic two dimension code generation method as described in claim 1, which is characterized in that the device end obtains current The step of device identification of equipment and device end current time parameter includes:
The current time of device end is obtained, the immediate time parameter node of current time with the device end is obtained, And the time parameter node is set as to the time parameter of dynamic password.
3. synchronous dynamic two dimension code generation method as described in claim 1, which is characterized in that described to be calculated according to preset password Method, the step of dynamic two-dimension code is calculated with the time parameter with the device identification include:
According to according to preset password algorithm, the dynamic mouth of plaintext version is calculated with the device identification and the time parameter It enables, and image in 2 D code is converted by default transform mode.
4. a kind of synchronous dynamic two dimension code generation method, which is characterized in that the synchronous dynamic two dimension code generation method include with Lower step:
When server receives the dynamic two-dimension code of requests verification, the current time of server is obtained, when current according to server Between, and the current time parameter of server is obtained according to current time;
According to the device identification to prestore and preset password algorithm, and the time parameter of verification password, verification password is calculated;
Dynamic two-dimension code is matched with verification password, corresponding control instruction, which is fed back to hardware, according to matching result sets It is standby.
5. the synchronous dynamic two dimension code generation method described in claim 4, which is characterized in that the server receives request and tests When the dynamic two-dimension code of card, the current time of server is obtained, according to server current time, and is obtained and is taken according to current time The step of business device current time parameter includes:
The current time of server is obtained, obtains the immediate time parameter node of current time with the server, and will The time parameter node is set as the time parameter of verification password.
6. the synchronous dynamic two dimension code generation method described in claim 4, which is characterized in that described by dynamic two-dimension code and verification The step of password is matched include:
When the content of dynamic two-dimension code is identical as the verification content of password, then judge matching result for successful match;
When the content of dynamic two-dimension code and the content of verification password differ, then judge that matching result is that it fails to match.
7. a kind of synchronous dynamic Quick Response Code generates device end, which is characterized in that it is whole that the synchronous dynamic Quick Response Code generates equipment End includes:Reservoir, processor and it is stored in the synchronous dynamic two that can be run on the memory and on the processor Code generating routine is tieed up, realizes that claims 1 to 3 is arbitrary when the synchronous dynamic Quick Response Code generating routine is executed by the processor The step of one synchronous dynamic two dimension code generation method.
8. a kind of synchronous dynamic Quick Response Code generates server, which is characterized in that the synchronous dynamic Quick Response Code generates server packet It includes reservoir, processor and is stored in the synchronous dynamic Quick Response Code production that can be run on the reservoir and on the processor Raw program, realizes such as claim 4 to 6 any one when the synchronous dynamic Quick Response Code generating routine is executed by the processor The step of synchronous dynamic two dimension code generation method.
9. a kind of synchronous dynamic Quick Response Code generation system, which is characterized in that the dynamic password check system includes:Device end with Server, the device end are used for:
When receiving verification instruction, device end obtains the device identification of current device and current time parameter;
According to the device identification of acquisition and time parameter, dynamic two-dimension code is calculated with preset password algorithm;
Dynamic two-dimension code image is exported by output equipment;
The server is used for:
Verification password is obtained when server receives dynamic two-dimension code by receiving port, while according to server current time Time parameter;
Time parameter by acquisition and the device identification to prestore, verification password is calculated with preset password algorithm;
The verification password is matched with the dynamic two-dimension code received, server will be according to matching result by corresponding control System instruction sending device terminal.
10. a kind of readable storage medium storing program for executing, which is characterized in that be stored with the generation of synchronous dynamic Quick Response Code on the readable storage medium storing program for executing Program is realized when the synchronous dynamic Quick Response Code generating routine is executed by processor as arbitrary in claims 1 to 3 or 4 to 6 The step of synchronous dynamic two dimension code generation method described in one.
CN201810251671.3A 2018-03-19 2018-03-23 Synchronous dynamic two dimension code generation method, equipment and system, storage medium Pending CN108566279A (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810232712 2018-03-19
CN2018102327124 2018-03-19

Publications (1)

Publication Number Publication Date
CN108566279A true CN108566279A (en) 2018-09-21

Family

ID=63533189

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810251671.3A Pending CN108566279A (en) 2018-03-19 2018-03-23 Synchronous dynamic two dimension code generation method, equipment and system, storage medium

Country Status (1)

Country Link
CN (1) CN108566279A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109862032A (en) * 2019-03-13 2019-06-07 刘兴丹 A kind of method, apparatus that two-dimensional barcode information is transmitted, forwarded
CN112616183A (en) * 2020-12-31 2021-04-06 杭州罗莱迪思科技股份有限公司 Equipment time synchronization method in off-line mode
CN115396192A (en) * 2022-08-24 2022-11-25 北京安天网络安全技术有限公司 User identity verification method, device, computer equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101166085A (en) * 2007-09-24 2008-04-23 北京飞天诚信科技有限公司 Remote unlocking method and system
US20090327744A1 (en) * 2008-06-30 2009-12-31 Kabushiki Kaisha Toshiba Information processing apparatus and security protection method
CN104579649A (en) * 2013-10-28 2015-04-29 腾讯科技(深圳)有限公司 Identity recognition method and system
CN104601332A (en) * 2015-01-26 2015-05-06 上海众人科技有限公司 Enhancement type dynamic two-dimensional code authentication system and authentication method thereof
CN106911479A (en) * 2017-03-22 2017-06-30 北京华大信安科技有限公司 A kind of security certification system, method and terminal device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101166085A (en) * 2007-09-24 2008-04-23 北京飞天诚信科技有限公司 Remote unlocking method and system
US20090327744A1 (en) * 2008-06-30 2009-12-31 Kabushiki Kaisha Toshiba Information processing apparatus and security protection method
CN104579649A (en) * 2013-10-28 2015-04-29 腾讯科技(深圳)有限公司 Identity recognition method and system
CN104601332A (en) * 2015-01-26 2015-05-06 上海众人科技有限公司 Enhancement type dynamic two-dimensional code authentication system and authentication method thereof
CN106911479A (en) * 2017-03-22 2017-06-30 北京华大信安科技有限公司 A kind of security certification system, method and terminal device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109862032A (en) * 2019-03-13 2019-06-07 刘兴丹 A kind of method, apparatus that two-dimensional barcode information is transmitted, forwarded
CN112616183A (en) * 2020-12-31 2021-04-06 杭州罗莱迪思科技股份有限公司 Equipment time synchronization method in off-line mode
CN115396192A (en) * 2022-08-24 2022-11-25 北京安天网络安全技术有限公司 User identity verification method, device, computer equipment and storage medium
CN115396192B (en) * 2022-08-24 2025-04-25 北京安天网络安全技术有限公司 User identity verification method, device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
US9990787B2 (en) Secure door entry system and method
US10581833B2 (en) Electronic device and method for processing secure information
US8180054B2 (en) Authenticating system, authenticating method, and authenticating program
US9690601B2 (en) Dynamic profile switching based on user identification
US10311220B2 (en) Accessing a user equipment using a biometric sensor concurrently with an authentication pattern
CN105450405B (en) A kind of setting of password and authentication method and system
CN106586734A (en) Elevator remote debugging method, application terminal and debugging system
CN105468952A (en) Authentication method and apparatus
CN103761502A (en) Safety certification device and method
CN106341834A (en) Internet-of-things device configuration method, Internet-of-things device configuration apparatus, Internet-of-things device configuration system and Internet-of-things device
US20160328549A1 (en) Authentication method and apparatus thereof
US12489749B1 (en) Systems and methods for authenticating a user using an image capture device
CN108566279A (en) Synchronous dynamic two dimension code generation method, equipment and system, storage medium
US20170265074A1 (en) Method and wearable electronic device
WO2018059127A1 (en) Security verification method and apparatus
CN105989269A (en) Unlocking method and device and multi-system terminal
CN104836795B (en) A kind of terminal
CN107609390A (en) Terminal unlock method, terminal and computer-readable recording medium
CN110867002A (en) Door opening mode setting method, intelligent lock and storage medium
US9594968B1 (en) Biometric profile creation
WO2017080246A1 (en) Unlocking method, device, and equipment
CN104811443B (en) A kind of identity identifying method
CN105978867A (en) Fingerprint authentication method and cloud server
CN110022561A (en) Information processing method and information processing unit
CN116182431A (en) Encryption method and device for heat pump unit, heat pump unit and storage medium

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20180921

RJ01 Rejection of invention patent application after publication