CN110287655B - Verification code input method and device and mobile terminal - Google Patents

Verification code input method and device and mobile terminal Download PDF

Info

Publication number
CN110287655B
CN110287655B CN201910550002.0A CN201910550002A CN110287655B CN 110287655 B CN110287655 B CN 110287655B CN 201910550002 A CN201910550002 A CN 201910550002A CN 110287655 B CN110287655 B CN 110287655B
Authority
CN
China
Prior art keywords
verification code
character
input
character string
characters
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.)
Active
Application number
CN201910550002.0A
Other languages
Chinese (zh)
Other versions
CN110287655A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201910550002.0A priority Critical patent/CN110287655B/en
Publication of CN110287655A publication Critical patent/CN110287655A/en
Application granted granted Critical
Publication of CN110287655B publication Critical patent/CN110287655B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/10Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]
    • G06F21/105Arrangements for software license management or administration, e.g. for managing licenses at corporate level
    • 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
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/543User-generated data transfer, e.g. clipboards, dynamic data exchange [DDE], object linking and embedding [OLE]

Abstract

The invention provides a verification code input method, a verification code input device and a mobile terminal, and relates to the technical field of mobile terminals. Wherein the method comprises the following steps: acquiring a target verification code; receiving a first character string in a verification code input interface; when the number of first characters corresponding to the first character string is smaller than the number of second characters corresponding to the target verification code, determining a second character string; the second character string comprises characters of which the median of the target verification code is greater than the number of the first characters; and filling the characters in the second character string into a character input box included in the verification code input interface respectively to finish the input of the verification code. In the embodiment of the invention, the mobile terminal can automatically fill the missing character strings in the target verification code into the remaining character input boxes according to the input character strings, so that a user does not need to repeatedly open the short message to check and fill the remaining characters of the target verification code, thereby simplifying the user operation in the verification code input process and improving the input efficiency of the verification code.

Description

Verification code input method and device and mobile terminal
Technical Field
The invention relates to the technical field of mobile terminals, in particular to a verification code input method and device and a mobile terminal.
Background
With the rapid development of terminal technology, people have higher and higher requirements on the security of application software. In the related technology, the application software can perform security verification on the user through various modes such as verification code matching, fingerprint matching, face matching and the like, when the security verification is passed, the user can continue operations such as payment and password modification, and the security in the application software using process can be improved through the security verification on the user.
At present, when security verification is performed through a verification code, a common verification code input mode exists, that is, each number in the verification code needs to occupy a character input box separately. However, when the user copies the verification code in the short message and pastes the verification code in the first character input box, only the first number in the verification code can be pasted successfully, and at this time, the user needs to open the short message again to check the remaining numbers of the verification code, and then fill the remaining numbers in the corresponding character input box. Therefore, an input mode that each number of the verification code needs to occupy one character input box independently is adopted, user operation is complicated, and the input efficiency of the verification code is low.
Disclosure of Invention
The invention provides a verification code input method, a verification code input device and a mobile terminal, and aims to solve the problems of low verification code input efficiency and complicated user operation.
In order to solve the technical problem, the invention is realized as follows: a method for inputting verification codes is applied to a mobile terminal and comprises the following steps:
acquiring a target verification code;
receiving an input first character string in a verification code input interface;
when the number of first characters corresponding to the first character string is smaller than the number of second characters corresponding to the target verification code, determining a second character string; the second character string comprises characters of which the median of the target verification code is greater than the first character number;
and filling the characters in the second character string into a character input box included in the verification code input interface respectively to finish the input of the verification code.
The embodiment of the invention also provides a verification code input device, which comprises:
the first acquisition module is used for acquiring a target verification code;
the receiving module is used for receiving an input first character string in the verification code input interface;
the first determining module is used for determining a second character string when the number of first characters corresponding to the first character string is smaller than the number of second characters corresponding to the target verification code; the second character string comprises characters of which the median of the target verification code is greater than the first character number;
and the input module is used for respectively filling the characters in the second character string into the character input boxes included in the verification code input interface to finish the input of the verification code.
The embodiment of the invention also provides a mobile terminal, which comprises a processor, a memory and a computer program which is stored on the memory and can run on the processor, wherein when the computer program is executed by the processor, the steps of the verification code input method are realized.
The embodiment of the invention also provides a computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and when being executed by a processor, the computer program realizes the steps of the verification code input method.
In the embodiment of the invention, the mobile terminal can firstly obtain the target verification code, then receives the input first character string in the verification code input interface, when the number of the first characters corresponding to the first character string is less than the number of the second characters corresponding to the target verification code, the mobile terminal only receives part of the verification code at present, and then the mobile terminal determines the second character string with the number of digits in the target verification code greater than the number of the first characters, and respectively fills the characters in the second character string into the character input boxes included in the verification code input interface so as to complete the input of the verification code. In the embodiment of the invention, the mobile terminal can automatically fill the missing character strings in the target verification code into the remaining character input boxes according to the input character strings, so that a user does not need to repeatedly open the short message to check and fill the remaining characters of the target verification code, thereby simplifying the user operation in the verification code input process and improving the input efficiency of the verification code.
Drawings
FIG. 1 is a flow chart of a verification code input method according to a first embodiment of the present invention;
FIG. 2 is a flow chart of a verification code input method according to a second embodiment of the present invention;
FIG. 3 is a diagram illustrating a target verification code being pasted in a verification code input interface according to a second embodiment of the present invention;
fig. 4 is a schematic diagram illustrating a display of a "fill in with one key" prompt message according to a second embodiment of the present invention;
FIG. 5 is a diagram illustrating a verification code being entered according to a second embodiment of the present invention;
fig. 6 is a block diagram showing a configuration of an authentication code input apparatus according to a third embodiment of the present invention;
fig. 7 is a block diagram showing another configuration of the authentication code input apparatus according to the third embodiment of the present invention;
fig. 8 is a diagram illustrating a hardware structure of a mobile terminal according to various embodiments of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
Referring to fig. 1, a flowchart of a verification code input method according to a first embodiment of the present invention is shown, which may specifically include the following steps:
s101, the mobile terminal acquires a target verification code.
In the embodiment of the invention, when a user needs to perform security verification through the verification code in the process of using a certain application, the application can generally send the target verification code to be input to the mobile terminal of the user in a short message manner, and then the mobile terminal can extract the target verification code required to be input by the user from the short message. In practical applications, the characters in the target verification code may include at least one of numbers, letters and symbols, which is not specifically limited by the embodiment of the present invention.
S102, the mobile terminal receives the input first character string in the verification code input interface.
In the embodiment of the present invention, the applied verification code input interface may include character input boxes for inputting the verification code, where the number of the character input boxes may be consistent with the number of bits of the target verification code, for example, when the target verification code includes 6-bit characters, the number of the character input boxes is also 6 correspondingly. Of course, in practical applications, the number of the character input boxes may also be smaller than the number of bits of the target verification code and greater than 1, which is not specifically limited in the embodiment of the present invention. The user may input the first character string in the applied verification code input interface by means of copy-and-paste, manual filling, and the like. The first character string may include at least one character, for example, the first character string may be 1, 12, 123, and the like.
S103, when the number of the first characters corresponding to the first character string is smaller than the number of the second characters corresponding to the target verification code, the mobile terminal determines the second character string; the second character string includes characters of which the median of the target verification code is greater than the number of the first characters.
In the embodiment of the invention, the characters in the target verification code are in the order from left to right, the digit of the first character is 1, the digit of the second character is 2, and so on. When the number of first characters corresponding to the first character string is smaller than the number of second characters corresponding to the target verification code, that is, when the character length of the first character string is smaller than the character length of the target verification code, it can be said that the mobile terminal has only received a part of verification codes at present, and then the mobile terminal can determine, from the target verification code, the second character string which is not input into the verification code input interface and has the digit number larger than the number of the first characters. The second character string may include at least one character, for example, the second character string may be 1, 12, 123, and the like.
And S104, the mobile terminal respectively fills the characters in the second character string into the character input boxes included in the verification code input interface to finish the input of the verification code.
In the embodiment of the present invention, the mobile terminal may fill each character included in the second character string into a corresponding character input box in the verification code input interface, so that the verification code with the same number of digits as the number of the character input boxes may be completely filled into each character input box. That is, the mobile terminal can automatically fill the missing character strings in the target verification code into the remaining character input boxes according to the input character strings, so that the user does not need to repeatedly open the short message to check and fill the remaining characters of the target verification code, the user operation in the verification code input process can be simplified, and the input efficiency of the verification code is improved.
In the embodiment of the invention, the mobile terminal can firstly obtain the target verification code, then receives the input first character string in the verification code input interface, when the number of the first characters corresponding to the first character string is less than the number of the second characters corresponding to the target verification code, the mobile terminal only receives part of the verification code at present, and then the mobile terminal determines the second character string with the number of the character bits greater than the number of the first characters in the target verification code, and respectively fills the characters in the second character string into the character input boxes included in the verification code input interface so as to complete the input of the verification code. In the embodiment of the invention, the mobile terminal can automatically fill the missing character strings in the target verification code into the remaining character input boxes according to the input character strings, so that a user does not need to repeatedly open the short message to check and fill the remaining characters of the target verification code, thereby simplifying the user operation in the verification code input process and improving the input efficiency of the verification code.
Example two
Referring to fig. 2, a flowchart of a verification code input method according to a second embodiment of the present invention is shown, which may specifically include the following steps:
s201, the mobile terminal acquires a target verification code.
This step is similar to the implementation process of step 101, and is not described herein again.
For example, the application server may send the target verification code 321654 to the user's mobile terminal in a short message.
S202, the mobile terminal receives the input first character string in the verification code input interface.
The characters in the first character string may be any characters, which is not specifically limited in this embodiment of the present invention.
In one implementation, when the mobile terminal extracts the target verification code from the short message, the mobile terminal may copy the target verification code, and the user may paste the target verification code in the verification code input interface, as shown in fig. 3, and correspondingly, the mobile terminal may paste the first character string in the verification code input interface. Because the applied verification code input interface comprises at least two character input boxes, when a user pastes the target verification code in the verification code input interface, only the character corresponding to the first character input box in the target verification code can be pasted successfully. For example, in the case that the target verification code is 6-bit characters and the number of the character input boxes is 6, only the first character in the target verification code can be pasted successfully. For another example, in the case that the target verification code is 6-bit characters, the number of the character input boxes is 3, and each character input box can receive 2 characters, only the first two characters in the target verification code can be pasted successfully.
In another implementation manner, when the user views the target verification code sent by the application server, the first character string may be manually filled in the verification code input interface, so that the mobile terminal may receive the first character string manually filled by the user in the verification code input interface.
For example, when the mobile terminal extracts the target verification code 321654 from the short message, it may copy the target verification code 321654, and then paste the first character string, i.e. the first character "3" in the target verification code 321654, in the corresponding first character input box when a paste instruction is received in the verification code input interface.
S203, the mobile terminal obtains an interface image corresponding to the verification code input interface.
In the embodiment of the present invention, when the first character string is input in the verification code input interface, the mobile terminal needs to determine the first number of characters corresponding to the first character string to determine whether the verification code is completely input. When the application to be input with the verification code is a third-party application, but not a system application, only the application server can acquire the first character string input by the user, but the mobile terminal cannot acquire the first character string, so that when the application is specifically applied, the mobile terminal can determine the first character string input by the user in an image recognition mode, and further determine the first character number corresponding to the first character string. First, the mobile terminal may obtain an interface image corresponding to the verification code input interface through a screen capture mode or the like.
For example, the mobile terminal may capture a screen of the verification code input interface, so as to obtain an interface image corresponding to the verification code input interface.
S204, the mobile terminal identifies an input frame area in the interface image.
In the embodiment of the present invention, the character input box is usually displayed as a square frame or an area with a lower horizontal line, and therefore, the mobile terminal may recognize the input box area corresponding to the character input box from the interface image corresponding to the verification code input interface through an image recognition method based on elements such as shapes and symbols.
For example, the mobile terminal may recognize an input box region corresponding to a character input box from an interface image corresponding to the verification code input interface in an image recognition manner based on a box shape.
S205, the mobile terminal identifies a first character string in the input frame area.
In the embodiment of the invention, after the input frame area in the interface image is recognized, the mobile terminal can perform character recognition in the input frame area, so as to obtain the first character string.
For example, the mobile terminal may recognize the first character string "3" in the input box area.
S206, the mobile terminal determines the number of first characters corresponding to the first character string.
In the embodiment of the present invention, after the mobile terminal identifies the first character string, the number of the first characters corresponding to the first character string, that is, the number of the characters included in the first character string, may be determined.
For example, the mobile terminal may determine that the first character string "3" corresponds to a first number of characters of 1.
S207, when the number of the first characters corresponding to the first character string is smaller than the number of the second characters corresponding to the target verification code, the mobile terminal determines the second character string; the second character string includes characters of which the median of the target verification code is greater than the number of the first characters.
In the embodiment of the present invention, the step may be implemented by: when the number of first characters corresponding to the first character string is smaller than the number of second characters corresponding to the target verification code, sequentially extracting the target character strings with the number of the first characters from the first character in the target verification code; comparing the target character string with the first character string; and when the target character string is consistent with the first character string, deleting the target character string in sequence from the first character in the target verification code to obtain a second character string in the target verification code.
In practical applications, the first character string of the input verification code input interface is not necessarily the same as the previous part of the target verification code, for example, when the user inputs the first character string by copying the target verification code and pasting the first character string on the verification code input interface, the first character string is the same as the previous part of the target verification code, and when the user inputs the first character string by manually filling the first character string, the first character string is not necessarily the same as the previous part of the target verification code due to uncertainty of manual filling. When the first character string is different from the previous part of the target verification code, the final verification failure is inevitably caused, therefore, when the number of the first characters is less than the number of the second characters corresponding to the target verification code, the mobile terminal can extract the target character strings with the number of the first characters in sequence from the first characters in the target verification code, and then compare the target character strings with the first character strings, when the target character strings are consistent with the first character strings, the input characters can be determined to be consistent with the previous part in the target verification code, namely, the input character strings can not cause the verification failure, at this moment, the mobile terminal can continuously determine the second character strings in the target verification code, so as to completely supplement the verification code.
Optionally, in practical application, when the mobile terminal determines that the number of the first characters is smaller than the number of the second characters, a prompt message for prompting whether the verification code needs to be automatically filled in is displayed in a manner of popping up a box or the like, as shown in fig. 4. When the user clicks the "fill in with one key" option, the mobile terminal may continue to perform the step of "extracting the target character strings in the number of the first characters in order starting from the first character in the target verification code". When the user clicks the "cancel" option, the mobile terminal may wait for the user to manually fill in the remaining verification codes, which is not specifically limited in the embodiment of the present invention.
Further, after the step of comparing the target character string with the first character string, the mobile terminal may further perform the following steps, including: and when the target character string is inconsistent with the first character string, outputting prompt information for prompting that the verification code is input incorrectly.
That is, when the target character string is inconsistent with the first character string, it may be determined that the input character string is inconsistent with the previous part of the target verification code, that is, the input character string may cause a verification failure, at this time, the mobile terminal may output a prompt message for prompting a verification code input error through a popup box, a voice, or the like, so that when the user receives the prompt message, the user may know that at least one previous verification code is input incorrectly, and then the user may input again, and at this time, the mobile terminal does not need to continue a subsequent verification code supplementing operation, thereby improving the verification efficiency.
In practical application, the mobile terminal may also directly determine the second character string in the target verification code when determining that the number of the first characters corresponding to the first character string is smaller than the number of the second characters corresponding to the target verification code, without determining whether the input character string is correct. Correspondingly, the step can be specifically realized by the following steps: and when the number of the first characters corresponding to the first character string is less than the number of the second characters corresponding to the target verification code, extracting the characters with the number of bits greater than the number of the first characters from the target verification code to obtain a second character string.
The first character string in the input character input box is not necessarily consistent with the target character string in the target verification code, so that the mobile terminal can also directly extract characters with the number of digits larger than that of the first character from the target verification code, namely, the characters with the missing number of digits can be directly determined from the target verification code without paying attention to whether the previously input part is consistent with the previous part of the target verification code, the input time of the verification code can be saved, and the input efficiency of the verification code is improved.
For example, in the target verification code 321654, the number of bits of the character "3" is 1, the number of bits of the character "2" is 2, the number of bits of the character "1" is 3, the number of bits of the character "6" is 4, the number of bits of the character "5" is 5, the number of bits of the character "4" is 6, the number of first characters corresponding to the first character string may be 1, and the mobile terminal may extract characters with the number of bits greater than 1 of the first character from the target verification code 321654 to obtain the second character string 21654.
Optionally, in another implementation manner, in a case that the first character string is pasted in the verification code input interface, this step may also be implemented in a manner including: and when the number of the first characters corresponding to the first character string is less than the number of the second characters corresponding to the target verification code, deleting the first character string in sequence from the first character in the target verification code to obtain the second character string in the target verification code.
When the first character string is pasted in the verification code input interface in a pasting mode, the first character string in the input character input box can be considered to be necessarily consistent with the target character string positioned at the previous part in the target verification code, therefore, the mobile terminal can directly delete the first character string from the first character in the target verification code in sequence, and the second character string in the target verification code is obtained.
For example, when the target character string extracted from the target verification code 321654 and the first character string that has been input are both "3", the mobile terminal may delete the first character string "3" in order starting with the first character in the target verification code 321654, so that the second character string 21654 in the target verification code may be obtained.
In addition, when the number of the first characters corresponding to the first character string is equal to the number of the second characters corresponding to the target verification code, it can be determined that the verification code is completely input, and then the mobile terminal can directly perform subsequent security verification operations.
In addition, in a specific application, the mobile terminal may determine whether the number of the first characters is less than the number of the second characters corresponding to the target verification code through the above steps S203 to S206. Of course, the mobile terminal may also determine whether the first number of characters is smaller than the second number of characters in other manners, for example, the mobile terminal may determine the number of boxes in the interface image, when the number of boxes is greater than 1, the user cannot completely paste the target verification code in the verification code input interface, at this time, the mobile terminal may determine that the first number of characters is smaller than the second number of characters, when the number of boxes is equal to 1, the user may completely paste the target verification code in the verification code input interface, at this time, the mobile terminal may determine that the first number of characters is equal to the second number of characters.
For example, the first character number 1 corresponding to the first character string "3" is smaller than the second character number 6 corresponding to the target verification code 321654, at this time, the mobile terminal may extract the target character string "3" with the number of 1 from the first character in the target verification code 321654 in order, and then compare the target character string "3" with the first character string "3" and the comparison result is that the two are identical, and then the mobile terminal may delete the first character string "3" in order from the first character in the target verification code 321654, thereby obtaining the second character string 21654 in the target verification code 321654.
And S208, the mobile terminal respectively fills the characters in the second character string into the character input boxes included in the verification code input interface to finish the input of the verification code.
In the embodiment of the present invention, optionally, the step may be specifically implemented by: for any character in the second characters, putting the focus in a character input box corresponding to the character in the verification code input interface; calling a control interface corresponding to the character in the current input method; and operating an interface function corresponding to the control interface to fill the character into a corresponding character input box in the verification code input interface to finish the input of the verification code.
Specifically, after the mobile terminal determines the missing character string from the target verification code, the mobile terminal may place the focus of the input operation in the 1 st character input box without inputting characters, and may further call a control interface corresponding to the 1 st character in the second character string in the current input method, and run an interface function corresponding to the control interface, where the interface function may be used to input the character corresponding to the control interface into the input box currently obtaining the focus, and therefore, by running the interface function, the 1 st character in the second character string may be filled into the corresponding character input box in the verification code input interface. Then, the mobile terminal may place the focus of the input operation in a 2 nd character input box without inputting characters, call a control interface corresponding to the 2 nd character in the second character string in the current input method, and run an interface function corresponding to the control interface, so as to input the 2 nd character in the second character string into a corresponding character input box in the verification code input interface. By analogy, when the last character in the second character string is input in the last character input box in which the character is not input, the input of the verification code is also finished, and further the mobile terminal can perform subsequent security verification operation.
The first character string manually input by the user may or may not be consistent with the target character string in the target verification code, so that the mobile terminal can perform security verification operation on the input verification code, when the input verification code is consistent with the target verification code, the security verification can be determined to pass, and when the input verification code is inconsistent with the target verification code, the security verification can be determined to fail.
For example, for the first character "2" in the second character string, the mobile terminal may place the focus in the character input box corresponding to the first character "2" in the second character string, then call the control interface corresponding to the character "2" in the current input method, and run the interface function corresponding to the control interface, so as to input the character "2" into the character input box of the 1 st uninputed character in the verification code input interface; then, for the second digit character "1" in the second character string, the mobile terminal may place the focus of the input operation in the character input box of the 2 nd uninputed character, call the control interface corresponding to the character "1" in the current input method, and run the interface function corresponding to the control interface, so as to input the character "1" into the character input box of the 2 nd uninputed character in the verification code input interface. By analogy, when the fifth character "4" in the second character string is input in the character input box of the 5 th uninputed character, the input of the verification code 321654 is completed, as shown in fig. 5.
In the embodiment of the invention, the mobile terminal can firstly obtain the target verification code, then receives the input first character string in the verification code input interface, further recognizes the first character string in the interface image corresponding to the verification code input interface in an image recognition mode, determines the number of the first characters corresponding to the first character string, and when the number of the first characters is smaller than the number of the second characters corresponding to the target verification code, the mobile terminal only receives part of the verification code at present, further determines the second character string of which the number of digits is larger than the number of the first characters in the target verification code, and respectively fills the characters in the second character string into the character input boxes included in the verification code input interface so as to complete the input of the verification code. In the embodiment of the invention, the mobile terminal can automatically fill the missing character strings in the target verification code into the remaining character input boxes according to the input character strings, so that a user does not need to repeatedly open the short message to check and fill the remaining characters of the target verification code, thereby simplifying the user operation in the verification code input process and improving the input efficiency of the verification code.
EXAMPLE III
Referring to fig. 6, a block diagram of a verification code input device 600 according to a third embodiment of the present invention is shown, which may specifically include:
a first obtaining module 601, configured to obtain a target verification code;
a receiving module 602, configured to receive an input first character string in a verification code input interface;
a first determining module 603, configured to determine a second character string when a first number of characters corresponding to the first character string is smaller than a second number of characters corresponding to the target verification code; the second character string comprises characters of which the median of the target verification code is greater than the first character number;
the input module 604 is configured to fill the characters in the second character string into the character input boxes included in the verification code input interface, respectively, so as to complete input of the verification code.
Optionally, referring to fig. 7, the first determining module 603 includes:
a first extraction submodule 6031, configured to, when the number of first characters corresponding to the first character string is smaller than the number of second characters corresponding to the target verification code, extract, in order, the target character strings whose number is the first character number, starting from a first character in the target verification code;
a comparison sub-module 6032 configured to compare the target character string with the first character string;
a deleting submodule 6033, configured to delete the target character string in order from a first character in the target verification code to obtain a second character string in the target verification code when the target character string is consistent with the first character string.
Optionally, referring to fig. 7, the apparatus 600 further includes:
a second obtaining module 605, configured to obtain an interface image corresponding to the verification code input interface;
a first identification module 606, configured to identify an input box area in the interface image;
a second recognition module 607, for recognizing the first character string in the input frame region;
the second determining module 608 is configured to determine a first number of characters corresponding to the first character string.
Optionally, referring to fig. 7, the first determining module 603 includes:
the second extraction sub-module 6034 is configured to, when the number of first characters corresponding to the first character string is smaller than the number of second characters corresponding to the target verification code, extract characters with a number of bits larger than the number of first characters from the target verification code, to obtain a second character string.
Optionally, referring to fig. 7, the input module 604 includes:
a focus sub-module 6041, configured to, for any character in the second character string, place a focus in a character input box corresponding to the character in the verification code input interface;
a calling sub-module 6042, configured to call a control interface corresponding to the character in the current input method;
and the operation sub-module 6043 is configured to operate an interface function corresponding to the control interface, so as to fill the character into a corresponding character input box in the verification code input interface, and complete input of the verification code.
The verification code input device provided by the embodiment of the present invention can implement each process implemented by the mobile terminal in the method embodiments of fig. 1 and fig. 2, and is not described herein again to avoid repetition.
In the embodiment of the invention, the mobile terminal can firstly obtain the target verification code through the first obtaining module, then receives the input first character string in the verification code input interface through the receiving module, and when the number of the first characters corresponding to the first character string is less than the number of the second characters corresponding to the target verification code, the mobile terminal only receives part of the verification code at present, and then the mobile terminal can determine the second character string with the number of bits larger than the number of the first characters in the target verification code through the first determining module, and respectively fill the characters in the second character string into the character input boxes included in the verification code input interface through the input module so as to complete the input of the verification code. In the embodiment of the invention, the mobile terminal can automatically fill the missing character strings in the target verification code into the remaining character input boxes according to the input character strings, so that a user does not need to repeatedly open the short message to check and fill the remaining characters of the target verification code, thereby simplifying the user operation in the verification code input process and improving the input efficiency of the verification code.
Example four
Figure 8 is a schematic diagram of a hardware configuration of a mobile terminal implementing various embodiments of the present invention,
the mobile terminal 800 includes, but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 809, a processor 810, and a power supply 811. Those skilled in the art will appreciate that the mobile terminal architecture illustrated in fig. 8 is not intended to be limiting of mobile terminals, and that a mobile terminal may include more or fewer components than those illustrated, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 810 is configured to obtain a target verification code; receiving an input first character string in a verification code input interface; when the number of first characters corresponding to the first character string is smaller than the number of second characters corresponding to the target verification code, determining a second character string; the second character string comprises characters of which the median of the target verification code is greater than the first character number; and filling the characters in the second character string into a character input box included in the verification code input interface respectively to finish the input of the verification code.
In the embodiment of the invention, the mobile terminal can firstly obtain the target verification code, then receives the input first character string in the verification code input interface, when the number of the first characters corresponding to the first character string is less than the number of the second characters corresponding to the target verification code, the mobile terminal only receives part of the verification code at present, and then the mobile terminal determines the second character string with the number of digits in the target verification code greater than the number of the first characters, and respectively fills the characters in the second character string into the character input boxes included in the verification code input interface so as to complete the input of the verification code. In the embodiment of the invention, the mobile terminal can automatically fill the missing character strings in the target verification code into the remaining character input boxes according to the input character strings, so that a user does not need to repeatedly open the short message to check and fill the remaining characters of the target verification code, thereby simplifying the user operation in the verification code input process and improving the input efficiency of the verification code.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 801 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 810; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 801 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. Further, the radio frequency unit 801 can also communicate with a network and other devices through a wireless communication system.
The mobile terminal provides the user with wireless broadband internet access through the network module 802, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
The audio output unit 803 may convert audio data received by the radio frequency unit 801 or the network module 802 or stored in the memory 809 into an audio signal and output as sound. Also, the audio output unit 803 may also provide audio output related to a specific function performed by the mobile terminal 800 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 803 includes a speaker, a buzzer, a receiver, and the like.
The input unit 804 is used for receiving an audio or video signal. The input Unit 804 may include a Graphics Processing Unit (GPU) 8041 and a microphone 8042, and the Graphics processor 8041 processes image data of a still picture or video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 806. The image frames processed by the graphics processor 8041 may be stored in the memory 809 (or other storage medium) or transmitted via the radio frequency unit 801 or the network module 802. The microphone 8042 can receive sound, and can process such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 801 in case of a phone call mode.
The mobile terminal 800 also includes at least one sensor 805, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 8061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 8061 and/or the backlight when the mobile terminal 800 moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 805 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 806 is used to display information input by the user or information provided to the user. The Display unit 806 may include a Display panel 8061, and the Display panel 8061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 807 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 807 includes a touch panel 8071 and other input devices 8072. The touch panel 8071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 8071 (e.g., operations by a user on or near the touch panel 8071 using a finger, a stylus, or any other suitable object or accessory). The touch panel 8071 may include two portions of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 810, receives a command from the processor 810, and executes the command. In addition, the touch panel 8071 can be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 8071, the user input unit 807 can include other input devices 8072. In particular, other input devices 8072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 8071 can be overlaid on the display panel 8061, and when the touch panel 8071 detects a touch operation on or near the touch panel 8071, the touch operation is transmitted to the processor 810 to determine the type of the touch event, and then the processor 810 provides a corresponding visual output on the display panel 8061 according to the type of the touch event. Although in fig. 8, the touch panel 8071 and the display panel 8061 are two independent components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 8071 and the display panel 8061 may be integrated to implement the input and output functions of the mobile terminal, which is not limited herein.
The interface unit 808 is an interface through which an external device is connected to the mobile terminal 800. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 808 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 800 or may be used to transmit data between the mobile terminal 800 and external devices.
The memory 809 may be used to store software programs as well as various data. The memory 809 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 809 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 810 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by running or executing software programs and/or modules stored in the memory 809 and calling data stored in the memory 809, thereby integrally monitoring the mobile terminal. Processor 810 may include one or more processing units; preferably, the processor 810 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 810.
The mobile terminal 800 may also include a power supply 811 (e.g., a battery) for powering the various components, and the power supply 811 may be logically coupled to the processor 810 via a power management system that may be used to manage charging, discharging, and power consumption.
In addition, the mobile terminal 800 includes some functional modules that are not shown, and thus, are not described in detail herein.
Preferably, an embodiment of the present invention further provides a mobile terminal, which includes a processor 810, a memory 809, and a computer program stored in the memory 809 and capable of running on the processor 810, where the computer program, when executed by the processor 810, implements each process of the above verification code input method embodiment, and can achieve the same technical effect, and details are not repeated here to avoid repetition.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above-mentioned verification code input method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. The term "comprising" is used to specify the presence of stated features, integers, steps, operations, elements, components, operations.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (11)

1. A verification code input method is applied to a mobile terminal, and is characterized by comprising the following steps:
acquiring a target verification code;
receiving an input first character string in a verification code input interface; the verification code input interface comprises at least two character input boxes;
when the number of first characters corresponding to the first character string is smaller than the number of second characters corresponding to the target verification code, determining a second character string; the second character string comprises characters of which the median of the target verification code is greater than the first character number;
filling characters in the second character string into the character input boxes included in the verification code input interface respectively to complete the input of the verification code;
wherein the filling the characters in the second character string into the character input boxes included in the verification code input interface respectively includes: and filling each character in the second character string into the corresponding character input box in the verification code input interface respectively.
2. The method of claim 1, wherein the step of determining the second character string when the number of first characters corresponding to the first character string is smaller than the number of second characters corresponding to the target verification code comprises:
when the number of first characters corresponding to the first character string is smaller than the number of second characters corresponding to the target verification code, sequentially extracting the target character strings with the number of the first characters from the first character in the target verification code;
comparing the target character string with the first character string;
and when the target character string is consistent with the first character string, deleting the target character string in sequence from the first character in the target verification code to obtain a second character string in the target verification code.
3. The method of claim 1, wherein when the number of first characters corresponding to the first character string is smaller than the number of second characters corresponding to the target verification code, determining that the second character string is before, further comprising:
acquiring an interface image corresponding to the verification code input interface;
identifying an input box area in the interface image;
identifying the first character string in the input box area;
and determining the number of first characters corresponding to the first character string.
4. The method of claim 1, wherein the step of determining the second character string when the number of first characters corresponding to the first character string is smaller than the number of second characters corresponding to the target verification code comprises:
and when the number of first characters corresponding to the first character string is smaller than the number of second characters corresponding to the target verification code, extracting characters with the number of bits larger than the number of the first characters from the target verification code to obtain a second character string.
5. The method according to claim 1, wherein the step of filling the characters in the second character string into the character input boxes included in the verification code input interface respectively to complete the input of the verification code comprises:
for any character in the second character string, putting a focus on a character input box corresponding to the character in the verification code input interface;
calling a control interface corresponding to the character in the current input method;
and operating an interface function corresponding to the control interface to fill the characters into a corresponding character input box in the verification code input interface to finish the input of the verification code.
6. An authentication code input apparatus, comprising:
the first acquisition module is used for acquiring a target verification code;
the receiving module is used for receiving an input first character string in the verification code input interface; the verification code input interface comprises at least two character input boxes;
the first determining module is used for determining a second character string when the number of first characters corresponding to the first character string is smaller than the number of second characters corresponding to the target verification code; the second character string comprises characters of which the median of the target verification code is greater than the first character number;
the input module is used for respectively filling characters in the second character string into the character input boxes included in the verification code input interface to finish the input of the verification code;
the input module is specifically configured to fill each character in the second character string into the corresponding character input box in the verification code input interface respectively.
7. The apparatus of claim 6, wherein the first determining module comprises:
the first extraction submodule is used for extracting the target character strings with the quantity of the first character quantity in sequence from the first character in the target verification code when the quantity of the first character corresponding to the first character string is smaller than the quantity of the second character corresponding to the target verification code;
the comparison submodule is used for comparing the target character string with the first character string;
and the deleting submodule is used for deleting the target character string in sequence from the first character in the target verification code to obtain a second character string in the target verification code when the target character string is consistent with the first character string.
8. The apparatus of claim 6, further comprising:
the second acquisition module is used for acquiring an interface image corresponding to the verification code input interface;
the first identification module is used for identifying an input box area in the interface image;
the second identification module is used for identifying the first character string in the input frame area;
and the second determining module is used for determining the number of the first characters corresponding to the first character string.
9. The apparatus of claim 6, wherein the first determining module comprises:
and the second extraction submodule is used for extracting characters with the digit number larger than the first character number from the target verification code to obtain a second character string when the first character number corresponding to the first character string is smaller than the second character number corresponding to the target verification code.
10. The apparatus of claim 6, wherein the input module comprises:
the focus sub-module is used for placing a focus in a character input box corresponding to any character in the second character string in the verification code input interface;
the calling sub-module is used for calling a control interface corresponding to the character in the current input method;
and the operation sub-module is used for operating the interface function corresponding to the control interface so as to fill the characters into the corresponding character input boxes in the verification code input interface and finish the input of the verification code.
11. A mobile terminal, characterized in that it comprises a processor, a memory and a computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, carries out the steps of the captcha input method according to any of claims 1 to 5.
CN201910550002.0A 2019-06-24 2019-06-24 Verification code input method and device and mobile terminal Active CN110287655B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910550002.0A CN110287655B (en) 2019-06-24 2019-06-24 Verification code input method and device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910550002.0A CN110287655B (en) 2019-06-24 2019-06-24 Verification code input method and device and mobile terminal

Publications (2)

Publication Number Publication Date
CN110287655A CN110287655A (en) 2019-09-27
CN110287655B true CN110287655B (en) 2021-06-18

Family

ID=68004463

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910550002.0A Active CN110287655B (en) 2019-06-24 2019-06-24 Verification code input method and device and mobile terminal

Country Status (1)

Country Link
CN (1) CN110287655B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111596820B (en) * 2020-04-28 2022-05-31 维沃移动通信有限公司 Head portrait setting method and device
CN112565842A (en) * 2020-12-04 2021-03-26 广州视源电子科技股份有限公司 Information processing method, device and storage medium
CN112732100A (en) * 2021-01-21 2021-04-30 维沃移动通信有限公司 Information processing method and device and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104660406A (en) * 2013-11-22 2015-05-27 华为终端有限公司 Method, device and equipment for logging in service
CN105511949A (en) * 2015-12-03 2016-04-20 小米科技有限责任公司 Verification code filling method and device and mobile terminal
CN106131000A (en) * 2016-06-30 2016-11-16 维沃移动通信有限公司 Identifying code fill method and mobile terminal thereof
CN106294528A (en) * 2015-06-29 2017-01-04 深圳市腾讯计算机系统有限公司 A kind of method and device realizing information transmission
CN107817906A (en) * 2017-12-04 2018-03-20 北京小米移动软件有限公司 A kind of method and apparatus of input
CN109040010A (en) * 2015-12-31 2018-12-18 华为技术有限公司 A kind of identifying code acquisition methods, device and terminal

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2514419B (en) * 2013-05-24 2016-05-04 Barclays Bank Plc Improved user authentication system and method
CN105160236B (en) * 2015-08-31 2018-04-06 小米科技有限责任公司 A kind of method and apparatus of input validation code
CN105159533A (en) * 2015-08-31 2015-12-16 努比亚技术有限公司 Mobile terminal and automatic verification code input method thereof
CN106599637B (en) * 2016-11-04 2020-11-03 北京安云世纪科技有限公司 Method and device for inputting verification code on verification interface

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104660406A (en) * 2013-11-22 2015-05-27 华为终端有限公司 Method, device and equipment for logging in service
CN106294528A (en) * 2015-06-29 2017-01-04 深圳市腾讯计算机系统有限公司 A kind of method and device realizing information transmission
CN105511949A (en) * 2015-12-03 2016-04-20 小米科技有限责任公司 Verification code filling method and device and mobile terminal
CN109040010A (en) * 2015-12-31 2018-12-18 华为技术有限公司 A kind of identifying code acquisition methods, device and terminal
CN106131000A (en) * 2016-06-30 2016-11-16 维沃移动通信有限公司 Identifying code fill method and mobile terminal thereof
CN107817906A (en) * 2017-12-04 2018-03-20 北京小米移动软件有限公司 A kind of method and apparatus of input

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Reverse Engineering CAPTCHAs;Abram Hindle 等;《2008 15th Working Conference on Reverse Engineering》;20081018;第59-68页 *
基于威客模式的威酷校园APP设计与实现;李焕兴 等;《计算机时代》;20170715(第07期);第24-27页 *

Also Published As

Publication number Publication date
CN110287655A (en) 2019-09-27

Similar Documents

Publication Publication Date Title
CN108427876B (en) Fingerprint identification method and mobile terminal
CN107944325B (en) Code scanning method, code scanning device and mobile terminal
CN108347512B (en) Identity recognition method and mobile terminal
CN108135033B (en) Bluetooth connection method and mobile terminal
CN110287655B (en) Verification code input method and device and mobile terminal
CN108171832B (en) Unlocking method of shared bicycle and mobile terminal
CN108710458B (en) Split screen control method and terminal equipment
CN107682359B (en) Application registration method and mobile terminal
CN109544172B (en) Display method and terminal equipment
CN107704182B (en) Code scanning method and mobile terminal
CN110674662A (en) Scanning method and terminal equipment
CN107783747B (en) Interface display processing method and mobile terminal
CN109523253B (en) Payment method and device
CN108664818B (en) Unlocking control method and device
CN110096203B (en) Screenshot method and mobile terminal
CN108196663B (en) Face recognition method and mobile terminal
WO2019223493A1 (en) Object recognition method and mobile terminal
CN111007980A (en) Information input method and terminal equipment
CN110929238B (en) Information processing method and device
CN110796438B (en) Message sending method and mobile terminal
CN110225040B (en) Information processing method and terminal equipment
CN110007836B (en) Bill generation method and mobile terminal
CN109547622B (en) Verification method and terminal equipment
CN108848270B (en) Method for processing screen shot image and mobile terminal
CN108108608B (en) Control method of mobile terminal and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant