CN112788603A - Verification code forwarding method, device, equipment and medium - Google Patents

Verification code forwarding method, device, equipment and medium Download PDF

Info

Publication number
CN112788603A
CN112788603A CN202110114169.XA CN202110114169A CN112788603A CN 112788603 A CN112788603 A CN 112788603A CN 202110114169 A CN202110114169 A CN 202110114169A CN 112788603 A CN112788603 A CN 112788603A
Authority
CN
China
Prior art keywords
electronic equipment
verification code
electronic device
electronic
preset condition
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110114169.XA
Other languages
Chinese (zh)
Other versions
CN112788603B (en
Inventor
刘池莉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202110114169.XA priority Critical patent/CN112788603B/en
Publication of CN112788603A publication Critical patent/CN112788603A/en
Application granted granted Critical
Publication of CN112788603B publication Critical patent/CN112788603B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • G06F16/90335Query processing
    • G06F16/90344Query processing by using string matching techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/44Program or device authentication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/21Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/2133Verifying human interaction, e.g., Captcha

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Telephone Function (AREA)

Abstract

The application discloses a verification code forwarding method, a verification code forwarding device, verification code forwarding equipment and verification code forwarding media. The method comprises the following steps: receiving a verification code; the method comprises the steps that a verification code is sent to second electronic equipment under the condition that the second electronic equipment meets a first preset condition or a second preset condition; wherein the first preset condition is as follows: the user account information used by the input method program in the electronic equipment is the same as the user account information used by the input method program in the first electronic equipment; the second preset condition is as follows: the electronic equipment and the first electronic equipment establish a pairing relation, and an input keyboard of the electronic equipment is called up. According to the verification code forwarding method, device, equipment and medium, the second electronic equipment can receive the verification code, and verification of the verification code can be further performed.

Description

Verification code forwarding method, device, equipment and medium
Technical Field
The application belongs to the technical field of electronic equipment, and particularly relates to a verification code forwarding method, a verification code forwarding device, verification code forwarding equipment and verification code forwarding media.
Background
As the living standard of people increases, a user may have a plurality of electronic devices (e.g., mobile phones, tablets, etc.). A Subscriber Identity Module (SIM) card may be installed in each of the plurality of electronic devices.
However, in the course of implementing the present application, the inventors found that at least the following problems exist in the related art: only one or a few of the plurality of electronic devices have SIM cards installed therein. This may result in that, when a user needs to perform verification of the verification code on an electronic device (e.g., electronic device a), the verification code may be received by other electronic devices (e.g., electronic device B) equipped with SIM cards, and the electronic device a cannot receive the verification code, and thus cannot perform verification of the verification code.
Disclosure of Invention
An object of the embodiments of the present application is to provide a verification code forwarding method, device, apparatus, and medium, which can solve the problem that an electronic device cannot receive a verification code and cannot perform verification of the verification code.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a verification code forwarding method, which is applied to a first electronic device, and the verification code forwarding method includes:
receiving a verification code;
the method comprises the steps that a verification code is sent to second electronic equipment under the condition that the second electronic equipment meets a first preset condition or a second preset condition;
wherein the first preset condition is as follows: the user account information used by the input method program in the electronic equipment is the same as the user account information used by the input method program in the first electronic equipment; the second preset condition is as follows: the electronic equipment and the first electronic equipment establish a pairing relation, and an input keyboard of the electronic equipment is called up.
In a second aspect, an embodiment of the present application provides an identifying code forwarding apparatus, which is applied to a first electronic device, and includes:
the receiving module is used for receiving the verification code;
the sending module is used for sending the verification code to the second electronic equipment under the condition that the second electronic equipment meets a first preset condition or a second preset condition;
wherein the first preset condition is as follows: the user account information used by the input method program in the electronic equipment is the same as the user account information used by the input method program in the first electronic equipment; the second preset condition is as follows: the electronic equipment and the first electronic equipment establish a pairing relation, and an input keyboard of the electronic equipment is called up.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, where the program or instructions, when executed by the processor, implement the steps of the verification code forwarding method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the verification code forwarding method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the steps of the verification code forwarding method according to the first aspect.
In the embodiment of the application, after receiving the verification code, the first electronic device sends the verification code to the second electronic device which meets the first preset condition or the second preset condition. Therefore, the second electronic equipment meeting the first preset condition or the second preset condition can receive the verification code from the first electronic equipment, and then verification of the verification code can be carried out.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the embodiments of the present application will be briefly described below, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts
Fig. 1 is a schematic flowchart of an authentication code forwarding method provided in an embodiment of the present application;
fig. 2 is a schematic structural diagram of an authentication code forwarding apparatus according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;
fig. 4 is a schematic hardware structure diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The verification code forwarding method, apparatus, device and medium provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Fig. 1 is a schematic flowchart of an authentication code forwarding method provided in an embodiment of the present application. The verification code forwarding method is applied to the first electronic equipment. The verification code forwarding method can comprise the following steps:
s101: an authentication code is received.
S102: and sending the verification code to the second electronic equipment under the condition that the second electronic equipment meets the first preset condition or the second preset condition.
Wherein the first preset condition is as follows: the user account information used by the input method program in the electronic equipment is the same as the user account information used by the input method program in the first electronic equipment; the second preset condition is as follows: the electronic equipment and the first electronic equipment establish a pairing relation, and an input keyboard of the electronic equipment is called up.
In the embodiment of the application, after receiving the verification code, the first electronic device sends the verification code to the second electronic device which meets the first preset condition or the second preset condition. Therefore, the second electronic equipment meeting the first preset condition or the second preset condition can receive the verification code from the first electronic equipment, and then verification of the verification code can be carried out.
In some possible implementations of the embodiment of the present application, S101 may include: receiving target information; from the target information, the verification code is extracted.
In some possible implementations of the embodiments of the present application, the first electronic device may receive the target information from a third electronic device, and the third electronic device may be an electronic device that receives the verification code acquisition request.
In some possible implementations of the embodiment of the application, when the electronic device that needs to perform verification code verification displays an interface of a verification code to be input, after a user clicks an "acquire verification code" button in the interface, the electronic device that needs to perform verification code verification sends a verification code acquisition request to a third electronic device; after receiving the verification code acquisition request, the third electronic device generates target information including the verification code and sends the target information including the verification code to the first electronic device; the first electronic device extracts the verification code from the target information including the verification code after receiving the target information including the verification code.
In this embodiment of the application, the third electronic device is generally a server, and the first electronic device may be a mobile phone corresponding to a mobile phone number input by a user on the interface to be input with the verification code.
In some possible implementations of embodiments of the present application, examples of the target information are: "[ certain platform ], you are good, the verification code is 2453 this time, and the validity period is 1 minute. "," [ certain platform ], your captcha is 2456, please enter in 1 minute, otherwise please not reveal the captcha to others. "and the like.
Typically, the verification code is typically a 4-digit number or a 6-digit number. Based on this, in some possible implementations of the embodiments of the present application, the regular expression "\ d {4 }" for matching 4-digit numbers and the regular expression "\ d {6 }" for matching 6-digit numbers may be preset. In S102, the verification code may be extracted from the target information according to a preset regular expression.
In some possible implementations of the embodiment of the application, after receiving the target information, the first electronic device may receive a first input (e.g., copy) of the verification code by the user, and then trigger sending of the verification code to the second electronic device that satisfies the first preset condition or the second preset condition. That is to say, after S101 and before S102, the verification code forwarding method provided in the embodiment of the present application may further include: a first input of a passcode by a user is received.
Illustratively, the first electronic device receives the target information "[ a certain platform ], hello, the verification code of this time is 2453, and the validity period is 1 minute. After that, the user copies "2453", and sends the verification code "2453" to the second electronic device satisfying the first preset condition or the second preset condition. In the present embodiment, user duplication "2453" indicates that the user performs the above-described first input on the authentication code "2453".
The following describes the transmission of the verification code to the second electronic device that satisfies the first preset condition.
Illustratively, the user account information used by the input method program in the first electronic device is "1524565". The user account information used by the input method program in the electronic device a is "Fgwa"; the user account information used by the input method program in the electronic device B is "Husauf"; the user account information used by the input method program in the electronic device C is "1524565". In S102, the electronic device that satisfies the first preset condition is the electronic device C, and the verification code is sent to the electronic device C.
In some possible implementations of the embodiment of the application, after the "device check" permission of a certain input method program in the first electronic device is opened, the first electronic device is allowed to detect other electronic devices that use the same user account information to log in the input method program, and at this time, the first electronic device may scan other electronic devices that use the same user account information to log in the input method program.
Further, in some possible implementations of the embodiment of the application, after the second electronic device meeting the first preset condition is determined, the electronic device with the input keyboard being lifted may be determined from the second electronic devices meeting the first preset condition, and then the verification code is sent to the electronic device with the input keyboard being lifted and meeting the first preset condition.
Illustratively, the user account information used by the input method program in the electronic device a is "1524565". The user account information used by the input method program in the electronic device B is "Fgwa"; the user account information used by the input method program in the electronic device C is "1524565"; the user account information used by the input method program in the electronic device D is "1524565".
Wherein, the user uses the electronic device B to chat with other users, and the electronic device B starts up the input keyboard.
The user is watching the video with the electronic device C, and the input keyboard is not turned on by the electronic device C.
The user logs in a certain application program by using the electronic device D, wherein the user is required to input the verification code during the process of logging in the application program, and the electronic device D invokes the input keyboard.
If the electronic device that receives the verification code is the electronic device a, that is, the electronic device a is the first electronic device, in S102, the electronic devices that satisfy the first preset condition include: the electronic equipment C and the electronic equipment D, and the electronic equipment C sends the verification code to the electronic equipment D when the input keyboard is not turned up and the electronic equipment D turns up the input keyboard.
In some possible implementations of embodiments of the present application, a master switch may be provided that controls whether status checks between different electronic devices are allowed. When the main switch is turned on, the first electronic device may detect other electronic devices that use the same user account to log in the input method program, and the first electronic device may also be detected by the other electronic devices.
In some possible implementations of the embodiment of the present application, a separate switch may be further provided for each detected electronic device, where the separate switch is used to control whether the electronic device is allowed to send the verification code to the electronic device corresponding to the switch. When a switch is turned on, the first electronic device may send the verification code to the electronic device corresponding to the switch, and when a switch is turned off, even if the first electronic device and the electronic device corresponding to the switch log in the same input method program using the same user account, the first electronic device may not send the verification code to the electronic device corresponding to the switch.
Further, in some possible implementations of the embodiment of the application, after the second electronic device meeting the first preset condition is determined, the electronic device whose running application program interface includes the interface to which the verification code is to be input may be further determined from the second electronic device meeting the first preset condition, and the verification code is further sent to the electronic device whose running application program interface includes the interface to which the verification code is to be input and meets the first preset condition.
Illustratively, the user account information used by the input method program in the electronic device a is "1524565". The user account information used by the input method program in the electronic device B is "Fgwa"; the user account information used by the input method program in the electronic device C is "1524565"; the user account information used by the input method program in the electronic device D is "1524565".
The electronic device A runs two application programs, wherein the two application programs are an application program 4 and an application program 5 respectively, an interface of the application program 4 is a search interface, and an interface of the application program 5 is a video playing interface.
The electronic device B runs three application programs, wherein the three application programs are an application program 1, an application program 2 and an application program 3 respectively, the interface of the application program 1 is a chat interface, the interface of the application program 2 is a video playing interface, and the interface of the application program 3 is an interface which requires a user to input a verification code when logging in the application program 3, namely an interface of the verification code to be input.
The electronic device C runs three application programs, which are an application program 1, an application program 2, and an application program 4, respectively, an interface of the application program 1 is a chat setting interface, an interface of the application program 2 is a video search interface, and an interface of the application program 4 is a picture processing interface.
The electronic device D runs an application 2, and an interface of the application 2 is an interface for logging in the application 2, which requires a user to input a verification code, that is, an interface to be input with the verification code.
If the electronic device that receives the verification code is the electronic device a, that is, the electronic device a is the first electronic device, in S102, the electronic devices that satisfy the first preset condition include: the electronic device C and the electronic device D send the verification code to the electronic device D, wherein the application program interface operated by the electronic device C does not comprise an interface of the verification code to be input, and the application program interface operated by the electronic device D comprises an interface of the verification code to be input.
In the embodiment of the application, the verification codes among different electronic devices can be forwarded based on the input method program.
The following describes the transmission of the verification code to the second electronic device that satisfies the second preset condition.
Illustratively, electronic device a has a bluetooth pairing relationship with electronic device B, electronic device a has a bluetooth pairing relationship with electronic device C, and electronic device C and electronic device D also have a bluetooth pairing relationship.
Wherein, the user watches the video by using the electronic equipment B, and the input keyboard is not called by the electronic equipment B.
The user logs in a certain application program by using the electronic equipment C, wherein the user is required to input the verification code during the process of logging in the application program, and the electronic equipment C invokes the input keyboard.
The user chats with other users using the electronic device D, and the electronic device D also invokes the input keypad.
If the electronic device that receives the verification code is the electronic device a, that is, the electronic device a is the first electronic device, in S102, the electronic devices that satisfy the second preset condition include: and the electronic equipment C sends the verification code to the electronic equipment C.
Further, in some possible implementations of the embodiment of the application, after the second electronic device meeting the second preset condition is determined, the electronic device whose running application program interface includes the interface to which the verification code is to be input may be further determined from the second electronic device meeting the second preset condition, and the verification code is further sent to the electronic device whose running application program interface includes the interface to which the verification code is to be input and meets the second preset condition.
Exemplarily, the electronic device a has a bluetooth pairing relationship with the electronic device B, the electronic device C and the electronic device D, and the electronic device C and the electronic device D also have a bluetooth pairing relationship.
The user watches the video by using the electronic equipment B, the electronic equipment B does not call the input keyboard, and the electronic equipment B operates the video playing interface.
The user logs in a certain application program by using the electronic equipment C, wherein in the process of logging in the application program, the user is required to input the verification code, the electronic equipment C starts up the input keyboard, and the electronic equipment C runs an interface of the verification code to be input.
The user chats with other users by using the electronic equipment D, the electronic equipment D calls up the input keyboard, and the electronic equipment D runs a chatting interface.
If the electronic device that receives the verification code is the electronic device a, that is, the electronic device a is the first electronic device, in S102, the electronic devices that satisfy the second preset condition include: the electronic equipment C and the electronic equipment D are connected, the application program interface operated by the electronic equipment C comprises an interface of a verification code to be input, the application program interface operated by the electronic equipment D does not comprise the interface of the verification code to be input, and the verification code is sent to the electronic equipment C.
In some possible implementations of the embodiment of the present application, the interface to be input with the verification code may be displayed at the front end of the electronic device or may run in the background of the electronic device.
In general, the valid duration of the verification code is short, the user cannot call the interface of the verification code to be input into the background, and the interface of the verification code to be input is always displayed at the front end of the electronic device until the verification code is input. However, in some cases, the interface to be input with the verification code may be called into the background, for example, the user may mistakenly operate to cause the electronic device to display a desktop, and for example, the user clicks the "acquire verification code" button in the "interface to be input with the verification code" to just receive a video call sent by a phone of another user or another user, at this time, the phone interface or the video call interface is called into the front end of the electronic device to be displayed, and the interface to be input with the verification code is called into the background.
In the embodiment of the application, the verification codes among different electronic devices can be forwarded based on the pairing relationship.
In some possible implementations of the embodiment of the application, after receiving the verification code, the first electronic device may further send the verification code to other electronic devices in a broadcast manner.
In some possible implementations of the embodiments of the present application, S102 may include: acquiring address information of second electronic equipment; and sending the verification code to the second electronic equipment according to the address information.
The address information in the embodiment of the present application includes, but is not limited to, a physical address (e.g., a Media Access Control (MAC) address) and a logical address (e.g., an Internet Protocol (IP) address).
When the address information of the second electronic device is acquired, the verification code may be sent to the electronic device corresponding to the acquired address information.
In some possible implementations of the embodiments of the present application, S102 may include: and under the condition that the authority of the second electronic equipment for automatically filling the verification code is opened, sending the verification code to the second electronic equipment.
Exemplarily, after receiving the verification code, the first electronic device determines a second electronic device that meets a first preset condition or a second preset condition; and then, sending inquiry information to a second electronic device meeting the first preset condition or the second preset condition, wherein the inquiry information is used for inquiring whether the second electronic device starts the authority of automatically filling the verification code, and sending the verification code to the second electronic device under the condition that the received information fed back by the second electronic device indicates that the second electronic device already starts the authority of automatically filling the verification code.
As another example, a master switch for controlling whether or not to allow status checking between different electronic devices may be provided for the "device check" authority of the input method program. When the master switch is turned on, the first electronic device may detect other electronic devices with which it is logged in to the input method program using the same user account. And aiming at each detected electronic device, a separate switch can be respectively set, and the separate switch is used for indicating whether the electronic device corresponding to the switch starts the authority of automatically filling the verification code. When a certain switch is turned on, the authority of the electronic equipment corresponding to the switch for automatically filling the verification code is turned on, and when the certain switch is turned off, the authority of the electronic equipment corresponding to the switch for not turning on the automatic filling verification code is indicated.
Assume that the electronic device receiving the verification code is the electronic device a, i.e. the first electronic device. After the device check authority of the input method program of the electronic device A is turned on, the electronic device A detects the electronic device B, the electronic device C and the electronic device D, wherein a switch corresponding to the electronic device B is turned on, a switch of the electronic device C is turned off, and a switch of the electronic device D is turned on. That is, the electronic device B opens the "device check" authority of the input method program and opens the authority to automatically fill the verification code; the electronic equipment C opens the equipment checking authority of the input method program but does not open the authority of automatically filling the verification code; the electronic device D has opened the "device check" authority of the input method program and opened the authority to automatically fill the authentication code. Although the electronic device B, the electronic device C, and the electronic device D are all electronic devices that satisfy the first preset condition or the second preset condition, since the electronic device C does not turn on the authority to automatically fill the verification code, the verification code is not sent to the electronic device C, and only the verification code is sent to the electronic device B and the electronic device D.
In some possible implementations of the embodiment of the present application, before S102, the method for forwarding the verification code provided in the embodiment of the present application may further include: and carrying out security verification. Accordingly, S102 may include: and in the case of passing the security verification, transmitting the verification code to the second electronic equipment.
The security verification in the embodiment of the present application includes but is not limited to: fingerprint verification, password verification, face recognition verification and the like.
In the embodiment of the application, the verification code is sent only when the security verification is passed, so that the verification code can be prevented from being stolen by an unknown device.
In some possible implementations of the embodiment of the present application, before S102, the method for forwarding the verification code provided in the embodiment of the present application may further include: and carrying out security check on the second electronic equipment. Accordingly, S102 may include: and in the case that the second electronic equipment passes the security check, transmitting the verification code to the second electronic equipment.
In some possible implementations of the embodiments of the present application, the performing the security check on the second electronic device may include at least one of:
checking the pairing duration of the second electronic equipment and the first electronic equipment;
checking the number of times of communication between the second electronic equipment and the first electronic equipment;
detecting the distance between the second electronic equipment and the first electronic equipment;
checking the number of times that the second electronic equipment and the first electronic equipment are in the same area;
checking the duration of the second electronic equipment and the first electronic equipment in the same region;
checking the times of connecting the second electronic equipment and the first electronic equipment to the same local area network;
checking the time length of the connection of the second electronic equipment and the first electronic equipment to the same local area network;
the number of login applications of the second electronic device and the first electronic device using the same user account is checked.
In some possible implementations of the embodiment of the present application, the longer the pairing time of the second electronic device and the first electronic device, the more the communication times, the shorter the distance, the more the times of being in the same area, the longer the time of being in the same area, the more the times of connecting to the same local area network, the longer the time of connecting to the same local area network, and the more the number of applications logging in by using the same user account number, the more secure the communication between the second electronic device and the first electronic device, and the greater the probability that the second electronic device passes the security check.
In the embodiment of the application, the verification code is sent only when the second electronic device passes the security check, so that the verification code can be prevented from being stolen by an unknown device.
In some possible implementations of the embodiment of the present application, before S102, the method for forwarding the verification code provided in the embodiment of the present application may further include: and displaying inquiry information, wherein the inquiry information is used for inquiring whether the user sends the verification code to the second electronic equipment.
And after the user determines to send the verification code to the second electronic equipment based on the inquiry information, the first electronic equipment sends the verification code to the second electronic equipment.
In the embodiment of the application, the verification code is sent only under the condition that the user allows, so that the verification code can be prevented from being stolen by an unknown device.
After the second electronic device receives the verification code sent by the first electronic device, the user can manually input the verification code in the interface of the verification code to be input displayed by the second electronic device or the second electronic device automatically inputs the received verification code into the interface of the verification code to be input.
In some possible implementations of the embodiment of the application, in a case where the second electronic device calls the security keyboard, the verification code may be prompted in a plurality of ways, such as a floating information bar or a floating window, a voice prompt, and the like, and then the second electronic device receives the verification code input by the user on the security keyboard. It can be understood that the authentication code can only be manually input by the user when the second electronic device invokes the security keypad, wherein the security keypad does not allow other applications to obtain the input content, nor automatically obtain the content input by the user on other applications.
In some possible implementations of the embodiments of the application, in a case where the second electronic device invokes the non-secure keyboard, the second electronic device may automatically input the verification code into the interface to be input with the verification code.
Fig. 2 is a schematic structural diagram of an authentication code forwarding apparatus according to an embodiment of the present application. The verification code forwarding apparatus may be applied to the first electronic device, and the verification code forwarding apparatus 200 may include:
a receiving module 201, configured to receive a verification code;
the sending module 202 is configured to send the verification code to the second electronic device when the second electronic device meets a first preset condition or a second preset condition;
wherein the first preset condition is as follows: the user account information used by the input method program in the electronic equipment is the same as the user account information used by the input method program in the first electronic equipment; the second preset condition is as follows: the electronic equipment and the first electronic equipment establish a pairing relation, and an input keyboard of the electronic equipment is called up.
In the embodiment of the application, after receiving the verification code, the first electronic device sends the verification code to the second electronic device which meets the first preset condition or the second preset condition. Therefore, the second electronic equipment meeting the first preset condition or the second preset condition can receive the verification code from the first electronic equipment, and then verification of the verification code can be carried out.
In some possible implementations of the embodiment of the present application, the receiving module 201 may include:
the receiving submodule is used for receiving target information;
and the extraction submodule is used for extracting the verification code from the target information.
In some possible implementations of the embodiments of the present application, the sending module 202 may include:
the acquisition submodule is used for acquiring address information of the second electronic equipment;
and the first sending submodule is used for sending the verification code to the second electronic equipment according to the address information.
In some possible implementations of the embodiment of the present application, the sending module 202 may be specifically configured to:
and under the condition that the authority of the second electronic equipment for automatically filling the verification code is opened, sending the verification code to the second electronic equipment.
In some possible implementations of the embodiment of the present application, the verification code forwarding apparatus 200 provided in the embodiment of the present application may further include:
the verification module is used for performing security verification;
accordingly, the sending module 202 may specifically be configured to:
and in the case of passing the security verification, transmitting the verification code to the second electronic equipment.
In the embodiment of the application, the verification code is sent only when the security verification is passed, so that the verification code can be prevented from being stolen by an unknown device.
In some possible implementations of the embodiment of the present application, the verification code forwarding apparatus 200 provided in the embodiment of the present application may further include:
the checking module is used for carrying out security check on the second electronic equipment;
accordingly, the sending module 202 may specifically be configured to:
and in the case that the second electronic equipment passes the security check, transmitting the verification code to the second electronic equipment.
In the embodiment of the application, the verification code is sent only when the second electronic device passes the security check, so that the verification code can be prevented from being stolen by an unknown device.
In some possible implementations of embodiments of the present application, the inspection module may be specifically configured to at least one of:
checking the pairing duration of the second electronic equipment and the first electronic equipment;
checking the number of times of communication between the second electronic equipment and the first electronic equipment;
detecting the distance between the second electronic equipment and the first electronic equipment;
checking the number of times that the second electronic equipment and the first electronic equipment are in the same area;
checking the duration of the second electronic equipment and the first electronic equipment in the same region;
checking the times of connecting the second electronic equipment and the first electronic equipment to the same local area network;
checking the time length of the connection of the second electronic equipment and the first electronic equipment to the same local area network;
the number of login applications of the second electronic device and the first electronic device using the same user account is checked.
The verification code forwarding device provided in the embodiment of the present application can implement each process in the verification code forwarding method embodiment of fig. 1, and is not described here again to avoid repetition.
The verification code forwarding device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. Illustratively, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine, a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The verification code forwarding device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
Optionally, as shown in fig. 3, an electronic device 300 is further provided in this embodiment of the present application, and includes a processor 301, a memory 302, and a program or an instruction stored in the memory 302 and capable of being executed on the processor 301, where the program or the instruction is executed by the processor 301 to implement each process of the foregoing verification code forwarding method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and the non-mobile electronic devices described above.
In some possible implementations of embodiments of the present Application, the processor 301 may include a Central Processing Unit (CPU), or an Application Specific Integrated Circuit (ASIC), or may be configured to implement one or more Integrated circuits of embodiments of the present Application.
In some possible implementations of embodiments of the present application, the Memory 302 may include Read-Only Memory (ROM), Random Access Memory (RAM), magnetic disk storage media devices, optical storage media devices, flash Memory devices, electrical, optical, or other physical/tangible Memory storage devices. Thus, in general, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software comprising computer-executable instructions and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the captcha forwarding methods in accordance with the present application.
Fig. 4 is a schematic hardware structure diagram of an electronic device implementing an embodiment of the present application. The electronic device 400 includes, but is not limited to: radio unit 401, network module 402, audio output unit 403, input unit 404, sensor 405, display unit 406, user input unit 407, interface unit 408, memory 409, and processor 410.
Those skilled in the art will appreciate that the electronic device 400 may further include a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 410 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 4 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
In some possible implementations of the embodiment of the present application, the radio frequency unit 401 may be configured to receive a verification code; and sending the verification code to the second electronic equipment under the condition that the second electronic equipment meets the first preset condition or the second preset condition.
Wherein the first preset condition is as follows: the user account information used by the input method program in the electronic equipment is the same as the user account information used by the input method program in the first electronic equipment; the second preset condition is as follows: the electronic equipment and the first electronic equipment establish a pairing relation, and an input keyboard of the electronic equipment is called up.
In this embodiment, after receiving the verification code, the electronic device 400 forwards the verification code to a second electronic device that satisfies a first preset condition or a second preset condition. In this way, the second electronic device that satisfies the first preset condition or the second preset condition can receive the verification code from the electronic device 400, and can perform verification of the verification code.
In some possible implementations of the embodiment of the present application, the radio frequency unit 401 may specifically be configured to:
target information is received.
Accordingly, the processor 410 may be configured to:
from the target information, the verification code is extracted.
In some possible implementations of embodiments of the present application, the processor 410 may be further configured to:
and acquiring address information of the second electronic equipment.
Accordingly, the radio frequency unit 401 may specifically be configured to:
and sending the verification code to the second electronic equipment according to the address information.
In some possible implementations of the embodiment of the present application, the radio frequency unit 401 may specifically be configured to:
and under the condition that the authority of the second electronic equipment for automatically filling the verification code is opened, sending the verification code to the second electronic equipment.
In some possible implementations of embodiments of the present application, the processor 410 may be further configured to:
carrying out safety verification;
accordingly, the radio frequency unit 401 may specifically be configured to:
and in the case of passing the security verification, transmitting the verification code to the second electronic equipment.
In the embodiment of the application, the verification code is sent only when the security verification is passed, so that the verification code can be prevented from being stolen by an unknown device.
In some possible implementations of embodiments of the present application, the processor 410 may be further configured to:
performing security check on the second electronic device;
accordingly, the radio frequency unit 401 may specifically be configured to:
and in the case that the second electronic equipment passes the security check, transmitting the verification code to the second electronic equipment.
In the embodiment of the application, the verification code is sent only when the second electronic device passes the security check, so that the verification code can be prevented from being stolen by an unknown device.
In some possible implementations of embodiments of the present application, the processor 410 may be specifically configured to at least one of:
checking a pairing duration of the second electronic device with the electronic device 400;
checking the number of communications of the second electronic device with the electronic device 400;
detecting a distance of the second electronic device from the electronic device 400;
checking the number of times that the second electronic device is in the same area as the electronic device 400;
checking a duration that the second electronic device is in the same area as the electronic device 400;
checking the number of times that the second electronic device is connected to the same local area network as the electronic device 400;
checking the time duration for connecting the second electronic device and the electronic device 400 to the same local area network;
the number of login applications of the second electronic device and the electronic device 400 using the same user account is checked.
It should be understood that in the embodiment of the present application, the input Unit 404 may include a Graphics Processing Unit (GPU) 4041 and a microphone 4042, and the Graphics processor 4041 processes image data of a still picture or a video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 406 may include a display panel 4061, and the display panel 4061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 407 includes a touch panel 4071 and other input devices 4072. A touch panel 4071, also referred to as a touch screen. The touch panel 4071 may include two parts, a touch detection device and a touch controller. Other input devices 4072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 409 may be used to store software programs as well as various data including, but not limited to, application programs and an operating system. The processor 410 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 410.
The embodiments of the present application further provide a computer-readable storage medium, where a program or an instruction is stored on the computer-readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the foregoing verification code forwarding method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device in the above embodiment. Examples of computer readable storage media include non-transitory computer readable storage media such as ROM, RAM, magnetic or optical disks, and so forth.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the foregoing verification code forwarding method embodiment, and the same technical effect can be achieved.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A verification code forwarding method is applied to first electronic equipment, and is characterized by comprising the following steps:
receiving a verification code;
the verification code is sent to the second electronic equipment under the condition that the second electronic equipment meets a first preset condition or a second preset condition;
wherein the first preset condition is as follows: the user account information used by the input method program in the electronic equipment is the same as the user account information used by the input method program in the first electronic equipment;
the second preset condition is as follows: the electronic equipment and the first electronic equipment establish a pairing relation, and an input keyboard of the electronic equipment is started.
2. The method of claim 1, wherein receiving the validation code comprises:
receiving target information;
and extracting the verification code from the target information.
3. The method of claim 1, wherein said sending the verification code to the second electronic device comprises:
acquiring address information of the second electronic equipment;
and sending the verification code to the second electronic equipment according to the address information.
4. The method of claim 1, wherein said sending the verification code to the second electronic device comprises:
and sending the verification code to the second electronic equipment under the condition that the authority of the second electronic equipment for automatically filling the verification code is opened.
5. The method of claim 1, wherein prior to said sending the verification code to the second electronic device, the method further comprises:
carrying out safety verification;
the sending the verification code to the second electronic device includes:
and in the case of passing the security verification, sending the verification code to the second electronic equipment.
6. The method of claim 1, wherein prior to said sending the verification code to the second electronic device, the method further comprises:
performing security check on the second electronic device;
the sending the verification code to the second electronic device includes:
and sending the verification code to the second electronic equipment when the second electronic equipment passes the security check.
7. The method of claim 6, wherein the performing the security check on the second electronic device comprises at least one of:
checking a pairing duration of the second electronic device and the first electronic device;
checking the number of times of communication between the second electronic device and the first electronic device;
detecting a distance between the second electronic device and the first electronic device;
checking the number of times that the second electronic device and the first electronic device are in the same area;
checking the duration of time that the second electronic equipment and the first electronic equipment are in the same region;
checking the times of connecting the second electronic equipment and the first electronic equipment to the same local area network;
checking the time length of the second electronic equipment and the first electronic equipment which are connected with the same local area network;
and checking the number of application programs logged in by the second electronic equipment and the first electronic equipment by using the same user account.
8. An authentication code forwarding apparatus applied to a first electronic device, the apparatus comprising:
the receiving module is used for receiving the verification code;
the sending module is used for sending the verification code to the second electronic equipment under the condition that the second electronic equipment meets a first preset condition or a second preset condition;
wherein the first preset condition is as follows: the user account information used by the input method program in the electronic equipment is the same as the user account information used by the input method program in the first electronic equipment;
the second preset condition is as follows: the electronic equipment and the first electronic equipment establish a pairing relation, and an input keyboard of the electronic equipment is started.
9. An electronic device, characterized in that the electronic device comprises: processor, memory and a program or instructions stored on the memory and executable on the processor, which program or instructions, when executed by the processor, implement the steps of the authentication code forwarding method according to any of claims 1 to 7.
10. A computer-readable storage medium, on which a program or instructions are stored, which, when executed by a processor, implement the steps of the authentication code forwarding method according to any one of claims 1 to 7.
CN202110114169.XA 2021-01-27 2021-01-27 Verification code forwarding method, device, equipment and medium Active CN112788603B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110114169.XA CN112788603B (en) 2021-01-27 2021-01-27 Verification code forwarding method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110114169.XA CN112788603B (en) 2021-01-27 2021-01-27 Verification code forwarding method, device, equipment and medium

Publications (2)

Publication Number Publication Date
CN112788603A true CN112788603A (en) 2021-05-11
CN112788603B CN112788603B (en) 2023-09-19

Family

ID=75759209

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110114169.XA Active CN112788603B (en) 2021-01-27 2021-01-27 Verification code forwarding method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN112788603B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106130998A (en) * 2016-06-30 2016-11-16 珠海市魅族科技有限公司 A kind of identifying code transmission method and device
CN107229854A (en) * 2017-06-23 2017-10-03 北京金山安全软件有限公司 Application program registration method and device, electronic equipment and storage medium
CN110851818A (en) * 2019-11-15 2020-02-28 秒针信息技术有限公司 Verification code display method and device, computer equipment and readable storage medium
WO2020181914A1 (en) * 2019-03-13 2020-09-17 北京字节跳动网络技术有限公司 Mobile phone number rebinding verification method and apparatus, and device and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106130998A (en) * 2016-06-30 2016-11-16 珠海市魅族科技有限公司 A kind of identifying code transmission method and device
CN107229854A (en) * 2017-06-23 2017-10-03 北京金山安全软件有限公司 Application program registration method and device, electronic equipment and storage medium
WO2020181914A1 (en) * 2019-03-13 2020-09-17 北京字节跳动网络技术有限公司 Mobile phone number rebinding verification method and apparatus, and device and storage medium
CN110851818A (en) * 2019-11-15 2020-02-28 秒针信息技术有限公司 Verification code display method and device, computer equipment and readable storage medium

Also Published As

Publication number Publication date
CN112788603B (en) 2023-09-19

Similar Documents

Publication Publication Date Title
RU2643473C2 (en) Method and tools for fingerprinting identification
US9519767B2 (en) Apparatus and method for authenticating a combination code using a quick response code
CN112540712A (en) Message processing method and device, electronic equipment and storage medium
CN109039860B (en) Method and device for sending and displaying message and method and device for identity authentication
CN111884908B (en) Contact person identification display method and device and electronic equipment
CN111859357A (en) Login method and device and electronic equipment
EP3176719A1 (en) Methods and devices for acquiring certification document
WO2022111394A1 (en) Information processing method and apparatus, and electronic devices
CN109245902A (en) The guard method of instant messaging message authentication codes and device
KR102012923B1 (en) Device and method for managing security in terminal
CN112311795B (en) Account management method and device and electronic equipment
WO2023025054A1 (en) Remote assistance method and apparatus, and electronic device and medium
CN107145771B (en) Application program unlocking method and device and terminal
CN112887922B (en) Message sending method and electronic equipment
WO2016202277A1 (en) Message sending method and mobile terminal
CN111966991A (en) Equipment unlocking method, device, equipment and storage medium
CN113676395A (en) Information processing method, related device and readable storage medium
CN107346197B (en) Information display method and device
CN112581122A (en) Display method, payment code identification method and device and electronic equipment
CN112788603B (en) Verification code forwarding method, device, equipment and medium
CN108063665B (en) Communication method and terminal device
CN112637195B (en) Method and device for controlling electronic equipment and electronic equipment
CN106712960B (en) Processing method and device of verification code information
CN113163392A (en) Method and device for deleting user identity data file
CN112785312A (en) Information sharing method and device, electronic equipment and readable storage medium

Legal Events

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