Summary of the invention
The technical problem to be solved by the embodiment of the invention is that providing a kind of authentication information input method and device, energy
Enough realize automatically entering for authentication information, user is not necessarily to remember authentication information when logging in of each website or application program, mention
High user experience.
The present invention provides a kind of authentication information input methods, are applied to first terminal, comprising:
The mark at the second terminal current active interface that second terminal is sent is received, the current active interface is net
The login interface of page or the login interface of application software;
According to the mark at the current active interface, the corresponding authentication information of mark at the current active interface is obtained,
The authentication information includes one of following two authentication information: username and password authentication information, cipher authentication information;
The authentication information is sent to the second terminal, the authentication information is for described in second terminal login
Current active interface.
Optionally, after the mark at the second terminal current active interface that the reception second terminal is sent, institute
The mark according to the current active interface is stated, before the corresponding authentication information of mark for obtaining the current active interface, institute
State method further include:
Judge identifying whether to prestore mark for the current active interface;
If the determination result is YES, then the mark according to the current active interface is executed, the current active is obtained
The step of mark at interface corresponding authentication information.
Optionally, if judging result is no, the corresponding authentication information of mark for obtaining the current active interface
Specifically: obtain the authentication information of input;
The method also includes: store mark, the authentication information and the current work at the current active interface
The mark and the corresponding relationship of the authentication information in arena face.
Optionally, the authentication information is stored in safe space, and the safe space is the storage space of encryption;
Before the mark for receiving the second terminal current active interface that second terminal is sent, further includes:
The solution confidential information of input is obtained, the solution confidential information is for accessing the safe space;
Judge whether the solution confidential information is correct, works as if so, executing and receiving the second terminal that second terminal is sent
The step of mark of preceding active interface.
Optionally, the solution confidential information is iris, fingerprint or character string.
The present invention also provides a kind of authentication information input units, are applied to first terminal, comprising:
First receiving unit, the mark at the second terminal current active interface for receiving second terminal transmission, institute
State the login interface of the login interface that current active interface is webpage or application software;
First acquisition unit obtains the mark at the current active interface for the mark according to the current active interface
Know corresponding authentication information, the authentication information includes one of following two authentication information: username and password certification letter
Breath, cipher authentication information;
First transmission unit, for the authentication information to be sent to the second terminal, the authentication information is used for institute
It states second terminal and logs in the current active interface.
Optionally, described device further include:
First judging unit judges identifying whether to prestore mark for the current active interface;
Trigger unit, if the judging result for the first judging unit be it is yes, trigger and execute the first acquisition unit.
Optionally, if the judging result of the first judging unit be it is no, the first acquisition unit is specifically used for, obtain input
Authentication information;
Described device further include: storage element, for storing the mark at the current active interface, the authentication information,
And the mark and the corresponding relationship of the authentication information at the current active interface.
Optionally, the authentication information is stored in safe space, and the safe space is the storage space of encryption;
Described device further include: second acquisition unit, for obtaining in the mark according to the current active interface
Before the corresponding authentication information of mark at the current active interface, the solution confidential information of input is obtained, the solution confidential information is used for
Access the safe space;
Second judgment unit, for judging whether the solution confidential information is correct;
If the trigger unit be also used to second judgment unit judging result be it is yes, trigger execute it is described first receive
Unit.
Optionally, the solution confidential information is iris, fingerprint or character string.
The present invention also provides a kind of authentication information input methods, are applied to second terminal, comprising:
Judge whether current active interface is the login interface of webpage or the login interface of application software;
If the determination result is YES, then the mark at the current active interface is sent to first terminal;Current active circle
The mark in face, according to the mark at the current active interface, obtains the mark at the current active interface for the first terminal
Corresponding authentication information, the authentication information include one of following two authentication information: username and password authentication information,
Cipher authentication information;
The authentication information that the first terminal is sent is received, and the authentication information is input to the current active
Interface.
The present invention also provides a kind of authentication information input units, are applied to second terminal, comprising:
Third judging unit, for judge current active interface whether be webpage login interface or the login of application software
Interface;
Second transmission unit, for if the determination result is YES, then sending the mark at the current active interface to first terminal
Know;The mark at the current active interface for the first terminal according to the mark at the current active interface, described in acquisition
The corresponding authentication information of the mark at current active interface, the authentication information include one of following two authentication information: being used
Name in an account book and cipher authentication information, cipher authentication information;
Second receiving unit, the authentication information sent for receiving the first terminal, and by the authentication information
It is input to the current active interface.
The present invention also provides a kind of authentication information input systems, including first terminal, second terminal, wherein described
One terminal includes the above-mentioned authentication information input unit applied to the first terminal, and the second terminal includes applied to described
The authentication information input unit of second terminal.
Foregoing invention, second terminal judge current active interface whether be webpage login interface or the login of application software
Interface, if so, sending the mark at current active interface to first terminal;First terminal receives second terminal is sent second eventually
The mark for holding current active interface obtains the corresponding certification of mark at current active interface according to the mark at current active interface
Information, the authentication information include one of following two authentication information: username and password authentication information, cipher authentication letter
Breath, and authentication information is sent to the second terminal;Second terminal receives the authentication information that first terminal is sent, and will certification
Information input is somebody's turn to do to current active interface, and authentication information logs in the current active interface for the second terminal, thus real
Existing authentication information automatically entering in login interface, user are not necessarily to remember certification letter when logging in of each website or application program
Breath improves user experience.
Moreover, obtaining for authentication information just may be implemented when this method can also be correct by the solution confidential information of judgement input
It takes, protects the safety of user information.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
It should be noted that the term used in embodiments of the present invention is only merely for the mesh of description specific embodiment
, it is not intended to limit the invention." the one of the embodiment of the present invention and singular used in the attached claims
Kind ", " described " and "the" are also intended to including most forms, unless the context clearly indicates other meaning.It is also understood that this
Term "and/or" used herein refers to and includes one or more associated any or all possible group for listing project
It closes.
Referring to Fig. 1, Fig. 1 is a kind of flow chart of one embodiment of authentication information input method provided by the invention, it should
The system that method is applied to first terminal and second terminal composition, wherein first terminal can be mobile phone, wearable device etc.,
Second terminal can be computer, tablet computer etc., this method comprises:
Step S101: judge whether current active interface is the login interface of webpage or the login interface of application software.
Second terminal, for example, computer, the interface of current active may not be webpage or application software, such as the interface word;
Even if the interface of current active is web interface or software interface, the possible webpage or application software, which are in, has logged on shape
State or the web interface or software interface may not be the login interface of webpage or the login interface of application software.
Specifically, second terminal judge current active interface whether be webpage login interface or login circle of application software
Face, the method for judgement can be judges whether receive user's input validation send instruction, the instruction be used to indicate second terminal to
First terminal sends the mark at current active interface, and operating method may is that the interface of the webpage of user's identification current active is
Be not webpage login interface or current active application software interface be not application software login interface, if so, with
Family can send instruction by input validation by way of the button of click " confirmation is sent ", and second terminal, which receives and responds this, to be referred to
It enables, executes step S102, otherwise, second terminal does not receive user's input validation and sends instruction, then it is assumed that the webpage of current active
Interface be not the interface of the login interface of webpage or the application software of current active be not the login interface of application software,
Two terminals do not send the mark at current active interface to first terminal, or terminate process.The method of judgement is also possible that second
Terminal intelligent identifies whether the interface of current active is web interface or software interface, if so, webpage or application at this time
Software is in and is not logged in state, thens follow the steps S102;Otherwise, terminate process.
Step S102: the mark at current active interface is sent to first terminal.
Specifically, if current active interface is the login interface of webpage or the login interface of application software, to first
The mark at terminal transmission current active interface.Wherein, the mark at current active interface webpage or application software for identification, wherein
The mark of webpage can be network address, and the mark of application software can be the packet name of the application software;First terminal and second terminal
It can be connected by USB interface, the mark at current active interface is sent to first terminal by USB data line by second terminal,
Or second terminal sends the mark at current active interface by way of the wireless telecommunications such as WiFi, bluetooth to first terminal.
Step S103: the mark at the current active interface that second terminal is sent is received.
Specifically, first terminal, such as mobile phone receive first terminal and are sent currently by modes such as USB, WiFi or bluetooths
The mark of active interface.
Step S104: according to the mark at current active interface, the corresponding authentication information of mark at current active interface is obtained.
Generally, input authentication information is needed when user's log-on webpage or application software, which is usually to use
Name in an account book and password, user can store the mark and its corresponding authentication information of login interface in advance, and the method stored in advance can
To be the mark and its corresponding authentication information for inputting webpage in the file that first terminal is used to store authentication information,
In, authentication information can be username and password, be also possible to password.The method stored in advance is also possible to logical in first terminal
It crosses the modes such as USB, WiFi or bluetooth and connects second terminal, first terminal is used as simulating keyboard, by first terminal second
The login interface input authentication information of terminal current active, specific method are that, in first terminal input authentication information, first eventually
The authentication information is sent to second terminal by end, and second terminal, which receives the authentication information and is entered into current active, logs in boundary
Face, first terminal obtains the mark of the login interface at this time, stores mark, authentication information and their pair of the login interface
It should be related to.
It should be noted that the authentication information can also be stored in safe space, which is the storage of encryption
Space.The storage space of the encryption can be the file or folder of encryption, and first terminal needs to obtain when obtaining authentication information
The solution confidential information for taking input, when the solution confidential information is correct, the file or folder of the accessible encryption of;The storage of encryption
Space is also possible to security domain, privacy mode or the operating system etc. of encryption, before step S104, needs to obtain the solution of input
Confidential information can just enter security domain, privacy mode or operating system etc., just accessible certification when solution confidential information is correct
Information.Otherwise, process can be terminated, or prompt user decrypts information errors, the present invention is with no restriction.
It should also be noted that, the solution confidential information can be as iris, fingerprint or character string etc..
Specifically, it after the mark at the current active interface that first terminal reception second terminal is sent, is stepped on what is stored in advance
The mark for searching current active interface in the mark and its corresponding authentication information at interface is recorded, its corresponding certification letter is obtained
Breath.
Step S105: authentication information is sent to second terminal.
Specifically, first terminal is sent authentication information by way of the wireless telecommunications such as USB data line or WiFi, bluetooth
To second terminal.
Step S106: the authentication information that first terminal is sent is received, and authentication information is input to current active interface.
Specifically, second terminal receives the authentication information that first terminal is sent, and the authentication information is input to and is currently stepped on
Interface is recorded, the button that user can click " login " at this time logs in the webpage or application program that current active logs in.
In the present embodiment, second terminal judge current active interface whether be webpage login interface or application software
Login interface, if it is, sending the mark at current active interface to first terminal;First terminal receives what second terminal was sent
The mark at second terminal current active interface, according to the mark at current active interface, the mark for obtaining current active interface is corresponding
Authentication information, which includes one of following two authentication information: username and password authentication information, password are recognized
Information is demonstrate,proved, and authentication information is sent to the second terminal;Second terminal receives the authentication information that first terminal is sent, and will
Authentication information is input to current active interface, which logs in the current active interface for the second terminal, from
And realizing authentication information automatically entering in login interface, user is not necessarily to remember the recognizing when logging in of each website or application program
Information is demonstrate,proved, user experience is improved.
Fig. 2 is referred to, Fig. 2 is a kind of flow chart of another embodiment of authentication information input method provided by the invention,
The system that this method is applied to first terminal and second terminal composition, wherein first terminal can be mobile phone, wearable device
Deng, second terminal can be computer, tablet computer etc., this method comprises:
Step S201: judge whether current active interface is the login interface of webpage or the login interface of application software.
Second terminal, for example, computer, the interface of current active may not be webpage or application software, such as the interface word;
Even if the interface of current active is web interface or software interface, the possible webpage or application software, which are in, has logged on shape
State or the web interface or software interface may not be the login interface of webpage or the login interface of application software.
Specifically, second terminal judge current active interface whether be webpage login interface or login circle of application software
Face, the method for judgement can be judges whether receive user's input validation send instruction, the instruction be used to indicate second terminal to
First terminal sends the mark at current active interface, and operating method may is that the interface of the webpage of user's identification current active is
Be not webpage login interface or current active application software interface be not application software login interface, if so, with
Family can send instruction by input validation by way of the button of click " confirmation is sent ", and second terminal, which receives and responds this, to be referred to
It enables, executes step S102, otherwise, second terminal does not receive user's input validation and sends instruction, then it is assumed that the webpage of current active
Interface be the interface of the login interface of webpage or the application software of current active be not the login interface of application software,
Second terminal does not send the mark at current active interface to first terminal, or terminates process.The method of judgement is also possible that
Whether the interface of two terminal intelligents identification current active is web interface or software interface, if so, webpage or answering at this time
It is in software and is not logged in state, then follow the steps S102;Otherwise, terminate process.
Step S202: the mark at current active interface is sent to first terminal.
Specifically, if current active interface is the login interface of webpage or the login interface of application software, to first
The mark at terminal transmission current active interface.Wherein, the mark at current active interface webpage or application software for identification, wherein
The mark of webpage can be network address, and the mark of application software can be the packet name of the application software;First terminal and second terminal
It can be connected by USB interface, the mark at current active interface is sent to first terminal by USB data line by second terminal,
Or second terminal sends the mark at current active interface by way of the wireless telecommunications such as WiFi, bluetooth to first terminal.
Step S203: the solution confidential information of input is obtained.
Specifically, which can be stored in safe space, which is the storage space of encryption.It should add
Close storage space can be the file or folder of encryption, and first terminal needs to obtain input when obtaining authentication information
Confidential information is solved, when the solution confidential information is correct, the file or folder of the accessible encryption of;The storage space of encryption can also
To be security domain, privacy mode or the operating system etc. of encryption, before step S206, need to obtain the solution confidential information of input,
It is correctly when solving confidential information, can just enters security domain, privacy mode or operating system etc., just accessible authentication information.It is no
Then, process can be terminated, or prompt user decrypts information errors, the present invention is with no restriction.
It should be noted that the solution confidential information can be as iris, fingerprint or character string etc..
Step S204: judge whether solution confidential information is correct.
Specifically, first terminal judges whether the solution confidential information of input and preset solution confidential information are consistent, if it is, solution
Confidential information is correct, executes step S205.
It should be noted that step S203 can be carried out before or after step S201 or step S202.
Step S205: the mark at the current active interface that second terminal is sent is received.
Specifically, first terminal, such as mobile phone receive first terminal and are sent currently by modes such as USB, WiFi or bluetooths
The mark of active interface.
It should be noted that step S205 can also be executed before step S203, at this time when the judgment result is yes, then
Execute step S206.
Step S206: judge identifying whether to prestore mark for current active interface;
Generally, input authentication information is needed when user's log-on webpage or application software, which is usually to use
Name in an account book and password, user can store the mark and its corresponding authentication information of login interface in advance, and the method stored in advance can
To be the mark and its corresponding authentication information for inputting webpage in the file that first terminal is used to store authentication information,
In, authentication information can be username and password, be also possible to only password, without user name.The method stored in advance can also
By be in first terminal by USB, WiFi or bluetooth etc. in a manner of connect second terminal, by first terminal be used as simulating keyboard, lead to
First terminal is crossed in the login interface input authentication information of second terminal current active, specific method is, defeated in first terminal
Enter authentication information, which is sent to second terminal by first terminal, and second terminal receives the authentication information and its is defeated
Enter to current active login interface, first terminal obtains the mark of the login interface at this time, stores the mark of the login interface, recognizes
Demonstrate,prove information and their corresponding relationship.
Specifically, in first terminal may without in advance storage second terminal send current active interface mark and
Its corresponding authentication information.At this point, first terminal judge the current active interface identify whether for prestore mark, this prestores mark
Knowledge is the mark for the login interface that first terminal stores in advance, and specific judgment mode may is that first terminal searches certification mark
Know in store files whether the mark containing current active interface, if it is, being identified as current active interface prestores mark,
Execute step S207;Otherwise, step S208 is executed.
Step S207: according to the mark at current active interface, the corresponding authentication information of mark at current active interface is obtained.
Specifically, it after the mark at the current active interface that first terminal reception second terminal is sent, is stepped on what is stored in advance
The mark for searching current active interface in the mark and its corresponding authentication information at interface is recorded, its corresponding certification letter is obtained
Breath.
Step S208: the authentication information of input is obtained.
Specifically, first terminal obtains the authentication information of user's input, specific way are as follows: user inputs in first terminal
Authentication information, i.e. username and password.
Step S209: the mark and certification of the storage mark at current active interface, authentication information and current active interface
The corresponding relationship of information.
Specifically, first terminal can be by the mark at current active interface, the authentication information of input and their correspondence
Relationship is stored in authentication information file, when avoiding log in the current active interface next time, is inputted again.
Step S210: authentication information is sent to second terminal.
Specifically, after step S207, step S208 or S209, first terminal passes through USB data line or WiFi, bluetooth
Authentication information is sent to second terminal by the mode of equal wireless telecommunications.
Step S211: the authentication information that first terminal is sent is received, and authentication information is input to current active interface.
Specifically, second terminal receives the authentication information that first terminal is sent, and the authentication information is input to and is currently stepped on
Interface is recorded, the button that user can click " login " at this time logs in the webpage or application program that current active logs in.
In the above-described embodiments, second terminal judge current active interface whether be webpage login interface or application software
Login interface, if it is, to first terminal send current active interface mark;First terminal obtains the solution secret letter of input
Breath receives the mark at the second terminal current active interface that second terminal is sent when solution confidential information is correct, and judges current live
Arena face identifies whether to prestore mark, if so, obtaining the mark at current active interface according to the mark at current active interface
Know corresponding authentication information, otherwise, obtains the authentication information of input, and authentication information is sent to the second terminal;Second
Terminal receives the authentication information that first terminal is sent, and authentication information is input to current active interface, which is used for
The second terminal logs in the current active interface, to realize authentication information automatically entering in login interface, Yong Huwu
It need to remember authentication information when logging in of each website or application program, improve user experience.
Moreover, obtaining for authentication information just may be implemented when this method can also be correct by the solution confidential information of judgement input
It takes, protects the safety of user information.
Fig. 3 is referred to, Fig. 3 is the structural representation of an embodiment of authentication information input unit one provided by the invention
Figure, the authentication information input unit 1 are applied to first terminal, comprising: the first receiving unit 301, first acquisition unit 302
And first transmission unit 303, wherein
First receiving unit 301, the mark at the second terminal current active interface for receiving second terminal transmission,
The current active interface is the login interface of webpage or the login interface of application software;
First acquisition unit 302 obtains the current active interface for the mark according to the current active interface
Corresponding authentication information is identified, the authentication information includes one of following two authentication information: username and password certification
Information, cipher authentication information;
First transmission unit 303, for the authentication information to be sent to the second terminal, the authentication information is used for
The second terminal logs in the current active interface.
It should be noted that the function of each functional module of authentication information input unit 30 in the embodiment of the present invention can basis
Method specific implementation in above method embodiment, specific implementation process are referred to the reality of method described in above-mentioned Fig. 2 or Fig. 3
The associated description of example is applied, details are not described herein again.
Fig. 4 is referred to, Fig. 4 is the structural representation of another embodiment of authentication information input unit one provided by the invention
Figure, the authentication information input unit 1 be applied to first terminal, comprising: the first receiving unit 301, first acquisition unit 302,
First transmission unit 303, the first judging unit 304, trigger unit 305, storage element 306, second acquisition unit 307 and
Two judging units 308, wherein
First receiving unit 301, the mark at the second terminal current active interface for receiving second terminal transmission,
The current active interface is the login interface of webpage or the login interface of application software;
First acquisition unit 302 obtains the current active interface for the mark according to the current active interface
Corresponding authentication information is identified, the authentication information includes one of following two authentication information: username and password certification
Information, cipher authentication information;
First transmission unit 303, for the authentication information to be sent to the second terminal, the authentication information is used for
The second terminal logs in the current active interface.
Optionally, described device further include:
First judging unit 304 judges identifying whether to prestore mark for the current active interface;
Trigger unit 305, if the judging result for the first judging unit 304 be it is yes, trigger execution and described first connect
Receive unit 301.
Optionally, if the judging result of the first judging unit 304 be it is no, the first acquisition unit 302 is specifically used for, and obtains
Take the authentication information of input;
Described device further include: storage element 306, for storing mark, the certification letter at the current active interface
The mark and the corresponding relationship of the authentication information at breath and the current active interface.
Optionally, the authentication information is stored in safe space, and the safe space is the storage space of encryption;
Described device further include: second acquisition unit 307, in the mark according to the current active interface,
Before the corresponding authentication information of mark for obtaining the current active interface, the solution confidential information of input, the solution confidential information are obtained
For accessing the safe space;
Second judgment unit 308, for judging whether the solution confidential information is correct;
Trigger unit 305, if the judging result for second judgment unit 308 be it is yes, trigger execution and described first obtain
Take unit 302.
Optionally, the solution confidential information is iris, fingerprint or character string.
It should be noted that the function of each functional module of authentication information input unit 30 in the embodiment of the present invention can basis
Method specific implementation in above method embodiment, specific implementation process are referred to the reality of method described in above-mentioned Fig. 2 or Fig. 3
The associated description of example is applied, details are not described herein again.
Fig. 5 is referred to, Fig. 5 is the structural representation of an embodiment of authentication information input unit two provided by the invention
Figure, the authentication information input unit 2 50 are answered applied to second terminal, comprising:
Third judging unit 501, for judging whether the current active interface is the login interface of webpage or applies soft
The login interface of part;
Second transmission unit 502, for if the determination result is YES, then sending the current active interface to first terminal
Mark;The mark at the current active interface, according to the mark at the current active interface, obtains institute for the first terminal
The corresponding authentication information of mark at current active interface is stated, the authentication information includes one of following two authentication information:
Username and password authentication information, cipher authentication information;
Second receiving unit 503, the authentication information sent for receiving the first terminal, and the certification is believed
Breath is input to the current active interface.
It should be noted that the function of each functional module of authentication information input unit 2 50 in the embodiment of the present invention can root
According to the method specific implementation in above method embodiment, specific implementation process is referred to method described in above-mentioned Fig. 2 or Fig. 3
The associated description of embodiment, details are not described herein again.
Fig. 6 is referred to, Fig. 6 is a kind of structural representation of one embodiment of authentication information input system provided by the invention
Figure.The authentication information input system includes: first terminal 61, second terminal 62, wherein first terminal 61 and second terminal 62 can
It, can also be with wireless communications such as WiFi, bluetooths to be communicated by USB data line;First terminal 61 includes above-mentioned authentication information
Input unit 1;Second terminal 62 includes above-mentioned authentication information input unit 50.
It should be noted that authentication information in first terminal 61 in authentication information input system in the embodiment of the present invention
The function of each functional module of authentication information input unit 2 50 can be according to above-mentioned side in input unit 1 and second terminal 62
Method specific implementation in method embodiment, specific implementation process are referred to the associated description of above method embodiment, herein
It repeats no more.
In conclusion second terminal judge current active interface whether be webpage login interface or the login of application software
Interface, if it is, sending the mark at current active interface to first terminal;First terminal obtains the solution confidential information of input, when
When solution confidential information is correct, the mark at the second terminal current active interface that second terminal is sent is received, and judges current active circle
Face identifies whether to prestore mark, if so, obtaining the mark pair at current active interface according to the mark at current active interface
Otherwise the authentication information answered obtains the authentication information of input, and authentication information is sent to the second terminal;Second terminal
The authentication information that first terminal is sent is received, and authentication information is input to current active interface, the authentication information is for described
Second terminal logs in the current active interface, to realize authentication information automatically entering in login interface, user is without note
Firmly authentication information when logging in of each website or application program improves user experience.
Moreover, obtaining for authentication information just may be implemented when this method can also be correct by the solution confidential information of judgement input
It takes, protects the safety of user information.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the program can be stored in a computer-readable storage medium
In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic
Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access
Memory, RAM) etc..
Above disclosed is only a preferred embodiment of the present invention, cannot limit the power of the present invention with this certainly
Sharp range, those skilled in the art can understand all or part of the processes for realizing the above embodiment, and weighs according to the present invention
Benefit requires made equivalent variations, still belongs to the scope covered by the invention.