Summary of the invention
A kind of terminal safety protection method and device are provided in the embodiment of the present invention, can be avoided after log-on message leakage
Terminal is broken into.
In order to solve the above-mentioned technical problem, the embodiment of the invention discloses following technical solutions:
In a first aspect, providing a kind of terminal safety protection method, which comprises
Receive the account for user's input that terminal is sent;
The corresponding random keyboard of the account and safety check information are obtained according to the account;
It hides the character of the random keyboard, and sends the random keyboard that hides character to the terminal;
It receives the user and passes through the verification information of the random keyboard input to hide character;
Judge whether the verification information matches with the safety check information, if matching, transmission, which allows to log in, is ordered
It enables to the terminal so that the terminal sends logging request to server.
It is optionally, described to judge whether verification information matches with safety check information, comprising:
Obtain position of the initial character of the verification information on the random keyboard;
Judge whether the position of the initial character matches with the safety check information.
Optionally, after the account for receiving user's input that terminal is sent, it is corresponding that the account is obtained according to the account
Random keyboard and safety check information before, which comprises
Judge whether the account first logs into;
If the account is to first log into server, the corresponding random keyboard of the account is generated, the account is sent
Corresponding random keyboard is to the terminal;
The verification information that the user is inputted by the random keyboard is received, by the initial character of the verification information in institute
The position on random keyboard is stated as the corresponding safety check information of the account.
It is optionally, described to judge whether account first logs into, comprising:
Login record acquisition request is sent to the server;
Receive the login record of the server feedback;
If in the login record, the account success login record is sky, then confirm that the account first logs into.
Optionally, the method also includes:
If the verification information and the safety check information mismatch, sends short message and successfully stepped on for the first time to the account
Corresponding termination number when record, the input error when user being prompted to log in.
On the other hand, a kind of terminal security protective device is provided, described device includes:
Account receiving unit, the account of user's input for receiving terminal transmission;
Acquiring unit, for obtaining the corresponding random keyboard of the account and safety check information according to the account;
Transmission unit, for hiding the character of the random keyboard, and sending the random keyboard to hide character to the end
End;
Verification information receiving unit passes through the verifying of the random keyboard input to hide character for receiving the user
Information;
Processing unit, for judging whether the verification information matches with the safety check information, if matching, sends out
Sending allows log on command to the terminal that the terminal is made to send logging request to server.
Optionally, the processing unit includes:
Position acquisition subelement, for obtaining position of the initial character of the verification information on the random keyboard;
Position judgment sub-unit, for judging whether the position of the initial character matches with the safety check information.
Optionally, described device further include:
Judging unit is logged in, for judging whether the account first logs into;
It is corresponding random to generate the account if the account is to first log into server for random keyboard generation unit
Keyboard sends the corresponding random keyboard of the account to the terminal;
Safety check information generating unit, the verification information inputted for receiving the user by the random keyboard,
Using position of the initial character of the verification information on the random keyboard as the corresponding safety check information of the account.
Optionally, the login judging unit includes:
Logging request subelement, for sending login record acquisition request to the server;
Login record receiving subelement, for receiving the login record of the server feedback;
Confirmation subelement is logged in, if the account success login record is sky in the login record, then confirms institute
Account is stated to first log into.
Optionally, described device further includes Alarm Unit, if not for the verification information and the safety check information
Matching then sends corresponding termination number, the input when user being prompted to log in when short message to the account successfully logs in for the first time
Mistake.
A kind of terminal safety protection method is disclosed in the embodiment of the present invention, it is corresponding random to obtain account according to account
Keyboard and safety check information hide the character of the random keyboard, and send the random keyboard to hide character to terminal, receive
The user judges the verification information and the safe school by the verification information of the random keyboard input to hide character
Test whether information matches, if matching, sending allows log on command to the terminal that the terminal is made to send logging request extremely
Server.In method of the invention, different accounts correspond to different random keyboards, even if can also keep away after log-on message leakage
Exempt from mobile terminal to be broken into, so that privacy of user be avoided to reveal, reduces economic loss caused by after being broken into as mobile terminal.
Specific embodiment
Following examples of the present invention provide a kind of terminal safety protection method and device, can keep away after log-on message leakage
Exempt from terminal to be broken into, improves the safety of terminal.
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
Whole 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.
Fig. 1 show a kind of flow chart of terminal safety protection method of the embodiment of the present invention, as shown in Figure 1, of the invention
Embodiment provides a kind of terminal safety protection method, which comprises
Step 101, the account for user's input that terminal is sent is received.
Terminal in the embodiment of the present invention can be the end PC, be also possible to mobile terminal.Mobile terminal, which can be, has touching
The terminal of screen, such as ipad, mobile phone etc..
Step 102, the corresponding random keyboard of the account and safety check information are obtained according to the account.
Step 103, it hides the character of the random keyboard, and sends the random keyboard that hides character to the terminal.
Step 104, it receives the user and passes through the verification information of the random keyboard input to hide character.
Different accounts corresponds to different random keyboards, and different random keyboards refers to the sequence of the character arrangements on keyboard
Difference could be aware that the Position Approximate of character on the corresponding random keyboard of this account, pass through account pair if it is the owner of account
The random keyboard validation information answered can carry out security protection after account and password leakage, avoid privacy and let out
Dew and economic loss.
In the embodiment of the present invention, verification information can be password, be also possible to independent check code.Account and verifying letter
Breath may be collectively referred to as log-on message.
Step 105, judge whether the verification information matches with the safety check information, if matching, send and permit
Perhaps log on command to the terminal makes the terminal send logging request to server.
Server in the embodiment of the present invention can be mounted in the corresponding server of various applications on mobile terminal.
If the verification information and the safety check information mismatch, sends short message and successfully stepped on for the first time to the account
Corresponding termination number when record, the input error when user being prompted to log in.
It is optionally, described to judge whether verification information matches with safety check information in step 105, comprising:
Obtain position of the initial character of the verification information on the random keyboard;
Judge whether the position of the initial character matches with the safety check information.
It is only matched by the position of initial character with safety check information, for a user, it is only necessary to remember verifying letter
Position of the initial character on random keyboard is ceased, avoids that excessive memory is caused to bear to user, improves the usage experience of user.
Terminal safety protection method disclosed in the embodiment of the present invention obtains the corresponding random keyboard of account according to account
With safety check information, the character of the random keyboard is hidden, and send the random keyboard that hides character to terminal, described in reception
User judges that the verification information and the safety check are believed by the verification information of the random keyboard input to hide character
Whether breath matches, if matching, sending, which allows log on command to the terminal that the terminal is made to send logging request, is extremely serviced
Device.The method of the embodiment of the present invention, different accounts correspond to different random keyboards, the lead-in of the corresponding verification information of different accounts
The position accorded on random keyboard is different, therefore, even if can also be broken into after log-on message leakage to avoid mobile terminal, from
And privacy of user is avoided to reveal, reduce economic loss caused by after being broken into as mobile terminal.
Optionally, after step 101, i.e., after the account that the user that reception terminal is sent inputs, before step 102, i.e.,
Before the corresponding random keyboard of the account acquisition account and safety check information, which comprises
Judge whether the account first logs into;
If the account is to first log into server, the corresponding random keyboard of the account is generated, the account is sent
Corresponding random keyboard is to the terminal;
The verification information that the user is inputted by the random keyboard is received, by the initial character of the verification information in institute
The position on random keyboard is stated as the corresponding safety check information of the account.
Ideally, the corresponding random keyboard of different accounts is different, and character puts in order not on different random keyboard
Together, therefore, the position using the initial character of verification information on random keyboard is as safety check code, even if account number cipher is revealed,
Random keyboard will not be revealed, therefore safety check code will not be revealed.In practice, the number of character is limited on random keyboard, because
The quantity of this random keyboard is also limited, but a combination thereof is more, still can increase the security performance of system.
It optionally, can also will be on the random keyboard after generating the corresponding safety check information of the account
Initial character position is highlighted, and to prompt user to remember safety check information, is logged on convenient for user subsequently through terminal.
It is optionally, described to judge whether account first logs into, comprising:
Login record acquisition request is sent to the server;
Receive the login record of the server feedback;
If in the login record, the account success login record is sky, then confirm that the account first logs into.
The password according to user's input that Fig. 2 show the embodiment of the present invention generates the schematic diagram of safety check code, such as Fig. 2
Shown, the corresponding random keyboard of a certain account is 201, for convenient for example, random keyboard 201 only schematically shows several words
Symbol, in fact, the random keyboard includes multiple characters that 26 letters and underscore, number etc. can be combined into password.
The corresponding password of account is alibaba, and the initial character of password is " a ".By password initial character " a " in random keyboard
201 position 202 is used as safety check code, in embodiment shown in Fig. 2, by first of the random keyboard 201 where character " a "
The position 202 of second character of row is used as safety check code, and highlights the safety check code.It is indicated in Fig. 2 with oblique line
It highlights safety check code, in practical application, can show with more eye-catching colors such as yellow, red, it can also be with high
Bright or big character etc. prompts to protrude.
The display schematic diagram of the corresponding random keyboard of account when the user that Fig. 3 show the embodiment of the present invention logs in.Such as Fig. 3
Shown, the random keyboard 301 got conceals all characters.The position of the initial character of the password of user's input is 302.It receives
After the initial character for the password that user is inputted by random keyboard 301, judge the initial character of the password on random keyboard 301
Whether position matches with safety check code.In the present embodiment, 302 corresponding positions match with safety check code, then show
Character on random keyboard.
If the position of the password initial character of user's input is 303, user's input error is prompted, send short message to leading to for the first time
Mobile terminal number when mobile terminal successfully logs in is crossed, to prompt user account and password that may reveal.
In the present embodiment, since different accounts correspond to different random keyboards, different random keyboard corresponds to different characters
It puts in order, therefore, even if the account of user and password leakage, are believed by the random keyboard and safety verification that hide character
Breath, can also be broken into avoid terminal.
In other embodiments of the invention, can also only it be hidden when first passage current mobile terminal logs in corresponding random
Character on keyboard directly displays the character on random keyboard when non-first passage current mobile terminal logs in, it can increases
Adding system safety, and can simplify logging program.
Fig. 4 show the flow chart of the mobile terminal safety guard method of the embodiment of the present invention, as shown in figure 4, the side
Method includes:
Step 401, the account for user's input that terminal is sent is received.
Step 402, judge whether the account first logs into, if first logging into, then go to step 403, if not first
Secondary login, then go to step 405.
Step 403, the corresponding random keyboard of the account is generated, sends the corresponding random keyboard of the account to the end
End.
Step 404, the verification information that the user is inputted by the random keyboard is received, by the head of the verification information
Position of the character on the random keyboard is as the corresponding safety check information of the account.
Step 405, the corresponding random keyboard of the account and safety check information are obtained according to the account.
Step 406, it hides the character of the random keyboard, and sends the random keyboard that hides character to the terminal.
Step 407, it receives the user and passes through the verification information of the random keyboard input to hide character.
Step 408, judge whether the verification information matches with the safety check information, if matching, goes to step
Rapid 409, if mismatching, go to step 410.
Step 409, then sending allows log on command to the terminal that the terminal is made to send logging request to server.
Step 410, corresponding termination number when short message to the account successfully logs in for the first time is sent, the user is prompted to step on
Input error when record.
The method of the embodiment of the present invention, even if can also be broken into after log-on message leakage to avoid mobile terminal, to keep away
Exempt from privacy of user leakage, reduces economic loss caused by after being broken into as mobile terminal.
Corresponding with the above method, the embodiment of the invention also provides a kind of terminal security protective devices.Fig. 5 show this
The schematic diagram of the terminal security protective device of inventive embodiments, as shown in figure 5, described device includes:
Account receiving unit 501, the account of user's input for receiving terminal transmission;
Acquiring unit 502, for obtaining the corresponding random keyboard of the account and safety check information according to the account;
Transmission unit 503 for hiding the character of the random keyboard, and sends the random keyboard that hides character to described
Terminal;
Verification information receiving unit 504 passes through the random keyboard input to hide character for receiving the user
Verification information;
Processing unit 505, for judging whether the verification information matches with the safety check information, if matching,
Then sending allows log on command to the terminal that the terminal is made to send logging request to server.
Optionally, the processing unit 505 includes:
Position acquisition subelement, for obtaining position of the initial character of the verification information on the random keyboard;
Position judgment sub-unit, for judging whether the position of the initial character matches with the safety check information.
Optionally, described device further include:
Judging unit is logged in, for judging whether the account first logs into;
It is corresponding random to generate the account if the account is to first log into server for random keyboard generation unit
Keyboard sends the corresponding random keyboard of the account to the terminal;
Safety check information generating unit, the verification information inputted for receiving the user by the random keyboard,
Using position of the initial character of the verification information on the random keyboard as the corresponding safety check information of the account.
Optionally, the login judging unit includes:
Logging request subelement, for sending login record acquisition request to the server;
Login record receiving subelement, for receiving the login record of the server feedback;
Confirmation subelement is logged in, if the account success login record is sky in the login record, then confirms institute
Account is stated to first log into.
Optionally, described device further includes Alarm Unit, if not for the verification information and the safety check information
Matching then sends corresponding termination number, the input when user being prompted to log in when short message to the account successfully logs in for the first time
Mistake.
The terminal security protective device of the embodiment of the present invention, even if can also be invaded after log-on message leakage to avoid terminal
Enter, so that privacy of user be avoided to reveal, reduces economic loss caused by after being broken into as mobile terminal
A kind of terminal safety protection method and device are disclosed in the embodiment of the present invention, it is corresponding to obtain account according to account
Random keyboard and safety check information, hide the character of the random keyboard, and send the random keyboard that hides character to end
End receives the user by the verification information of the random keyboard input to hide character, judges the verification information and institute
State whether safety check information matches, if matching, sending, which allows log on command to the terminal to send the terminal, is stepped on
Record is requested to server.The method and apparatus of the embodiment of the present invention, even if after log-on message leakage, it can also be to avoid mobile terminal
It is broken into, so that privacy of user be avoided to reveal, reduces economic loss caused by after being broken into as mobile terminal.
It is required that those skilled in the art can be understood that the technology in the embodiment of the present invention can add by software
The mode of common hardware realize that common hardware includes universal integrated circuit, universal cpu, general-purpose storage, universal elements
Deng, naturally it is also possible to it by specialized hardware include specific integrated circuit, dedicated cpu, private memory, special components and parts etc. come real
It is existing, but the former is more preferably embodiment in many cases.Based on this understanding, the technical solution sheet in the embodiment of the present invention
The part that contributes to existing technology can be embodied in the form of software products in other words in matter, which produces
Product can store in storage medium, as read-only memory (ROM, Read-Only Memory), random access memory (RAM,
Random Access Memory), magnetic disk, CD etc., including some instructions are used so that computer equipment (can be
People's computer, server or network equipment etc.) it executes described in certain parts of each embodiment of the present invention or embodiment
Method.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality
For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method
Part explanation.
The embodiments of the present invention described above are not intended to limit the scope of the present invention.It is any in the present invention
Spirit and principle within made modifications, equivalent substitutions and improvements etc., should all be included in the protection scope of the present invention.