WO2018205168A1 - 一种验证码的输入方法及装置 - Google Patents

一种验证码的输入方法及装置 Download PDF

Info

Publication number
WO2018205168A1
WO2018205168A1 PCT/CN2017/083788 CN2017083788W WO2018205168A1 WO 2018205168 A1 WO2018205168 A1 WO 2018205168A1 CN 2017083788 W CN2017083788 W CN 2017083788W WO 2018205168 A1 WO2018205168 A1 WO 2018205168A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
application
verification
verification code
verified
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.)
Ceased
Application number
PCT/CN2017/083788
Other languages
English (en)
French (fr)
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201780008013.5A priority Critical patent/CN108702413A/zh
Priority to US16/612,129 priority patent/US20200169629A1/en
Priority to EP17909301.8A priority patent/EP3618347B1/en
Priority to PCT/CN2017/083788 priority patent/WO2018205168A1/zh
Publication of WO2018205168A1 publication Critical patent/WO2018205168A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • H04M1/72436User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for text messaging, e.g. short messaging services [SMS] or e-mails
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3226Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using a predetermined code, e.g. password, passphrase or PIN
    • H04L9/3228One-time or temporary data, i.e. information which is sent for every authentication or authorization, e.g. one-time-password, one-time-token or one-time-key
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • 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
    • G06F3/0486Drag-and-drop
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/083Network architectures or network communication protocols for network security for authentication of entities using passwords
    • H04L63/0838Network architectures or network communication protocols for network security for authentication of entities using passwords using one-time-passwords
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72469User interfaces specially adapted for cordless or mobile telephones for operating the device by selecting functions from two or more displayed items, e.g. menus or icons
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • H04W12/068Authentication using credential vaults, e.g. password manager applications or one time password [OTP] applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/06Network architectures or network communication protocols for network security for supporting key management in a packet data network
    • H04L63/067Network architectures or network communication protocols for network security for supporting key management in a packet data network using one-time keys
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/18Network architectures or network communication protocols for network security using different networks or channels, e.g. using out of band channels
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/22Details of telephonic subscriber devices including a touch pad, a touch sensor or a touch detector
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/60Context-dependent security
    • H04W12/68Gesture-dependent or behaviour-dependent
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements

Definitions

  • the embodiments of the present invention relate to the field of communications technologies, and in particular, to a method and an apparatus for inputting a verification code.
  • SMS verification refers to the process in which an enterprise gives a user a credential (for example, a verification code) to verify the identity of the user through a verification code in the content of the short message.
  • a credential for example, a verification code
  • the user can manually input the verification code to the specified location in the verification interface of the application to be verified.
  • the user can switch to the SMS application, and the verification or verification of the verification in the verification SMS is verified.
  • the code is then switched back to the application to be verified, and the previously copied verification code is manually input or pasted according to the memory to the specified position in the verification interface.
  • the user can open the right to read the short message to the application to be verified, so that when the user receives the verification short message, the terminal can automatically read the verification code in the verification short message, and input the verification code into the verification interface.
  • the specified location for example, a verification code
  • the right to open the read short message to the application to be verified increases the risk of the user being stolen, and the manual input of the verification code requires the user to perform frequent interface switching operations.
  • the risk of incorrectly entering the verification code and the duration of the short message verification are increased, so that the efficiency of the user performing the short message verification operation is reduced.
  • An embodiment of the present invention provides a method and an apparatus for inputting a verification code.
  • the application to be verified can automatically obtain the verification code in the verification short message to ensure the accuracy and security of the verification code input. .
  • an embodiment of the present invention provides a method for inputting a verification code, including: automatically acquiring a verification code in the verification short message after the electronic device acquires the verification code including the verification code; and further, when the electronic device detects A single operation of the touch screen (the single operation is used to instruct the electronic device to input the verification code to the preset position of the application to be verified); the electronic device inputs the verification code to the preset position.
  • the electronic device can automatically obtain the verification code in the verification short message, and the user can input the verification code into the preset position preset by the application to be verified by performing a single operation, thereby avoiding The user frequently switches between the application to be verified and the short message application, so that the short message verification process is simpler and more accurate.
  • the user does not need to open the permission to read the short message content to the application to be verified, so as to ensure the privacy of the user. .
  • the method further includes: when the application to be verified is running in the foreground, the electronic device displays the verification message and the to-be-verified simultaneously through different windows in the display interface.
  • the application wherein, in response to the single operation, the electronic device inputs the verification code to the preset location, including: the electronic device acquires an end position of the single operation in the display interface; and when the end location is located in the application to be verified
  • the electronic device inputs the verification code to the preset position. That is to say, in the process of SMS verification, the electronic device can be verified
  • the application and the SMS application for verifying the SMS are simultaneously presented to the user, so that the user can directly input the verification code into the preset location by performing a single operation.
  • the application to be verified may always run in the foreground, or may switch the application to be verified to the foreground after detecting a single operation, for example, the user to be verified after being confirmed by the user.
  • the application is called up and switched to the foreground, and the embodiment of the present invention does not impose any limitation.
  • the method further includes: when the end position is not in the window where the application to be verified is located, the electronic device is presented in the display interface
  • the first prompt is to indicate that the user performs a correct single operation on the verification code.
  • the electronic device may also reverse the window where the application to be verified is located with the window where the end position is located, so that the window corresponding to the end position of the single operation is adjusted
  • the application to be verified is run, and the electronic device is triggered to input the verification code to the preset position.
  • the method further includes: the electronic device adding a first target window in the display interface, where the first target window is configured to display the verification short message; wherein, in response to the single
  • the electronic device inputs the verification code to the preset location, including: in response to the single operation, the electronic device determines whether the application to be verified is running in the foreground; when the application to be verified is running in the foreground, the electronic device The verification code is input to the preset location, or when the application to be verified is not running in the foreground, the electronic device calls the application to be verified to run in the foreground, and inputs the verification code to the preset location.
  • the electronic device determines whether the to-be-verified application is running in the foreground, and includes: the electronic device determines whether the to-be-verified application is in the second target window (the second target window is a window where the end position of the single operation is located) If the application to be verified runs in the second target window, the electronic device determines that the application to be verified is running in the foreground; if the application to be verified is not running in the second target window, the electronic device determines that the application to be verified is not running in the foreground.
  • the method further includes: the electronic device saves the verification code in the verification short message to the target storage space, where the target storage space and the clipboard of the electronic device are stored The space is different.
  • the electronic device pre-establishes a correspondence between inputting the verification code in the target storage space to the verification input box and a single operation, and upon detecting that the user triggers the single operation, the electronic device can set the target storage space.
  • the verification code stored in is entered into the verification input box.
  • the single operation is uniquely associated with the verification code input operation; wherein, in response to the single operation, the electronic device inputs the verification code to the preset position, including: responding to the single time In operation, the electronic device inputs the verification code stored in the target storage space to the preset location.
  • the single operation and verification code input operation and the user are most recent The input operation of the copied content is associated with each other; wherein, in response to the single operation, the electronic device inputs the verification code to the preset location, including: in response to the single operation, the electronic device determines whether the application to be verified is The foreground is running; when the to-be-verified application is running in the foreground, the electronic device inputs the verification code stored in the target storage space to the preset location.
  • the method further includes: when the to-be-verified application is not running in the foreground, the electronic device pastes the last copied content of the user in the clipboard.
  • the method before the electronic device detects a single operation on the touch screen, the method further includes: the electronic device prompting the user to perform the single operation in the display interface.
  • an embodiment of the present invention provides an electronic device, including: an acquiring unit, configured to: receive a verification short message, where the verification short message includes a verification code, and a detecting unit, configured to: detect a single operation acting on the touch screen The single operation is used to instruct the electronic device to input the verification code to the preset location of the application to be verified, and the to-be-verified application authenticates the identity of the user by using the verification code; and the executing unit is configured to: respond to the In a single operation, the verification code is input to the preset position.
  • an embodiment of the present invention provides an electronic device, including: a processor, a memory, a bus, and a communication interface; the memory is configured to store a computer execution instruction, and the processor is connected to the memory through the bus, when the electronic device In operation, the processor executes the computer-executed instructions stored in the memory to cause the electronic device to perform the input method of any one of the verification codes described above.
  • an embodiment of the present invention provides a computer readable storage medium, where the computer readable storage medium stores an instruction, when the instruction is run on any one of the electronic devices, causing the electronic device to perform any of the foregoing The input method of the verification code.
  • an embodiment of the present invention provides a computer program product comprising instructions, when it is run on any of the above electronic devices, causing the electronic device to perform an input method of any one of the above verification codes.
  • the names of the electronic devices are not limited to the devices themselves, and in actual implementation, the devices may appear under other names. As long as the functions of the respective devices are similar to the embodiments of the present invention, they are within the scope of the claims and the equivalents thereof.
  • FIG. 1 is a schematic diagram 1 of a scenario for inputting a verification code according to an embodiment of the present invention
  • FIG. 2 is a second schematic diagram of a scenario for inputting a verification code according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram 3 of a scenario for inputting a verification code according to an embodiment of the present invention
  • FIG. 4 is a schematic structural diagram 1 of an electronic device according to an embodiment of the present disclosure.
  • FIG. 5 is a schematic flowchart 1 of a method for inputting a verification code according to an embodiment of the present invention
  • FIG. 6 is a schematic diagram 4 of a scenario for inputting a verification code according to an embodiment of the present invention.
  • FIG. 7 is a schematic diagram 5 of a scenario for inputting a verification code according to an embodiment of the present invention.
  • FIG. 8 is a schematic diagram 6 of a method for inputting a verification code according to an embodiment of the present invention.
  • FIG. 9 is a schematic diagram 7 of a scenario for inputting a verification code according to an embodiment of the present invention.
  • FIG. 10 is a schematic diagram 8 of a method for inputting a verification code according to an embodiment of the present invention.
  • FIG. 11 is a schematic diagram 9 of a method for inputting a verification code according to an embodiment of the present invention.
  • FIG. 12 is a schematic diagram 10 of a method for inputting a verification code according to an embodiment of the present invention.
  • FIG. 13 is a schematic diagram 11 of a method for inputting a verification code according to an embodiment of the present invention.
  • FIG. 14 is a schematic diagram 12 of a scenario for inputting a verification code according to an embodiment of the present invention.
  • 15 is a schematic diagram 13 of a method for inputting a verification code according to an embodiment of the present invention.
  • 16 is a schematic diagram of a scenario 14 of a method for inputting a verification code according to an embodiment of the present invention
  • FIG. 17 is a second schematic flowchart of a method for inputting a verification code according to an embodiment of the present invention.
  • FIG. 18 is a schematic diagram of a scenario of a method for inputting a verification code according to an embodiment of the present invention.
  • FIG. 19 is a schematic diagram of a scenario of a method for inputting a verification code according to an embodiment of the present invention.
  • FIG. 20 is a schematic diagram of a scenario of a method for inputting a verification code according to an embodiment of the present invention.
  • FIG. 21 is a schematic diagram of a scenario of a method for inputting a verification code according to an embodiment of the present invention.
  • FIG. 22 is a schematic diagram 19 of a method for inputting a verification code according to an embodiment of the present invention.
  • FIG. 23 is a schematic flowchart 3 of a method for inputting a verification code according to an embodiment of the present disclosure
  • FIG. 24 is a schematic diagram of a scenario of a method for inputting a verification code according to an embodiment of the present invention.
  • FIG. 25 is a schematic diagram of a scenario of a method for inputting a verification code according to an embodiment of the present invention.
  • FIG. 26 is a schematic structural diagram 2 of an electronic device according to an embodiment of the present disclosure.
  • FIG. 27 is a schematic structural diagram 3 of an electronic device according to an embodiment of the present invention.
  • first and second are used for descriptive purposes only, and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated.
  • features defining “first” and “second” may include one or more of the features either explicitly or implicitly.
  • the meaning of "a plurality" is two or more unless otherwise specified.
  • Embodiments of the present invention provide a method for inputting a verification code, which can be applied to a mobile phone, a wearable device, an augmented reality (AR), a virtual reality (VR) device, a tablet computer, a notebook computer, and a super mobile device.
  • An electronic device having a short message verification function such as an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), and the like, is not limited in this embodiment of the present invention.
  • UMPC ultra-mobile personal computer
  • PDA personal digital assistant
  • the electronic device when the electronic device receives the verification short message including the verification code, as shown in FIG. 1 , the electronic device may display the verification method through multiple windows.
  • the application to be verified 11 corresponding to the short message and the short message application 12 displaying the verified short message are simultaneously presented to the user.
  • the electronic device detects that the user performs a predetermined single operation on the verification code in the short message application 12, for example, a drag operation, the electronic device can input the verification code to the preset position of the application 11 to be verified. For example, the verification input box 13 of the application 11 to be verified in FIG.
  • the electronic device can simultaneously present the to-be-verified application 11 and the short message application 12 for verifying the short message to the user. Further, the user can directly input the verification code to the verification input box 13 by performing a single operation. In the user, the application 11 and the SMS should be avoided. The use of multiple operations such as frequent switching between 12s makes the short message verification process simpler and more accurate. At the same time, the user does not need to open the permission to read the short message content to the application to be verified 11 to ensure the privacy of the user.
  • the electronic device when the electronic device receives the verification short message including the verification code, the electronic device may automatically save the verification code, and then, as shown in FIG. 2, prompt the user to execute through a display interface.
  • a single operation for pasting a verification code into a verification input box for example, a double click operation.
  • the electronic device detects that the user performs the single operation, as shown in FIG. 3, the saved verification code can be directly pasted into the verification input box of the application to be verified.
  • the electronic device pre-establishes a correspondence between inputting the verification code to the verification input box and the single operation described above, and upon detecting that the user triggers the single operation, the electronic device can input the saved verification code. Go to the verification input box.
  • the permission of the application to be verified is not required to read the content of the short message, the user only needs to perform a single operation to input the verification code in the verification input box, thereby reducing the frequent switching between the application to be verified and the short message application. Second operation to improve the efficiency of successful SMS verification operations.
  • the electronic device can divide a target storage space dedicated to storing the verification code in its own storage space.
  • the verification code since the verification code is stored in the above target storage space instead of the default storage space of the electronic device, for example, in the default clipboard, the content saved by the user last time the copy operation is still stored in the default clipboard. Does not interfere with subsequent users pasting their saved content from the default clipboard.
  • the above-mentioned verification code can also be stored in the above-mentioned default clipboard, which is not limited in this embodiment of the present invention.
  • the electronic device may specifically include: a radio frequency (RF) circuit 21, a memory 22, an execution unit 23, a display unit 24, an audio circuit 26, and a processor 27.
  • RF radio frequency
  • FIG. 4 does not constitute a limitation to the electronic device, and may include more or less components than those illustrated, or a combination of certain components, or different component arrangements.
  • the RF circuit 21 can be used for receiving and transmitting information during the transmission or reception of information or during a call.
  • the processor 27 processes the uplink information.
  • the uplink data is sent to the wireless access device.
  • RF circuits include, but are not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (LNA), a duplexer, and the like.
  • the RF circuit 21 can also communicate with the network and other devices through wireless communication.
  • the memory 22 can be used to store software programs and modules, and the processor 27 executes various functional applications and data processing of the electronic device by running software programs and modules stored in the memory 22.
  • the execution unit 23 can be configured to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the electronic device.
  • execution unit 23 may include touch screen 341 as well as other input devices 342.
  • the display unit 24 can be used to display information input by the user or information provided to the user as well as various menus of the electronic device.
  • the display unit 24 can include a display panel 351.
  • the display panel 351 can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
  • the electronic device may further include a gravity sensor and other sensors, such as a light sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., and details are not described herein.
  • a gravity sensor such as a light sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., and details are not described herein.
  • Audio circuitry 26, speaker 371, microphone 372 can provide an audio interface between the user and the electronic device.
  • the audio circuit 26 can transmit the converted electrical data of the received audio data to the speaker 371 for conversion to the sound signal output by the speaker 371; on the other hand, the microphone 372 converts the collected sound signal into an electrical signal by the audio circuit 26 After receiving, it is converted into audio data, and then the audio data is output to the RF circuit 21 for transmission to, for example, another electronic device, or the audio data is output to the memory 22 for further processing.
  • the processor 27 is a control center for the electronic device that connects various portions of the entire electronic device using various interfaces and lines, by running or executing software programs and/or modules stored in the memory 22, and recalling data stored in the memory 22. , performing various functions and processing data of the electronic device to perform overall monitoring of the electronic device.
  • processor 27 may include one or more processing units.
  • the above electronic device may further include a power source, a camera, a wireless fidelity (WiFi) module, a Bluetooth module, and the like, and details are not described herein.
  • a power source a camera
  • WiFi wireless fidelity
  • Bluetooth Bluetooth module
  • the method includes:
  • the electronic device receives the verification short message, where the verification short message includes a verification code.
  • the application A may be triggered to display a to-be-verified interface for verifying the short message.
  • the server of the application A sends a verification message containing the verification code to the electronic device according to the phone number.
  • the foregoing verification code may also be referred to as an authentication code, a dynamic code, or the like, and may be a string of random numbers or characters and the like.
  • the embodiment of the present invention does not impose any limitation.
  • the verification code may be generated by the server of the application A, or may be generated by the server of the application A through a server that provides the short message verification service, or may be generated by the operator's server of the operator, etc.
  • the process of generating and transmitting the verification code in the verification short message may be implemented based on the prior art, which is not limited by the embodiment of the present invention.
  • the electronic device determines an application to be verified associated with the verification short message.
  • the to-be-verified application may be one of the applications already installed on the electronic device, or may be one of the applications currently running in the foreground or the background.
  • the application to be verified may perform identity authentication on the user that triggers the verification operation by using the verification code.
  • the electronic device may pre-establish a correspondence between different applications in the electronic device and different key information, where the key information may be a sending number of the short message or a name of the application. Or its abbreviation or application package name (package name) and so on.
  • the electronic device may extract corresponding key information from the verification short message, and determine that the application corresponding to the key information is the application to be verified.
  • the electronic device may run multiple applications at the same time. Then, when the application to be verified is the application A, the electronic device may further determine whether the application A is currently running, that is, the application A is in the foreground. If application A is running, the electronic device can continue to perform steps 103-105 described below. This is because if the electronic device is currently running the application A, the subsequent electronic device can directly display the relevant interface of the application A, without restarting the application A or transferring the application A to the foreground, thereby shortening the duration of the short message verification process.
  • the electronic device simultaneously displays the interface of the application to be verified and the interface for verifying the short message in the display interface.
  • step 103 when the electronic device determines that the application to be verified is the application A, the electronic device may be triggered to initiate a display mode of the multi-window, for example, a split screen display mode or a message box pop-up mode.
  • a display mode of the multi-window for example, a split screen display mode or a message box pop-up mode.
  • the electronic device can present the determined application to be verified, that is, the to-be-verified interface of the application A, and the short message interface of the verification short message to the user through a window.
  • the split screen display mode may also be referred to as a multi-screen mode, and belongs to one of the multi-window display modes.
  • the electronic device enters the split screen mode, it is divided in the same display interface (such as the touch screen of the mobile phone). Multiple windows are displayed to simultaneously run and display multiple applications in multiple windows; and the message box pop-up mode also belongs to a multi-window display mode, which means that other windows are superimposed on the display interface, and the superimposed
  • the window can always be at the front end of the display interface, for example, in the form of a floating window, thus allowing for partial overlap between multiple windows.
  • the electronic device determines that the application to be verified is the application A
  • the user may still stay on the to-be-verified interface of the application A, that is, the application A is running in the foreground as a foreground application, then, Still as shown in FIG. 7, the electronic device can create two windows in the display interface, for example, window 1 and window 2. Further, the window to be verified of the application A is displayed in the window 1, and the verification message is displayed in the window 2. SMS interface.
  • the electronic device may have switched from the interface to be verified of the application A to the operation interface of the application B, that is, at this time.
  • the foreground application is Application B instead of the above-mentioned application A to be verified.
  • the electronic device can prompt the user to call up the application A and start the display mode of the multi-window. If the user confirms that the application A is called and the display mode of the multi-window is started, as shown in FIG. 7 above, the electronic device can call up the application A, and display the to-be-verified interface of the application A in the window 1, and display it in the window 2.
  • the above SMS verification interface for verifying SMS.
  • the manner of prompting the user to call up the application A and start the display mode of the multi-window may be implemented by using an image, a text, a voice, etc., of course, the electronic device may not prompt the user, but automatically call the application A to The display mode of the multi-window is started in the foreground, which is not limited by the embodiment of the present invention.
  • the display interface of the electronic device is the operation interface of the application B, that is, the application A is not running in the foreground. Then, when the user confirms that the application A is called and the display mode of the multi-window is started, as shown in FIG. 9, the electronic device can create a window of the application A, that is, the window 1 in the display interface, and display the application B in the window 3.
  • the operation interface at this time, the electronic device simultaneously displays three windows: the interface to be verified of the application A, the short message interface of the above-mentioned verification short message, and the operation interface of the application B that the user is operating. In this way, there is no interference to the new application (application B) that the user is executing while performing SMS verification.
  • the user may trigger the foregoing short message verification operation in the display mode of the multi-window.
  • the display interface of the electronic device includes the window 1 and the application B of the application A (for example, Window 2 of the video application, the user performs a short message verification operation in the application A. Then, after the electronic device determines that the application to be verified associated with the received verification message is the application A, as shown in FIG.
  • a window 3 may be created for the short message interface of the verification short message, by adjusting the window 1 and the window 2 And the size of the window 3, the interface to be verified of the application A is displayed in the window 1, the operation interface of the application B in the window 2, and the short message interface of the above-mentioned verification short message in the window 3 are simultaneously presented to the user.
  • the position of the window 3 for displaying the verification short message may be set according to the actual application scenario or the experience, and the embodiment of the present invention does not impose any limitation.
  • the electronic device needs to determine the application to be verified before the verification of the short message and the application to be verified (for example, the application A described above) is simultaneously displayed on the display interface.
  • the application to be verified for example, the application A described above
  • Running in the foreground for example, the application to be verified is originally running in the foreground, or, in response to the trigger of the user, the electronic device has called the application to the foreground to run.
  • the electronic device detects whether the user performs a single operation on the verification code, and the single operation is used to instruct the electronic device to input the verification code to the preset location of the application to be verified.
  • the electronic device inputs the verification code in the verification short message to a preset location of the application to be verified.
  • the electronic device may preset a specific form of the single operation, for example, a sliding operation, a drag operation, a click operation, or a double-click operation, etc., when the user is in the short message interface of the verification short message, verifying the short message.
  • the verification code performs the above single operation, and the electronic device can input the verification code in the verification short message to the preset position of the application to be verified in response to the single operation, and the preset position may be the verification input box of the interface to be verified. , complete the automatic input process of the verification code.
  • the electronic device may also record that the window of the application to be verified is touching.
  • the position information on the screen for example, the coordinate range of the window in which the application to be verified is located, and the position information of the window on which the verification SMS is located on the touch screen, for example, the coordinate range of the window in which the short message is located.
  • the single operation is a sliding or dragging operation
  • the coordinate point corresponding to the starting position of the single operation falls within the coordinate range of the window in which the verification short message is located
  • the starting position of the single operation is located
  • the verification verification message is located in the window; when the coordinate point corresponding to the end position of the single operation falls within the coordinate range of the window of the application to be verified, it indicates that the end position of the single operation is located in the window of the application to be verified.
  • the electronic device simultaneously displays the to-be-verified interface (window 1) of the application A, the short message interface (window 3) of the verification short message, and the operation of the application B that the user is operating, using three windows simultaneously. Interface (window 2).
  • the electronic device may prompt the user to perform a drag operation (ie, a single operation) on the verification code in the window 3 by means of text or animation. Then, if it is detected that the user performs a drag operation on the verification code, as shown in (a) of FIG.
  • the electronic device can further determine the start position and the end position of the drag operation, if the drag operation When the starting position is at the window 3, and the end position of the drag operation is at the window 1, as shown in (b) of FIG. 12, the electronic device can input the verification code in the verification short message to the verification input box of the window 1. .
  • the user verifies the verification in the window 3.
  • the code is dragged into the window 2, then, when the electronic device determines that the end position of the drag operation is not in the window 1, as shown in (b) of FIG. 13, the electronic device can present a prompt in the display interface (for example, The first prompt is used to prompt the user to the drag position of the drag operation, and further prompt the user to the correct drag position, so that the user can perform the correct single operation according to the above prompt.
  • the prompt may be a pop-up window or a voice form, as long as the user can be prompted to operate the error and/or the correct position.
  • the electronic device can directly reverse the position of the application A and the application B.
  • the operation interface of the application B is displayed in the window 1
  • the interface to be verified of the application A (the application to be verified) is displayed in the window 2.
  • the starting position of the drag operation is located in the short message interface of the verification short message
  • the end position of the drag operation is located in the to-be-verified interface of the application to be verified. Therefore, as shown in (b) of FIG. 14, the electronic device can The verification code in the above verification SMS is input to the preset position of the application to be verified.
  • the electronic device offsets the position of the application A and the application B, which may be: directly swapping the position of the window where the application A is located with the position of the window where the application B is located; or referring to: closing the application B in the window 2 and The application A is called to the foreground of the window 2, and the application A in the window 1 is closed and the application B is called out to the foreground of the window 1.
  • This embodiment of the present invention does not impose any limitation.
  • the prompt can be used only when the user first uses the input method of the above verification code.
  • the user performs a drag operation on the verification code in the window 2, and may also prompt the user to perform a drag operation on the verification code in the window 2 by text or animation, etc. each time the input method of the verification code is executed, the implementation of the present invention There are no restrictions on this.
  • the above is only illustrated by the drag operation as the single operation described above, and it can be understood that the single operation can also be any preset operation.
  • the electronic device when the electronic device detects that the user performs a click operation in the window 1, the electronic device may be triggered to input the verification code in the verification short message in the window 3 to the verification of the window 1. In the input box.
  • the electronic device may further set a function button in the short message interface of the verification short message, as shown by the button 100 in FIG. 15, wherein the single operation may be a click operation on the button 100, then, when the electronic device When the device detects that the user clicks the button 100, the verification code in the verification message in the window 2 can be input into the verification input box of the window 1.
  • the electronic device may further determine, according to the current application scenario, whether the electronic device has a requirement to enter a multi-window display mode, and when the electronic device has a requirement to enter a multi-window display mode, for example, there is a new message.
  • the electronic device can be automatically triggered to enter the multi-window display mode.
  • the original target application and the newly added split screen application can be presented to the user at the same time.
  • the electronic device when the user is watching the video application using the mobile data, if the electronic device detects a strong WiFi signal, then in order to avoid interrupting the target application that the electronic device is running (ie, the video application) ), the electronic device can automatically enter the multi-window display mode. As shown in (b) of FIG. 16, the electronic device can continue to run the original target application B through the window 1, and display the login interface of the WiFi detected through the window 2.
  • the user can input the mobile phone number in the login interface of the WiFi, trigger the electronic device to obtain the verification code, and subsequently, the electronic device receives the verification short message including the verification code.
  • the electronic device can automatically extract the verification code in the verification short message, as shown in (b) of FIG. 16 , when the electronic device detects that the user clicks the verification input box, as shown in (c) of FIG. 16 , the electronic device In response to the click operation, the device can directly input the obtained verification code into the verification input box, automatically implement the verification code input process, and does not disturb the process of the target application that the user is originally using.
  • the WiFi scenario is taken as an example. It can be understood that when the electronic device performs the target application, if there is a need to enter the multi-window display mode, for example, receiving a new short message, etc., The electronic device is automatically triggered to enter the multi-window display mode, which is not limited in this embodiment of the present invention.
  • the timeliness of the single operation may also be set.
  • the time may be started when the electronic device receives the verification message, or may be started when the electronic device starts the display mode of the multi-window. If the electronic device detects the single operation for a predetermined period of time, for example, within 5 seconds after the start of the timer, the electronic device inputs the verification code in the verification message to the preset position of the application to be verified, otherwise, this time
  • the SMS verification operation is invalid, which can avoid the security risks in the SMS verification process caused by the user not operating the electronic device for a long time.
  • the electronic device inputs the verification code in the verification short message to the preset position of the application to be verified, there may be multiple implementation manners.
  • the electronic device may save the verification code, for example, to a target clipboard dedicated to storing the verification code.
  • the electronic device can read the already stored verification code from the target clipboard and input the verification code into the verification input box.
  • the electronic device may extract the verification code from the verification short message by semantic analysis or string analysis, and then input the verification code into the verification input box, and the implementation of the present invention There are no restrictions on this.
  • the electronic device may close the window created for the verification SMS (for example, window 2 in FIG. 15), and restore the electronic The display mode of the device before entering the display mode of the multi-window, thereby maximally avoiding the impact of the SMS verification process on the operation that the user is performing.
  • the electronic device closes the window created for the verification message after inputting the verification code, the user can see the verification code in the verification short message during the entire process of inputting the verification code, compared to the prior art.
  • the method for verifying the short message is displayed by using a floating window. The user can use the verification code input method provided by the embodiment of the present invention, and there is no need to worry about the fact that the verification code floating window to be input is not deleted or copied from the display interface.
  • the verification code input process is more convenient and efficient.
  • a single operation triggered by the user may be used as an authorization process for obtaining the verification code from the short message, that is, the user is detected at the time.
  • a single operation is triggered, it is equivalent to obtaining the authorization of the user, that is, the user authorizes the application to be verified to obtain the verification code in the verification message received this time. In this way, it is not necessary to open the permission to read all the short message content of the user for the application to be verified in advance, thereby reducing the risk of the user's privacy being leaked.
  • the electronic device may delete the saved verification code.
  • the window created for the verification SMS is closed, the user can be manually turned off or the electronic device automatically turns off (if the electronic device determines that the verification code has been input to the preset location of the application to be transmitted, the verification code is automatically located in the window. shut down).
  • an embodiment of the present invention provides a method for inputting a verification code. As shown in FIG. 17, the method includes:
  • the electronic device receives the verification short message, where the verification short message includes a verification code.
  • the electronic device determines an application to be verified that is associated with the verification short message.
  • the method for the electronic device to obtain the verification short message and determine the application to be verified associated with the verification of the short message is similar to the steps 101-102, and therefore is not described herein again.
  • the electronic device adds a first target window on the current display interface, where the first target window is used to run the short message interface for verifying the short message.
  • step 203 different from the foregoing step 103, after the electronic device determines the application to be verified (for example, the application A), whether the application A is running in the foreground (that is, the application A may be in the background running state, Or, in the state that is not running but installed, the electronic device can additionally create a window for the above verification message on the current display interface, that is, the first target window, and The SMS interface for verifying the short message is run in the first target window.
  • the application to be verified for example, the application A
  • the electronic device can additionally create a window for the above verification message on the current display interface, that is, the first target window, and The SMS interface for verifying the short message is run in the first target window.
  • the user when the user receives the verification short message, the user has switched from the application A to the operation interface of the application B.
  • the electronic device determines that the to-be-verified application associated with the verification short message is the application A
  • the first target window of the short message interface for running the verification short message may be created, and the operation interface of the currently running application B is retained.
  • the operation interface of the application B can be displayed in the window 1 through the display mode of the multi-window, and the short message interface of the verification short message can be displayed in the window 2.
  • the window 2 is the above-described first target window.
  • the electronic device can adjust the size and position of the window 1 and the window 2, and the embodiment of the present invention does not impose any limitation.
  • the electronic device detects whether the user performs a single operation on the verification code, where the single operation is used to instruct the electronic device to input the verification code to the preset location of the application to be verified.
  • the electronic device determines whether the application to be verified is running in the foreground.
  • the electronic device After the electronic device adds the first target window on the current display interface, similar to step 104, the electronic device detects whether the user performs a single operation on the verification code.
  • the electronic device detects whether the user performs a single operation on the verification code.
  • step 205 the electronic device needs to further determine whether the application to be verified is currently running in the foreground.
  • the drag operation is taken as the above single operation example, when the start position of the drag operation is located in the window 2 (ie, the first target window), and the end position of the drag operation is located.
  • the electronic device can further determine whether the second target window (ie, window 1) where the end position is located is running the application to be verified.
  • the electronic device may determine that the application to be verified is not running in the foreground. Accordingly, when the application to be verified is run in the window 1, the electronic device may determine that the application to be verified is running in the foreground.
  • a function button may be set in the short message interface of the verification message of the window 2, and the single operation may be a click or double click on the function button. Then, upon detecting that the user clicks or double-clicks the function button, the electronic device may further determine whether the application running in the window other than the window 2 is the above-mentioned application to be verified. When the application to be verified is run in any window other than the window 2, the electronic device may determine that the application to be verified is running in the foreground.
  • the electronic device may determine that the application to be verified in the window is running in the foreground.
  • the electronic device inputs the verification code in the verification short message to a preset location of the application to be verified.
  • FIG. 19 when the application running in the window (for example, the second target window) where the end position of the drag operation is located is not the application to be verified, as shown in FIG. 20, the application running in the window 1 is Application B, instead of the application A to be verified above, then the electronic device can pass text or move A form of drawing or the like presents a prompt (for example, a second prompt) in the display interface for prompting the user whether to call the application A to be verified to run in the foreground.
  • a prompt for example, a second prompt
  • the electronic device can close the application B originally running in the window 1, and call the application A to run in the window 1.
  • the window 1 ie, the second target window
  • runs in the application A application to be verified
  • the electronic device can input the verification code in the verification short message to the preset location of the application to be verified, for example, the verification input box of the application A in FIG.
  • the electronic device shuts down the application B that is originally running in the window 1, and may switch the application B to the background, or directly close the process of the application B.
  • the electronic device may not prompt the user whether to call the application A to be verified to run in the foreground, but directly close the application B and call the application A to run in the window 1. Any restrictions.
  • the electronic device may retain the application B running in the window 1, and It is to additionally create a window, such as window 3 shown in FIG. 21, and then call application A to run in window 3.
  • the operation of the electronic device to call the application A to be sent to the foreground may also be confirmed by the user.
  • the user needs to re-trigger a single operation.
  • the electronic device detects that the end position of the single operation of the user re-trigger is located in the window 3 (the second target at this time)
  • the electronic device can input the verification code in the verification short message to the preset position of the application to be verified.
  • step 203 when the electronic device adds the first target window on the display interface, the electronic device has turned on the display mode of the multi-window, for example, as shown in (a) of FIG. 22, when the electronic device is After the first target window is added to the display interface for displaying the verification message, the display interface includes window 1, window 2 and window 3, wherein the operation interface of the application B is displayed in the window 1, and the verification is displayed in the window 2.
  • the verification interface of the short message, and the interface to be verified of application A is displayed in window 3.
  • the user drags the verification code to the window 1, since the application running in the window 1 is not the application to be verified, as shown in (b) of FIG.
  • the electronic The device can directly adjust the position of the application A and the application B.
  • the interface to be verified of the application A (application to be verified) is displayed in the window 1
  • the operation interface of the application B is displayed in the window 2.
  • the electronic device inputs the verification code in the verification short message to the preset position of the application to be verified.
  • the electronic device offsets the position of the application A and the application B, which may be: directly swapping the position of the window where the application A is located with the position of the window where the application B is located; or referring to: closing the application B in the window 1 and The application A is called to the foreground of the window 1, and the application A in the window 2 is closed and the application B is called out to the foreground of the window 2.
  • This embodiment of the present invention does not impose any limitation.
  • the embodiment of the present invention provides a method for inputting a verification code. As shown in FIG. 23, the method includes:
  • the electronic device receives the verification short message, and the verification short message includes a verification code.
  • the electronic device stores the verification code included in the verification short message.
  • step 301 For the specific method for the electronic device to obtain the verification message in step 301, refer to the related description of step 101, and details are not described herein again.
  • step 302 since the verification code is usually composed of a plurality of numbers and/or characters, the electronic device can extract the verification code included in the verification short message from the verification short message according to the feature, and store the verification code.
  • a part of the storage space of the electronic device may be pre-defined as a target storage space dedicated to storing the verification code, for example, a dedicated clipboard.
  • the electronic device can store the extracted verification code in the target storage space, and the default storage space used by the electronic device to perform the copy operation (for example, the default clipboard) still stores the last time the user performs the copy operation. Copy the content.
  • the subsequent electronic device performs a paste operation (such as the operation of long-pressing and clicking the paste option commonly used in the prior art)
  • the copy content at the time of the most recent copy operation can still be obtained from the default clipboard.
  • the above-mentioned dedicated clipboard and the default clipboard may be logically distinguished, that is, the verification code is logically saved, and does not cover the copy content saved when the user performs the last copy operation.
  • a global buffer can be set. After the electronic device recognizes the verification code in the verification short message, the electronic device can extract it and store it in the global buffer, and ensure that the verification code does not overwrite the user's last execution of the copy.
  • the copy content saved during the operation may be divided by the physical implementation, and the verification code and the copy content of the user performing the copy operation are saved in the different storage spaces respectively. limited.
  • the (optional) electronic device prompts the user to perform a single operation, the single operation is used to instruct the electronic device to input the verification code to the preset location of the application to be verified.
  • the electronic device may associate the operation of inputting the verification code with a single operation in advance, or it may be understood that the electronic device pre-establishes the input of the verification code to the preset position of the application to be verified.
  • the correspondence between an operation and the behavior of a user performing a single operation the electronic device is triggered to input the stored verification code to the preset location of the application to be verified, for example, the verification input box of the application to be verified.
  • the electronic device may obtain the single operation and the verification code from the global cache and input the verification code to the preset of the application to be verified.
  • the location is associated with this operation.
  • step 303 after the electronic device stores the verification code as described in step 302, as shown in FIG. 24, the user may be prompted to perform the single operation by text or animation to complete the input of the verification code.
  • the single operation may be a specific operation predefined by the user or the electronic device, for example, Double-clicking or sliding operation, etc., at this time, the single operation is uniquely associated with the verification code input operation; or, the single operation may be a pasting operation, for example, long-pressing directly bonding the copied content, at this time,
  • the above-mentioned single operation is associated with both the verification code input operation and the input operation of the user's most recent copy of the content, which is not limited in this embodiment of the present invention.
  • the double-click operation on the verification input box is the above-mentioned single operation, or the double-click operation within 30 seconds after receiving the verification message is the above-mentioned single operation.
  • the embodiment of the present invention does not impose any limitation on this.
  • the electronic device When detecting a single operation performed by the user, the electronic device inputs the verification code in the verification short message to a preset location of the application to be verified.
  • the above single operation may specifically be the above-mentioned specific operation defined in advance. Then, taking the sliding operation as an example, after obtaining the verification SMS, the electronic device may further determine an application to be verified associated with the verification short message, for example, the application to be verified is the application A, then, as shown in FIG. 25, when the electronic When the device detects that the user performs the sliding operation, since the single operation is uniquely associated with the verification code input operation, the electronic device may obtain the saved verification code from the target storage space (such as the global cache above), and This verification code is input to the verification input box of application A.
  • the target storage space such as the global cache above
  • the electronic device may further determine whether the application A is running in the foreground.
  • the saved verification code can be obtained from the target storage space, and the verification code is input to the verification input box of the application A in the foreground. If the application A is not running in the foreground, the electronic device may not perform the above operation of inputting the verification code, or prompt the user to call the application A to the foreground to execute the operation of inputting the verification code, and the embodiment of the present invention does not do any limit.
  • the single operation described above may also be an operation related to the default clipboard and the target storage space in the electronic device, for example, the above paste operation. Then, once the electronic device detects a single operation of the user, the electronic device can determine whether the saved verification code is obtained from the target storage space through the specific application currently running in the foreground, or obtain the latest user from the default clipboard. Copy the content once.
  • the priority of obtaining the verification code from the target storage space may be higher than the priority of obtaining the last copy of the content from the default clipboard.
  • the electronic device may obtain the stored verification code from the target storage space and paste it into the verification input box of the application A;
  • the application running in the foreground is not the application to be verified, and the electronic device can extract and copy the copied content when the user performed the copy operation last time from the default clipboard.
  • the electronic device may also store the obtained verification code into the default clipboard.
  • the stored verification code will overwrite the copied content when the user performed the copy operation last time. There are no restrictions on this.
  • the input method of the verification code provided in the above steps 301-304 can also be used in combination with the input method of the verification code provided in the above steps 101-105 (or steps 201-206), which is not limited in this embodiment of the present invention.
  • the above step 103 as shown in FIG. 8, if the user has After switching from the interface to be verified of the application A (to be verified application) to the operation interface of the application B, at this time, if the user cancels the display mode of the multi-window by clicking the cancel button, the electronic device may be triggered to perform the above steps 302-304.
  • the electronic device may save the verification code in the verification short message to the target storage space, and prompt the user to subsequently obtain the verification code from the target storage space through a corresponding single operation.
  • the electronic device may be triggered to obtain the verification code from the target storage space, and the verification code is input to the preset location of the application to be verified. To complete the SMS verification operation.
  • the electronic device can automatically input the verification code in the verification short message to the verification input box of the application to be verified without the authorized application reading the content of the short message, so as to ensure the accuracy of the verification code input. Sex and security improve the efficiency of successful SMS verification operations.
  • the above electronic device or the like includes a hardware structure and/or a software module corresponding to each function.
  • the embodiments of the present invention can be implemented in a combination of hardware or hardware and computer software in combination with the elements and algorithm steps of the various examples described in the embodiments disclosed herein. Whether a function is implemented in hardware or computer software to drive hardware depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods to implement the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the embodiments of the invention.
  • the embodiment of the present invention may perform the division of the function modules on the electronic device or the like according to the above method example.
  • each function module may be divided according to each function, or two or more functions may be integrated into one processing module.
  • the above integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of the module in the embodiment of the present invention is schematic, and is only a logical function division, and the actual implementation may have another division manner.
  • FIG. 26 is a schematic diagram of a possible structure of an electronic device involved in the foregoing embodiment, where the electronic device includes: an obtaining unit 1101, a determining unit 1102, and a display unit. 1103, an execution unit 1104, a detection unit 1105, and a storage unit 1106.
  • the saving unit 1106 is configured to support the electronic device to perform the operation in FIG. Process 302. All the related content of the steps involved in the foregoing method embodiments may be referred to the functional descriptions of the corresponding functional modules, and details are not described herein again.
  • FIG. 27 shows a possible structural diagram of the electronic device involved in the above embodiment.
  • the electronic device includes a processing module 1302 and a communication module 1303.
  • the processing module 1302 is configured to control and manage the actions of the electronic device.
  • the communication module 1303 is configured to support communication between the UE and other network entities.
  • the electronic device may further include a storage module 1301 for storing program codes and data of the electronic device.
  • the processing module 1302 may be a processor or a controller, for example, may be a central processing unit (CPU), a general-purpose processor, a digital signal processor (DSP), and an application specific integrated circuit (Application-Specific Integrated Circuit (ASIC), Field Programmable Gate Array (FPGA) or other programmable logic device, transistor logic device, hardware component, or any combination thereof. It is possible to implement or carry out the various illustrative logical blocks, modules and circuits described in connection with the present disclosure.
  • the processor may also be a combination of computing functions, for example, including one or more microprocessor combinations, a combination of a DSP and a microprocessor, and the like.
  • the communication module 1303 may be a transceiver, a transceiver circuit, a communication interface, or the like.
  • the storage module 1301 may be a memory.
  • the processing module 1302 is a processor
  • the communication module 1303 is an RF transceiver circuit
  • the storage module 1301 is a memory
  • the electronic device provided by the embodiment of the present invention may be the electronic device shown in FIG.
  • the computer program product includes one or more computer instructions.
  • the computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable device.
  • the computer instructions can be stored in a computer readable storage medium or transferred from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions can be from a website site, computer, server or data center Transfer to another website site, computer, server, or data center by wire (eg, coaxial cable, fiber optic, digital subscriber line (DSL), or wireless (eg, infrared, wireless, microwave, etc.).
  • the computer readable storage medium can be any available media that can be accessed by a computer or a data storage device such as a server, data center, or the like that includes one or more available media.
  • the usable medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (such as a solid state disk (SSD)).

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Computing Systems (AREA)
  • Environmental & Geological Engineering (AREA)
  • Computer Hardware Design (AREA)
  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

一种验证码的输入方法及装置,涉及通信技术领域,在无需授权应用读取短信时,待验证应用可以自动获取到验证短信中的验证码,以确保验证码输入的准确性和安全性。该方法包括:电子设备接收验证短信,该验证短信中包含验证码;电子设备检测到作用于触摸屏的单次操作,该单次操作用于指示电子设备将该验证码输入至待验证应用的预设位置;响应于该单次操作,电子设备将该验证码输入至该预设位置。

Description

一种验证码的输入方法及装置 技术领域
本发明实施例涉及通信技术领域,尤其涉及一种验证码的输入方法及装置。
背景技术
短信验证是指企业给用户一个凭证(例如,验证码),通过短信内容中的验证码来验证用户身份的过程。用户在收到包含验证码的验证短信后,可以通过手动方式将该验证码输入到待验证应用的验证界面中的指定位置,例如,用户可以切换至短信应用,记忆或复制验证短信中的验证码,然后切换回待验证应用,根据记忆手动输入或粘贴之前复制的该验证码至验证界面中的指定位置。又或者,用户可以给待验证应用开放读取短信的权限,这样,当用户收到验证短信后,终端可以自动读取出该验证短信内的验证码,并将该验证码输入至验证界面中的指定位置。
然而,在上述两种验证码的输入方法中,给待验证应用开放读取短信的权限会增加用户隐私被窃取的风险,而通过手动方式输入验证码则需要用户执行频繁的界面切换等操作,增加了错误输入验证码的风险以及短信验证的时长,使得用户执行短信验证操作的效率降低。
发明内容
本发明的实施例提供一种验证码的输入方法及装置,在无需授权应用读取短信时,待验证应用可以自动获取到验证短信中的验证码,以确保验证码输入的准确性和安全性。
为达到上述目的,本发明的实施例采用如下技术方案:
第一方面,本发明的实施例提供一种验证码的输入方法,包括:当电子设备获取到包含验证码验证短信后,可自动提取该验证短信中的验证码;进而,当电子设备检测到作用于触摸屏的单次操作(该单次操作用于指示电子设备将该验证码输入至待验证应用的预设位置)时;电子设备将该验证码输入至该预设位置。这样一来,在短信验证的过程中,电子设备可自动获取验证短信中的验证码,并且,用户通过执行单次操作便可将验证码输入至待验证应用预先设置的预设位置中,避免了用户在待验证应用与短信应用之间频繁进行切换等操作,使得短信验证过程更加简单准确,同时,用户也无需向待验证应用开放允许其读取短信内容的权限,以保证用户的隐私安全。
在一种可能的设计方法中,在电子设备获取到验证短信之后,还包括:当该待验证应用在前台运行时,电子设备在显示界面内通过不同的窗口同时显示该验证短信和该待验证应用;其中,响应于该单次操作,电子设备将该验证码输入至该预设位置,包括:电子设备获取该单次操作在该显示界面内的结束位置;当结束位置位于待验证应用所在的窗口时,电子设备将该验证码输入至该预设位置。也就是说,在短信验证的过程中,电子设备可以将待验证 应用以及验证短信的短信应用同时呈现给用户,这样,用户可以直接通过执行单次操作将验证码输入至预设位置中。
在上述可能的设计方法中,待验证应用可能一直在前台运行,也可能是在检测到单次操作后重新将待验证应用切换至前台运行的,例如,经用户确认后将已关闭的待验证应用调出,并切换至前台运行,本发明实施例对此不作任何限制。
在一种可能的设计方法中,在电子设备获取该单次操作在该显示界面内的结束位置之后,还包括:当结束位置不在待验证应用所在的窗口时,电子设备在该显示界面内呈现第一提示,第一提示用于指示用户对该验证码执行正确的单次操作。又或者,当结束位置不在待验证应用所在的窗口时,电子设备也可以将待验证应用所在的窗口与上述结束位置所在的窗口对调,这样,对调后上述单次操作的结束位置所属的窗口中运行了上述待验证应用,进而触发电子设备将该验证码输入至该预设位置。
在一种可能的设计方法中,在电子设备获取验证短信之后,还包括:电子设备在该显示界面内增加第一目标窗口,第一目标窗口用于显示该验证短信;其中,响应于该单次操作,电子设备将该验证码输入至该预设位置,包括:响应于该单次操作,电子设备判断该待验证应用是否在前台运行;当该待验证应用在前台运行时,电子设备将该验证码输入至该预设位置,或者,当待验证应用不在前台运行时,电子设备将待验证应用调出至前台运行,并将验证码输入至预设位置。
在一种可能的设计方法中,电子设备判断该待验证应用是否在前台运行,包括:电子设备判断待验证应用是否在第二目标窗口(第二目标窗口为单次操作的结束位置所在的窗口)中运行;若待验证应用在第二目标窗口中运行,则电子设备确定待验证应用在前台运行;若待验证应用不在第二目标窗口中运行,则电子设备确定待验证应用不在前台运行。
在一种可能的设计方法中,在电子设备接收到验证短信之后,还包括:电子设备将验证短信中的验证码保存至目标存储空间,该目标存储空间与电子设备的剪切板所在的存储空间不同。
也就是说,电子设备预先建立了将目标存储空间中验证码输入至验证输入框与单次操作之间的对应关系,一旦检测到用户触发了上述单次操作,电子设备便可将目标存储空间中存储的验证码输入至验证输入框。这样,在无需授权待验证应用读取短信内容权限时,用户仅需执行一个单次操作便可在验证输入框输入验证码,减少了用户在待验证应用与短信应用之间频繁进行切换等操作,以提高成功进行短信验证操作的效率。
在一种可能的设计方法中,该单次操作与验证码输入操作唯一关联;其中,响应于该单次操作,电子设备将该验证码输入至该预设位置,包括:响应于该单次操作,电子设备将该目标存储空间存储的验证码输入至该预设位置。
在一种可能的设计方法中,该单次操作与验证码输入操作以及用户最近 一次的复制内容的输入操作均关联;其中,响应于该单次操作,电子设备将该验证码输入至该预设位置,包括:响应于该单次操作,电子设备判断该待验证应用是否在前台运行;当该待验证应用在前台运行时,电子设备将该目标存储空间存储的验证码输入至该预设位置。
在一种可能的设计方法中,在电子设备判断该待验证应用是否在前台运行之后,还包括:当该待验证应用不在前台运行时,电子设备粘贴剪切板中用户最近一次的复制内容。
在一种可能的设计方法中,在电子设备检测到作用于触摸屏的单次操作之前,还包括:电子设备在显示界面内提示用户执行该单次操作。
第二方面,本发明的实施例提供一种电子设备,包括:获取单元,用于:接收验证短信,该验证短信中包含验证码;检测单元,用于:检测到作用于触摸屏的单次操作,该单次操作用于指示电子设备将该验证码输入至待验证应用的预设位置,该待验证应用通过该验证码对该用户的身份进行鉴权;执行单元,用于:响应于该单次操作,将该验证码输入至该预设位置。
第三方面,本发明的实施例提供一种电子设备,包括:处理器、存储器、总线和通信接口;该存储器用于存储计算机执行指令,该处理器与该存储器通过该总线连接,当电子设备运行时,该处理器执行该存储器存储的该计算机执行指令,以使电子设备执行上述任一项验证码的输入方法。
第四方面,本发明实施例提供一种计算机可读存储介质,该计算机可读存储介质中存储有指令,当该指令在上述任一项电子设备上运行时,使得电子设备执行上述任一项验证码的输入方法。
第五方面,本发明实施例提供一种包含指令的计算机程序产品,当其在上述任一项电子设备上运行时,使得电子设备执行上述任一项验证码的输入方法。
本发明的实施例中,上述电子设备的名字对设备本身不构成限定,在实际实现中,这些设备可以以其他名称出现。只要各个设备的功能和本发明的实施例类似,即属于本发明权利要求及其等同技术的范围之内。
另外,第二方面至第五方面中任一种设计方式所带来的技术效果可参见上述第一方面中不同设计方法所带来的技术效果,此处不再赘述。
附图说明
图1为本发明实施例提供的一种验证码的输入方法的场景示意图一;
图2为本发明实施例提供的一种验证码的输入方法的场景示意图二;
图3为本发明实施例提供的一种验证码的输入方法的场景示意图三;
图4为本发明实施例提供的一种电子设备的结构示意图一;
图5为本发明实施例提供的一种验证码的输入方法的流程示意图一;
图6为本发明实施例提供的一种验证码的输入方法的场景示意图四;
图7为本发明实施例提供的一种验证码的输入方法的场景示意图五;
图8为本发明实施例提供的一种验证码的输入方法的场景示意图六;
图9为本发明实施例提供的一种验证码的输入方法的场景示意图七;
图10为本发明实施例提供的一种验证码的输入方法的场景示意图八;
图11为本发明实施例提供的一种验证码的输入方法的场景示意图九;
图12为本发明实施例提供的一种验证码的输入方法的场景示意图十;
图13为本发明实施例提供的一种验证码的输入方法的场景示意图十一;
图14为本发明实施例提供的一种验证码的输入方法的场景示意图十二;
图15为本发明实施例提供的一种验证码的输入方法的场景示意图十三;
图16为本发明实施例提供的一种验证码的输入方法的场景示意图十四;
图17为本发明实施例提供的一种验证码的输入方法的流程示意图二;
图18为本发明实施例提供的一种验证码的输入方法的场景示意图十五;
图19为本发明实施例提供的一种验证码的输入方法的场景示意图十六;
图20为本发明实施例提供的一种验证码的输入方法的场景示意图十七;
图21为本发明实施例提供的一种验证码的输入方法的场景示意图十八;
图22为本发明实施例提供的一种验证码的输入方法的场景示意图十九;
图23为本发明实施例提供的一种验证码的输入方法的流程示意图三;
图24为本发明实施例提供的一种验证码的输入方法的场景示意图二十;
图25为本发明实施例提供的一种验证码的输入方法的场景示意图二十一;
图26为本发明实施例提供的一种电子设备的结构示意图二;
图27为本发明实施例提供的一种电子设备的结构示意图三。
具体实施方式
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本发明实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。
本发明的实施例提供一种验证码的输入方法,可应用于手机、可穿戴设备、增强现实(augmented reality,AR)\虚拟现实(virtual reality,VR)设备、平板电脑、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、个人数字助理(personal digital assistant,PDA)等任意具有短信验证功能的电子设备,本发明实施例对此不作任何限制。
具体的,在本发明实施例提供的验证码的输入方法中,当电子设备接收到包含验证码的验证短信时,如图1所示,电子设备可以通过多窗口的显示方式,将与该验证短信对应的待验证应用11以及显示有该验证短信的短信应用12同时呈现给用户。这样,当电子设备检测到用户对短信应用12中的验证码执行了预先设定的单次操作,例如,拖拽操作时,电子设备可将该验证码输入至待验证应用11的预设位置,例如,图1中待验证应用11的验证输入框13。
这样一来,在短信验证的过程中,电子设备可以将待验证应用11以及验证短信的短信应用12同时呈现给用户,进而,用户可以直接通过执行单次操作将验证码输入至验证输入框13中,避免了用户在待验证应用11与短信应 用12之间频繁进行切换等多次操作,使得短信验证过程更加简单准确,同时,用户也无需向待验证应用11开放允许其读取短信内容的权限,以保证用户的隐私安全。
又或者,在另一种可能的实现方法中,当电子设备接收到包含验证码的验证短信时,电子设备可以自动保存该验证码,进而,如图2所示,通过一个显示界面提示用户执行用于将验证码粘贴至验证输入框的单次操作,例如,一个双击操作。这样,当电子设备检测到用户执行了该单次操作时,如图3所示,可直接将已保存的验证码粘贴至待验证应用的验证输入框中。
也就是说,电子设备预先建立了将验证码输入至验证输入框与上述单次操作之间的对应关系,一旦检测到用户触发了上述单次操作,电子设备便可将已保存的验证码输入至验证输入框。这样,在无需授权待验证应用读取短信内容权限时,用户仅需执行一个单次操作便可在验证输入框输入验证码,减少了用户在待验证应用与短信应用之间频繁进行切换等多次操作,以提高成功进行短信验证操作的效率。
另外,电子设备可以在自身的存储空间中划分出一个专门用于存储验证码的目标存储空间。这样,由于验证码存储在上述目标存储空间而非电子设备默认的存储空间,例如,默认的剪切板中,因此,用户最近一次执行复制操作所保存的内容仍然存储在默认的剪切板中,不会干扰后续用户从默认的剪切板中粘贴其所保存的内容。当然,也可以将上述验证码存储至上述默认的剪切板中,本发明实施例对此不作任何限制。
本发明实施例中上述电子设备的硬件结构可以参考图4所示的电子设备的构成部件。
如图4所示,上述电子设备具体可以包括:射频(radio frequency,RF射频)电路21、存储器22、执行单元23、显示单元24、音频电路26以及处理器27等部件。本领域技术人员可以理解,图4中示出的电子设备结构并不构成对电子设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
下面将结合图4对电子设备的各个构成部件进行具体的介绍:
RF电路21可用于收发信息或通话过程中,信号的接收和发送,特别地,将无线接入设备的下行信息接收后,给处理器27处理;另外,将上行的数据发送给无线接入设备。通常,RF电路包括但不限于天线、至少一个放大器、收发器、耦合器、低噪声放大器(low noise amplifier,LNA)、双工器等。此外,RF电路21还可以通过无线通信与网络和其他设备通信。
存储器22可用于存储软件程序以及模块,处理器27通过运行存储在存储器22的软件程序以及模块,从而执行电子设备的各种功能应用以及数据处理。
执行单元23可用于接收输入的数字或字符信息,以及产生与电子设备的用户设置以及功能控制有关的键信号输入。具体地,执行单元23可包括触摸屏341以及其他输入设备342。
显示单元24可用于显示由用户输入的信息或提供给用户的信息以及电子设备的各种菜单。显示单元24可包括显示面板351,可选的,可以采用液晶显示器(liquid crystal display,LCD)、有机发光二极管(organic light-emitting diode,OLED)等形式来配置显示面板351。
电子设备还可以包括重力传感器(gravity sensor)以及其它传感器,比如,光传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。
音频电路26、扬声器371、麦克风372可提供用户与电子设备之间的音频接口。音频电路26可将接收到的音频数据转换后的电信号,传输到扬声器371,由扬声器371转换为声音信号输出;另一方面,麦克风372将收集的声音信号转换为电信号,由音频电路26接收后转换为音频数据,再将音频数据输出至RF电路21以发送给比如另一电子设备,或者将音频数据输出至存储器22以便进一步处理。
处理器27是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器22内的软件程序和/或模块,以及调用存储在存储器22内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。可选的,处理器27可包括一个或多个处理单元。
尽管未示出,上述电子设备还可以包括电源、摄像头、无线保真(wireless fidelity,WiFi)模块、蓝牙模块等,在此不再赘述。
以下,将结合具体实施例详细阐述本发明实施例提供的一种验证码的输入方法,如图5所示,该方法包括:
101、电子设备接收验证短信,该验证短信中包含验证码。
具体的,用户在使用任意应用(例如,应用A)执行在线支付或注册账号等操作时,如图6所示,可能会触发应用A显示一个短信验证的待验证界面。当用户填写电子设备的电话号码并触发发送验证码功能后,应用A的服务器会按照该电话号码向电子设备发送包含验证码的验证短信。
其中,上述验证码还可以称为认证码或动态码等,通常可以为一串随机的数字或字符等验证信息,本发明实施例对此不作任何限制。
此外,该验证码可以是应用A的服务器生成的,也可以是应用A的服务器通过一个专门提供短信验证服务的服务器生成的,还可以是通过运营商的运营商服务器生成的等,其中,上述验证短信中验证码的生成与发送过程可基于现有技术实现,本发明实施例对此不进行限定。
102、电子设备确定与上述验证短信关联的待验证应用。
需要说明的是,该待验证应用可以是电子设备上已经安装的应用中的一个,也可以是当前在前台或后台运行的应用中的一个。其中,该待验证应用可通过上述验证码对触发验证操作的用户进行身份鉴权。
具体的,电子设备可以预先建立电子设备内不同应用与不同的关键信息之间的对应关系,该关键信息可以是短信的发送号码,也可以是应用的名称 或其缩写或应用包名(package name)等。这样,电子设备可以从上述验证短信中提取相应的关键信息,进而确定与该关键信息对应的应用即为上述待验证应用。
例如,应用A与发送号码“95555”之间具有对应关系。那么,一旦电子设备获取到上述验证短信的发送号码为“95555”,则可以确定与上述验证短信关联的待验证应用为应用A。
又或者,应用A与字符串“交通银行”之间具有对应关系。那么,一旦电子设备从上述验证短信中提取出“交通银行”的字符串,则可以确定与上述验证短信关联的待验证应用为应用A。
进一步地,电子设备在同一时刻可能同时运行多个应用,那么,当待验证应用为应用A时,电子设备还可以进一步判断当前是否正在运行应用A,即应用A在前台。如果正在运行应用A,则电子设备可继续执行下述步骤103-105。这是因为,如果电子设备当前正在运行应用A,则后续电子设备可直接显示应用A的相关界面,无需重新启动应用A或者将应用A调至前台运行,从而缩短短信验证过程的时长。
103、电子设备在显示界面内同时显示上述待验证应用的界面和上述验证短信的界面。
具体的,在步骤103中,当电子设备确定了待验证应用为应用A时,可触发电子设备启动多窗口的显示模式,例如,分屏显示模式或者消息框弹出框模式。以分屏显示模式为例,如图7所示,电子设备可以将已经确定的待验证应用,即应用A的待验证界面,以及上述验证短信的短信界面分别通过一个窗口呈现给用户。
其中,分屏显示模式也可以称为多屏模式,属于多窗口的显示模式中的一种,当电子设备进入分屏模式时,在同一个显示界面(如手机的触控显示屏)中划分出多个窗口,从而同时在多个窗口中分别运行并显示多个应用;而消息框弹出框模式也属于多窗口的显示模式的一种,是指在显示界面上叠加其他窗口,该叠加的窗口可以总是处于显示界面的前端,例如,以悬浮窗的形式显示,如此,允许多个窗口之间存在部分重叠。
在一种可能的实现方式中,电子设备在确定上述待验证应用为应用A后,用户可能仍然停留在应用A的待验证界面上,即应用A此时作为一个前台应用在前台运行,那么,仍如图7所示,电子设备可以在显示界面中创建两个窗口,例如,窗口1和窗口2,进而,在窗口1中显示应用A的待验证界面,在窗口2中显示上述验证短信的短信界面。
在另一种可能的实现方式中,如图8所示,电子设备在确定上述待验证应用为应用A后,用户可能已经从应用A的待验证界面切换至应用B的操作界面,即此时的前台应用为应用B而非上述待验证应用A。那么,仍如图8所示,电子设备可以提示用户调出应用A并启动多窗口的显示模式。如果用户确认调出应用A并启动多窗口的显示模式,则如上述图7所示,电子设备可以调出应用A,并在窗口1中显示应用A的待验证界面,在窗口2中显示 上述验证短信的短信界面。
其中,上述提示用户调出应用A并启动多窗口的显示模式的方式具体可以是通过图像、文字、语音等方式实现,当然,电子设备也可以不提示用户,而是自动将应用A调出到前台并启动多窗口的显示模式,本发明实施例对此不进行限定。
进一步地,电子设备的显示界面为应用B的操作界面,即应用A不在前台运行。那么,当用户确认调出应用A并启动多窗口的显示模式时,如图9所示,电子设备可以在显示界面内创建应用A的窗口,即窗口1,并在窗口3中显示应用B的操作界面,此时,电子设备同时显示三个窗口:应用A的待验证界面、上述验证短信的短信界面以及用户正在操作的应用B的操作界面。这样,在进行短信验证的同时对用户正在执行的新应用(应用B)也不会产生干扰。
在另一种可能的实现方式中,用户可能是在多窗口的显示模式下触发上述短信验证操作的,如图10所示,电子设备的显示界面中包括应用A的窗口1和应用B(例如,视频应用)的窗口2,用户在应用A内执行短信验证操作。那么,当电子设备在确定与接收到的验证短信关联的待验证应用为应用A后,如图11所示,可以为该验证短信的短息界面创建一个窗口3,通过调整窗口1、窗口2以及窗口3的大小,在窗口1中显示应用A的待验证界面,窗口2中应用B的操作界面以及窗口3中上述验证短信的短信界面同时呈现给用户。其中,本领域技术人员可以根据实际应用场景或经验设置显示验证短信的窗口3的位置,本发明实施例对此不作任何限制。
当然,上述各个窗口之间可以以部分重叠的方式在显示界面内显示,本发明实施例对此不作任何限制。
总之,不论是上述哪一种可能的实现方式,在实现本步骤的效果之前,即将验证短信和待验证应用(例如,上述应用A)同时显示在显示界面之前,电子设备需要确定该待验证应用在前台运行,例如,该待验证应用本来就在前台运行,或者,响应于用户的触发后,电子设备已将该应用调出到前台运行。
104、电子设备检测用户是否对上述验证码执行单次操作,该单次操作用于指示电子设备将该验证码输入至待验证应用的预设位置。
105、当用户对上述验证码执行单次操作时,电子设备将上述验证短信中的验证码输入至待验证应用的预设位置。
具体的,电子设备可以预先设置上述单次操作的具体形式,例如,滑动操作、拖拽操作、单击操作、或双击操作等,当用户在上述验证短信的短信界面中,对验证短信中的验证码执行了上述单次操作,电子设备便可响应该单次操作,将验证短信中的验证码输入至待验证应用的预设位置,该预设位置可以为上述待验证界面的验证输入框,完成验证码的自动输入过程。
其中,在电子设备使用不同的窗口分别显示上述待验证应用和上述验证短信(步骤103)之后,电子设备还可以记录此时待验证应用所在窗口在触摸 屏上的位置信息,例如,待验证应用所在窗口的坐标范围,以及上述验证短信所在窗口在触摸屏上的位置信息,例如,验证短信所在窗口的坐标范围。
那么,当上述单次操作为滑动或拖拽操作时,当该单次操作的起始位置对应的坐标点落在验证短信所在窗口的坐标范围中时,说明该单次操作的起始位置位于上述验证短信所在窗口中;当上述单次操作的结束位置对应的坐标点落在待验证应用所在窗口的坐标范围中时,说明该单次操作的结束位置位于上述待验证应用所在窗口中。
示例性的,仍如图11所示,电子设备同时使用三个窗口分别显示应用A的待验证界面(窗口1)、上述验证短信的短信界面(窗口3)以及用户正在操作的应用B的操作界面(窗口2)。此时,电子设备可以通过文字或动画等形式提示用户对窗口3中的验证码执行拖拽操作(即单次操作)。那么,如果检测到用户对该验证码执行了拖拽操作,如图12中的(a)所示,电子设备可以进一步判断该拖拽操作的起始位置和结束位置,如果该拖拽操作的起始位置位于窗口3,且拖拽操作的结束位置位于窗口1时,如图12中的(b)所示,电子设备可以将上述验证短信中的验证码输入至窗口1的验证输入框中。
相应的,如果上述拖拽操作的起始位置不在窗口2,和/或,该拖拽操作的结束位置不在窗口1时,如图13中的(a)所示,用户将窗口3中的验证码拖拽至窗口2内,那么,当电子设备判断出该拖拽操作的结束位置不在窗口1时,如图13中的(b)所示,电子设备可以在显示界面内呈现一个提示(例如,第一提示),用于向用户提示上述拖拽操作的拖拽位置错误,还可以进一步向用户提示正确的拖拽位置,以便用户按照上述提示重新执行正确的单次操作。其中,该提示可以为弹出窗口,也可以语音的形式,只要能够提示用户操作错误和/或正确位置即可。
当然,图13中仅以拖拽至窗口2为例进行说明,可以理解的是,当上述上述拖拽操作的起始位置或结束位置不满足对单次操作的预设条件时,都可以向用户提示上述拖拽操作的拖拽位置错误,本发明实施例对此不作任何限制。
又或者,如图14中的(a)所示,当用户将窗口3中的验证码拖拽至窗口2时,由于窗口2内运行的不是待验证应用,因此,如图14中的(b)所示,电子设备可以直接将应用A与应用B的位置对调,此时,窗口1中显示有应用B的操作界面,而窗口2中显示有应用A(待验证应用)的待验证界面。这样,上述拖拽操作的起始位置位于验证短信的短信界面,且拖拽操作的结束位置位于待验证应用的待验证界面,因此,如图14中的(b)所示,电子设备可将上述验证短信中的验证码输入至待验证应用的预设位置。
其中,电子设备将应用A与应用B的位置对调可以是指:直接将应用A所在窗口的位置与应用B所在窗口的位置互换;也可以是指:将窗口2中的应用B关闭并将应用A调出到窗口2的前台,同时将窗口1中的应用A关闭并将应用B调出到窗口1的前台,本发明实施例对此不作任何限制。
需要说明的是,可以仅在用户首次使用上述验证码的输入方法时提示用 户对窗口2中的验证码执行拖拽操作,也可以在每一次执行上述验证码的输入方法时均通过文字或动画等形式提示用户对窗口2中的验证码执行拖拽操作,本发明实施例对此不作任何限制。
当然,以上仅以拖拽操作作为上述单次操作进行举例说明,可以理解的是,该单次操作还可以为任意预先设置的操作。以单击操作举例,如图11所示,当电子设备检测到用户在窗口1中执行了一次单击操作后,可触发电子设备将窗口3中验证短信中的验证码输入至窗口1的验证输入框中。
又或者,电子设备还可以在上述验证短信的短信界面中设置一个功能按键,如图15中的按键100所示,此时,上述单次操作可以为对按键100的点击操作,那么,当电子设备检测到用户点击按键100时,便可将窗口2中验证短信中的验证码输入至窗口1的验证输入框中。
在一种可能的设计方法中,电子设备还可以根据当前的应用场景判断电子设备是否有进入多窗口显示模式的需求,当电子设备有进入多窗口显示模式的需求时,例如,有新的消息或通知到来时,可自动触发电子设备进入多窗口显示模式,此时,可同时为用户展现原有的目标应用以及新加入的分屏应用。
如图16中的(a)所示,当用户正在使用移动数据观看视频应用时,如果电子设备检测到了较强的WiFi信号,那么,为了避免打断电子设备正在运行的目标应用(即视频应用),电子设备可自动进入多窗口显示模式。如图16中的(b)所示,电子设备可以通过窗口1继续运行原有的目标应用B,并且,通过窗口2显示检测到WiFi的登录界面。
进而,用户可以在WiFi的登录界面中输入手机号,触发电子设备获取验证码,后续,电子设备会接收到包含验证码的验证短信。此时,电子设备可以自动提取验证短信中的验证码,如图16中的(b)所示,当电子设备检测到用户点击验证输入框时,如图16中的(c)所示,电子设备响应于该点击操作,可直接将获取到的验证码输入至验证输入框中,自动实现验证码的输入过程,并且不会打扰用户原本正在使用的目标应用的进程。
上述实施例中仅以WiFi场景为例进行举例说明,可以理解的是,当电子设备在执行目标应用的同时,如果有进入多窗口显示模式的需求,例如,收到新的短信等,均可自动触发电子设备进入多窗口显示模式,本发明实施例对此不作任何限制。
可选的,还可以对上述单次操作的时效性进行设置,例如,可以在电子设备接收到上述验证短信时开始计时,也可以在电子设备启动多窗口的显示模式时开始计时。如果计时开始后,电子设备在预设时长,例如5秒内,检测到上述单次操作,则电子设备将上述验证短信中的验证码输入至待验证应用的预设位置,否则则认为本次短信验证操作失效,这样可以避免因用户长期没有对电子设备进行操作而造成的短信验证过程中的安全隐患。
进一步地,电子设备将上述验证短信中的验证码输入至待验证应用的预设位置时也可以有多种实现方式。
示例性的,在电子设备获取到上述包含验证码的验证短信(步骤101)后,电子设备可以将该验证码保存起来,例如,存储至一个专门用于存储验证码的目标剪切板内,这样,当检测到用户执行上述单次操作后,电子设备可从该目标剪切板中读取已经存储的验证码,并将该验证码输入至验证输入框中。
又或者,当检测到用户执行上述单次操作后,电子设备可通过语义分析或字符串分析从上述验证短信中提取出该验证码,进而将该验证码输入至验证输入框中,本发明实施例对此不作任何限制。
可选的,当电子设备将上述验证短信中的验证码输入至待验证应用的预设位置后,电子设备可关闭为上述验证短信创建的窗口(例如图15中的窗口2),并恢复电子设备在进入多窗口的显示模式之前的显示模式,从而最大程度的避免短信验证过程对用户正在执行的操作产生影响。并且,由于电子设备是在输入验证码之后关闭了为上述验证短信创建的窗口,那么,在输入验证码的整个过程中用户都可以看见验证短信息中的验证码,相比于现有技术中使用一个悬浮窗短暂的显示验证短信的方法,用户在使用本发明实施例提供的验证码输入方法,无须担心还未及时记忆或复制待输入的验证码悬浮窗就从显示界面退出的情况,使得验证码的输入过程更加便捷高效。
另外,在本发明实施例提供的验证码的输入方法中,可将用户每次触发的单次操作作为从本次从短信中获取验证码的一次授权过程,也就是说,当次检测到用户触发的单次操作时,相当于得到了用户的授权,即用户授权待验证应用获取本次接收到的验证短信中的验证码。这样,无需预先为待验证应用开放读取用户全部短信内容的权限,从而降低了用户隐私被泄露的风险。
可选的,电子设备检测到已将上述验证码输入到待验证应用的预设位置后,或者,已关闭为上述验证短信创建的窗口后,电子设备可将已经保存的上述验证码删除。其中,关闭为上述验证短信创建的窗口时,可以为用户手动关闭或电子设备自动将其关闭(如电子设备确定上述验证码已被输入到待传输应用的预设位置后自动将验证码所在窗口关闭)。
在一种可能的实现方式中,本发明实施例提供一种验证码的输入方法,如图17所示,该方法包括:
201、电子设备接收验证短信,该验证短信中包含验证码。
202、电子设备确定与上述验证短信关联的待验证应用。
其中,电子设备获取验证短信,并确定与上述验证短信关联的待验证应用的方法与步骤101-102类似,故此处不再赘述。
203、电子设备在当前的显示界面上增加第一目标窗口,该第一目标窗口用于运行上述验证短信的短信界面。
具体的,在步骤203中,与上述步骤103不同的是,当电子设备确定待验证应用(例如,应用A)后,无论应用A是否在前台运行(即应用A可以是在后台运行的状态,或者,是未运行但已安装的状态),电子设备都可以在当前的显示界面上额外为上述验证短信创建一个窗口,即第一目标窗口,并 在第一目标窗口内运行上述验证短信的短信界面。
示例性的,如图18中的(a)所示,当用户接收到验证短信时,已经从应用A切换至应用B的操作界面。此时,电子设备确定了与上述验证短信关联的待验证应用为应用A后,可创建用于运行上述验证短信的短信界面的第一目标窗口,同时,保留当前正在运行的应用B的操作界面,例如,如图18中的(b)所示,可通过多窗口的显示模式在窗口1中显示应用B的操作界面,在窗口2中显示上述验证短信的短信界面。此时,窗口2为上述第一目标窗口。
当然,电子设备可以对上述窗口1和窗口2的大小和位置进行调整,本发明实施例对此不作任何限制。
204、电子设备检测用户是否对上述验证码执行单次操作,该单次操作用于指示电子设备将该验证码输入至待验证应用的预设位置。
205、当用户对上述验证码执行单次操作时,电子设备判断上述待验证应用是否在前台运行。
当电子设备在当前的显示界面上增加第一目标窗口后,与步骤104类似的,电子设备检测用户是否对上述验证码执行单次操作。其中,上述单次操作的具体实现方式以及检测用户是否对上述验证码执行单次操作的具体方法可参见步骤104的相关描述,故此处不再赘述。
与步骤104不同的是,在检测到用户对上述验证码执行单次操作后,在步骤205中,电子设备需要进一步确定上述待验证应用当前是否在前台运行。
示例性的,如图19所示,以拖拽操作作为上述单次操作举例,当该拖拽操作的起始位置位于窗口2(即第一目标窗口),而该拖拽操作的结束位置位于窗口1时,电子设备可进一步判断该结束位置所在的第二目标窗口(即窗口1)是否在运行上述待验证应用。当窗口1中没有运行上述待验证应用时,电子设备可以确定上述待验证应用不在前台运行,相应的,当窗口1中运行有上述待验证应用时,电子设备可以确定上述待验证应用在前台运行。
又或者,可以在窗口2的验证短信的短信界面内设置一个功能按键,此时,上述单次操作可以为单击或双击该功能按键。那么,一旦检测到用户单击或双击该功能按键时,电子设备可进一步确定除窗口2外的其他窗口中运行的应用是否为上述待验证应用。当除窗口2外的任意窗口中运行上述待验证应用时,电子设备可以确定上述待验证应用在前台运行。
其中,当待验证应用的相关的界面,例如,代表安卓系统中应用的某个活动(activity),正显示在一个窗口内时,电子设备可以确定该窗口内的待验证应用正在前台运行。
206、当上述待验证应用在前台运行时,电子设备将上述验证短信中的验证码输入至待验证应用的预设位置。
仍以图19为例,当上述拖拽操作的结束位置所在的窗口(例如,第二目标窗口)中运行的应用不是上述待验证应用时,如图20所示,窗口1中运行的应用是应用B而非上述待验证应用A,那么,电子设备可以通过文字或动 画等形式在显示界面内呈现一个提示(例如,第二提示),用于提示用户是否将上述待验证应用A调出到前台运行。
那么,如果用户确认将上述待验证应用A调出到前台运行,则电子设备可以将窗口1内原本运行的应用B关闭,并将应用A调出到窗口1中运行,此时,呈现如图7所示的界面,窗口1(即第二目标窗口)中运行的是应用A(待验证应用),即待验证应用在前台运行。因此,如上述步骤206所述,电子设备可将上述验证短信中的验证码输入至待验证应用的预设位置,例如,图7中应用A的验证输入框中。其中,电子设备将窗口1内原本运行的应用B关闭,可以是将应用B切换到后台运行,也可以是直接将应用B的进程关闭。
当然,电子设备也可以不向用户进行提示是否将上述待验证应用A调出到前台运行,而是直接将应用B关闭并将应用A调出到窗口1中运行,本发明实施例对此不作任何限制。
又或者,当上述第二目标窗口中运行的应用不是上述待验证应用时,如果用户确认将上述待验证应用A调出到前台运行,电子设备也可以保留窗口1中正在运行的应用B,而是额外建立一个窗口,例如图21中所示的窗口3,进而将应用A调出到窗口3中运行。当然,电子设备将待验证应用A调出到前台的操作也可以不经用户确认,本发明实施例对此不作任何限制。
但与上述操作不同的是,用户需要重新触发单次操作,此时,仍如图21所示,当电子设备检测到用户重新触发的单次操作的结束位置位于窗口3(此时第二目标窗口为窗口3)时,与上述步骤105类似的,电子设备可将上述验证短信中的验证码输入至待验证应用的预设位置。
又或者,在步骤203中,当电子设备在显示界面上增加第一目标窗口时,电子设备已经开启了多窗口的显示模式,例如,如图22中的(a)所示,当电子设备在显示界面上增加了第一目标窗口用于显示上述验证短信后,显示界面内包括窗口1、窗口2以及窗口3,其中,窗口1中显示有应用B的操作界面,窗口2中显示有上述验证短信的验证界面,窗口3中显示有应用A(待验证应用)的待验证界面。那么,如图22中的(a)所示,当用户将验证码拖拽至窗口1时,由于窗口1内运行的不是待验证应用,因此,如图22中的(b)所示,电子设备可以直接将应用A与应用B的位置对调,此时,窗口1中显示有应用A(待验证应用)的待验证界面,而窗口2中显示有应用B的操作界面。进而,电子设备将上述验证短信中的验证码输入至待验证应用的预设位置。
其中,电子设备将应用A与应用B的位置对调可以是指:直接将应用A所在窗口的位置与应用B所在窗口的位置互换;也可以是指:将窗口1中的应用B关闭并将应用A调出到窗口1的前台,同时将窗口2中的应用A关闭并将应用B调出到窗口2的前台,本发明实施例对此不作任何限制。
在一种可能的实现方式中,本发明实施例提供一种验证码的输入方法,如图23所示,该方法包括:
301、电子设备接收验证短信,该验证短信中包含验证码。
302、电子设备存储上述验证短信中包含的验证码。
其中,步骤301中电子设备获取验证短信的具体方法可参见步骤101的相关描述,此处不再赘述。
在步骤302中,由于验证码通常是由若干个数字和/或字符组成的,因此,电子设备可以根据这一特征从验证短信中提取该验证短信中包含的验证码,进而存储该验证码。
当然,对于从验证短信中提取验证码的具体方式,本领域技术人员可以根据实际需要或实际应场景进行设置,本发明实施例对此不做限定。
具体的,可以预先从电子设备的存储空间中划分出一部分作为专门用于存储验证码的目标存储空间,例如,一个专用剪切板。这样,电子设备可以将提取到的验证码存储在上述目标存储空间中,而电子设备执行复制操作时所用的默认存储空间(例如,默认剪切板)中仍保存有用户最近一次执行复制操作时的复制内容。那么,后续电子设备执行粘贴操作(如现有技术中常用的长按后点击粘贴选项的操作等)时,仍然可以从该默认剪切板中获取最近一次执行复制操作时的复制内容。
需要说明的是,上述专用剪切板和默认剪切板可以是从逻辑上进行区分的,即从逻辑上实现将验证码保存起来,并不覆盖用户最近一次执行复制操作时所保存的复制内容。例如,可以设置一个全局缓存(buffer),当电子设备识别出验证短信中的验证码后,可将其提取出来并存放在这个全局buffer中,并保证该验证码不会覆盖用户最近一次执行复制操作时所保存的复制内容。当然,也可以从物理实现上对两个存储空间进行划分,并将验证码与用户最近一次执行复制操作时的复制内容分别保存至划分出的不同存储空间内,本发明实施例对此不做限定。
303、(可选的)电子设备向用户提示执行单次操作,该单次操作用于指示电子设备将验证码输入至待验证应用的预设位置。
也就是说,在执行步骤303之前,电子设备可以预先将输入验证码的操作与单次操作关联起来,也可以理解为:电子设备预先建立了将验证码输入至待验证应用的预设位置这一操作,与用户执行单次操作这一行为之间的对应关系。那么,一旦检测到用户执行该单次操作,便会触发电子设备将上述存储的验证码输入至待验证应用的预设位置,例如,待验证应用的验证输入框。
以上述在全局缓存中保存该验证码为例,电子设备可以在保存该验证码后,将上述单次操作与从全局缓存中获取该验证码并将该验证码输入到待验证应用的预设位置这一操作进行关联。
那么,在步骤303中,电子设备如步骤302中所述存储了上述验证码之后,如图24所示,可以通过文字或动画等形式提示用户可执行该单次操作来完成验证码的输入。
其中,该单次操作可以是用户或电子设备预先定义好的特定操作,例如, 双击操作或者滑动操作等,此时,上述单次操作与验证码输入操作唯一关联;或者,该单次操作也可以是一个粘贴操作,例如,长按后直接粘结已复制内容,此时,上述单次操作与验证码输入操作以及用户最近一次的复制内容的输入操作这两个操作均关联,本发明实施例对此不作任何限制。
又或者,还可以对上述单次操作设置一些约束条件,例如,在验证输入框上的双击操作为上述单次操作,或者,在接收到验证短信起30秒内的双击操作为上述单次操作等,本发明实施例对此不作任何限制。
304、当检测到用户执行的单次操作时,电子设备将上述验证短信中的验证码输入至待验证应用的预设位置。
在一种可能的设计方法中,上述单次操作具体可以为上述预先定义好的特定操作。那么,以滑动操作为例,在获取到上述验证短信后,电子设备还可以确定与上述验证短信关联的待验证应用,例如,待验证应用为应用A,那么,如图25所示,当电子设备检测到用户执行滑动操作时,由于上述单次操作与验证码输入操作是唯一关联的,因此,电子设备可以从上述目标存储空间(如上述全局缓存)中获取已经保存的验证码,并将该验证码输入至应用A的验证输入框中。
可选的,当电子设备检测到用户执行滑动操作后,电子设备还可以先判断应用A是否在前台运行。当应用A在前台运行时,可从上述目标存储空间中获取已经保存的验证码,并在前台将该验证码输入至应用A的验证输入框中。如果应用A不在前台运行,电子设备可以不执行上述输入验证码的操作,或者,向用户提示将应用A调出至前台运行后再执行上述输入验证码的操作,本发明实施例对此不作任何限制。
在另一种可能的设计方法中,上述单次操作还可以为电子设备中与默认剪切板以及上述目标存储空间均相关的操作,例如,上述粘贴操作。那么,一旦电子设备检测到用户的单次操作时,电子设备可以通过当前前台运行的具体应用,确定是从上述目标存储空间中获取已经保存的验证码,还是从默认剪切板中获取用户最近一次的复制内容。可选的,从目标存储空间中获取验证码的优先级可高于从默认剪切板中获取用户最后一次复制内容的优先级。
其中,如果当前在前台运行的应用为应用A(即待验证应用),则电子设备可以从上述目标存储空间中获取存储的验证码,并将其粘贴至应用A的验证输入框中;如果当前在前台运行的应用不是待验证应用,则电子设备可以从上述默认剪切板中提取用户最近一次执行复制操作时的复制内容并进行粘贴。
当然,在步骤302中,电子设备也可以将获取到的验证码存储至上述默认剪切板中,此时,存储的验证码将覆盖用户最近一次执行复制操作时的复制内容,本发明实施例对此不作任何限制。
另外,上述步骤301-304提供的验证码的输入方法还可以与上述步骤101-105(或步骤201-206)提供的验证码的输入方法结合使用,本发明实施例对此不作任何限制。例如,在上述步骤103中,如图8所示,如果用户已 经从应用A(待验证应用)的待验证界面切换至应用B的操作界面,此时,用户若点击取消按钮,即取消启动多窗口的显示模式,则可触发电子设备执行上述步骤302-304,例如,电子设备可以将验证短信中的验证码保存至上述目标存储空间中,并提示用户后续可从该目标存储空间中通过相应的单次操作获取该验证码。这样,后续当用户执行了步骤303所述的相应的单次操作后,便可触发电子设备从上述目标存储空间中获取该验证码,并将该验证码输入至待验证应用的预设位置处,以完成短信验证操作。
至此,通过上述步骤101-105、步骤201-206以及步骤301-304可以看出,在本发明实施例提供的验证码的输入方法中,用户只需要在收到验证短信后执行一个特定的操作(即上述单次操作),电子设备便可以在无需授权应用读取短信内容的条件下,自动将验证短信中的验证码输入至待验证应用的验证输入框中,以确保验证码输入的准确性和安全性,提高了成功进行短信验证操作的效率。
可以理解的是,上述电子设备等为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本发明实施例能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明实施例的范围。
本发明实施例可以根据上述方法示例对上述电子设备等进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本发明实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。
在采用对应各个功能划分各个功能模块的情况下,图26示出了上述实施例中所涉及的电子设备的一种可能的结构示意图,该电子设备包括:获取单元1101、确定单元1102、显示单元1103、执行单元1104、检测单元1105以及保存单元1106。
获取单元1101用于支持电子设备执行图5中的过程101,图17中的过程201以及图23中的过程301;确定单元1102用于支持电子设备执行图5中的过程102,图17中的过程202和205;显示单元1103用于支持电子设备执行图5中的过程103,图17中的过程203以及图23中的过程303;执行单元1104用于支持电子设备执行图5中的过程105,图17中的过程206以及图23中的过程304;检测单元1105用于支持电子设备执行图5中的过程104,图17中的过程204;保存单元1106用于支持电子设备执行图23中的过程302。其中,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。
在采用集成的单元的情况下,图27示出了上述实施例中所涉及的电子设备的一种可能的结构示意图。该电子设备包括:处理模块1302和通信模块1303。处理模块1302用于对电子设备的动作进行控制管理。通信模块1303用于支持UE与其他网络实体的通信。该电子设备还可以包括存储模块1301,用于存电子设备的程序代码和数据。
其中,处理模块1302可以是处理器或控制器,例如可以是中央处理器(Central Processing Unit,CPU),通用处理器,数字信号处理器(Digital Signal Processor,DSP),专用集成电路(Application-Specific Integrated Circuit,ASIC),现场可编程门阵列(Field Programmable Gate Array,FPGA)或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。其可以实现或执行结合本发明公开内容所描述的各种示例性的逻辑方框,模块和电路。所述处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,DSP和微处理器的组合等等。通信模块1303可以是收发器、收发电路或通信接口等。存储模块1301可以是存储器。
当处理模块1302为处理器,通信模块1303为RF收发电路,存储模块1301为存储器时,本发明实施例所提供的电子设备可以为图4所示的电子设备。
在上述实施例中,可以全部或部分的通过软件,硬件,固件或者其任意组合来实现。当使用软件程序实现时,可以全部或部分地以计算机程序产品的形式出现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本发明实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。该可用介质可以是磁性介质,(例如,软盘,硬盘、磁带)、光介质(例如,DVD)或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。

Claims (16)

  1. 一种验证码的输入方法,其特征在于,包括:
    电子设备接收验证短信,所述验证短信中包含验证码;
    所述电子设备检测到作用于触摸屏的单次操作,所述单次操作用于指示所述电子设备将所述验证码输入至待验证应用的预设位置,所述待验证应用通过所述验证码对所述用户的身份进行鉴权;
    响应于所述单次操作,所述电子设备将所述验证码输入至所述预设位置。
  2. 根据权利要求1所述的方法,其特征在于,在电子设备接收验证短信之后,还包括:
    当所述待验证应用在前台运行时,所述电子设备在显示界面内通过不同的窗口同时显示所述验证短信和所述待验证应用;
    其中,响应于所述单次操作,所述电子设备将所述验证码输入至所述预设位置,包括:
    所述电子设备获取所述单次操作在所述显示界面内的结束位置;
    当所述结束位置位于所述待验证应用所在的窗口时,所述电子设备将所述验证码输入至所述预设位置。
  3. 根据权利要求2所述的方法,其特征在于,在所述电子设备获取所述单次操作在所述显示界面内的结束位置之后,还包括:
    当所述结束位置不在所述待验证应用所在的窗口时,所述电子设备在所述显示界面内呈现第一提示,所述第一提示用于指示用户对所述验证码执行正确的单次操作。
  4. 根据权利要求1所述的方法,其特征在于,在电子设备接收验证短信之后,还包括:
    所述电子设备在所述显示界面内增加第一目标窗口,所述第一目标窗口用于显示所述验证短信。
  5. 根据权利要求4所述的方法,其特征在于,响应于所述单次操作,所述电子设备将所述验证码输入至所述预设位置,包括:
    响应于所述单次操作,所述电子设备判断所述待验证应用是否在前台运行;
    当所述待验证应用在前台运行时,所述电子设备将所述验证码输入至所述预设位置;或,
    当所述待验证应用不在前台运行时,所述电子设备将所述待验证应用调出至前台运行,并将所述验证码输入至所述预设位置。
  6. 根据权利要求5所述的方法,其特征在于,所述电子设备判断所述待验证应用是否在前台运行,包括:
    所述电子设备判断所述待验证应用是否在第二目标窗口中运行,所述第二目标窗口为所述单次操作的结束位置所在的窗口;
    若所述待验证应用在第二目标窗口中运行,则所述电子设备确定所述待验证应用在前台运行;
    若所述待验证应用不在第二目标窗口中运行,则所述电子设备确定所述待验证应用不在前台运行。
  7. 如权利要求5或6所述的方法,其特征在于,所述当所述待验证应用不在前台运行时,所述方法还包括:
    所述电子设备在所述显示界面内呈现第二提示,所述第二提示用于指示用户将所述待验证应用调出至前台运行。
  8. 根据权利要求1-7中任一项所述的方法,其特征在于,在电子设备接收验证短信之后,还包括:
    所述电子设备将所述验证短信中的验证码保存至目标存储空间,所述目标存储空间与所述电子设备的剪切板所在的存储空间不同。
  9. 根据权利要求8所述的方法,其特征在于,所述单次操作与验证码输入操作唯一关联;
    其中,响应于所述单次操作,所述电子设备将所述验证码输入至所述预设位置,包括:
    响应于所述单次操作,所述电子设备将所述目标存储空间存储的验证码输入至所述预设位置。
  10. 根据权利要求8所述的方法,其特征在于,所述响应于所述单次操作,所述电子设备将所述验证码输入至所述预设位置,包括:
    响应于所述单次操作,所述电子设备判断所述待验证应用是否在前台运行;
    当所述待验证应用在前台运行时,所述电子设备将所述目标存储空间存储的验证码输入至所述预设位置。
  11. 根据权利要求10所述的方法,其特征在于,在所述电子设备判断所述待验证应用是否在前台运行之后,还包括:
    当所述待验证应用不在前台运行时,所述电子设备粘贴所述剪切板中用户最近一次的复制内容。
  12. 根据权利要求1-11中任一项所述的方法,其特征在于,在所述电子设备检测到作用于触摸屏的单次操作之前,还包括:
    所述电子设备在显示界面内提示所述用户执行所述单次操作。
  13. 一种电子设备,其特征在于,包括:
    获取单元,用于:接收验证短信,所述验证短信中包含验证码;
    检测单元,用于:检测到作用于触摸屏的单次操作,所述单次操作用于指示所述电子设备将所述验证码输入至待验证应用的预设位置,所述待验证应用通过所述验证码对所述用户的身份进行鉴权;
    执行单元,用于:响应于所述单次操作,将所述验证码输入至所述预设位置。
  14. 一种电子设备,其特征在于,包括:处理器、存储器、总线和通信接口;
    所述存储器用于存储计算机执行指令,所述处理器与所述存储器通过所述总线连接,当所述电子设备运行时,所述处理器执行所述存储器存储的所述计算机执行指令,以使所述电子设备执行如权利要求1-12中任一项所述的验证码的输入方法。
  15. 一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,其特征在于,当所述指令在电子设备上运行时,使得所述电子设备执行如权利要求1-12中任一项所述的验证码的输入方法。
  16. 一种包含指令的计算机程序产品,其特征在于,当所述计算机程序产品在电子设备上运行时,使得所述电子设备执行如权利要求1-12中任一项所述的验证码的输入方法。
PCT/CN2017/083788 2017-05-10 2017-05-10 一种验证码的输入方法及装置 Ceased WO2018205168A1 (zh)

Priority Applications (4)

Application Number Priority Date Filing Date Title
CN201780008013.5A CN108702413A (zh) 2017-05-10 2017-05-10 一种验证码的输入方法及装置
US16/612,129 US20200169629A1 (en) 2017-05-10 2017-05-10 Verification Code Input Method and Apparatus
EP17909301.8A EP3618347B1 (en) 2017-05-10 2017-05-10 Method and device for inputting verification code
PCT/CN2017/083788 WO2018205168A1 (zh) 2017-05-10 2017-05-10 一种验证码的输入方法及装置

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/083788 WO2018205168A1 (zh) 2017-05-10 2017-05-10 一种验证码的输入方法及装置

Publications (1)

Publication Number Publication Date
WO2018205168A1 true WO2018205168A1 (zh) 2018-11-15

Family

ID=63843792

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/083788 Ceased WO2018205168A1 (zh) 2017-05-10 2017-05-10 一种验证码的输入方法及装置

Country Status (4)

Country Link
US (1) US20200169629A1 (zh)
EP (1) EP3618347B1 (zh)
CN (1) CN108702413A (zh)
WO (1) WO2018205168A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110443022A (zh) * 2019-07-05 2019-11-12 深圳壹账通智能科技有限公司 打码验证方法、电子装置及存储介质
CN111835765A (zh) * 2020-07-13 2020-10-27 中国联合网络通信集团有限公司 一种验证方法及装置
CN114968003A (zh) * 2022-04-20 2022-08-30 中电信数智科技有限公司 验证码输入方法及装置

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111752398A (zh) * 2020-05-29 2020-10-09 维沃移动通信有限公司 验证码输入方法、装置、电子设备及可读存储介质
CN112203277B (zh) * 2020-09-21 2024-03-15 咪咕文化科技有限公司 路线生成方法、验证方法、服务器和电子设备
CN112153059A (zh) * 2020-09-27 2020-12-29 闻泰通讯股份有限公司 邮件验证码获取方法、装置、电子设备和存储介质
US11611544B2 (en) 2020-10-08 2023-03-21 Paypal, Inc. Delayed user authentication
CN112491802B (zh) * 2020-10-29 2023-04-07 广西电力职业技术学院 身份验证通信设备及身份验证方法
CN112417420B (zh) * 2020-11-26 2025-01-21 维沃移动通信有限公司 信息处理方法、装置和电子设备
CN113115238B (zh) * 2021-04-15 2022-07-19 北京字跳网络技术有限公司 短信验证码填充方法和电子设备
CN113407959B (zh) * 2021-06-11 2023-04-14 维沃移动通信(杭州)有限公司 操作执行方法、装置及电子设备
CN113760150B (zh) * 2021-09-22 2023-05-30 北京字跳网络技术有限公司 页面处理方法、装置、设备及存储介质
CN116074025A (zh) * 2021-10-29 2023-05-05 北京小米移动软件有限公司 输入验证信息的方法、装置和存储介质
CN114338108B (zh) * 2021-12-17 2024-06-18 江苏银承网络科技股份有限公司 用于自动化测试的外接验证码获取系统、方法及存储介质
US20250156022A1 (en) * 2022-05-26 2025-05-15 Beijing Xiaomi Mobile Software Co., Ltd. Interface display method and apparatus and storage medium
CN118643485B (zh) * 2024-06-07 2025-07-04 湖南开鸿智谷数字产业发展有限公司 验证码展示方法、装置、设备、存储介质及产品

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105159533A (zh) * 2015-08-31 2015-12-16 努比亚技术有限公司 一种移动终端及其验证码自动输入方法
CN105553663A (zh) * 2015-12-09 2016-05-04 小米科技有限责任公司 验证码输入方法及装置
CN106529265A (zh) * 2016-10-24 2017-03-22 宇龙计算机通信科技(深圳)有限公司 验证码的提取方法、验证码的提取装置和终端

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101548958B1 (ko) * 2008-09-18 2015-09-01 삼성전자주식회사 휴대단말기의 터치스크린 동작 제어 방법 및 장치
JP2015014960A (ja) * 2013-07-05 2015-01-22 ソニー株式会社 情報処理装置、および記憶媒体
CN103546877B (zh) * 2013-10-30 2018-10-12 上海斐讯数据通信技术有限公司 一种获取并输入内容码的方法、系统和移动终端
CN104703151A (zh) * 2013-12-09 2015-06-10 浙江融创信息产业有限公司 一种客户端进行动态密码验证的方法、装置及终端
CN104935744A (zh) * 2015-06-10 2015-09-23 腾讯科技(深圳)有限公司 一种验证码显示方法、验证码显示装置及移动终端
CN105049607B (zh) * 2015-06-24 2018-09-04 广东欧珀移动通信有限公司 一种短信显示方法及移动终端
CN105101122A (zh) * 2015-06-29 2015-11-25 安一恒通(北京)科技有限公司 验证码输入方法和装置
CN105094551A (zh) * 2015-07-24 2015-11-25 联想(北京)有限公司 一种信息处理方法及电子设备
CN105162784B (zh) * 2015-08-31 2018-07-27 小米科技有限责任公司 验证信息输入的处理方法和装置
CN106550089B (zh) * 2015-09-16 2019-12-10 阿里巴巴集团控股有限公司 验证码的处理方法、客户端及用户终端
CN105511949B (zh) * 2015-12-03 2020-03-17 小米科技有限责任公司 验证码的填充方法、装置和移动终端
CN106559419B (zh) * 2016-10-28 2019-08-06 北京安云世纪科技有限公司 短信验证码的应用识别方法及识别终端

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105159533A (zh) * 2015-08-31 2015-12-16 努比亚技术有限公司 一种移动终端及其验证码自动输入方法
CN105553663A (zh) * 2015-12-09 2016-05-04 小米科技有限责任公司 验证码输入方法及装置
CN106529265A (zh) * 2016-10-24 2017-03-22 宇龙计算机通信科技(深圳)有限公司 验证码的提取方法、验证码的提取装置和终端

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3618347A4 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110443022A (zh) * 2019-07-05 2019-11-12 深圳壹账通智能科技有限公司 打码验证方法、电子装置及存储介质
CN111835765A (zh) * 2020-07-13 2020-10-27 中国联合网络通信集团有限公司 一种验证方法及装置
CN111835765B (zh) * 2020-07-13 2022-09-23 中国联合网络通信集团有限公司 一种验证方法及装置
CN114968003A (zh) * 2022-04-20 2022-08-30 中电信数智科技有限公司 验证码输入方法及装置
CN114968003B (zh) * 2022-04-20 2023-08-11 中电信数智科技有限公司 验证码输入方法及装置

Also Published As

Publication number Publication date
EP3618347A4 (en) 2020-03-04
EP3618347A1 (en) 2020-03-04
CN108702413A (zh) 2018-10-23
EP3618347B1 (en) 2021-07-21
US20200169629A1 (en) 2020-05-28

Similar Documents

Publication Publication Date Title
WO2018205168A1 (zh) 一种验证码的输入方法及装置
US11989405B2 (en) Screen locking method and apparatus
AU2018421189B2 (en) Method for quickly opening application or application function, and terminal
CN106201733B (zh) 用于处理装置之间的输入的方法及其电子装置
US10261683B2 (en) Electronic apparatus and screen display method thereof
US10548003B2 (en) Electronic device for controlling an external device using a number and method thereof
KR102226411B1 (ko) 재등록을 관리하는 전자 장치 및 방법
US10187359B2 (en) Secure message transmission apparatus and processing method thereof
CN106201491B (zh) 移动终端和移动终端远程协助过程控制方法、装置
US20170269725A1 (en) Electronic device for touch and finger scan sensor input and control method thereof
US10242167B2 (en) Method for user authentication and electronic device implementing the same
US10257873B2 (en) Method and electronic device for providing tethering service
KR102558349B1 (ko) 조건부 액션에 대한 정보를 공유하기 위한 방법 및 그 전자 장치
KR102257474B1 (ko) 전자 장치의 데이터 송수신 방법 및 이를 사용하는 전자 장치
KR102587726B1 (ko) 외부 장치를 연결하는 방법 및 이를 지원하는 전자 장치
EP3097743B1 (en) Electronic device for controlling an external device using a number and method thereof
WO2018049893A1 (zh) 数据传输方法及终端设备
US10114542B2 (en) Method for controlling function and electronic device thereof
CN107924546A (zh) 用于提供内容信息的方法及用于该方法的电子设备
CN110557499A (zh) 信息处理方法、装置及移动终端
KR102645674B1 (ko) 전자 장치 및 그의 동작 방법
US20170185366A1 (en) Method and device for inputting information
US20170048292A1 (en) Electronic device and method for providing content
CN108475367B (zh) 用于显示支付方式的指示的方法和装置
CN107229845A (zh) 终端上的插件处理方法、装置及终端

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: 17909301

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2017909301

Country of ref document: EP

Effective date: 20191126