WO2015161760A1 - 短信息验证码的驻留方法及装置 - Google Patents

短信息验证码的驻留方法及装置 Download PDF

Info

Publication number
WO2015161760A1
WO2015161760A1 PCT/CN2015/076933 CN2015076933W WO2015161760A1 WO 2015161760 A1 WO2015161760 A1 WO 2015161760A1 CN 2015076933 W CN2015076933 W CN 2015076933W WO 2015161760 A1 WO2015161760 A1 WO 2015161760A1
Authority
WO
WIPO (PCT)
Prior art keywords
verification code
short message
keyword
code
preset time
Prior art date
Application number
PCT/CN2015/076933
Other languages
English (en)
French (fr)
Inventor
耿达维
张
Original Assignee
北京锤子数码科技有限公司
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 北京锤子数码科技有限公司 filed Critical 北京锤子数码科技有限公司
Priority to US15/305,025 priority Critical patent/US10795942B2/en
Publication of WO2015161760A1 publication Critical patent/WO2015161760A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • G06F16/90335Query processing
    • G06F16/90344Query processing by using string matching techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • G06F16/9038Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/42User authentication using separate channels for security data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance

Definitions

  • the present invention relates to the field of mobile communications, and in particular, to a method and apparatus for camping a short message verification code.
  • mobile device short messages are often used to receive various verification, registration, activation or confirmation verification messages.
  • the user receives the short message notification, checks the short message, reads the short message, recognizes the verification code from the text of the short message, and then fills in the verification code in the corresponding place on the verification code interface.
  • the whole step is very cumbersome, especially when the verification code and the input verification code are the same mobile device, it is frequently required to frequently switch between the short message application interface and the verification code input interface.
  • the verification code needs to be remembered for a period of time, so that the verification code can be accurately input on the verification code input interface. This is a bad experience for users with poor memory. Therefore, a new method is needed now, which is convenient for users to fill in the verification code and improve the user experience.
  • the present invention provides a method and a device for camping a short message verification code, so that the user can conveniently fill in the user verification code, thereby improving the user experience.
  • a method for residing a short message verification code comprising:
  • the short message content includes a keyword
  • a regular expression is used to the short message.
  • the verification code is matched, and the verification code is composed of numbers, letters or a combination thereof;
  • the verification code is displayed on the current interface for a preset time.
  • the keywords include:
  • One or more of a verification code, a verification code, an activation code, an activation code, a check code, a check code, a confirmation code, a confirmation code, a check code, and a verification code are included in a verification code, a verification code, a verification code, an activation code, an activation code, a check code, a check code, a confirmation code, a confirmation code, a check code, and a verification code.
  • the method further includes:
  • the preset time is 20S.
  • displaying the verification code on the current interface for a preset time comprises:
  • the notification is displayed by the status bar.
  • displaying the character string on the current interface for a preset time comprises:
  • the notification is displayed by the status bar.
  • the status bar is displayed at the top, bottom, left or right of the display of the mobile device.
  • a resident device for a short message verification code comprising:
  • a keyword matching unit for performing keyword matching on short message content by using a regular expression
  • a verification code matching unit configured to perform a verification code matching on the short message content by using a regular expression when the short message content includes a keyword, where the verification code is a number, a letter or a combination thereof;
  • a first obtaining unit configured to obtain a matching verification code
  • a display unit configured to display the verification code on the current interface for a preset time.
  • the method further includes:
  • a second obtaining unit configured to acquire a current moment when the short message content includes a keyword Key words.
  • the method further includes:
  • a combining unit configured to form the current keyword and the verification code into a character string
  • the display unit is further configured to display the character string on the current interface for a preset time.
  • the present invention has the following beneficial effects:
  • the verification code in the short message can be automatically extracted, and the preset time is displayed on the current interface. During this preset time, the user can fill in the verification code according to the displayed verification code on the verification code input interface. Therefore, the user does not need to memorize the verification code, and the user does not need to frequently switch between the short message application and the current application.
  • the verification code is directly displayed on the current interface of the verification code, which greatly facilitates the process of filling in the verification code and improves the user experience.
  • FIG. 1 is a flowchart of a method for camping a short message verification code according to an embodiment of the present invention
  • FIG. 2 is a flowchart of another method for camping a short message verification code according to an embodiment of the present invention
  • FIG. 3 is a flowchart of another method for camping a short message verification code according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a device for camping a short message verification code according to an embodiment of the present invention
  • FIG. 5 is a schematic structural diagram of another apparatus for camping a short message verification code according to an embodiment of the present invention.
  • the present invention provides a method for camping a short message verification code. As shown in FIG. 1, the method includes the following steps:
  • Step S101 performing keyword matching on the short message content by using a regular expression
  • Regular expressions are also known as regular notation and regular notation. In computer science, a single string used to describe or match a series of strings that conform to a syntactic rule. Regular expressions are often used to retrieve and/or replace textual content that conforms to a pattern.
  • the present invention uses a regular expression to retrieve whether or not a keyword is included in the short message content. Specifically, all the phrases in the short message content are matched with all the keywords, and it is determined whether the short message content includes the keywords.
  • the keyword When performing keyword matching, the keyword includes one or more of a verification code, a verification code, an activation code, an activation code, a check code, a verification code, a confirmation code, a confirmation code, a verification code, and a verification code. It can be understood that the keywords in the present invention may also include other words similar to the verification code.
  • the short message content is matched according to the above keyword.
  • the short message content includes one of the keywords, the short message content is considered to include the keyword, and the process proceeds to step S102.
  • the short message content does not contain any words related to the keyword, it is considered that the short message does not contain the verification code and is not processed.
  • Step S102 When the short message content includes a keyword, the verification code is matched by using a regular expression; wherein the verification code is a number, a letter or a combination thereof.
  • the short message content may be considered to contain a verification code, so the regular expression is continued to match the short message content.
  • the current verification code is mostly composed of 4-9 digits, letters or a combination thereof. Therefore, in this embodiment, when the verification code is matched, 4-9 digits or letters are matched, and 4-9 numbers or letters are matched. At the time, it is considered that the verification code is matched. If there are too many or too few digits in the matching number or letter, it is considered that the verification code is not included, and no subsequent processing is performed. It can be understood that the number of digits of the verification code is not the focus of the present invention, and if the verification code of other digits is used in real time, the present invention also belongs to the present invention. The scope of protection.
  • the main content of our short message content is mainly Chinese characters.
  • the regular expression is used to extract the short message content string, and it is judged whether the length of the string is within the range of 4-9. If the range is within the range, the string is temporarily suspended. Set as the verification code. If there are multiple strings in the short message content that meet the requirements of the verification code, the verification code is not extracted for the short message. Because multiple strings can be extracted, it will cause trouble to the user, and the user cannot confirm that it is the required verification code. Therefore, when there are multiple strings satisfying the verification code requirement, the verification code extraction is not performed on the content of the short message. At this point, the user can open the short message and fill in the verification code in the traditional way.
  • Step S103 Obtain a matching verification code.
  • Step S104 Display the verification code on the current interface for a preset time.
  • the verification code will preset the time on the current interface, so that the user can complete the input of the verification code during the period of time.
  • the preset time is 20S.
  • the verification code and the preset time are generated to send a notification to the status bar, and the notification is displayed by the status bar. That is: the notification is displayed by the status bar for a preset time.
  • the current status bar may be at the top, bottom, left or right of the screen of the mobile device, that is, the location where the verification code is displayed may be arbitrary, so as not to hinder the user from inputting the verification code.
  • the present invention provides a method for residing a short message verification code.
  • the verification code in the short message can be automatically extracted and displayed on the current interface.
  • the preset time can be displayed on the verification code interface according to the user.
  • the verification code fills in the verification code, and does not require the user to memorize the verification code, nor does it require the user to frequently switch between the short message application and the current application.
  • the verification code is directly displayed on the current interface of the verification code, and only one step is required to fill in the verification code, that is, manually inputting the verification code, which greatly facilitates the process of filling in the verification code and improves the user experience.
  • the content of the verification code resides on the current interface, and on the other hand, the user is prompted to verify the content of the code, and the user can read and obtain the verification code without filling the current operation, and the present invention does not Roughly put the verification code into the input box of the current interface. If the current input box is not the input box of the current verification code, it will bring unnecessary trouble to the user.
  • the present invention can solve the above problem well and improve the problem. user experience.
  • the present invention further provides another embodiment, as shown in FIG. 2 As shown, this embodiment includes the following steps:
  • Step S201 performing keyword matching on the short message content by using a regular expression
  • Step S202 When the short message content includes a keyword, acquiring a current keyword;
  • Step S203 When the short message content includes a keyword, the short message content is verified by a regular expression, and the verification code is a number, a letter or a combination thereof;
  • Step S204 Obtain a matching verification code.
  • Step S205 Form the current keyword and the verification code into a character string
  • Step S206 Display the character string on the current interface for a preset time.
  • the character string and the preset time are generated to generate a notification to the status bar; the notification is displayed by the status bar.
  • the simple verification code is no longer displayed on the current interface, but a character string composed of the current keyword and the verification code is displayed on the current interface, and the user is informed to display the 4-9 digits and/or letters on the current interface.
  • the combination is a verification code that makes the user experience better.
  • the present invention also discloses a specific embodiment, as shown in FIG. 3, the specific embodiment includes:
  • Step S301 The user clicks the button of “acquire verification code” on the interface that needs to obtain the verification code
  • Step S302 The mobile device receives the short message including the verification code, and the content of the short message is: your verification code is relu1o. For the security of your account, please do not forward the verification message to others. [Hammer Technology].
  • Step S303 Extract the current keyword and the verification code, and combine them into a character string.
  • the current keyword is “verification code”
  • the content of the verification code is “relu1o”
  • the combined string is “verification code: relu1o”.
  • Step S304 Send the string and time parameters to the status bar, the status bar displays the content of the current string, and displays the string in the status bar to display the time given by the time parameter.
  • the present invention further provides a resident device for a short message verification code, including:
  • the keyword matching unit 100 is configured to perform keyword matching on the short message content by using a regular expression
  • the verification code matching unit 200 is configured to perform verification code matching on the short message content by using a regular expression when the short message content includes a keyword, where the verification code is a number and a letter. Or a combination thereof;
  • the first obtaining unit 300 is configured to obtain a matching verification code.
  • the display unit 400 is configured to display the verification code on the current interface for a preset time.
  • the device further includes:
  • the second obtaining unit 500 is configured to acquire a current keyword when the short message content includes a keyword.
  • the device further includes:
  • a combining unit 600 configured to form the current keyword and the verification code into a character string
  • the display unit 400 is further configured to display the character string on the current interface for a preset time.
  • the present invention provides a resident device for a short message verification code.
  • the device can automatically extract the verification code in the short message and display a preset time on the current interface.
  • the user can display the verification code interface according to the preset time.
  • the verification code fills in the verification code, and does not require the user to memorize the verification code, nor does it require the user to frequently switch between the short message application and the current application.
  • the verification code is directly displayed on the current interface of the verification code, and only one step is required to fill in the verification code. That is, manually inputting the verification code, which greatly facilitates the process of filling in the verification code and improves the user experience.
  • the functions described in the method of the present embodiment can be stored in a computing device readable storage medium if implemented in the form of a software functional unit and sold or used as a standalone product. Based on such understanding, a portion of the embodiments of the present invention that contributes to the prior art or a portion of the technical solution may be embodied in the form of a software product stored in a storage medium, including a plurality of instructions for causing a
  • the computing device (which may be a personal computer, server, mobile computing device, or network device, etc.) performs all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .

Abstract

本发明提供了一种短信息验证码的驻留方法及装置,本方法中包括采用正则表达式对短信息内容进行关键词匹配;当所述短信息内容中包含关键词时,采用正则表达式对所述短信息内容进行验证码匹配,获取匹配后的验证码;将所述验证码在当前界面显示预设时间。本方法能够自动提取短信息中的验证码并在当前界面显示预设时间,此预设时间内用户可以在验证码界面根据显示的验证码填写验证码,不需用户记忆验证码,也不需要用户在短信息应用和当前应用之间频繁切换,本方法中验证码直接显示在验证码的当前界面,填写验证码仅需要一个步骤,即手动输入填写验证码,大大方便了用户填写验证码的过程,提升了用户体验。

Description

短信息验证码的驻留方法及装置
本发明要求于2014年04月22日提交中国专利局、申请号为201410162920.3、发明名称为“短信息验证码的驻留方法及装置”的中国专利发明的优先权,其全部内容通过引用结合在本发明中。
技术领域
本发明涉及移动通讯领域,尤其涉及一种短信息验证码的驻留方法及装置。
背景技术
目前,移动设备短信息很多时候都用来接收各种消费、注册、激活或确认的验证短信。但是,用户从收到短信通知、到查看短信、阅读短信、从短信正文中辨认出验证码,再在验证码界面相应的地方填写验证码。整个步骤十分繁琐,尤其是当接收验证码和输入验证码为同一移动设备时,需要频繁在短信应用界面和验证码输入界面之间频繁切换。
并且,用户在短信应用界面看到验证码后,还需要记住验证码一段时间,以便在验证码输入界面准确输入验证码。这对于记忆力差的用户而言,更是一种不好的体验。因此现在需要一种新的方法,能够方便用户填写验证码,提升用户体验。
发明内容
有鉴于此,本发明提供了一种短信息验证码的驻留方法及装置,以便能够方便用户填写用户验证码,进而提升用户体验。
为了实现上述目的,本发明实施例提供了以下技术方案:
一种短信息验证码的驻留方法,包括:
采用正则表达式对短信息内容进行关键词匹配;
当所述短信息内容中包含关键词时,采用正则表达式对所述短信息内 容进行验证码匹配,所述验证码为数字、字母或其结合组成;
获取匹配后的验证码;
将所述验证码在当前界面显示预设时间。
优选的,采用正则表达式对短信息内容进行关键词匹配时,关键词包括:
验证码、验证代码、激活码、激活代码、校验码、校验代码、确认码、确认代码、检验码和检验代码中的一个或者多个。
优选的,还包括:
当所述短信息内容中包含关键词时,获取当前关键词;
将所述当前关键词和所述验证码组成字符串;
将所述字符串在当前界面显示预设时间。
优选的,所述预设时间为20S。
优选的,将所述验证码在当前界面显示预设时间包括:
将所述验证码和所述预设时间生成一个通知发送至状态栏;
由状态栏显示所述通知。
优选的,将所述字符串在当前界面显示预设时间包括:
将所述字符串和所述预设时间生成一个通知发送至状态栏;
由状态栏显示所述通知。
优选的,所述状态栏显示在移动设备显示屏的最上方、最下方、最左方或最右方。
一种短信息验证码的驻留装置,包括:
关键词匹配单元,用于采用正则表达式对短信息内容进行关键词匹配;
验证码匹配单元,用于当所述短信息内容中包含关键词时,采用正则表达式对所述短信息内容进行验证码匹配,所述验证码为数字、字母或其结合组成;
第一获取单元,用于获取匹配后的验证码;
显示单元,用于将所述验证码在当前界面显示预设时间。
优选的,还包括:
第二获取单元,用于当所述短信息内容中包含关键词时,获取当前关 键词。
优选的,还包括:
组合单元,用于将所述当前关键词和所述验证码组成字符串;
所述显示单元,还用于将所述字符串在当前界面显示预设时间。
与现有技术相比,本发明具有以下有益效果:
本发明实施例中能够自动提取短信息中的验证码,并在当前界面显示预设时间。在此预设时间内,用户可以在验证码输入界面,根据显示的验证码填写验证码。从而实现不需用户记忆验证码,也不需要用户在短信息应用和当前应用之间频繁切换的目的。本方法中验证码直接显示在验证码的当前界面,大大方便了用户填写验证码的过程,提升了用户体验。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本发明实施例公开的短信息验证码的驻留方法的流程图;
图2为本发明实施例公开的又一短信息验证码的驻留方法的流程图;
图3为本发明实施例公开的又一短信息验证码的驻留方法的流程图;
图4为本发明实施例公开的短信息验证码的驻留装置的结构示意图;
图5为本发明实施例公开的又一短信息验证码的驻留装置的结构示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没 有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
本发明提供了一种短信息验证码的驻留方法,如图1所示,本方法包括以下步骤:
步骤S101:采用正则表达式对短信息内容进行关键词匹配;
正则表达式也称为正规表示法、常规表示法。在计算机科学中,是指一个用来描述或者匹配一系列符合某个句法规则的字符串的单个字符串。正则表达式通常被用来检索和/或替换那些符合某个模式的文本内容。
本发明即采用正则表达式来检索短信息内容中是否包含关键词。具体的,对短信息内容的中的所有词组与所有关键词进行匹配,判断短信息内容中是否包含关键词。
在进行关键词匹配时,关键词包括:验证码、验证代码、激活码、激活代码、校验码、校验代码、确认码、确认代码、检验码、检验代码中的一个或多个。可以理解的是,本发明中关键词还可以包括其他与验证码类似的词语。
在短信息内容中依据上述关键词进行匹配,当短信息内容包括上述关键词之一,则认为短信息内容中包括关键词,进入步骤S102。当短信息内容不包含任何与关键词有关的词语时,认为此短信息中不含验证码,不作处理。
步骤S102:当所述短信息内容中包含关键词时,采用正则表达式对所述短信息内容进行验证码匹配;其中,所述验证码为数字、字母或其结合组成。
当短信内容中包括关键词时,则认为此短信息内容可能含有验证码,因此继续采用正则表达式,对短信息内容进行匹配。
目前的验证码多为4-9位的数字、字母或其结合组成,所以本实施例中在进行验证码匹配时,会匹配4-9位数字或字母,当匹配出4-9数字或字母时,则认为匹配出验证码。若匹配的数字或字母的位数过多或过少,则认为不包含验证码,则不进行后续处理。可以理解的是,验证码的位数不是本发明的重点,若采用其他位数的验证码实时本发明时,也属于本发 明的保护范围。
目前,我们短信息内容中主要以汉字为主,采用正则表达式提取短信息内容字符串,并判断字符串的长度是否在4-9的范围内,若在该范围内则将该字符串暂定为验证码。若短信息内容中有多个字符串符合验证码的要求,则不对短信息进行验证码提取。因为可以提取多个字符串后,会给用户带来麻烦,用户不能确认那个是所需的验证码。因此当有多个字符串满足验证码要求时,则不对短信息的内容进行验证码提取。此时用户可以自己打开短信息通过传统的方式填写验证码。
步骤S103:获取匹配后的验证码;
步骤S104:将所述验证码在当前界面显示预设时间。
验证码会在当前界面预设时间,以便用户在该段时间内完成验证码的输入,优选的,预设时间为20S。
优选的,将所述验证码和所述预设时间生成一个通知发送至状态栏,由状态栏显示所述通知。即:由状态栏将所述通知显示预设时间。
优选的,当前状态栏可以在移动设备屏幕的最上方、最下方,最左方或最右方,即显示验证码的位置可以是任意的,以不妨碍用户输入验证码为准。
本发明提供了一种短信息验证码的驻留方法,本方法中能够自动提取短信息中的验证码并在当前界面显示预设时间,此预设时间内用户可以在验证码界面根据显示的验证码填写验证码,不需用户记忆验证码,也不需要用户在短信息应用和当前应用之间频繁切换。本方法中验证码直接显示在验证码的当前界面,填写验证码仅需要一个步骤,即手动输入填写验证码,大大方便了用户填写验证码的过程,提升了用户体验。
本发明中验证码内容驻留在当前界面,一方面贴心地提示用户验证码的内容,用户可以在不打断当前操作的基础上能够阅读得到验证码并填写,另一方面,本发明不会粗暴地将验证码放到当前界面的输入框内,如果当前的输入框并不是当前验证码的输入框,会给用户带来不必要的麻烦,本发明都能够很好的解决上述问题,提升了用户体验。
在上述实施例的基础之上,本发明还提供了另外一种实施例,如图2 所示,该实施例的包括以下步骤:
步骤S201:采用正则表达式对短信息内容进行关键词匹配;
步骤S202:当所述短信息内容中包含关键词时,获取当前关键词;
步骤S203:当所述短信息内容中包含关键词时,采用正则表达式对所述短信息内容进行验证码匹配,所述验证码为数字、字母或其结合组成;
步骤S204:获取匹配后的验证码;
步骤S205:将所述当前关键词和所述验证码组成字符串;
步骤S206:将所述字符串在当前界面显示预设时间。
优选的,将所述字符串和所述预设时间生成一个通知发送至状态栏;由状态栏显示所述通知。
本实施例中不再将单纯的验证码显示在当前界面,而是将当前关键词和验证码组成的字符串显示在当前界面,告知用户显示在当前界面的4-9位数字和/或字母的组合是验证码,使得用户体验更好。
本发明还提拱了一种具体实施例,如图3所示,该具体实施例包括:
步骤S301:用户在需要获取验证码的界面,点击“获取验证码”的按钮;
步骤S302:移动设备接收包含验证码的短信,短信内容为:您的验证码为relu1o,为了您的账户安全,请勿将此验证短信转发给他人。【锤子科技】。
步骤S303:提取当前关键词和验证码,并组合成字符串。
采用正则表达式对短信息内容进行匹配之后得到当前关键词为“验证码”,验证码的内容为“relu1o”,组合成的字符串为“验证码:relu1o”。
步骤S304:将字符串和时间参数发送至状态栏,由状态栏显示当前字符串的内容,并将字符串在状态栏显示时间参数所给出的时间。
如图4所示,本发明还提供了一种短信息验证码的驻留装置,包括:
关键词匹配单元100,用于采用正则表达式对短信息内容进行关键词匹配;
验证码匹配单元200,用于当所述短信息内容中包含关键词时,采用正则表达式对所述短信息内容进行验证码匹配,所述验证码为数字、字母 或其结合组成;
第一获取单元300,用于获取匹配后的验证码;
显示单元400,用于将所述验证码在当前界面显示预设时间。
优选的,如图5所示,所述装置还包括:
第二获取单元500,用于当所述短信息内容中包含关键词时,获取当前关键词。
优选的,如图5所示,所述装置还包括:
组合单元600,用于将所述当前关键词和所述验证码组成字符串;
所述显示单元400,还用于将所述字符串在当前界面显示预设时间。
本发明提供了一种短信息验证码的驻留装置,本装置中能够自动提取短信息中的验证码并在当前界面显示预设时间,此预设时间内用户可以在验证码界面根据显示的验证码填写验证码,不需用户记忆验证码,也不需要用户在短信息应用和当前应用之间频繁切换,本方法中验证码直接显示在验证码的当前界面,填写验证码仅需要一个步骤,即手动输入填写验证码,大大方便了用户填写验证码的过程,提升了用户体验。
本实施例方法所述的功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算设备可读取存储介质中。基于这样的理解,本发明实施例对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一台计算设备(可以是个人计算机,服务器,移动计算设备或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。
本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其它实施例的不同之处,各个实施例之间相同或相似部分互相参见即可。
对所公开的实施例的上述说明,使本领域专业技术人员能够实现或使 用本发明。对这些实施例的多种修改对本领域的专业技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本发明的精神或范围的情况下,在其它实施例中实现。因此,本发明将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。

Claims (14)

  1. 一种短信息验证码的驻留方法,其特征在于,包括:
    采用正则表达式对短信息内容进行关键词匹配;
    当所述短信息内容中包含关键词时,采用正则表达式对所述短信息内容进行验证码匹配;其中,所述验证码为数字、字母或其结合组成;
    获取匹配后的验证码;
    将所述验证码在当前界面显示预设时间。
  2. 如权利要求1所述的方法,其特征在于,采用正则表达式对短信息内容进行关键词匹配时,所述关键词包括:
    验证码、验证代码、激活码、激活代码、校验码、校验代码、确认码、确认代码、检验码和检验代码中的一个或者多个。
  3. 如权利要求1所述的方法,其特征在于,还包括:
    当所述短信息内容中包含关键词时,获取当前关键词;
    将所述当前关键词和所述验证码组成字符串;
    将所述字符串在当前界面显示预设时间。
  4. 如权利要求1或3所述的方法,其特征在于,所述预设时间为20S。
  5. 如权利要求1所述的方法,其特征在于,所述将所述验证码在当前界面显示预设时间,包括:
    将所述验证码和所述预设时间生成一个通知发送至状态栏;
    由状态栏显示所述通知。
  6. 如权利要求3所述的方法,其特征在于,所述将所述字符串在当前界面显示预设时间,包括:
    将所述字符串和所述预设时间生成一个通知发送至状态栏;
    由状态栏显示所述通知。
  7. 如权利要求5或6所述的装置,其特征在于,所述状态栏显示在移动设备显示屏的最上方、最下方、最左方或最右方。
  8. 一种短信息验证码的驻留装置,其特征在于,包括:
    关键词匹配单元,用于采用正则表达式对短信息内容进行关键词匹配;
    验证码匹配单元,用于当所述短信息内容中包含关键词时,采用正则 表达式对所述短信息内容进行验证码匹配;其中,所述验证码为数字、字母或其结合组成;
    第一获取单元,用于获取匹配后的验证码;
    显示单元,用于将所述验证码在当前界面显示预设时间。
  9. 如权利要求8所述的装置,其特征在于,还包括:
    第二获取单元,用于当所述短信息内容中包含关键词时,获取当前关键词。
  10. 如权利要求9所述的装置,其特征在于,还包括:
    组合单元,用于将所述当前关键词和所述验证码组成字符串;
    所述显示单元,还用于将所述字符串在当前界面显示预设时间。
  11. 一种短信息验证码的驻留方法,其特征在于,包括:
    获取短信息的文字内容;
    判断所述文字内容中是否包含与关键词一致的词组;所述关键词为与验证码相关的词组;
    当所述文字内容中包含与关键词一致的词组时,判断所述文字内容中是否包含与预设验证码格式一致的字符串;其中,所述预设验证码格式为预设数量范围的数字、字母或其结合组成的字符串;
    当所述文字内容中包含与预设验证码格式一致的字符串时,生成包含所述字符串的验证码;
    将所述验证码在显示屏幕显示预设时间。
  12. 如权利要求11所述的方法,其特征在于,在生成包含所述字符串的验证码之前,还包括:提取所述文字内容中所包含的当前关键词;
    则生成包含所述字符串的验证码,包括:生成包含有所述当前关键词和所述字符串的验证码。
  13. 如权利要求11或12所述的方法,其特征在于,所述将所述验证码在当前界面显示预设时间,包括:
    在所述显示屏幕的状态栏上,将所述验证码显示所述预设时间。
  14. 如权利要求11所述的方法,其特征在于,所述判断所述文字内容中是否包含与关键词一致的词组,包括:将所述文字内容划分多个词组;
    在所述多个词组中,判断每个词组是否与所述关键词一致。
PCT/CN2015/076933 2014-04-22 2015-04-20 短信息验证码的驻留方法及装置 WO2015161760A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US15/305,025 US10795942B2 (en) 2014-04-22 2015-04-20 Method and device for residing short message verification code

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410162920.3A CN103902740B (zh) 2014-04-22 2014-04-22 短信息验证码的驻留方法及装置
CN201410162920.3 2014-04-22

Publications (1)

Publication Number Publication Date
WO2015161760A1 true WO2015161760A1 (zh) 2015-10-29

Family

ID=50994062

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/076933 WO2015161760A1 (zh) 2014-04-22 2015-04-20 短信息验证码的驻留方法及装置

Country Status (3)

Country Link
US (1) US10795942B2 (zh)
CN (1) CN103902740B (zh)
WO (1) WO2015161760A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106357672A (zh) * 2016-10-18 2017-01-25 深圳市金立通信设备有限公司 一种登录方法和终端
WO2018023395A1 (zh) * 2016-08-02 2018-02-08 张阳 一种验证码提取技术的数据采集方法和手机

Families Citing this family (28)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103902740B (zh) * 2014-04-22 2017-07-18 锤子科技(北京)有限公司 短信息验证码的驻留方法及装置
CN104239281A (zh) * 2014-09-12 2014-12-24 北京搜狗科技发展有限公司 一种信息处理方法以及电子设备
CN104317872B (zh) * 2014-10-20 2017-09-15 广东欧珀移动通信有限公司 关键信息获取方法和装置
CN104683963A (zh) * 2015-02-15 2015-06-03 联想(北京)有限公司 一种信息处理方法及电子设备
CN104935744A (zh) * 2015-06-10 2015-09-23 腾讯科技(深圳)有限公司 一种验证码显示方法、验证码显示装置及移动终端
CN105049607B (zh) * 2015-06-24 2018-09-04 广东欧珀移动通信有限公司 一种短信显示方法及移动终端
CN105159533A (zh) * 2015-08-31 2015-12-16 努比亚技术有限公司 一种移动终端及其验证码自动输入方法
CN105162784B (zh) * 2015-08-31 2018-07-27 小米科技有限责任公司 验证信息输入的处理方法和装置
CN111666015A (zh) * 2015-09-30 2020-09-15 小米科技有限责任公司 悬浮短信显示方法及装置
CN108366290A (zh) * 2015-10-08 2018-08-03 青岛海信电器股份有限公司 填写验证码的方法
CN106656913A (zh) * 2015-10-28 2017-05-10 珠海金山办公软件有限公司 一种数字验证码的生成方法及装置
CN105472136A (zh) * 2015-11-19 2016-04-06 广东小天才科技有限公司 短消息信息显示方法及装置
CN106856474A (zh) * 2015-12-09 2017-06-16 阿里巴巴集团控股有限公司 一种验证信息的处理方法及装置
CN105792150B (zh) * 2016-02-26 2019-03-08 周奇 短信验证码的判断方法及装置
CN106096046A (zh) * 2016-06-29 2016-11-09 惠州Tcl移动通信有限公司 一种移动终端的信息智能显示方法及系统
WO2018023394A1 (zh) * 2016-08-02 2018-02-08 张阳 一种从短信中自动提取验证码的方法和手机
WO2018023396A1 (zh) * 2016-08-02 2018-02-08 张阳 一种提取验证码时的信息推送方法和手机
CN106534539A (zh) * 2016-11-17 2017-03-22 珠海市魅族科技有限公司 验证码显示方法及装置
CN106791036A (zh) * 2016-11-30 2017-05-31 深圳天珑无线科技有限公司 一种信息处理方法、装置及移动终端
TWI731924B (zh) * 2017-01-23 2021-07-01 香港商斑馬智行網絡(香港)有限公司 一種驗證資訊的處理方法及裝置
CN107018232A (zh) * 2017-03-21 2017-08-04 深圳市金立通信设备有限公司 一种验证码呈现方法及终端
CN108200049A (zh) * 2017-12-29 2018-06-22 上海上讯信息技术股份有限公司 一种基于字符终端短信认证登录的方法
CN109726121B (zh) * 2018-12-12 2022-02-18 北京云测信息技术有限公司 一种验证码获取方法和终端设备
CN110674367B (zh) * 2019-09-09 2022-02-01 广州易起行信息技术有限公司 一种基于旅游行业产品的单汉字检索方法及装置
CN110752933A (zh) * 2019-10-25 2020-02-04 北京博睿宏远数据科技股份有限公司 一种验证码输入方法、装置、电子设备及存储介质
CN111596820B (zh) * 2020-04-28 2022-05-31 维沃移动通信有限公司 头像设置方法及装置
CN111970651A (zh) * 2020-08-18 2020-11-20 珠海格力电器股份有限公司 一种短消息处理方法、装置、电子设备及存储介质
CN113742019A (zh) * 2021-09-03 2021-12-03 展讯通信(天津)有限公司 验证码显示的方法和装置

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102624705A (zh) * 2012-02-21 2012-08-01 西南石油大学 一种智能图像验证方法及系统
CN103546877A (zh) * 2013-10-30 2014-01-29 上海斐讯数据通信技术有限公司 一种获取并输入内容码的方法、系统和移动终端
CN103902740A (zh) * 2014-04-22 2014-07-02 锤子科技(北京)有限公司 短信息验证码的驻留方法及装置

Family Cites Families (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8700729B2 (en) * 2005-01-21 2014-04-15 Robin Dua Method and apparatus for managing credentials through a wireless network
CN101064603A (zh) * 2006-04-27 2007-10-31 国际商业机器公司 短消息转发方法和系统、服务器以及短消息接发装置
JP4806338B2 (ja) * 2006-12-05 2011-11-02 富士通株式会社 Cad装置およびcadプログラム
JP4979632B2 (ja) * 2007-05-18 2012-07-18 イノヴァティヴ ソニック リミテッド 無線通信システムにおいて待ち行列機能を管理する方法及び装置
CN101576798B (zh) * 2008-05-05 2013-10-30 宏达国际电子股份有限公司 选项信息的浏览方法、装置
US8353018B2 (en) * 2008-11-13 2013-01-08 Yahoo! Inc. Automatic local listing owner authentication system
CN101727288B (zh) * 2009-12-11 2015-04-08 华为终端有限公司 一种界面显示的方法及装置
TWI509438B (zh) * 2010-03-29 2015-11-21 Htc Corp 周圍興趣點的顯示方法、行動裝置及電腦程式產品
US8732753B2 (en) * 2010-06-07 2014-05-20 Guest Tek Interactive Entertainment Ltd. Method of operating one or more controllable devices in dependence upon commands received from a plurality of mobile devices and system controller thereof
KR101735613B1 (ko) * 2010-07-05 2017-05-24 엘지전자 주식회사 휴대 단말기 및 그 동작 제어방법
CN102255923A (zh) * 2011-08-25 2011-11-23 盛大计算机(上海)有限公司 一种用户身份认证系统及方法
US9166793B2 (en) * 2011-12-05 2015-10-20 University Of Washington Efficient authentication for mobile and pervasive computing
CN103177012A (zh) * 2011-12-22 2013-06-26 中国移动通信集团浙江有限公司 电子图书推送方法及装置
CN103186857A (zh) * 2011-12-31 2013-07-03 中国银联股份有限公司 银行卡支付方法及系统
CN102830801A (zh) * 2012-08-03 2012-12-19 中国科学技术大学 利用手势识别控制数字标牌的方法和系统
KR102097640B1 (ko) * 2013-03-08 2020-04-06 엘지전자 주식회사 이동 단말기 및 그것의 제어 방법
US9454853B2 (en) * 2013-03-13 2016-09-27 Centric Group Llc Electronic security patrol compliance systems and methods for institutional facility
US10580091B2 (en) * 2016-04-28 2020-03-03 Sanjay Varma Systems and methods for dynamically identifying and presenting matching user profiles to a user

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102624705A (zh) * 2012-02-21 2012-08-01 西南石油大学 一种智能图像验证方法及系统
CN103546877A (zh) * 2013-10-30 2014-01-29 上海斐讯数据通信技术有限公司 一种获取并输入内容码的方法、系统和移动终端
CN103902740A (zh) * 2014-04-22 2014-07-02 锤子科技(北京)有限公司 短信息验证码的驻留方法及装置

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018023395A1 (zh) * 2016-08-02 2018-02-08 张阳 一种验证码提取技术的数据采集方法和手机
CN106357672A (zh) * 2016-10-18 2017-01-25 深圳市金立通信设备有限公司 一种登录方法和终端

Also Published As

Publication number Publication date
US20170199941A1 (en) 2017-07-13
US10795942B2 (en) 2020-10-06
CN103902740A (zh) 2014-07-02
CN103902740B (zh) 2017-07-18

Similar Documents

Publication Publication Date Title
WO2015161760A1 (zh) 短信息验证码的驻留方法及装置
US9710452B2 (en) Input method editor having a secondary language mode
CN105827655B (zh) 一种智能密钥设备及其工作方法
EP3407549A1 (en) Resource sharing method, terminal and storage medium
WO2016124074A1 (zh) 一种信息处理方法、客户端及服务器、计算机存储介质
CN108984650B (zh) 计算机可读记录介质及计算机设备
EP2765473A1 (en) Input processing method and apparatus
JP2013535729A5 (zh)
CN103546877A (zh) 一种获取并输入内容码的方法、系统和移动终端
CN106888086B (zh) 一种管理账号密码的系统及方法
EP2896162A1 (en) Determining additional information associated with geographic location information
CN106326233B (zh) 地址提示方法及装置
TWI554074B (zh) 密碼找回系統及密碼找回方法
WO2017025055A1 (zh) 命令行界面显示方法及装置
CN103034407B (zh) 终端和快速输入常用短语的方法
WO2016112796A1 (zh) 推送信息的处理方法及装置
JP6142613B2 (ja) 画像処理システム、操作部、制御方法及びプログラム
CN103530541A (zh) 一种验证码生成方法及装置
CN108932434B (zh) 一种基于机器学习技术的数据加密方法及装置
CN104462043A (zh) 一种快速自助填单系统及快速自助填单方法
CN106060000B (zh) 一种识别验证信息的方法和设备
CN112863495A (zh) 信息处理方法、装置及电子设备
CN104301202A (zh) 一种即时通讯的振动信息表达方法和系统
WO2019105201A1 (zh) 拨号上网方法、系统、智能终端及服务器
JP2008005371A (ja) 日本語パスワード変換装置及びその方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15782422

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 15305025

Country of ref document: US

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15782422

Country of ref document: EP

Kind code of ref document: A1