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

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

Info

Publication number
CN112788603B
CN112788603B CN202110114169.XA CN202110114169A CN112788603B CN 112788603 B CN112788603 B CN 112788603B CN 202110114169 A CN202110114169 A CN 202110114169A CN 112788603 B CN112788603 B CN 112788603B
Authority
CN
China
Prior art keywords
electronic device
verification code
electronic equipment
electronic
verification
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110114169.XA
Other languages
Chinese (zh)
Other versions
CN112788603A (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

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, device, equipment and medium. The method comprises the following steps: receiving a verification code; sending a 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; the first preset condition is as follows: the user account information used by the input method program in the electronic device is the same as the user account information used by the input method program in the first electronic device; the second preset condition is: the electronic device and the first electronic device establish a pairing relationship, and an input keyboard of the electronic device 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 carried out.

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, device, equipment and medium.
Background
As the standard of living of people increases, a user may own a plurality of electronic devices (e.g., mobile phones, tablets, etc.). A subscriber identity (Subscriber Identification Module, SIM) card may be installed in each of the plurality of electronic devices.
However, in the process of implementing the present application, the inventors found that there are at least the following problems in the related art: only one or a few of the plurality of electronic devices have a SIM card installed therein. This results in that when the user needs to perform verification of the verification code on one electronic device (e.g., electronic device a), the verification code may be received by other electronic devices (e.g., electronic device B) 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
The embodiment of the application aims to provide a method, a device, equipment and a medium for forwarding verification codes, which can solve the problem that the verification codes cannot be verified when electronic equipment cannot receive the verification codes.
In order to solve the technical problems, the application is realized as follows:
in a first aspect, an embodiment of the present application provides a method for forwarding a verification code, which is applied to a first electronic device, where the method for forwarding the verification code includes:
receiving a verification code;
sending a 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;
the first preset condition is as follows: the user account information used by the input method program in the electronic device is the same as the user account information used by the input method program in the first electronic device; the second preset condition is: the electronic device and the first electronic device establish a pairing relationship, and an input keyboard of the electronic device is called up.
In a second aspect, an embodiment of the present application provides a verification code forwarding apparatus, applied to a first electronic device, where the verification code forwarding apparatus 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 the first preset condition or the second preset condition;
the first preset condition is as follows: the user account information used by the input method program in the electronic device is the same as the user account information used by the input method program in the first electronic device; the second preset condition is: the electronic device and the first electronic device establish a pairing relationship, and an input keyboard of the electronic device is called up.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions, when executed by the processor, implementing the steps of the authentication code forwarding method as in the first aspect.
In a fourth aspect, embodiments of the present application provide a computer readable storage medium having stored thereon a program or instructions which, when executed by a processor, implement the steps of the captcha forwarding method as in 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 verification code verification can be further carried out.
Drawings
In order to more clearly describe the technical solutions of the embodiments of the present application, the drawings required to be used in the embodiments of the present application will be briefly described, and it is possible for one skilled in the art to obtain other drawings from these drawings without inventive effort
Fig. 1 is a flow chart of a verification code forwarding method according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of an identifying code forwarding device according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
Fig. 4 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged, as appropriate, such that embodiments of the present application may be implemented in sequences other than those illustrated or described herein, and that the objects identified by "first," "second," etc. are generally of a type, and are not limited to the number of objects, such as the first object may be one or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
The verification code forwarding method, device, equipment and medium provided by the embodiment of the application are described in detail through specific embodiments and application scenes thereof with reference to the accompanying drawings.
Fig. 1 is a flow chart of a verification code forwarding method according to 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.
The first preset condition is as follows: the user account information used by the input method program in the electronic device is the same as the user account information used by the input method program in the first electronic device; the second preset condition is: the electronic device and the first electronic device establish a pairing relationship, and an input keyboard of the electronic device 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 verification code verification can be further carried out.
In some possible implementations of embodiments of the present application, S101 may include: receiving target information; and extracting the verification code from the target information.
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, which may be the electronic device that received the verification code acquisition request.
In some possible implementations of the embodiments of the present application, when an electronic device that needs to perform verification of a verification code displays an interface to which a verification code is to be input, after a user clicks a "obtain verification code" button in the interface, the electronic device that needs to perform verification of the verification code sends a verification code obtaining request to a third electronic device; after receiving the verification code acquisition request, the third electronic device generates target information comprising the verification code and sends the target information comprising the verification code to the first electronic device; and the first electronic equipment extracts the verification code from the target information comprising the verification code after receiving the target information comprising the verification code.
In the embodiment of the present application, the third electronic device is typically a server, and the first electronic device may be a mobile phone corresponding to the mobile phone number input by the user on the interface to be input with the verification code.
In some possible implementations of embodiments of the application, examples of the target information are as follows: "[ some platform ], you good, this verification code is 2453, and the validity period is 1 minute. "," [ some platform ], your verification code is 2456, please enter within 1 minute, and additionally please not reveal the verification code 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 embodiments of the present application, a regular expression "\d {4}" for matching 4-bit numbers may be preset, and a regular expression "\d {6}" for matching 6-bit numbers. In S102, the verification code may be extracted from the target information according to a regular expression set in advance.
In some possible implementations of the embodiments of the present 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, thereby triggering transmission of the verification code to the second electronic device that satisfies the first preset condition or the second preset condition. That is, after S101, before S102, the verification code forwarding method provided by the embodiment of the present application may further include: a first input of a verification code by a user is received.
For example, when the first electronic device receives the target information "[ some platform ], you good, the verification code is 2453, and the validity period is 1 minute. After "2453" the user copies, the authentication code "2453" is sent to the second electronic device that satisfies the first preset condition or the second preset condition. In an embodiment of the present application, user duplication "2453" means that the user performs the first input described above on authentication code "2453".
The sending of the verification code to the second electronic device satisfying the first preset condition is described below.
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 equipment A is Fgwa; the user account information used by the input method program in the electronic equipment 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 satisfying 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 embodiments of the present application, after the "device check" authority 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, where 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 embodiments of the present application, after determining the second electronic device that satisfies the first preset condition, the electronic device with the input keyboard being lifted may be further determined from the second electronic device that satisfies the first preset condition, and then the verification code may be sent to the electronic device that satisfies the first preset condition and with the input keyboard being lifted.
Illustratively, the user account information used by the input method program in electronic device a is "1524565". The user account information used by the input method program in the electronic equipment B is Fgwa; the user account information used by the input method program in the electronic equipment C is 1524565; the user account information used by the input method program in the electronic device D is "1524565".
Wherein the user is chatting with other users by using the electronic device B, and the electronic device B calls up the input keyboard.
The user is watching video with electronic device C, which does not call up the input keyboard.
The user logs in a certain application program by using the electronic device D, wherein the user is required to input a verification code when logging in the application program, and the electronic device D calls up an input keyboard.
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 device that meets the first preset condition includes: the electronic device C and the electronic device D, wherein the electronic device C does not call up the input keyboard, and the electronic device D calls up the input keyboard, and then the verification code is sent to the electronic device D.
In some possible implementations of embodiments of the application, a master switch may be provided for controlling whether status checking between different electronic devices is allowed. When the main switch is turned on, the first electronic device can detect other electronic devices which use the same user account to log in the input method program, and in addition, the first electronic device can also be detected by the other electronic devices.
In some possible implementations of the embodiments of the present application, a separate switch may be further configured for each detected electronic device, where the separate switch is used to control whether to allow the electronic device to send the verification code to the electronic device corresponding to the switch. When a certain switch is turned on, the first electronic device can send a verification code to the electronic device corresponding to the switch, and when the certain switch is turned off, even if the first electronic device and the electronic device corresponding to the switch use the same user account to log in the same input method program, the first electronic device can not send the verification code to the electronic device corresponding to the switch.
Further, in some possible implementations of the embodiments of the present application, after determining the second electronic device that meets the first preset condition, it may further determine, from the second electronic device that meets the first preset condition, that the running application interface includes an electronic device of an interface to which the verification code is to be input, and then send the verification code to the electronic device that meets the first preset condition and that the running application interface includes an interface to which the verification code is to be input.
Illustratively, the user account information used by the input method program in electronic device a is "1524565". The user account information used by the input method program in the electronic equipment B is Fgwa; the user account information used by the input method program in the electronic equipment 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 equipment 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 is used for logging in the application program 3 and needs a user to input a verification code, namely an interface to be used for inputting the verification code.
The electronic equipment C runs three application programs, wherein the three application programs are an application program 1, an application program 2 and an application program 4 respectively, the interface of the application program 1 is a chat setting interface, the interface of the application program 2 is a video searching interface, and the interface of the application program 4 is a picture processing interface.
The electronic device D runs an application program 2, and the interface of the application program 2 is an interface that requires the user to input the verification code to log in the application program 2, i.e. an interface to input the verification code.
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 device that meets the first preset condition includes: the method comprises the steps that the electronic equipment C and the electronic equipment D are arranged, an application program interface operated by the electronic equipment C does not comprise an interface for inputting the verification code, the application program interface operated by the electronic equipment D comprises an interface for inputting the verification code, and the verification code is sent to the electronic equipment D.
According to the embodiment of the application, the forwarding of the verification codes among different electronic devices can be realized based on the input method program.
The sending of the verification code to the second electronic device satisfying the second preset condition is described below.
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 has a bluetooth pairing relationship with electronic device D.
Wherein the user is watching video with electronic device B, which does not invoke the input keyboard.
The user logs in a certain application program by using the electronic equipment C, wherein the user is required to input a verification code when logging in the application program, and the electronic equipment C calls an input keyboard.
The user is chatting with other users using the electronic device D, which also invokes the input keyboard.
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 device that meets the second preset condition includes: and the electronic equipment C sends the verification code to the electronic equipment C.
Further, in some possible implementations of the embodiments of the present application, after determining the second electronic device that meets the second preset condition, it may further determine, from the second electronic device that meets the second preset condition, that the running application interface includes an electronic device of an interface to which the verification code is to be input, and then send the verification code to the electronic device that meets the second preset condition and that the running application interface includes an interface to which the verification code is to be input.
Illustratively, 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.
When a user logs in a certain application program by using the electronic equipment C, wherein the user is required to input a verification code in the process of logging in the application program, the electronic equipment C calls an input keyboard, and the electronic equipment C operates an interface for inputting the verification code.
The user chatts with other users by using the electronic device D, the electronic device D calls up the input keyboard, and the electronic device D runs the chatting interface.
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 device that meets the second preset condition includes: the electronic equipment C and the electronic equipment D, wherein an application program interface operated by the electronic equipment C comprises an interface for inputting the verification code, and the application program interface operated by the electronic equipment D does not comprise the interface for inputting the verification code, and then the verification code is sent to the electronic equipment C.
In some possible implementations of the embodiments of the present application, the interface to be input with the verification code may be displayed at the front end of the electronic device, and may also operate in the background of the electronic device.
In general, the effective duration of the verification code is short, the user cannot call the interface to be input with the verification code into the background, and the interface to be input with the verification code 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 misoperate the electronic device to display the desktop, for example, the user clicks the "get verification code" button in the "interface to be input with the verification code", and just receives the phone call of another user or the video call sent by another user, at this time, the phone interface or the video call interface is called into the front end of the electronic device to display, and the interface to be input with the verification code is called into the background.
According to the embodiment of the application, the forwarding of the verification codes among different electronic devices can be realized based on the pairing relation.
In some possible implementations of the embodiments of the present application, after receiving the verification code, the first electronic device may also send the verification code to other electronic devices through broadcasting.
In some possible implementations of embodiments of the present application, S102 may include: acquiring address information of the second electronic equipment; and sending the verification code to the second electronic equipment according to the address information.
Address information in embodiments of the present application includes, but is not limited to, physical addresses (e.g., media access control (Media Access Control, MAC) addresses) and logical addresses (e.g., internet protocol (Internet Protocol, IP) addresses).
When the address information of the second electronic device is acquired, the verification code can be sent to the electronic device corresponding to the acquired address information.
In some possible implementations of embodiments of the present application, S102 may include: and sending the verification code to the second electronic device under the condition that the authority of the second electronic device for automatically filling the verification code is opened.
The first electronic device determines, after receiving the verification code, a second electronic device that meets a first preset condition or a second preset condition; and then, sending query information to the second electronic equipment meeting the first preset condition or the second preset condition, wherein the query information is used for querying whether the second electronic equipment starts the authority of the automatic filling verification code, and sending the verification code to the second electronic equipment under the condition that the information fed back by the second electronic equipment is received to indicate that the second electronic equipment starts the authority of the automatic filling verification code.
As a further example, a master switch may be provided for the "device check" authority of the input method program, which master switch is used to control whether or not a status check between different electronic devices is allowed. When the main switch is turned on, the first electronic device can detect other electronic devices which use the same user account to log in the input method program. For each detected electronic device, a separate switch can be set, and the separate switch is used for indicating whether the electronic device corresponding to the switch starts the authority of the automatic filling verification code. When a certain switch is turned on, the authority that the electronic equipment corresponding to the switch has turned on the automatic filling verification code is indicated, and when the certain switch is turned off, the authority that the electronic equipment corresponding to the switch has not turned on the automatic filling verification code is indicated.
The electronic device that receives the verification code is assumed to be the electronic device a, i.e. the first electronic device. After the right of 'equipment checking' of the input method program of the electronic equipment A is opened, the electronic equipment A detects the electronic equipment B, the electronic equipment C and the electronic equipment D, wherein a switch corresponding to the electronic equipment B is opened, a switch of the electronic equipment C is closed, and a switch of the electronic equipment D is opened. That is, the electronic device B opens the "device check" right of the input method program and opens the right of automatically filling the verification code; the electronic equipment C opens the 'equipment checking' authority of the input method program but does not open the authority of the automatic filling verification code; the electronic device D opens the "device check" right of the input method program and opens the right to automatically fill the verification code. Although the electronic device B, the electronic device C and the electronic device D are all electronic devices meeting the first preset condition or the second preset condition, the electronic device C does not open the authority of automatically filling the verification code, and does not send the verification code to the electronic device C, but only sends the verification code to the electronic device B and the electronic device D.
In some possible implementations of the embodiment of the present application, before S102, the verification code forwarding method provided by the embodiment of the present application may further include: and (5) performing security verification. Accordingly, S102 may include: and sending the verification code to the second electronic device under the condition of passing the security verification.
Security verification in embodiments of the present application includes, but is not limited to: fingerprint authentication, password authentication, face recognition authentication, and the like.
In the embodiment of the application, the verification code is sent only under the condition of passing the security verification, so that the verification code can be prevented from being stolen by unknown equipment.
In some possible implementations of the embodiment of the present application, before S102, the verification code forwarding method provided by the embodiment of the present application may further include: and carrying out security check on the second electronic equipment. Accordingly, S102 may include: and sending the verification code to the second electronic device under the condition that the second electronic device passes the security check.
In some possible implementations of embodiments of the application, the security check performed on the second electronic device may include at least one of the following:
checking pairing time of the second electronic device and the first electronic device;
checking the communication times of the second electronic device and the first electronic device;
Detecting the distance between the second electronic device and the first electronic device;
checking the times that the second electronic device and the first electronic device are in the same area;
checking the duration that the second electronic device and the first electronic device are in the same area;
checking the times that the second electronic device and the first electronic device are connected with the same local area network;
checking the duration of connecting the second electronic device and the first electronic device to the same local area network;
the number of applications logged into by the second electronic device using the same user account as the first electronic device is checked.
In some possible implementations of the embodiments of the present application, the longer the pairing time between the second electronic device and the first electronic device, the more the number of communications, the shorter the distance, the more the number of times in the same area, the longer the time in the same area, the more the number of times the same local area is connected, the longer the time the same local area is connected, the more the number of applications logged in using the same user account number, the safer the communications 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 equipment passes the security check, so that the verification code can be prevented from being stolen by unknown equipment.
In some possible implementations of the embodiment of the present application, before S102, the verification code forwarding method provided by 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 device.
After the user determines to send the verification code to the second electronic device based on the query information, the first electronic device sends the verification code to the second electronic device.
In the embodiment of the application, the verification code is sent only when the user allows, so that the verification code can be prevented from being stolen by unknown equipment.
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 to be input with the verification code, which is displayed by the second electronic device, or the second electronic device automatically inputs the verification code received by the second electronic device into the interface to be input with the verification code.
In some possible implementations of the embodiments of the present application, when the second electronic device invokes the secure keyboard, the verification code may be prompted by a streaming information bar or a floating window, a voice prompt, or other multiple manners, and then the second electronic device receives the verification code input by the user on the secure keyboard. It can be appreciated that when the second electronic device invokes the secure keyboard, the verification code can only be manually input by the user, where the secure keyboard does not allow other applications to obtain the input content, and does not automatically obtain the content input by the user on other applications.
In some possible implementations of the embodiments of the present application, the second electronic device may automatically input the verification code into the interface where the verification code is to be input, in the case where the second electronic device invokes the non-secure keyboard.
Fig. 2 is a schematic structural diagram of an identifying code forwarding device according to an embodiment of the present application. The authentication code forwarding apparatus may be applied to the first electronic device, and the authentication code forwarding apparatus 200 may include:
a receiving module 201, configured to receive a verification code;
a sending module 202, configured to send a verification code to the second electronic device if the second electronic device meets the first preset condition or the second preset condition;
the first preset condition is as follows: the user account information used by the input method program in the electronic device is the same as the user account information used by the input method program in the first electronic device; the second preset condition is: the electronic device and the first electronic device establish a pairing relationship, and an input keyboard of the electronic device 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 verification code verification can be further carried out.
In some possible implementations of embodiments of the application, the receiving module 201 may include:
the receiving sub-module is used for receiving the target information;
and the extraction sub-module is used for extracting the verification code from the target information.
In some possible implementations of embodiments of the application, the sending module 202 may include:
the acquisition sub-module 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 embodiments of the present application, the sending module 202 may be specifically configured to:
and sending the verification code to the second electronic device under the condition that the authority of the second electronic device for automatically filling the verification code is opened.
In some possible implementations of the embodiments of the present application, the identifying code forwarding apparatus 200 provided in the embodiments of the present application may further include:
the verification module is used for carrying out security verification;
accordingly, the sending module 202 may specifically be configured to:
and sending the verification code to the second electronic device under the condition of passing the security verification.
In the embodiment of the application, the verification code is sent only under the condition of passing the security verification, so that the verification code can be prevented from being stolen by unknown equipment.
In some possible implementations of the embodiments of the present application, the identifying code forwarding apparatus 200 provided in the embodiments of the present application may further include:
the checking module is used for checking the safety of the second electronic equipment;
accordingly, the sending module 202 may specifically be configured to:
and sending the verification code to the second electronic device under the condition 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 equipment passes the security check, so that the verification code can be prevented from being stolen by unknown equipment.
In some possible implementations of embodiments of the application, the inspection module may be specifically configured to at least one of the following:
checking pairing time of the second electronic device and the first electronic device;
checking the communication times of the second electronic device and the first electronic device;
detecting the distance between the second electronic device and the first electronic device;
checking the times that the second electronic device and the first electronic device are in the same area;
checking the duration that the second electronic device and the first electronic device are in the same area;
checking the times that the second electronic device and the first electronic device are connected with the same local area network;
checking the duration of connecting the second electronic device and the first electronic device to the same local area network;
The number of applications logged into by the second electronic device using the same user account as the first electronic device is checked.
The verification code forwarding device provided by the embodiment of the application can realize each process in the verification code forwarding method embodiment of fig. 1, and in order to avoid repetition, the description is omitted here.
The verification code forwarding device in the embodiment of the application can be a device, and can also be a component, an integrated circuit or a chip in the terminal. The device may be a mobile electronic device or a non-mobile electronic device. By way of example, the mobile electronic device may be a cell phone, tablet computer, notebook computer, palm computer, vehicle mounted electronic device, wearable device, ultra-mobile personal computer (ultra-mobile personal computer, UMPC), netbook or personal digital assistant (personal digital assistant, PDA), etc., and the non-mobile electronic device may be a server, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (TV), teller machine or self-service machine, etc., and the embodiments of the present application are not limited in particular.
The verification code forwarding device in the embodiment of the application can be a device with an operating system. The operating system may be an Android operating system, an ios operating system, or other possible operating systems, and the embodiment of the present application is not limited specifically.
Optionally, as shown in fig. 3, the embodiment of the present application further provides an electronic device 300, including a processor 301, a memory 302, and a program or an instruction stored in the memory 302 and capable of running on the processor 301, where the program or the instruction implements each process of the embodiment of the verification code forwarding method when executed by the processor 301, and the process can achieve the same technical effect, so that repetition is avoided, and no further description is given here.
It should be noted that, the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
In some possible implementations of embodiments of the application, the processor 301 may comprise a Central Processing Unit (CPU), or an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), or may be configured as one or more integrated circuits implementing embodiments of the application.
In some possible implementations of embodiments of the application, memory 302 may include Read-Only Memory (ROM), random access Memory (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 comprises one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) 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 method in accordance with the present application.
Fig. 4 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application. The electronic device 400 includes, but is not limited to: radio frequency 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 also include a power source (e.g., a battery) for powering the various components, which may be logically connected to the processor 410 by a power management system to perform functions such as managing charge, discharge, and power consumption by 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 shown, or may combine certain components, or may be arranged in different components, which are not described in detail herein.
In some possible implementations of embodiments of the application, the radio frequency unit 401 may be configured to receive an authentication 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.
The first preset condition is as follows: the user account information used by the input method program in the electronic device is the same as the user account information used by the input method program in the first electronic device; the second preset condition is: the electronic device and the first electronic device establish a pairing relationship, and an input keyboard of the electronic device is called up.
In the embodiment of the present application, after receiving the verification code, the electronic device 400 forwards the verification code to the second electronic device that satisfies the first preset condition or the 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 further can perform verification of the verification code.
In some possible implementations of the embodiments of the present application, the radio frequency unit 401 may be specifically configured to:
target information is received.
Accordingly, the processor 410 may be configured to:
and extracting the verification code from the target information.
In some possible implementations of embodiments of the application, the processor 410 may also be configured to:
and acquiring address information of the second electronic equipment.
Accordingly, the radio frequency unit 401 may be specifically configured to:
and sending the verification code to the second electronic equipment according to the address information.
In some possible implementations of the embodiments of the present application, the radio frequency unit 401 may be specifically configured to:
and sending the verification code to the second electronic device under the condition that the authority of the second electronic device for automatically filling the verification code is opened.
In some possible implementations of embodiments of the application, the processor 410 may also be configured to:
performing security verification;
Accordingly, the radio frequency unit 401 may be specifically configured to:
and sending the verification code to the second electronic device under the condition of passing the security verification.
In the embodiment of the application, the verification code is sent only under the condition of passing the security verification, so that the verification code can be prevented from being stolen by unknown equipment.
In some possible implementations of embodiments of the application, the processor 410 may also be configured to:
performing security check on the second electronic equipment;
accordingly, the radio frequency unit 401 may be specifically configured to:
and sending the verification code to the second electronic device under the condition 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 equipment passes the security check, so that the verification code can be prevented from being stolen by unknown equipment.
In some possible implementations of embodiments of the application, the processor 410 may be specifically configured to at least one of the following:
checking pairing time of the second electronic device and the electronic device 400;
checking the number of communications between the second electronic device and the electronic device 400;
detecting a distance between the second electronic device and the electronic device 400;
checking the number of times 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 the second electronic device is connected to the same local area network as the electronic device 400;
checking the duration of the second electronic device being connected to the same local area network as the electronic device 400;
the number of applications that the second electronic device uses to log in with the same user account as the electronic device 400 is checked.
It should be appreciated that in embodiments of the present application, the input unit 404 may include a graphics processor (Graphics Processing Unit, GPU) 4041 and a microphone 4042, the graphics processor 4041 processing image data of still pictures or video obtained by an image capture device (e.g., a camera) in a video capture mode or an image capture 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. The touch panel 4071 is 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, a joystick, and so forth, which are not described in detail herein. 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 that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 410.
The embodiment of the application also provides a computer readable storage medium, and the computer readable storage medium stores a program or an instruction, which when executed by a processor, implements each process of the embodiment of the verification code forwarding method, and can achieve the same technical effect, so that repetition is avoided, and no further description is provided herein.
The processor is a 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 the like.
The embodiment of the application further provides a chip, the chip comprises a processor and a communication interface, the communication interface is coupled with the processor, the processor is used for running programs or instructions, the processes of the verification code forwarding method embodiment can be realized, the same technical effects can be achieved, and the repetition is avoided, and the description is omitted here.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, 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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the related art in the form of a software product stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk), including several instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are to be protected by the present application.

Claims (10)

1. A method for forwarding verification codes, which is applied to a first electronic device, is characterized in that the method comprises the following steps:
receiving a verification code;
transmitting the verification code to the second electronic equipment under the condition that the second electronic equipment meets a second preset condition;
wherein the second preset condition is: and the electronic equipment and the first electronic equipment establish a pairing relation, and an input keyboard of the electronic equipment is called up under the condition that a user needs to input a verification code in the process of logging in an application program through the electronic equipment.
2. The method of claim 1, wherein the receiving the verification code comprises:
receiving target information;
and extracting the verification code from the target information.
3. The method of claim 1, wherein the 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 the 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 automatic filling verification code of the second electronic equipment is opened.
5. The method of claim 1, wherein prior to said transmitting the verification code to the second electronic device, the method further comprises:
performing security verification;
the sending the verification code to the second electronic device includes:
and sending the verification code to the second electronic equipment under the condition of passing the security verification.
6. The method of claim 1, wherein prior to said transmitting the verification code to the second electronic device, the method further comprises:
performing security check on the second electronic equipment;
the sending the verification code to the second electronic device includes:
and sending the verification code to the second electronic equipment under the condition that the second electronic equipment passes the security check.
7. The method of claim 6, wherein the security check of the second electronic device comprises at least one of:
checking pairing time length of the second electronic device and the first electronic device;
Checking the communication times of the second electronic device and the first electronic device;
detecting a distance between the second electronic device and the first electronic device;
checking the times that the second electronic equipment and the first electronic equipment are in the same area;
checking the duration that the second electronic device and the first electronic device are in the same area;
checking the times that the second electronic device and the first electronic device are connected with the same local area network;
checking the duration of the connection of the second electronic device and the first electronic device to the same local area network;
checking the number of application programs logged in by the second electronic device and the first electronic device 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 second preset condition;
wherein the second preset condition is: and the electronic equipment and the first electronic equipment establish a pairing relation, and an input keyboard of the electronic equipment is called up under the condition that a user needs to input a verification code in the process of logging in an application program through the electronic equipment.
9. An electronic device, the electronic device comprising: a processor, a memory and a program or instruction stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the captcha forwarding method of any of claims 1 to 7.
10. A computer readable storage medium, characterized in that the computer readable storage medium stores thereon a program or instructions, which when executed by a processor, implement the steps of the authentication code forwarding method according to any 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 CN112788603A (en) 2021-05-11
CN112788603B true 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
CN112788603A (en) 2021-05-11

Similar Documents

Publication Publication Date Title
US11449857B2 (en) Code scanning method, code scanning device and mobile terminal
RU2643473C2 (en) Method and tools for fingerprinting identification
US10097547B2 (en) Security verification method, apparatus and terminal
US9519767B2 (en) Apparatus and method for authenticating a combination code using a quick response code
CN109039990B (en) Behavior verification method and device based on verification code
CN107231607B (en) Unlocking method and device of Bluetooth intelligent lock and computer readable storage medium
EP3176719B1 (en) Methods and devices for acquiring certification document
CN111859357A (en) Login method and device and electronic equipment
CN112311795B (en) Account management method and device and electronic equipment
CN109245902A (en) Protection method and device for instant messaging information verification code
CN111884908A (en) Contact person identification display method and device and electronic equipment
US20170286927A1 (en) Method and device for online payment
WO2023025054A1 (en) Remote assistance method and apparatus, and electronic device and medium
CN112989299A (en) Interactive identity recognition method, system, device and medium
CN107145771B (en) Application program unlocking method and device and terminal
WO2016202277A1 (en) Message sending method and mobile terminal
CN112887922B (en) Message sending method and electronic equipment
CN113676395A (en) Information processing method, related device and readable storage medium
CN107346197B (en) Information display method and device
CN112788603B (en) Verification code forwarding method, device, equipment and medium
CN111897474A (en) File processing method and electronic equipment
WO2023051508A1 (en) Graphic code display method and apparatus
CN113965640B (en) Message processing method and device
CN108063665B (en) Communication method and terminal device
CN106712960B (en) Processing method and device of verification code information

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