CN110390220A - Identification code processing and generation method, device, terminal and storage medium - Google Patents

Identification code processing and generation method, device, terminal and storage medium Download PDF

Info

Publication number
CN110390220A
CN110390220A CN201810367483.7A CN201810367483A CN110390220A CN 110390220 A CN110390220 A CN 110390220A CN 201810367483 A CN201810367483 A CN 201810367483A CN 110390220 A CN110390220 A CN 110390220A
Authority
CN
China
Prior art keywords
identification code
information
time
generates
positioning
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
CN201810367483.7A
Other languages
Chinese (zh)
Inventor
郭懿心
张育淼
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201810367483.7A priority Critical patent/CN110390220A/en
Publication of CN110390220A publication Critical patent/CN110390220A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06KRECOGNITION OF DATA; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/10009Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves
    • G06K7/10257Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves arrangements for protecting the interrogation against piracy attacks
    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06KRECOGNITION OF DATA; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/10544Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum
    • G06K7/10792Special measures in relation to the object to be scanned
    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06KRECOGNITION OF DATA; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1408Methods for optical code recognition the method being specifically adapted for the type of code

Abstract

This application involves a kind of identification code processing method, device, terminal and storage mediums.The described method includes: obtaining identification code scanning information, the identification code scanning information is the scanning information that the identification code that scanning is shown obtains;Identification code is extracted from the identification code scanning information and generates status information, and it includes: positioning position information when identification code generation terminal generates the identification code that the identification code, which generates status information,;When positional distance between the positioning position information and default positioning position information meets distance condition, determine that the identification code is legal.The safety that identification code uses can be improved using this method.This application involves a kind of a kind of identification code generating method corresponding with above-mentioned identification code processing method, device, terminal and storage mediums.

Description

Identification code processing and generation method, device, terminal and storage medium
Technical field
This application involves computer information technology field, more particularly to a kind of processing of identification code and generation method, device, Terminal and storage medium.
Background technique
With the development of computer information technology, there is identification code technology, the development of identification code technology is so that people It lives more convenient.Such as, ridden by identification code, by identification code pay etc. these conveniently life style all from The support of identification code technology is not opened.
Whether traditional identification code processing mode includes subscriber identity information in identification code, is closed by subscriber identity information Method carries out the validity judgement that identification code uses, it is difficult to guarantee that the identification code is not stolen, there is a problem of that safety is low.
Summary of the invention
Based on this, it is necessary in view of the above technical problems, provide a kind of identification code processing and life that can be improved safety At method, apparatus, terminal and storage medium.
A kind of identification code processing method, which comprises
Identification code scanning information is obtained, the identification code scanning information is the scanning letter that the identification code that scanning is shown obtains Breath;
Identification code is extracted from the identification code scanning information and generates status information, and the identification code generates status information packet Include: identification code generates positioning position information when terminal generates the identification code;
When positional distance between the positioning position information and default positioning position information meets distance condition, determine The identification code is legal.
A kind of identification code processing unit, described device include:
Scanning information obtains module, and for obtaining identification code scanning information, the identification code scanning information is that scanning is shown The obtained scanning information of identification code;
Information extraction modules generate status information, the knowledge for extracting identification code from the identification code scanning information It includes: positioning position information when identification code generation terminal generates the identification code that other code, which generates status information,;
Validity judgement module meets for the positional distance between the positioning position information and default position location When distance condition, determine that the identification code is legal.
A kind of terminal, including memory and processor, the memory are stored with computer program, and the processor executes It is performed the steps of when the computer program
Identification code scanning information is obtained, the identification code scanning information is the scanning letter that the identification code that scanning is shown obtains Breath;
Identification code is extracted from the identification code scanning information and generates status information, and the identification code generates status information packet Include: identification code generates positioning position information when terminal generates the identification code;
When positional distance between the positioning position information and default positioning position information meets distance condition, determine The identification code is legal.
A kind of readable storage medium storing program for executing is stored thereon with computer program, real when the computer program is executed by processor Existing following steps:
Identification code scanning information is obtained, the identification code scanning information is the scanning letter that the identification code that scanning is shown obtains Breath;
Identification code is extracted from the identification code scanning information and generates status information, and the identification code generates status information packet Include: identification code generates positioning position information when terminal generates the identification code;
When positional distance between the positioning position information and default positioning position information meets distance condition, determine The identification code is legal.
Above-mentioned identification code processing method, device, terminal and storage medium, due to the knowledge extracted from identification code scanning information It includes that the positioning position information of terminal is generated when the identification code generates that other code, which generates status information, in the positioning position information When positional distance between default positioning position information meets distance condition, determine that the identification code is legal.In this way, by position It is legal that the identification code that distance meets distance condition is determined as, it is possible to prevente effectively from positional distance is unsatisfactory for illegally making for distance condition With, and cause to steal and brush, to improve the safety that identification code uses.
A kind of identification code generating method, which comprises
Obtain subscriber identity information;
It obtains identification code and generates status information, it includes: current positioning position information that the identification code, which generates status information,;
Status information, which is generated, according to the subscriber identity information and the identification code generates identification code.
A kind of identification code generating means, described device include:
Identity information acquisition module, for obtaining subscriber identity information;
State information acquisition module generates status information for obtaining identification code, and the identification code generates status information packet It includes: current positioning position information;
Identification code generation module is known for generating status information according to the subscriber identity information and the identification code and generating Other code.
A kind of terminal, including memory and processor, the memory are stored with computer program, and the processor executes It is performed the steps of when the computer program
Obtain subscriber identity information;
It obtains identification code and generates status information, it includes: current positioning position information that the identification code, which generates status information,;
Status information, which is generated, according to the subscriber identity information and the identification code generates identification code.
A kind of readable storage medium storing program for executing is stored thereon with computer program, real when the computer program is executed by processor Existing following steps:
Obtain subscriber identity information;
It obtains identification code and generates status information, it includes: current positioning position information that the identification code, which generates status information,;
Status information, which is generated, according to the subscriber identity information and the identification code generates identification code.
Above-mentioned identification code generating method, device, terminal and storage medium obtain subscriber identity information;It is raw to obtain identification code At status information, it includes current positioning position information that the identification code, which generates status information, and is believed according to the user identity Breath and the identification code generate status information and generate identification code.Due to including that generated code generates state letter in the identification code of generation Breath, it includes current positioning position information which, which generates status information, i.e., identification code carries generation when identification code generates The positioning position information of terminal reduces the identification in this way, can take further anti-theft measure according to the positioning position information The risk of the stolen brush of code, to improve the safety that identification code uses.
Detailed description of the invention
Fig. 1 is the applied environment figure of identification code processing method in one embodiment;
Fig. 2 is the flow diagram of identification code processing method in one embodiment;
Fig. 3 is the flow diagram of identification code processing method in second embodiment;
Fig. 4 is the flow diagram of identification code processing method in third embodiment;
Fig. 5 is the flow diagram of identification code processing method in the 4th embodiment;
Fig. 6 is the flow diagram of identification code processing method in a specific embodiment;
Fig. 7 is the flow diagram that code generating method is identified in one embodiment;
Fig. 8 is the structural block diagram of identification code processing unit in one embodiment;
Fig. 9 is the structural block diagram of identification code processing unit in another embodiment;
Figure 10 is the structural block diagram of identification code generating means in one embodiment;
Figure 11 is the internal structure chart of terminal in one embodiment.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, not For limiting the application.
Identification code processing method provided by the present application and identification code generating method, can be applied to application as shown in Figure 1 In environment.Wherein, user carries out the displaying of identification code by first terminal 102, and second terminal 104 on first terminal 102 to opening up The identification code shown is scanned, to obtain identification code scanning information.First terminal 102 is when generating identification code: obtaining user Identity information;It obtains identification code and generates status information, it includes current positioning position information that the identification code, which generates status information,; Status information, which is generated, according to the subscriber identity information and the identification code generates identification code.Second terminal 104 is in scanning recognition After code gets identification code scanning information, identification code is extracted from the identification code scanning information and generates status information, it is described It includes positioning position information when identification code generation terminal generates the identification code that identification code, which generates status information,;In the positioning When positional distance between location information and default positioning position information meets distance condition, determine that the identification code is legal.Its In, first terminal 102 can be, but not limited to be various mobile intelligent terminals, such as smart phone, tablet computer and portable wear Equipment is worn, second terminal 104 can be the electronic equipment configured with barcode scanning function, such as can be the individual configured with barcode scanning function Computer is also possible to ticket checking machine, gate etc..
In one embodiment, as shown in Fig. 2, providing a kind of identification code processing method, it is applied in Fig. 1 in this way Second terminal for be illustrated, comprising the following steps:
S202 obtains identification code scanning information.Identification code scanning information is the scanning letter that the identification code that scanning is shown obtains Breath.
In the present embodiment, identification code is a kind of coding mode that can be identified by way of scanning, such as can be with For two dimensional code, bar code.Pictorial information that identification code scanning information can obtain for scanning, including identification code.
S204 extracts identification code from identification code scanning information and generates status information.Identification code generates status information Identification code generates positioning position information when terminal generates identification code.
By analyzing identification code, identification code is extracted from identification code scanning information and generates status information.Identification code Generating terminal is to generate the terminal of identification code.Positioning position information can pass through LBS (Location Based Service, base Service in position) mode obtain.LBS refers to radio communication network or external positioning side by telecommunications mobile operator Formula obtains the location information of mobile terminal user, in GIS (Geographic Information System, geography information system System) platform support under, provide a kind of value-added service of respective service for user.Such as, location information can pass through GPRS (General Packet Radio Service, general packet radio service technology), a kind of WIFI (permission electronic equipment connection To the technology of a WLAN) etc. positioning obtain.
S206 sentences when the positional distance between positioning position information and default positioning position information meets distance condition It is legal to determine identification code.
Default positioning position information is preset location information.The default positioning position information can store second In terminal.The default positioning position information can be the positioning position information of second terminal, the i.e. sprocket bit of current device itself Confidence breath.The default positioning position information can be set by way of human configuration, can also be obtained by network Mode is set, and can also be directly fixed location information.In other words, default positioning position information can be configurable , be also possible to not can configure, i.e., fixed.
Positional distance refers at a distance from two positions represented by positioning position information and default positioning position information.Distance Condition refers in the condition apart from upper restriction, such as can be less than or equal to pre-determined distance or positional distance for positional distance Within preset range or positional distance is equal to zero.
It is to be appreciated that positioning position information and default positioning position information can be indicated by longitude and latitude, thus, side Just the positional distance between positioning position information and default positioning position information is calculated.
Above-mentioned identification code processing method, since the identification code generation status information extracted from identification code scanning information includes The positioning position information of terminal, the position between positioning position information and default positioning position information are generated when identification code generates When distance meets distance condition, determine that identification code is legal.In this way, the identification code that positional distance meets distance condition is judged to closing Method it is possible to prevente effectively from positional distance is unsatisfactory for the illegal use of distance condition, and is caused to steal and be brushed, to improve identification code use Safety.
Identification code processing method based on the above embodiment, may not need access internet, being capable of save the cost, processing speed Degree is fast, improves user's viscosity.
It is to be appreciated that in some embodiments, this method further include: believe in positioning position information and default position location When positional distance between breath is unsatisfactory for distance condition, determine that identification code is illegal.
In one embodiment, when positional distance is less than or equal to pre-determined distance, judgement meets distance condition.? That is, distance condition is that positional distance is less than or equal to pre-determined distance.Pre-determined distance is preset distance value, such as can be 1000 meters, 2000 meters, 5000m etc..The pre-determined distance can be set by way of human configuration, can also directly be Fixed location information.In other words, pre-determined distance can be configurable;Be also possible to not can configure, i.e., fixed.By When positional distance is excessive, shows the positioning position information of generation terminal when generating identification code and examine terminal (i.e. this method Operation terminal namely second terminal) positional distance it is excessive, it is more likely that the identification code of displaying is not that the terminal that shows is raw At, but usurp other people identification code.Therefore, identification code is generated into positioning position information and default sprocket bit in status information It is legal that the identification code that positional distance between confidence breath is less than or equal to a pre-determined distance is determined as, so as to avoid position It sets and steals brush caused by excessive, improve the safety that identification code uses.
In one embodiment, as shown in figure 3, position between positioning position information and default positioning position information When distance meets distance condition, before determining that identification code is legal, further comprise the steps of:
S305 obtains default positioning position information and pre-determined distance.
In the present embodiment, presetting positioning position information and pre-determined distance can be configurable, presetting by obtaining The step of position location information and pre-determined distance, default positioning position information and pre-determined distance are configured.
It is also understood that ground can only include in other embodiments pre- including the default positioning position information of acquisition or only If apart from the step of, to only be configured to default positioning position information or pre-determined distance.
Identification code processing method based on the above embodiment, due to including obtaining default positioning position information and/or presetting Apart from the step of, default positioning position information and/or pre-determined distance can be configured, it is thus possible to improve identification code conjunction The applicability of method judgement.
In one embodiment, identification code generates status information further include: identification code generates the time, when identification code generates Between for identification code generate terminal generate identification code time.The time that identification code generates terminal generation identification code can be identification code Generate the time that positioning position information obtains in terminal, that is, the time positioned.
As shown in figure 4, the positional distance between positioning position information and default positioning position information meets distance condition When, determine that identification code is legal, comprising:
S406 determines identification code when positional distance meets distance condition and the identification code generation time meets time conditions It is legal.
Time conditions refer to restriction in time.Time conditions can generate the time in preset time range for identification code It is interior, or identification code generation time and the time difference of current time within a preset range, if time conditions can be, identify Code generates the time and the time difference of current time is poor less than or equal to preset time.
In the present embodiment, while meeting distance condition and time conditions, just determine that identification code is legal, to further mention The safety that high identification code uses.
It is to be appreciated that in some embodiments, this method further include: believe in positioning position information and default position location Positional distance between breath be unsatisfactory for distance condition or identification code generate the time be unsatisfactory in time conditions at least one of when, sentence It is illegal to determine identification code.
In one embodiment, when identification code generates the time difference of time and current time less than or equal to presetting Between difference when, judgement meet time conditions.That is, time conditions be identification code generate time and current time time difference be less than or It is poor that person is equal to preset time.Preset time difference be preset a value, such as can be 30 seconds, 60 seconds, 5 minutes.This is pre- It can also be directly fixed value if the time difference can be set by way of human configuration.In other words, preset time Difference can be configurable, and be also possible to not can configure, i.e., fixed.Current time is current real-time time, Ke Yitong It crosses acquisition system time to obtain, can also be obtained by networking.In the general legal identification code time shorter before displaying It generates, i.e. the time difference is smaller.And the time difference it is excessive when show generate identification code time have big difference with current time, having very much can The identification code that can be shown not is that the corresponding user of the identification code generates, but what other people stole in advance.Therefore, by identification code The time difference for generating identification code generation time and current time in status information is less than or equal to the identification of preset time difference It is legal that code is determined as, so as to steal brush caused by avoiding the time difference excessive, improves the safety that identification code uses.
In one embodiment, please continue to refer to Fig. 4, when positional distance meets distance condition and identification code generates Between when meeting time conditions, before determining that identification code is legal, further comprise the steps of:
S405, obtains current time and preset time is poor.
In the present embodiment, current time is current real-time time, can be obtained by obtaining system time, can be with It is obtained by networking.Preferably, by obtain system time obtain current time, so as to do not have to networking in the case where, The safety that identification code uses is improved, dependence of the second terminal to network is reduced.Preset time difference can be configurable, and be led to The step for obtaining preset time difference is crossed, preset time difference is configured.
It is also understood that ground, in other embodiments, can only include the steps that acquisition current time, without to it is default when Between difference configured.
Identification code processing method based on the above embodiment includes the steps that the embodiment for obtaining current time, due to Current time is got by way of acquisition, it is available to arrive more accurate current time, it is legal that identification code can be improved Property judgement accuracy.Include the steps that the embodiment for obtaining preset time difference, preset time difference can be configured, from And the applicability of identification code validity judgement can be improved.
In one embodiment, as shown in figure 5, after determining that identification code is legal, further includes:
S508, regulating gate are opened.
After determining that identification code is legal, regulating gate is opened, in this way, identification code is used on gate, gate can be with Wicket is carried out to be used in subway entrance, user can be made to carry out ticket checking by identification code, by determining identification code After legal, regulating gate is opened, and is let pass to user, can effectively be contained and be stolen code or escape behavior.
In one embodiment, as shown in fig. 6, identification code processing method includes:
S602, obtains identification code scanning information, and identification code scanning information is the scanning letter that the identification code that scanning is shown obtains Breath;
S604 extracts identification code from identification code scanning information and generates status information, and identification code generates status information and includes: Identification code generates positioning position information when terminal generates identification code;
S605 obtains default positioning position information and pre-determined distance, and obtains current time and preset time is poor;
S606, when positional distance is less than or equal to pre-determined distance and identification code generate time and current time when Between difference be less than or equal to preset time difference when, determine identification code it is legal;
S608, regulating gate are opened.
In one embodiment, as shown in fig. 7, providing a kind of identification code generating method, it is applied in Fig. 1 in this way First terminal for be illustrated, comprising the following steps:
S702 obtains subscriber identity information.
Subscriber identity information is the information for indicating user identity, such as may include user name, account, password information.It should Subscriber identity information can carry out authentication.
S704 obtains identification code and generates status information, and it includes: current sprocket bit confidence that identification code, which generates status information, Breath.
Current positioning position information can be the location information for passing through the LBS present terminal obtained.It is to be appreciated that working as Preceding terminal is that the terminal for generating identification code namely identification code generate terminal.
S706 generates status information according to subscriber identity information and identification code and generates identification code.
Identification code is a kind of coding mode that can be identified by way of scanning, such as can be two dimensional code, bar shaped Code.Status information is generated to subscriber identity information and identification code using the coding mode of identification code to encode, and generates identification code.
Above-mentioned identification code generating method obtains subscriber identity information;It obtains identification code and generates status information, identification code generates Status information includes current positioning position information, and generates status information according to subscriber identity information and identification code and generate identification Code.Due to including that generated code generates status information in the identification code of generation, it includes current determining which, which generates status information, Position location information, i.e. identification code carry the positioning position information that terminal is generated when identification code generates, in this way, can be fixed according to this Position location information takes further anti-theft measure, the risk of the stolen brush of the identification code is reduced, to improve what identification code used Safety.
In one embodiment, this method further include:
Intermediate code is generated according to subscriber identity information.
The step of status information generates identification code is generated according to subscriber identity information and identification code, comprising: according to intermediate code And identification code generates status information and generates identification code.
In the present embodiment, intermediate code and identification code can use identical coding mode.It such as, can be two dimensional code or item Shape code.
Due to being the centre for directly generating identification code namely the present embodiment according to subscriber identity information in the prior art Code reduces transformation, maintenance cost because the present embodiment can be connected well with the prior art.
In one embodiment, identification code generates status information further include: identification code generates the time, when identification code generates Between be current time.It is to be appreciated that obtaining identification code generates status information, comprising: obtain current positioning position information and Current time.The current time is to obtain the time of the positioning position information.
Due to this method be identification code generating process, current time substantially be exactly identification code generation time. Current time is current real-time time, can be obtained, can also be obtained by networking by obtaining system time.
In identification code generating method identification code generated based on the present embodiment, not only carry raw when identification code generates At the positioning position information of terminal, generation time when identification code generates also is carried, i.e. identification code generates the time, in this way, can Further to take further anti-theft measure according to the positioning position information and identification code generation time, the identification code is reduced The risk of stolen brush, to improve the safety that identification code uses.
It should be understood that although each step in the flow chart of Fig. 2-7 is successively shown according to the instruction of arrow, These steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly stating otherwise herein, these steps Execution there is no stringent sequences to limit, these steps can execute in other order.Moreover, at least one in Fig. 2-7 Part steps may include that perhaps these sub-steps of multiple stages or stage are not necessarily in synchronization to multiple sub-steps Completion is executed, but can be executed at different times, the execution sequence in these sub-steps or stage is also not necessarily successively It carries out, but can be at least part of the sub-step or stage of other steps or other steps in turn or alternately It executes.
In one embodiment, as shown in figure 8, providing a kind of identification code processing unit, the device be applied to Fig. 1 in Second terminal method it is corresponding, comprising:
Scanning information obtains module 802, and for obtaining identification code scanning information, the identification code scanning information is scanning exhibition The scanning information that the identification code shown obtains;
Information extraction modules 804 generate status information for extracting identification code from the identification code scanning information, described It includes: positioning position information when identification code generation terminal generates the identification code that identification code, which generates status information,;
Validity judgement module 806, for the positional distance between the positioning position information and default position location When meeting distance condition, determine that the identification code is legal.
Above-mentioned identification code processing unit obtains subscriber identity information;It obtains identification code and generates status information, the identification code Generating status information includes current positioning position information, and generates state according to the subscriber identity information and the identification code Information generates identification code.Due to including that generated code generates status information in the identification code of generation, which generates status information Including current positioning position information, i.e. identification code carries the positioning position information that terminal is generated when identification code generates, in this way, Further anti-theft measure can be taken according to the positioning position information, the risk of the stolen brush of the identification code is reduced, to improve The safety that identification code uses.
In one of the embodiments, as shown in figure 9, the device, further includes:
Distance condition judgment module 9061, for determining full when the positional distance is less than or equal to pre-determined distance The foot distance condition.
The device in one of the embodiments, further includes that presupposed information obtains module 905;
The presupposed information obtains module 9051, for obtaining the default positioning position information and the pre-determined distance.
The identification code generates status information in one of the embodiments, further include: identification code generates time, the knowledge Other code generates the time for the time identification code being generated for identification code generation terminal;
The validity judgement module 9063 is also used to meet the distance condition and the knowledge in the positional distance When the other code generation time meets time conditions, determine that the identification code is legal.
The device in one of the embodiments, further includes:
Time conditions judgment module 9062, the time difference for generating time and current time in the identification code be less than or When person is equal to preset time difference, judgement meets the time conditions.
The device in one of the embodiments, further includes:
Temporal information obtains module 9052, poor for obtaining the current time and the preset time.
The device in one of the embodiments, further includes:
Gate control module 908, for controlling lock after the validity judgement module determines that the identification code is legal Door is opened.
Specific about identification code processing unit limits the restriction that may refer to above for identification code processing method, In This is repeated no more.Modules in above-mentioned identification code processing unit can come fully or partially through software, hardware and combinations thereof It realizes.Above-mentioned each module can be embedded in the form of hardware or independently of in the processor in terminal, can also deposit in a software form It is stored in the memory in terminal, executes the corresponding operation of the above modules in order to which processor calls.
In one embodiment, as shown in Figure 10, provide a kind of identification code generating means, the device be applied to Fig. 1 In first terminal method it is corresponding, comprising:
Identity information acquisition module 1002, for obtaining subscriber identity information;
State information acquisition module 1004 generates status information for obtaining identification code, and the identification code generates state letter Breath includes: current positioning position information;
Identification code generation module 1006, it is raw for generating status information according to the subscriber identity information and the identification code At identification code.
Above-mentioned identification code generating means obtain subscriber identity information;It obtains identification code and generates status information, identification code generates Status information includes current positioning position information, and generates status information according to subscriber identity information and identification code and generate identification Code.Due to including that generated code generates status information in the identification code of generation, it includes current determining which, which generates status information, Position location information, i.e. identification code carry the positioning position information that terminal is generated when identification code generates, in this way, can be fixed according to this Position location information takes further anti-theft measure, the risk of the stolen brush of the identification code is reduced, to improve what identification code used Safety.
In one embodiment, the device further include:
Intermediate code generation module, for generating intermediate code according to subscriber identity information.
Identification code generation module 1006 is also used to generate status information generation identification code according to intermediate code and identification code.
In one embodiment, the identification code generates status information further include: identification code generates time, the identification Code generates the time as current time.
Specific about identification code generating means limits the restriction that may refer to above for identification code generating method, In This is repeated no more.Modules in above-mentioned identification code generating means can come fully or partially through software, hardware and combinations thereof It realizes.Above-mentioned each module can be embedded in the form of hardware or independently of in the processor in terminal, can also deposit in a software form It is stored in the memory in terminal, executes the corresponding operation of the above modules in order to which processor calls.
In one embodiment, a kind of terminal is provided, which can be mobile intelligent terminal, and such as smart phone is put down Plate computer and portable wearable device can also be the electronic equipment configured with barcode scanning function, such as can be for configured with barcode scanning The personal computer of function is also possible to ticket checking machine, gate etc..The internal structure chart of mobile intelligent terminal can be such as Figure 11 institute Show.The terminal includes processor, memory, network interface, display screen and the input unit connected by system bus.Wherein, The processor of the terminal is for providing calculating and control ability.The memory of the terminal includes non-volatile memory medium, memory Reservoir.The non-volatile memory medium is stored with operating system and computer program.The built-in storage is non-volatile memories Jie The operation of operating system and computer program in matter provides environment.The network interface of the terminal is used to pass through with external terminal Network connection communication.To realize a kind of identification code generation side for running on first terminal when the computer program is executed by processor Method.The display screen of the terminal can be liquid crystal display or electric ink display screen, and the input unit of the terminal can be aobvious The touch layer covered in display screen is also possible to the key being arranged in terminal enclosure, trace ball or Trackpad, can also be external Keyboard, Trackpad or mouse etc..
It will be understood by those skilled in the art that structure shown in Figure 11, only part relevant to application scheme The block diagram of structure, does not constitute the restriction for the terminal being applied thereon to application scheme, and specific terminal may include ratio More or fewer components as shown in the figure perhaps combine certain components or with different component layouts.
In one embodiment, a kind of terminal is provided, which can be the electronic equipment configured with barcode scanning function, such as It can be the personal computer configured with barcode scanning function, be also possible to ticket checking machine, gate etc..The terminal includes memory and processing Device is stored with computer program in memory, which performs the steps of when executing computer program
Identification code scanning information is obtained, the identification code scanning information is the scanning letter that the identification code that scanning is shown obtains Breath;
Identification code is extracted from the identification code scanning information and generates status information, and the identification code generates status information packet Include: identification code generates positioning position information when terminal generates the identification code;
When positional distance between the positioning position information and default positioning position information meets distance condition, determine The identification code is legal.
In one embodiment, when the positional distance is less than or equal to pre-determined distance, determine to meet it is described away from From condition.
In one embodiment, the positional distance between the positioning position information and default positioning position information is full When sufficient distance condition, before determining that the identification code is legal, further comprise the steps of:
Obtain the default positioning position information and the pre-determined distance.
In one embodiment, the identification code generates status information further include: identification code generates time, the identification Code generates the time for the time identification code being generated for identification code generation terminal;
When positional distance between the positioning position information and default positioning position information meets distance condition, determine The identification code is legal, comprising:
When the positional distance meets the distance condition and the identification code generation time meets time conditions, sentence The fixed identification code is legal.
In one embodiment, it is less than or equal in advance in the time difference that the identification code generates time and current time If when the time difference, judgement meets the time conditions.
In one embodiment, meet the distance condition in the positional distance and the identification code generates the time When meeting time conditions, before determining that the identification code is legal, further comprise the steps of:
It obtains the current time and the preset time is poor.
In one embodiment, after determining that the identification code is legal, further includes:
Regulating gate is opened.
In one embodiment, provide another terminal, which can be mobile intelligent terminal, as smart phone, Tablet computer and portable wearable device.The terminal includes memory and processor, is stored with computer program in memory, The processor performs the steps of when executing computer program
Obtain subscriber identity information;
It obtains identification code and generates status information, it includes: current positioning position information that the identification code, which generates status information,;
Status information, which is generated, according to the subscriber identity information and the identification code generates identification code.
In one embodiment, the identification code generates status information further include: identification code generates time, the identification code The generation time is current time.
In one embodiment, a kind of readable storage medium storing program for executing is provided, computer program, computer program are stored thereon with It is performed the steps of when being executed by processor
Identification code scanning information is obtained, the identification code scanning information is the scanning letter that the identification code that scanning is shown obtains Breath;
Identification code is extracted from the identification code scanning information and generates status information, and the identification code generates status information packet Include: identification code generates positioning position information when terminal generates the identification code;
When positional distance between the positioning position information and default positioning position information meets distance condition, determine The identification code is legal.
In one embodiment, when the positional distance is less than or equal to pre-determined distance, determine to meet it is described away from From condition.
In one embodiment, the positional distance between the positioning position information and default positioning position information is full When sufficient distance condition, before determining that the identification code is legal, further comprise the steps of:
Obtain the default positioning position information and the pre-determined distance.
In one embodiment, the identification code generates status information further include: identification code generates time, the identification Code generates the time for the time identification code being generated for identification code generation terminal;
When positional distance between the positioning position information and default positioning position information meets distance condition, determine The identification code is legal, comprising:
When the positional distance meets the distance condition and the identification code generation time meets time conditions, sentence The fixed identification code is legal.
In one embodiment, it is less than or equal in advance in the time difference that the identification code generates time and current time If when the time difference, judgement meets the time conditions.
In one embodiment, meet the distance condition in the positional distance and the identification code generates the time When meeting time conditions, before determining that the identification code is legal, further comprise the steps of:
It obtains the current time and the preset time is poor.
In one embodiment, after determining that the identification code is legal, further includes:
Regulating gate is opened.
In one embodiment, another readable storage medium storing program for executing is provided, computer program, computer journey are stored thereon with It is performed the steps of when sequence is executed by processor
Obtain subscriber identity information;
It obtains identification code and generates status information, it includes: current positioning position information that the identification code, which generates status information,;
Status information, which is generated, according to the subscriber identity information and the identification code generates identification code.
In one embodiment, the identification code generates status information further include: identification code generates time, the identification code The generation time is current time.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer In read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, To any reference of memory, storage, database or other media used in each embodiment provided herein, Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM (PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms, Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancing Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
Each technical characteristic of above embodiments can be combined arbitrarily, for simplicity of description, not to above-described embodiment In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance Shield all should be considered as described in this specification.
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art It says, without departing from the concept of this application, various modifications and improvements can be made, these belong to the protection of the application Range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.

Claims (20)

1. a kind of identification code processing method, which comprises
Identification code scanning information is obtained, the identification code scanning information is the scanning information that the identification code that scanning is shown obtains;
Identification code is extracted from the identification code scanning information and generates status information, and the identification code generates status information and includes: Identification code generates positioning position information when terminal generates the identification code;
When positional distance between the positioning position information and default positioning position information meets distance condition, described in judgement Identification code is legal.
2. according to the method described in claim 1, it is characterized by:
When the positional distance is less than or equal to pre-determined distance, judgement meets the distance condition.
3. according to the method described in claim 2, it is characterized in that, in the positioning position information and default positioning position information Between positional distance when meeting distance condition, before determining that the identification code is legal, further comprise the steps of:
Obtain the default positioning position information and the pre-determined distance.
4. according to claim 1 to method described in 3 any one, which is characterized in that the identification code generates status information also Include: that identification code generates the time, the identification code generate the time be the identification code generate terminal generate the identification code when Between;
When positional distance between the positioning position information and default positioning position information meets distance condition, described in judgement Identification code is legal, comprising:
When the positional distance meets the distance condition and the identification code generation time meets time conditions, institute is determined It is legal to state identification code.
5. according to the method described in claim 4, it is characterized by:
When the identification code generates the time difference of time and current time less than or equal to preset time difference, judgement meets institute State time conditions.
6. according to the method described in claim 5, it is characterized by: meeting the distance condition and institute in the positional distance It states identification code and generates the time when meeting time conditions, before determining that the identification code is legal, further comprise the steps of:
It obtains the current time and the preset time is poor.
7. the method according to claim 1, wherein after determining that the identification code is legal, further includes:
Regulating gate is opened.
8. a kind of identification code generating method, which comprises
Obtain subscriber identity information;
It obtains identification code and generates status information, it includes: current positioning position information that the identification code, which generates status information,;
Status information, which is generated, according to the subscriber identity information and the identification code generates identification code.
9. according to the method described in claim 8, it is characterized in that, the identification code generates status information further include: identification code The time is generated, the identification code generates the time as current time.
10. a kind of identification code processing unit, described device include:
Scanning information obtains module, and for obtaining identification code scanning information, the identification code scanning information is the knowledge that scanning is shown The scanning information that other code obtains;
Information extraction modules generate status information, the identification code for extracting identification code from the identification code scanning information Generating status information includes: positioning position information when identification code generation terminal generates the identification code;
Validity judgement module meets distance for the positional distance between the positioning position information and default position location When condition, determine that the identification code is legal.
11. device according to claim 10, which is characterized in that described device, further includes:
Distance condition judgment module, for when the positional distance is less than or equal to pre-determined distance, determine to meet it is described away from From condition.
12. device according to claim 11, which is characterized in that described device further includes that presupposed information obtains module;
The presupposed information obtains module, for obtaining the default positioning position information and the pre-determined distance.
13. device described in 0 to 12 any one according to claim 1, which is characterized in that the identification code generates status information Further include: identification code generates the time, and the identification code generation time is that identification code generation terminal generates the identification code Time;
The validity judgement module is also used to meet the distance condition in the positional distance and the identification code generates When time meets time conditions, determine that the identification code is legal.
14. device according to claim 13, which is characterized in that described device, further includes:
Time conditions judgment module, the time difference for generating time and current time in the identification code are less than or equal in advance If when the time difference, judgement meets the time conditions.
15. device according to claim 14, which is characterized in that described device, further includes:
Temporal information obtains module, poor for obtaining the current time and the preset time.
16. device according to claim 10, which is characterized in that further include:
Gate control module, for after the validity judgement module determines that the identification code is legal, regulating gate to be opened.
17. a kind of identification code generating means, described device include:
Identity information acquisition module, for obtaining subscriber identity information;
State information acquisition module generates status information for obtaining identification code, and it includes: to work as that the identification code, which generates status information, Preceding positioning position information;
Identification code generation module generates identification for generating status information according to the subscriber identity information and the identification code Code.
18. device according to claim 17, which is characterized in that the identification code generates status information further include: identification Code generates the time, and the identification code generates the time as current time.
19. a kind of terminal, including memory and processor, the memory are stored with computer program, which is characterized in that described The step of processor realizes any one of claims 1 to 9 the method when executing the computer program.
20. a kind of readable storage medium storing program for executing, is stored thereon with computer program, which is characterized in that the computer program is processed The step of device realizes method described in any one of claims 1 to 9 when executing.
CN201810367483.7A 2018-04-23 2018-04-23 Identification code processing and generation method, device, terminal and storage medium Pending CN110390220A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810367483.7A CN110390220A (en) 2018-04-23 2018-04-23 Identification code processing and generation method, device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810367483.7A CN110390220A (en) 2018-04-23 2018-04-23 Identification code processing and generation method, device, terminal and storage medium

Publications (1)

Publication Number Publication Date
CN110390220A true CN110390220A (en) 2019-10-29

Family

ID=68284635

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810367483.7A Pending CN110390220A (en) 2018-04-23 2018-04-23 Identification code processing and generation method, device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN110390220A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102185839A (en) * 2011-04-22 2011-09-14 北京华玛科技有限公司 Fraud-preventing registration system based on dynamic two-dimension codes or dynamic bar codes
CN104282050A (en) * 2013-07-13 2015-01-14 海南大学 Attendance system based on smart phone digital certificates and time and position verification
CN105246034A (en) * 2015-09-29 2016-01-13 武汉钢铁(集团)公司 Method and device for dynamically generating two-dimension code based on position information
CN105574453A (en) * 2014-10-09 2016-05-11 腾讯科技(深圳)有限公司 Two-dimensional code processing method and mobile terminal
CN106447287A (en) * 2016-09-18 2017-02-22 福建新和兴信息技术有限公司 Attendance method and system based on QR code
CN106814906A (en) * 2015-11-30 2017-06-09 三星显示有限公司 Touch panel
CN106934629A (en) * 2015-12-29 2017-07-07 成都英黎科技有限公司 A kind of generation of solid-state positioning Quick Response Code and the method and system of checking
CN107507288A (en) * 2017-08-23 2017-12-22 重庆科技学院 A kind of quick Work attendance method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102185839A (en) * 2011-04-22 2011-09-14 北京华玛科技有限公司 Fraud-preventing registration system based on dynamic two-dimension codes or dynamic bar codes
CN104282050A (en) * 2013-07-13 2015-01-14 海南大学 Attendance system based on smart phone digital certificates and time and position verification
CN105574453A (en) * 2014-10-09 2016-05-11 腾讯科技(深圳)有限公司 Two-dimensional code processing method and mobile terminal
CN105246034A (en) * 2015-09-29 2016-01-13 武汉钢铁(集团)公司 Method and device for dynamically generating two-dimension code based on position information
CN106814906A (en) * 2015-11-30 2017-06-09 三星显示有限公司 Touch panel
CN106934629A (en) * 2015-12-29 2017-07-07 成都英黎科技有限公司 A kind of generation of solid-state positioning Quick Response Code and the method and system of checking
CN106447287A (en) * 2016-09-18 2017-02-22 福建新和兴信息技术有限公司 Attendance method and system based on QR code
CN107507288A (en) * 2017-08-23 2017-12-22 重庆科技学院 A kind of quick Work attendance method and device

Similar Documents

Publication Publication Date Title
KR20140054172A (en) Method and apparatus for using a multi-factor password or a dynamic password for enhanced security on a device
CN105337928B (en) Method for identifying ID, safety protection problem generation method and device
CN106504171A (en) A kind of public transport ticket checking method and system
CN104239804A (en) Data protecting method and device
TW201935390A (en) Data processing method and apparatus for claims settlement service, and electronic device and server
CN104318286B (en) Management method, management system and the terminal of NFC label data
CN205230158U (en) Access control system based on two -dimensional code
CN109117616B (en) Verification method and device, electronic equipment and computer readable storage medium
CN108182282A (en) Address authenticity verification methods, device and electronic equipment
US9313662B2 (en) Method of protecting a mobile-telephone-type telecommunication terminal
CN105912954A (en) Privacy information protection method and system suitable for mobile terminal
CN108460875A (en) A kind of entrance guard authentication method and device based on dynamic two-dimension code
CN110390220A (en) Identification code processing and generation method, device, terminal and storage medium
CN109767526A (en) Safety protection method, device, computer equipment and storage medium
CN106856474A (en) A kind of processing method and processing device of checking information
CN109033772A (en) A kind of input method and device of verification information
CN106469017A (en) A kind of terminal arranges the method and device of password and certification
CN106991308A (en) Safety certifying method, apparatus and system
CN110135140A (en) Information protecting method, device, computer equipment and storage medium
CN105790949A (en) Subscriber identity module card unlocking method and subscriber identity module card unlocking device
CN111192393A (en) Network door opening method and device and computer equipment
CN109618342A (en) It is a kind of for determining the method and apparatus of the operation permission information of user
CN109168138A (en) The recognition methods for the number of changing, device and equipment in net
CN108881383A (en) Address book data processing method, device, computer equipment and storage medium
CN109117666A (en) Lose terminal safety protection method, computer equipment 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