CN105792150A - Method and device for judging short message authentication code - Google Patents

Method and device for judging short message authentication code Download PDF

Info

Publication number
CN105792150A
CN105792150A CN201610109390.5A CN201610109390A CN105792150A CN 105792150 A CN105792150 A CN 105792150A CN 201610109390 A CN201610109390 A CN 201610109390A CN 105792150 A CN105792150 A CN 105792150A
Authority
CN
China
Prior art keywords
keyword
identifying code
character string
note
effective
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610109390.5A
Other languages
Chinese (zh)
Other versions
CN105792150B (en
Inventor
周奇
沈潇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yibin Bond China Smart Technology Co Ltd
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN201610109390.5A priority Critical patent/CN105792150B/en
Publication of CN105792150A publication Critical patent/CN105792150A/en
Application granted granted Critical
Publication of CN105792150B publication Critical patent/CN105792150B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • H04W4/14Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention is applicable to an intelligent terminal, and provides a method and device for judging a short message authentication code. The method comprises the following steps of: judging whether a short message is an authentication code short message or not while obtaining the short message; and, when the short message is the authentication code short message, judging an authentication code in the authentication code short message according to a keyword and an authentication code character string. By means of the invention, the extraction accuracy rate of the authentication code is increased; the problem that the authentication code in the short message cannot be correctly extracted in the prior art when the short message includes multiple authentication code keywords and/or multiple authentication code character strings according with requirements can be solved; and thus, the user experience is improved.

Description

The determination methods of short message verification code and device
Technical field
The invention belongs to technical field of intelligent equipment, particularly relate to determination methods and the device of a kind of short message verification code.
Background technology
Existing short message application program is after receiving note, it is possible to the identifying code extracting and showing in short message content.But, when note includes multiple identifying code keyword and/or includes multiple satisfactory identifying code character string, prior art cannot correctly extract the identifying code in note, and the accuracy rate of identifying code identification is low, poor user experience.
Summary of the invention
In consideration of it, the embodiment of the present invention provides determination methods and the device of a kind of short message verification code, to improve the accuracy rate that identifying code extracts.
First aspect, it is provided that the determination methods of a kind of short message verification code, described determination methods includes:
When getting note, it is judged that whether described note is identifying code note;
When described note is identifying code note, judge the identifying code in described identifying code note according to keyword and identifying code character string.
Second aspect, it is provided that the judgment means of a kind of short message verification code, described judgment means includes:
First judge module, for when getting note, it is judged that whether described note is identifying code note;
Second judge module, for when described note is identifying code note, judging the identifying code in described identifying code note according to keyword and identifying code character string.
Compared with prior art, the embodiment of the present invention, when getting note, first determines whether whether described note is identifying code note;When described note is identifying code note, then judge the identifying code in described identifying code note according to keyword and identifying code character string, thus improve the accuracy rate that identifying code extracts, solve the prior art when note includes multiple identifying code keyword and/or includes multiple satisfactory identifying code character string and cannot correctly extract the problem of the identifying code in note, improve the experience sense of user.The embodiment of the present invention additionally provides corresponding device, is described in detail individually below.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, the accompanying drawing used required in embodiment or description of the prior art will be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the premise not paying creative work, it is also possible to obtain other accompanying drawings according to these accompanying drawings.
Fig. 1 is the flowchart of the determination methods of the short message verification code that the embodiment of the present invention provides;
Fig. 2 be the embodiment of the present invention provide short message verification code determination methods in step S102 implement flow chart;
Fig. 3 be the short message verification code that the embodiment of the present invention provides determination methods in the flowchart of step S202;
Fig. 4 be the embodiment of the present invention provide short message verification code determination methods in step S202 according to the figure place of identifying code character string be verified code judge flowchart;
Fig. 5 be the embodiment of the present invention provide short message verification code determination methods in step S203 implement flow chart;
Fig. 6 be the short message verification code that another embodiment provides determination methods in the flowchart of step S102;
Fig. 7 is the composition structure chart of the judgment means of the short message verification code that the embodiment of the present invention provides.
Detailed description of the invention
In order to make the purpose of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein is only in order to explain the present invention, is not intended to limit the present invention.
The embodiment of the present invention, when getting note, first determines whether whether described note is identifying code note;When described note is identifying code note, then judge the identifying code in described identifying code note according to keyword and identifying code character string, thus improve the accuracy rate that identifying code extracts, solve the prior art when note includes multiple identifying code keyword and/or includes multiple satisfactory identifying code character string and cannot correctly extract the problem of the identifying code in note, improve the experience sense of user.The embodiment of the present invention additionally provides corresponding device, is described in detail individually below.
What Fig. 1 illustrated the determination methods of the short message verification code that the embodiment of the present invention provides realizes flow process.
In embodiments of the present invention, the determination methods of described short message verification code is applied to intelligent terminal, and described intelligent terminal can carry out short message receiving-transmitting, includes but not limited to smart mobile phone, intelligent watch etc..
Consulting Fig. 1, the determination methods of described short message verification code includes:
In step S101, obtain note.
In step s 102, it is judged that whether described note is identifying code note.
In embodiments of the present invention, after intelligent terminal gets note, first determine whether whether described note is identifying code note, if so, then perform step S103;Otherwise, perform step S105, process according to the mode of normal short message.
Here, it is preferable that by detecting, whether described note exists default keyword and identifying code character string, determine whether described note is identifying code note.If default keyword and identifying code character string being detected, it is determined that described note is identifying code note.Wherein it is possible to detect described keyword by the method for keyword match, and detect described identifying code character string by regular expression.Described identifying code character string is the character string of some bit digital and/or monogram.It should be noted that identifying code character string acquired here refers to the character string likely mixed, difference and effective identifying code for the numeral of identifying code, letter or numeral and letter.Identifying code note can include multiple identifying code character string.
In step s 103, the identifying code in described identifying code note is judged according to keyword and identifying code character string.
Alternatively, if default keyword and identifying code character string being detected, it is determined that described note is identifying code note, and the mode of the suspension window by presetting is shown on the predeterminated position of intelligent terminal's screen.Described predeterminated position includes but not limited to the left side of screen, right side, top, bottom or center etc..(after putting).Then it is verified code to judge.
A preferred exemplary as the present invention, described keyword includes the characteristic character similar, close to the identifying code meaning, such as identifying code, Validation Code, check code, check code, check code, inspection code, active coding, activation code, confirmation code, confirmation code, dynamic password, registration code, redemption code etc..Fig. 2 illustrates that step S102's in the determination methods of the short message verification code that the embodiment of the present invention provides implements flow process.Consulting Fig. 2, described step S102 includes:
In step s 201, all of described keyword in described note is found out.
In step S202, described keyword is chosen effective keyword.
In step S203, obtain described identifying code according to described effective keyword.
Here, when only one of which keyword in described note, then obtain described keyword as effective keyword, and obtain identifying code with described effective keyword.When described keyword has two and be above, then by judging that whether there is identifying code character string between each keyword and the first punctuation mark of its front and rear determines whether described keyword is effective keyword.Wherein, described punctuation mark include but not limited to Chinese fullstop ".", English fullstop ". ", Chinese branch ";", English branch ";", Chinese exclamation "!", English exclamation "!" etc..Exemplarily, Fig. 3 illustrates that the step S202's that the embodiment of the present invention provides realizes flow process.Consulting Fig. 3, step S202 includes:
In step S301, if the quantity of described keyword is at least two, then judge whether to exist between each described keyword and the first punctuation mark of its front and rear identifying code character string.
In step s 302, if having and keyword described in only one of which and when there is described identifying code character string between the first punctuation mark of its front and rear, then choosing described keyword is effective keyword.
Exemplarily, identifying code note 1 is provided:
[XX hotel] check code is XXXX, please fill in this check code.
In above-mentioned identifying code note 1, between first " check code " and first punctuation mark ", " thereafter, there is identifying code character string " XXXX ", second " check code " with thereafter first punctuation mark "." between be all absent from identifying code character string between the first punctuation mark ", " front with it.In this case, according to step S302, then with first " check code " for effective keyword.
In step S303, if being all absent from described identifying code character string between all described keywords and the first punctuation mark of its front and rear, then forward described keyword is effective keyword to be chosen in identifying code note position.
Such as, for identifying code note 2:
[popular comment] XXXX (net mobile phone dynamic code), please use this mobile phone dynamic code to complete checking.
Now, between the first punctuation mark " () " of first keyword " dynamic code " and its front and rear first punctuation mark ", " that, second keyword " dynamic code " is front with it and with thereafter first punctuation mark "." between be all absent from identifying code character string, then choose first " dynamic code " as effective keyword.
Further, if there is keyword described at least two and there is described identifying code character string between the first punctuation mark of its front and rear, then introduce the figure place of identifying code character string, judge to obtain effective keyword according to the figure place of identifying code character string.Fig. 4 illustrates in the step S202 that the embodiment of the present invention provides that what the figure place according to identifying code character string was verified that code judges realizes flow process.Consulting Fig. 4, step S202 also includes:
In step S401, if there is keyword described at least two and there is described identifying code character string between the first punctuation mark of its front and rear, then get rid of and do not meet the first pre-conditioned described keyword, it is judged that whether the figure place of the described identifying code character string that remaining described keyword is corresponding meets preset value.
Here, there is identifying code character string in described first pre-conditioned referring between keyword and the first punctuation mark of its front and rear.Therefore, here for getting rid of the keyword being absent from identifying code character string between keyword and the first punctuation mark of its front and rear.After eliminating, it is judged that whether the figure place of the described identifying code character string that remaining keyword is corresponding is preset value.Exemplarily, arranging rule according to general password, described preset value can be any value in 4 to 8.Therefore, step S401 is specially the figure place of the identifying code character string judging that remaining keyword is corresponding and whether reaches 4 to 8.
In step S402, if the described keyword that figure place meets the described identifying code character string of preset value corresponding has and only one of which, then choosing described keyword is effective keyword.
Exemplarily, for identifying code note 3:
[popular comment] mobile phone dynamic code is 2000, please uses this mobile phone dynamic code to complete checking in 30 minutes.
In above-mentioned identifying code note 3, first keyword " dynamic code " with thereafter first punctuation mark "; " between exist identifying code character string " 2000 " and second keyword " dynamic code " with its before there is identifying code character string " 30 " between first punctuation mark ", ".When the preset value of figure place is 4, owing to the figure place of identifying code character string " 30 " is 2, it is unsatisfactory for preset value;And the figure place of identifying code character string " 2000 " is 4, meet preset value.Then can obtaining the described keyword that above-mentioned identifying code note 3 median meets the described identifying code character string of preset value corresponding to have and only one of which, choosing described should " dynamic code " (i.e. first " dynamic code ") be effective keyword
In step S403, if the figure place of described identifying code character string corresponding to all described keywords is all unsatisfactory for preset value, then to be chosen in identifying code note position forward and the described keyword of the described identifying code character string that there is correspondence is effective keyword.
Exemplarily, for identifying code note 4:
[popular comment] popular comment net mobile telephone registration code is 123456789, please uses this mobile phone dynamic code to complete checking in 30 minutes.
In above-mentioned identifying code note 4, first keyword " registration code " with thereafter first punctuation mark "; " between there is identifying code character string " 123456789 ", second keyword " registration code " with its before there is identifying code character string " 30 " between first punctuation mark ", ".When the preset value of figure place is 4, owing to the figure place of identifying code character string " 30 " is 2, it is unsatisfactory for preset value;And the figure place of identifying code character string " 123456789 " is 4, also it is unsatisfactory for preset value;Then in above-mentioned identifying code note 4, the figure place of the described identifying code character string that all described keywords are corresponding is all unsatisfactory for preset value, the described keyword of the described identifying code character string then selecting position in identifying code note forward according to step S403 and there is correspondence is effective keyword, should choose first " registration code " as effective keyword in above-mentioned identifying code note 4.
Further, step S202 can also include:
In step s 404, if the described keyword that figure place meets the described identifying code character string of preset value corresponding is at least two, then get rid of and do not meet the second pre-conditioned described keyword, it is judged that the described identifying code character string that remaining described keyword is corresponding is positioned at the front or behind of described keyword.
Here, the described second pre-conditioned figure place for there is identifying code character string and described identifying code character string between described keyword and the first punctuation mark of its front and rear is preset value.If the described keyword that figure place meets the described identifying code character string of preset value corresponding is at least two, then gets rid of and do not meet the second pre-conditioned described keyword;Continue to judge that described identifying code character string corresponding to (namely meeting first pre-conditioned and the second pre-conditioned keyword) remaining described keyword is positioned at front or the rear of described keyword.
In step S405, if the described keyword that described identifying code character string is positioned at the rear of the described keyword of correspondence has and only has one, then choosing described keyword is effective keyword.
According to use habit, the embodiment of the present invention preferentially chooses the keyword after identifying code character string is positioned at keyword.
Exemplarily, for identifying code note 5:
Identifying code is 1234, please inputs this identifying code in the mobile phone that tail number is 0716 in 30 minutes.[China Merchants Bank]
In above-mentioned identifying code note 5, it is assumed that the preset value of figure place is 4.There is identifying code character string " 1234 " between first keyword " identifying code " and first punctuation mark ", " thereafter, figure place is 4, meets preset value;Second keyword " identifying code " with its before there is identifying code character string " 0716 " between first punctuation mark ", ", figure place is 4, also meets preset value.Then judge that described identifying code character string is in front or the rear of described keyword.It is clear that only the identifying code character string of first " identifying code " its correspondence is positioned at its rear, therefore select this first " identifying code " as effective keyword.
In step S406, if described identifying code character string corresponding to all described keywords is respectively positioned on the front of described keyword, then to be chosen in identifying code note position forward and the described keyword of the described identifying code character string that there is correspondence is effective keyword.
In step S 407, if the described identifying code character string having keyword described at least two corresponding is respectively positioned on the rear of described keyword, then getting rid of other keyword, to be chosen in identifying code note position in residue keyword forward and the described keyword of the described identifying code character string that there is correspondence is effective keyword.
Here, if identifying code character string be positioned at effective keyword after effective keyword have multiple, then the sequencing occurred in identifying code note according to these effective keywords, forward effective crucial of chosen position, be verified code and extract.
Exemplarily, for identifying code note 6:
Identifying code is 1234, please by this identifying code input to the mobile phone that tail number is 0716 in 30 minutes.[China Merchants Bank]
In above-mentioned identifying code note 6, it is assumed that the preset value of figure place is 4.There is identifying code character string " 1234 " between first keyword " identifying code " and first punctuation mark ", " thereafter, its figure place is 4, meets preset value;Second keyword " identifying code " and thereafter individual punctuation mark "." between there is identifying code character string " 0716 ", its figure place is 4, also meets preset value.Then judge that described identifying code character string is in front or the rear of described keyword.It is clear that the identifying code character string of two " identifying code " its correspondences is positioned at its rear, therefore select this first " identifying code " as effective keyword.
After obtaining effective keyword by step S202, then identifying code according to described effective keyword selection.Alternatively, Fig. 5 illustrates that the step S203's that the embodiment of the present invention provides implements flow process.Consulting Fig. 5, described step S203 includes:
In step S501, if there is corresponding identifying code character string before or after described effective keyword, then extract described identifying code character string as identifying code
In step S502, if described effective keyword front and rear all exists the identifying code character string of correspondence, then extract the identifying code character string after described effective keyword as identifying code.
Above-mentioned is a kind of general identifying code extraction scheme, it is possible to adapt to the identifying code note of various various criterion.By above-mentioned preferred exemplary, first pass through the effective keyword of position relationship Preliminary screening of keyword and identifying code character string, then effective keyword is again screened according to the figure place of identifying code character string, choose finally according to the position relationship between identifying code keyword and effective keyword and be verified effective keyword that code extracts, it is achieved thereby that to the validation verification of the effective keyword in identifying code note and screening, get rid of invalid keyword, be effectively improved the accuracy rate that identifying code extracts.
For the identifying code note that some patterns are fixing, it is also possible to develop special rule, to improve the efficiency of entirety.As another preferred exemplary of the present invention, can identifying that note is identifying code note and is made directly identifying code extraction by nominal key, described nominal key is the words that developer sums up out according to the identifying code note that pattern is fixing.The identifying code note that this pattern is fixed must comprise this nominal key.What Fig. 6 illustrated that another embodiment of the present invention provides realizes flow process based on what nominal key obtained identifying code.Consulting Fig. 6, described step S102 can also include:
In step s 601, all of described keyword in described note is found out.
In step S602, it is judged that whether described keyword exists nominal key.
In step S603, if there is described nominal key, then preset rules is directly adopted to obtain identifying code.
In step s 604, if being absent from described nominal key maybe cannot get identifying code by preset rules, then obtain effective identifying code by selecting effective keyword in described keyword.
Exemplarily, for identifying code note 7:
Short message verification code: 123456, you are about to now carrying out Net silver and log in, and would you please six short message verification code of output and complete Sign-On authentication [industrial and commercial bank].
In the short breath of logon authentication code of this industrial and commercial bank, because its type mode is usually fixed, can either directly through nominal key " industrial and commercial bank ", " logging in " judge this be industrial and commercial bank log in note, again because form is fixed, the position of identifying code can be directly found, thus can go out identifying code by extracting directly, so if it find that there are the words of nominal key just can be made directly above-mentioned judgement after finding out keyword by step S201, then performing above-mentioned general identifying code extraction scheme without nominal key.
Above-mentioned judges whether it is that specific identifying code note can be through a nominal key such as: industrial and commercial bank by nominal key, or Liang Ge nominal key industrial and commercial bank and logging in, concrete judgment mode is according to messaging format difference in different ways.
Alternatively, described preset rules includes:
When only existing unique described nominal key, using described nominal key as effective keyword, the identifying code character string that described effective keyword is corresponding is identifying code, between the described identifying code character string first punctuation mark after described nominal key and described nominal key;
When there is nominal key described at least two, using described nominal key forward in note as effective keyword, the identifying code character string that described effective keyword is corresponding is identifying code, between the described identifying code first punctuation mark after described nominal key and described nominal key.
Exemplarily, for identifying code note 7:
Short message verification code: 123456, you are about to now carrying out Net silver and log in, and would you please six short message verification code of output and complete Sign-On authentication [industrial and commercial bank].
If nominal key is " identifying code ", now, according to the above-mentioned preset rules of step, it is possible to being verified code is 123456.
By above-mentioned preferred exemplary, achieve and some known identifying code notes with set form are directly obtained identifying code, and direct validation verification to the identifying code character string in identifying code note, thus improve accuracy rate and the efficiency of identifying code identification, improve the experience sense of user.
Alternatively, in embodiments of the present invention, it is also possible to duplication and the stickup to the identifying code in described identifying code note.The determination methods of described short message verification code can also include:
When receiving the duplicate instructions of user's input, replicate described effective identifying code;
When receiving the stickup instruction of user's input, by the effective identifying code replicated output to the identifying code input frame specified.
The embodiment of the present invention, when getting note, first determines whether whether described note is identifying code note;When described note is identifying code note, then dissect keyword and identifying code character string in described identifying code note, judge and extract effective identifying code, thus improve the accuracy rate that identifying code extracts, solve the prior art when note includes multiple identifying code keyword and/or includes multiple satisfactory identifying code character string and cannot correctly extract the problem of the identifying code in note, improve the experience sense of user.
It should be noted that the above-mentioned identifying code note 1 to 7 provided is only used as the example of the present invention, only for illustrating the determination methods of the short message verification code that the embodiment of the present invention provides, it is not limited to the present invention.
Fig. 7 illustrates the composition structure of the judgment means of the short message verification code that the embodiment of the present invention provides, and for the ease of illustrating, illustrate only the part relevant to the embodiment of the present invention.
In embodiments of the present invention, the judgment means of described short message verification code is applied to intelligent terminal, it is possible to be the unit being built in the software unit of intelligent terminal, hardware cell or software and hardware combining.Alternatively, described intelligent terminal includes but not limited to smart mobile phone, intelligent watch etc..
Consulting Fig. 7, the judgment means of described short message verification code includes:
First judge module 71, for when getting note, it is judged that whether described note is identifying code note;
Second judge module 72, for when described note is identifying code note, judging the identifying code in described identifying code note according to keyword and identifying code character string.
Further, described first judge module 71 specifically for:
When getting note, detect and whether described note exists default keyword and identifying code character string;
If, it is determined that described note is identifying code note.
As a preferred exemplary of the present invention, described second judge module 72 includes:
Query unit 721, is used for finding out in described note all of described keyword;
Effective keyword selection unit 722, for choosing effective keyword in described keyword;
Identifying code acquiring unit 723, for obtaining described identifying code according to described effective keyword.
Further, described effective keyword selection unit 722 includes:
Judgment sub-unit 7221, if the quantity for described keyword is at least two, then judges whether to exist between each described keyword and the first punctuation mark of its front and rear identifying code character string;
Choose subelement 7222, if for having and keyword described in only one of which and when there is described identifying code character string between the first punctuation mark of its front and rear, then choosing described keyword is effective keyword;
If being all absent from described identifying code character string between all described keywords and the first punctuation mark of its front and rear, then forward described keyword is effective keyword to be chosen in identifying code note position.
Further, described judgment sub-unit 7221 also includes:
If there is keyword described at least two and there is described identifying code character string between the first punctuation mark of its front and rear, then get rid of and do not meet the first pre-conditioned described keyword, it is judged that whether the figure place of the described identifying code character string that remaining described keyword is corresponding meets preset value;
Described subelement 7222 of choosing is additionally operable to:
If the described keyword that figure place meets the described identifying code character string of preset value corresponding has and only one of which, then choosing described keyword is effective keyword;
If the figure place of the described identifying code character string that all described keywords are corresponding is all unsatisfactory for preset value, then to be chosen in identifying code note position forward and the described keyword of the described identifying code character string that there is correspondence is effective keyword.
Further, described judgment sub-unit 7221 is additionally operable to:
If the described keyword that figure place meets the described identifying code character string of preset value corresponding is at least two, then get rid of and do not meet the second pre-conditioned described keyword, it is judged that the described identifying code character string that remaining described keyword is corresponding is positioned at the front or behind of described keyword;
Described subelement 7222 of choosing is additionally operable to:
If the described keyword that described identifying code character string is positioned at the rear of the described keyword of correspondence has and only has one, then choosing described keyword is effective keyword;
If the described identifying code character string that all described keywords are corresponding is respectively positioned on the front of described keyword, then to be chosen in identifying code note position forward and the described keyword of the described identifying code character string that there is correspondence is effective keyword;
If the described identifying code character string having keyword described at least two corresponding is respectively positioned on the rear of described keyword, then getting rid of other keyword, to be chosen in identifying code note position in residue keyword forward and the described keyword of the described identifying code character string that there is correspondence is effective keyword.
Further, described identifying code acquiring unit 723 specifically for:
If there is corresponding identifying code character string before or after described effective keyword, then extract described identifying code character string as identifying code;
If described effective keyword front and rear all exists the identifying code character string of correspondence, then extract the identifying code character string after described effective keyword as identifying code.
As another preferred exemplary of the present invention, described second judge module 72 also includes:
Nominal key acquiring unit 724, is used in finding out described note after all of described keyword, it is judged that whether there is nominal key in described keyword;
Identifying code acquiring unit 723 is additionally operable to, if there is described nominal key, then directly adopts preset rules to obtain identifying code;If being absent from described nominal key maybe cannot get identifying code by preset rules, then obtain identifying code by selecting effective keyword in described keyword.
Alternatively, described preset rules includes:
When only existing unique described nominal key, using described nominal key as effective keyword, the identifying code character string that described effective keyword is corresponding is identifying code, between the described identifying code character string first punctuation mark after described nominal key and described nominal key;
When there is nominal key described at least two, using described nominal key forward in note as effective keyword, the identifying code character string that described effective keyword is corresponding is identifying code, between the described identifying code first punctuation mark after described nominal key and described nominal key
By above-mentioned preferred exemplary, it is achieved that the validation verification to the identifying code character string in identifying code note, improve the accuracy rate of identifying code identification, and then improve the experience sense of user.
Alternatively, in embodiments of the present invention, it is also possible to duplication and the stickup to the identifying code in described identifying code note.The judgment means of described short message verification code can also include:
Replication module, for when receiving the duplicate instructions of user's input, replicating described effective identifying code;
Stickup module, for when receiving the stickup instruction of user's input, by the effective identifying code replicated output to the identifying code input frame specified.
It should be noted that, device in the embodiment of the present invention may be used for the whole technical schemes realizing in said method embodiment, the function of its each functional module can implement according to the method in said method embodiment, it implements the associated description that process can refer in examples detailed above, repeats no more herein.
The embodiment of the present invention, when getting note, first determines whether whether described note is identifying code note;When described note is identifying code note, then dissect keyword and identifying code character string in described identifying code note, judge and extract effective identifying code, thus improve the accuracy rate that identifying code extracts, solve the prior art when note includes multiple identifying code keyword and/or includes multiple satisfactory identifying code character string and cannot correctly extract the problem of the identifying code in note, improve the experience sense of user.
Those of ordinary skill in the art are it is to be appreciated that the unit of each example that describes in conjunction with the embodiments described herein and algorithm steps, it is possible to being implemented in combination in of electronic hardware or computer software and electronic hardware.These functions perform with hardware or software mode actually, depend on application-specific and the design constraint of technical scheme.Professional and technical personnel specifically can should be used for using different methods to realize described function to each, but this realization is it is not considered that beyond the scope of this invention.
Those skilled in the art is it can be understood that arrive, for convenience and simplicity of description, and the device of foregoing description and the specific works process of unit, it is possible to reference to the corresponding process in preceding method embodiment, do not repeat them here.
In several embodiments provided herein, it should be understood that the determination methods of disclosed short message verification code and device, it is possible to realize by another way.Such as, device embodiment described above is merely schematic, such as, described module, unit division, being only a kind of logic function to divide, actual can have other dividing mode when realizing, for instance multiple unit or assembly can in conjunction with or be desirably integrated into another system, or some features can ignore, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be through INDIRECT COUPLING or the communication connection of some interfaces, device or unit, it is possible to be electrical, machinery or other form.
The described unit illustrated as separating component can be or may not be physically separate, and the parts shown as unit can be or may not be physical location, namely may be located at a place, or can also be distributed on multiple NE.Some or all of unit therein can be selected according to the actual needs to realize the purpose of the present embodiment scheme.
It addition, each functional unit, module in each embodiment of the present invention can be integrated in a processing unit, it is also possible to be that unit, module are individually physically present, it is also possible to two or more unit, module are integrated in a unit.
If described function is using the form realization of SFU software functional unit and as independent production marketing or use, it is possible to be stored in a computer read/write memory medium.Based on such understanding, part or the part of this technical scheme that prior art is contributed by technical scheme substantially in other words can embody with the form of software product, this computer software product is stored in a storage medium, including some instructions with so that a computer equipment (can be personal computer, server, or the network equipment etc.) perform all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium includes: USB flash disk, portable hard drive, read only memory (ROM, Read-OnlyMemory), the various media that can store program code such as random access memory (RAM, RandomAccessMemory), magnetic disc or CD.
The above; being only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, any those familiar with the art is in the technical scope that the invention discloses; change can be readily occurred in or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should described be as the criterion with scope of the claims.

Claims (18)

1. the determination methods of a short message verification code, it is characterised in that described determination methods includes:
When getting note, it is judged that whether described note is identifying code note;
When described note is identifying code note, judge the identifying code in described identifying code note according to keyword and identifying code character string.
2. the determination methods of short message verification code as claimed in claim 1, it is characterised in that described when getting note, it is judged that whether described note is that identifying code note includes:
When getting note, detect and whether described note exists default keyword and identifying code character string;
If, it is determined that described note is identifying code note.
3. the determination methods of short message verification code as claimed in claim 2, it is characterised in that the described identifying code judged in described identifying code note according to keyword and identifying code character string includes:
Find out all of described keyword in described note;
Described keyword is chosen effective keyword;
Described identifying code is obtained according to described effective keyword.
4. the determination methods of short message verification code as claimed in claim 3, it is characterised in that described choose effective keyword in described keyword and include:
If the quantity of described keyword is at least two, then judge whether to exist between each described keyword and the first punctuation mark of its front and rear identifying code character string;
If having and keyword described in only one of which and when there is described identifying code character string between the first punctuation mark of its front and rear, then choosing described keyword is effective keyword;
If being all absent from described identifying code character string between all described keywords and the first punctuation mark of its front and rear, then forward described keyword is effective keyword to be chosen in identifying code note position.
5. the determination methods of short message verification code as claimed in claim 4, it is characterised in that described choose effective keyword in described keyword and also include:
If there is keyword described at least two and there is described identifying code character string between the first punctuation mark of its front and rear, then get rid of and do not meet the first pre-conditioned described keyword, it is judged that whether the figure place of the described identifying code character string that remaining described keyword is corresponding meets preset value;
If the described keyword that figure place meets the described identifying code character string of preset value corresponding has and only one of which, then choosing described keyword is effective keyword;
If the figure place of the described identifying code character string that all described keywords are corresponding is all unsatisfactory for preset value, then to be chosen in identifying code note position forward and the described keyword of the described identifying code character string that there is correspondence is effective keyword.
6. the determination methods of short message verification code as claimed in claim 5, it is characterised in that described choose effective keyword in described keyword and also include:
If the described keyword that figure place meets the described identifying code character string of preset value corresponding is at least two, then get rid of and do not meet the second pre-conditioned described keyword, it is judged that the described identifying code character string that remaining described keyword is corresponding is positioned at the front or behind of described keyword;
If the described keyword that described identifying code character string is positioned at the rear of the described keyword of correspondence has and only has one, then choosing described keyword is effective keyword;
If the described identifying code character string that all described keywords are corresponding is respectively positioned on the front of described keyword, then to be chosen in identifying code note position forward and the described keyword of the described identifying code character string that there is correspondence is effective keyword;
If the described identifying code character string having keyword described at least two corresponding is respectively positioned on the rear of described keyword, then getting rid of other keyword, to be chosen in identifying code note position in residue keyword forward and the described keyword of the described identifying code character string that there is correspondence is effective keyword.
7. the determination methods of the short message verification code as described in any one of claim 3 to 6, it is characterised in that described according to described effective keyword obtain described identifying code also include:
If there is corresponding identifying code character string before or after described effective keyword, then extract described identifying code character string as identifying code;
If described effective keyword front and rear all exists the identifying code character string of correspondence, then extract the identifying code character string after described effective keyword as identifying code.
8. the determination methods of short message verification code as claimed in claim 2, it is characterised in that in finding out described note after all of described keyword, method of stating also includes:
Judge whether described keyword exists nominal key;
If there is described nominal key, then preset rules is directly adopted to obtain identifying code;
If being absent from described nominal key maybe cannot get identifying code by preset rules, then obtain identifying code by selecting effective keyword in described keyword.
9. the determination methods of short message verification code as claimed in claim 8, it is characterised in that described preset rules includes:
When only existing unique described nominal key, using described nominal key as effective keyword, the identifying code character string that described effective keyword is corresponding is identifying code, between the described identifying code character string first punctuation mark after described nominal key and described nominal key;
When there is nominal key described at least two, using described nominal key forward in note as effective keyword, the identifying code character string that described effective keyword is corresponding is identifying code, between the described identifying code first punctuation mark after described nominal key and described nominal key.
10. the judgment means of a short message verification code, it is characterised in that described judgment means includes:
First judge module, for when getting note, it is judged that whether described note is identifying code note;
Second judge module, for when described note is identifying code note, judging the identifying code in described identifying code note according to keyword and identifying code character string.
11. the judgment means of short message verification code as claimed in claim 10, it is characterised in that described first judge module specifically for:
When getting note, detect and whether described note exists default keyword and identifying code character string;
If, it is determined that described note is identifying code note.
12. the judgment means of short message verification code as claimed in claim 11, it is characterised in that described second judge module includes:
Query unit, is used for finding out in described note all of described keyword;
Effective keyword selection unit, for choosing effective keyword in described keyword;
Identifying code acquiring unit, for obtaining described identifying code according to described effective keyword.
13. the judgment means of short message verification code as claimed in claim 12, it is characterised in that described effective keyword selection unit includes:
Judgment sub-unit, if the quantity for described keyword is at least two, then judges whether to exist between each described keyword and the first punctuation mark of its front and rear identifying code character string;
Choose subelement, if for having and keyword described in only one of which and when there is described identifying code character string between the first punctuation mark of its front and rear, then choosing described keyword is effective keyword;
If being all absent from described identifying code character string between all described keywords and the first punctuation mark of its front and rear, then forward described keyword is effective keyword to be chosen in identifying code note position.
14. the judgment means of short message verification code as claimed in claim 13, it is characterised in that described judgment sub-unit also includes:
If there is keyword described at least two and there is described identifying code character string between the first punctuation mark of its front and rear, then get rid of and do not meet the first pre-conditioned described keyword, it is judged that whether the figure place of the described identifying code character string that remaining described keyword is corresponding meets preset value;
Described subelement of choosing is additionally operable to:
If the described keyword that figure place meets the described identifying code character string of preset value corresponding has and only one of which, then choosing described keyword is effective keyword;
If the figure place of the described identifying code character string that all described keywords are corresponding is all unsatisfactory for preset value, then to be chosen in identifying code note position forward and the described keyword of the described identifying code character string that there is correspondence is effective keyword.
15. the judgment means of short message verification code as claimed in claim 14, it is characterised in that described judgment sub-unit is additionally operable to:
If the described keyword that figure place meets the described identifying code character string of preset value corresponding is at least two, then get rid of and do not meet the second pre-conditioned described keyword, it is judged that the described identifying code character string that remaining described keyword is corresponding is positioned at the front or behind of described keyword;
Described subelement of choosing is additionally operable to:
If the described keyword that described identifying code character string is positioned at the rear of the described keyword of correspondence has and only has one, then choosing described keyword is effective keyword;
If the described identifying code character string that all described keywords are corresponding is respectively positioned on the front of described keyword, then to be chosen in identifying code note position forward and the described keyword of the described identifying code character string that there is correspondence is effective keyword;
If the described identifying code character string having keyword described at least two corresponding is respectively positioned on the rear of described keyword, then getting rid of other keyword, to be chosen in identifying code note position in residue keyword forward and the described keyword of the described identifying code character string that there is correspondence is effective keyword.
16. the judgment means of the short message verification code as described in any one of claim 12 to 15, it is characterised in that described identifying code acquiring unit specifically for:
If there is corresponding identifying code character string before or after described effective keyword, then extract described identifying code character string as identifying code;
If described effective keyword front and rear all exists the identifying code character string of correspondence, then extract the identifying code character string after described effective keyword as identifying code.
17. the judgment means of short message verification code as claimed in claim 12, it is characterised in that described second judge module also includes:
Nominal key acquiring unit, is used in finding out described note after all of described keyword, it is judged that whether there is nominal key in described keyword;
Identifying code acquiring unit, if for there is described nominal key, then directly adopts preset rules to obtain identifying code;If being absent from described nominal key maybe cannot get identifying code by preset rules, then obtain identifying code by selecting effective keyword in described keyword.
18. the judgment means of short message verification code as claimed in claim 17, it is characterised in that described preset rules includes:
When only existing unique described nominal key, using described nominal key as effective keyword, the identifying code character string that described effective keyword is corresponding is identifying code, between the described identifying code character string first punctuation mark after described nominal key and described nominal key;
When there is nominal key described at least two, using described nominal key forward in note as effective keyword, the identifying code character string that described effective keyword is corresponding is identifying code, between the described identifying code first punctuation mark after described nominal key and described nominal key.
CN201610109390.5A 2016-02-26 2016-02-26 The judgment method and device of short message verification code Active CN105792150B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610109390.5A CN105792150B (en) 2016-02-26 2016-02-26 The judgment method and device of short message verification code

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610109390.5A CN105792150B (en) 2016-02-26 2016-02-26 The judgment method and device of short message verification code

Publications (2)

Publication Number Publication Date
CN105792150A true CN105792150A (en) 2016-07-20
CN105792150B CN105792150B (en) 2019-03-08

Family

ID=56403864

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610109390.5A Active CN105792150B (en) 2016-02-26 2016-02-26 The judgment method and device of short message verification code

Country Status (1)

Country Link
CN (1) CN105792150B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106101451A (en) * 2016-08-18 2016-11-09 中国联合网络通信集团有限公司 SMS processing method, mobile terminal
CN106302139A (en) * 2016-11-15 2017-01-04 青岛海信移动通信技术股份有限公司 Message treatment method and device
CN106528305A (en) * 2016-10-28 2017-03-22 宇龙计算机通信科技(深圳)有限公司 Information input method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103546877A (en) * 2013-10-30 2014-01-29 上海斐讯数据通信技术有限公司 Method and system for obtaining and inputting content code and mobile terminal
CN103902740A (en) * 2014-04-22 2014-07-02 锤子科技(北京)有限公司 Short message authentication code residing method and device
CN105049607A (en) * 2015-06-24 2015-11-11 广东欧珀移动通信有限公司 Text message display method and mobile terminal
CN105101122A (en) * 2015-06-29 2015-11-25 安一恒通(北京)科技有限公司 Verification code input method and device
CN105263126A (en) * 2015-08-31 2016-01-20 小米科技有限责任公司 Method, device and system for short message verification

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103546877A (en) * 2013-10-30 2014-01-29 上海斐讯数据通信技术有限公司 Method and system for obtaining and inputting content code and mobile terminal
CN103902740A (en) * 2014-04-22 2014-07-02 锤子科技(北京)有限公司 Short message authentication code residing method and device
CN105049607A (en) * 2015-06-24 2015-11-11 广东欧珀移动通信有限公司 Text message display method and mobile terminal
CN105101122A (en) * 2015-06-29 2015-11-25 安一恒通(北京)科技有限公司 Verification code input method and device
CN105263126A (en) * 2015-08-31 2016-01-20 小米科技有限责任公司 Method, device and system for short message verification

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106101451A (en) * 2016-08-18 2016-11-09 中国联合网络通信集团有限公司 SMS processing method, mobile terminal
CN106528305A (en) * 2016-10-28 2017-03-22 宇龙计算机通信科技(深圳)有限公司 Information input method and device
CN106302139A (en) * 2016-11-15 2017-01-04 青岛海信移动通信技术股份有限公司 Message treatment method and device

Also Published As

Publication number Publication date
CN105792150B (en) 2019-03-08

Similar Documents

Publication Publication Date Title
CN103164698B (en) Text fingerprints library generating method and device, text fingerprints matching process and device
CN109522538A (en) Table content divides column method, apparatus, equipment and storage medium automatically
CN109683907A (en) Code completion method, apparatus, equipment and storage medium
CN104246759A (en) Application programming interface testing services
WO2006078912A3 (en) Automatic dynamic contextual data entry completion system
CN102081515A (en) Method and equipment for providing input data perceptible to context
CN102135814A (en) Word input method and system
CN105792150A (en) Method and device for judging short message authentication code
CN104516921A (en) Automatic response method and device
CN109634570A (en) Front and back end integrated development method, device, equipment and computer readable storage medium
CN108053545A (en) Certificate verification method and apparatus, server, storage medium
CN103310139A (en) Input validation method and input validation device
CN101202754A (en) Method and system for storing network information
CN102291369A (en) Control method and corresponding control device for verifying junk information settings
CN103279350A (en) Language list used for source selection
CN108268438A (en) A kind of content of pages extracting method, device and client
CN111144117A (en) Knowledge graph Chinese address disambiguation method
CN106714123A (en) Message transmission method and communication device
CN104933030B (en) A kind of Uighur spell checking methods and device
CN107169011A (en) The original recognition methods of webpage based on artificial intelligence, device and storage medium
CN104156430A (en) Device and method for fast extracting Android mobile phone data
CN108829882A (en) Formation gathering method, device, terminal and medium
CN103927327B (en) A kind of database data of collaborative operation of information systems catches tactics configuring method
CN103761202B (en) A kind of data storage node hard disk position identification method and system
CN105159790B (en) A kind of data rescue method and file server

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20190701

Address after: 644000 West Section of Xinggang Road, Lingang Economic and Technological Development Zone, Yibin City, Sichuan Province, 27

Patentee after: Yibin bond China smart technology Co., Ltd.

Address before: 518029 Shenzhen, Futian District, Guangdong Province garden Ridge Street, Bagua road 31, Zhongxin science and Technology Building 9 storey (building 10 10) 1001

Patentee before: Zhou Qi

TR01 Transfer of patent right