Content of the invention
The embodiment of the present invention provides a kind of terminal safety protection method and device, terminal quilt can be avoided after log-on message is revealed
Invade.
In order to solve above-mentioned technical problem, the embodiment of the invention discloses following technical scheme:
First aspect, provides a kind of terminal safety protection method, and described method includes:
Receive the account of user's input that terminal sends;
Obtain the corresponding random keyboard of described account and safety check information according to described account;
Hide the character of described random keyboard, and send the random keyboard hiding character to described terminal;
Receive the checking information that described user is inputted by the described random keyboard hiding character;
Judge whether described checking information matches with described safety check information, if coupling, then send and allow log on command to institute
State terminal so that described terminal sends logging request to server.
Optionally, described judge whether checking information matches with safety check information, comprising:
Obtain the initial character of the described checking information position on described random keyboard;
Judge the position of described initial character whether with described safety check information match.
Optionally, after receiving the account of user's input that terminal sends, described account is obtained according to described account corresponding at random
Before keyboard and safety check information, described method includes:
Judge whether described account first logs into;
If described account is to first log into server, then generates the corresponding random keyboard of described account, send described account corresponding
Random keyboard is to described terminal;
Receive the checking information that described user is inputted by described random keyboard, by the initial character of described checking information described at random
Position on keyboard is as described account corresponding safety check information.
Optionally, described judge whether account first logs into, comprising:
Send login record and obtain request to described server;
Receive the described login record of described server feedback;
If in described login record, described account Successful login is recorded as sky, then confirm that described account first logs into.
Optionally, described method also includes:
If described checking information is not mated with described safety check information, then send note to during described account Successful login first pair
The termination number answered, input error when pointing out described user to log in.
On the other hand, providing a kind of terminal security protection device, described device includes:
Account receiving unit, for receiving the account of user's input that terminal sends;
Acquiring unit, for obtaining the corresponding random keyboard of described account and safety check information according to described account;
Transmitting element, is used for hiding the character of described random keyboard, and sends the random keyboard hiding character to described terminal;
Checking information receiving unit, for receiving the checking information that described user is inputted by the described random keyboard hiding character;
Processing unit, is used for judging whether described checking information matches with described safety check information, if coupling, then sends and permits
Being permitted log on command to described terminal makes described terminal send logging request to server.
Optionally, described processing unit includes:
Position acquisition subelement, is used for obtaining position on described random keyboard for the initial character of described checking information;
Position judgment subelement, for judge the position of described initial character whether with described safety check information match.
Optionally, described device also includes:
Log in judging unit, be used for judging whether described account first logs into;
Random keyboard signal generating unit, if described account is to first log into server, then generates the corresponding random keyboard of described account,
Send the corresponding random keyboard of described account to described terminal;
Safety check information generating unit, for receiving the checking information that described user is inputted by described random keyboard, by described
Position on described random keyboard for the initial character of checking information is as described account corresponding safety check information.
Optionally, described login judging unit includes:
Logging request subelement, is used for sending login record and obtains request to described server;
Login record receives subelement, for receiving the described login record of described server feedback;
Logging in and confirming subelement, if in described login record, described account Successful login is recorded as sky, then confirm described account
Number first log into.
Optionally, described device also includes Alarm Unit, if not mating with described safety check information for described checking information,
Then send note to corresponding termination number during described account Successful login first, input error when pointing out described user to log in.
Embodiments of the invention disclose a kind of terminal safety protection method, according to account obtain the corresponding random keyboard of account and
Safety check information, hides the character of described random keyboard, and the random keyboard that transmission hides character is to terminal, receives described use
The checking information that family is inputted by the described random keyboard hiding character, it is judged that described checking information with described safety check information is
No match, if coupling, then send and allow log on command to described terminal to make described terminal send logging request to server.This
In the method for invention, the corresponding different random keyboard of different accounts, even if after log-on message is revealed, it is also possible to avoid mobile terminal
It is broken into, thus avoids privacy of user to reveal, reduce the economic loss causing after being broken into due to mobile terminal.
Detailed description of the invention
Below embodiment of the present invention provides a kind of terminal safety protection method and device, can avoid after log-on message is revealed
Terminal is broken into, and improves the security of terminal.
Below in conjunction with the accompanying drawing in the embodiment of the present invention, clear, complete retouching is carried out to the technical scheme in the embodiment of the present invention
State, it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.Based on the present invention
In embodiment, the every other embodiment that those of ordinary skill in the art are obtained under the premise of not making creative work,
Broadly fall into the scope of protection of the invention.
Fig. 1 show the flow chart of a kind of terminal safety protection method of the embodiment of the present invention, as it is shown in figure 1, the present invention implements
Example provides a kind of terminal safety protection method, and described method includes:
Step 101, receives the account of user's input that terminal sends.
Terminal in the embodiment of the present invention can be PC end, it is also possible to be mobile terminal.Mobile terminal can have touch screen
Terminal, such as ipad, mobile phone etc..
Step 102, obtains the corresponding random keyboard of described account and safety check information according to described account.
Step 103, hides the character of described random keyboard, and sends the random keyboard hiding character to described terminal.
Step 104, receives the checking information that described user is inputted by the described random keyboard hiding character.
The corresponding different random keyboard of different accounts, the character arrangements order that different random keyboards refers on keyboard is different,
If the owner of account, could be aware that the Position Approximate of character on the corresponding random keyboard of this account, by account corresponding with
Switch dish input validation information, can carry out security protection, it is to avoid cause privacy leakage and economy after account and password are revealed
Loss.
In the embodiment of the present invention, checking information can be password, it is also possible to is independent check code.Account and checking information can
To be referred to as log-on message.
Step 105, it is judged that whether described checking information matches with described safety check information, if coupling, then sends and allows to step on
Record order to described terminal makes described terminal send logging request to server.
The corresponding server of various application that server in the embodiment of the present invention can be mounted on mobile terminal.
If described checking information is not mated with described safety check information, then send note to during described account Successful login first pair
The termination number answered, input error when pointing out described user to log in.
Optionally, in step 105, described judge whether checking information matches with safety check information, comprising:
Obtain the initial character of the described checking information position on described random keyboard;
Judge the position of described initial character whether with described safety check information match.
Only mated with safety check information by the position of initial character, for a user, it is only necessary to remember checking information lead-in
Position on random keyboard for the symbol, it is to avoid the too much memory burden of cause the user, improves the experience of user.
Terminal safety protection method disclosed in embodiments of the invention, obtains the corresponding random keyboard of account and safety according to account
Check information, hides the character of described random keyboard, and the random keyboard that transmission hides character is to terminal, receives described user and leads to
Cross the checking information of the described random keyboard hiding character input, it is judged that described checking information and described safety check information whether phase
Coupling, if coupling, then sends and allows log on command to described terminal to make described terminal send logging request to server.The present invention
The method of embodiment, the corresponding different random keyboard of different accounts, the initial character of different account corresponding checking information is at random by key
Position on dish is different, therefore, even if after log-on message is revealed, it is also possible to avoid mobile terminal to be broken into, thus avoid user
Privacy leakage, reduces the economic loss causing after being broken into due to mobile terminal.
Optionally, after step 101, after i.e. receiving the account of user's input that terminal sends, before step 102, i.e. root
Before obtaining the corresponding random keyboard of described account and safety check information according to described account, described method includes:
Judge whether described account first logs into;
If described account is to first log into server, then generates the corresponding random keyboard of described account, send described account corresponding
Random keyboard is to described terminal;
Receive the checking information that described user is inputted by described random keyboard, by the initial character of described checking information described at random
Position on keyboard is as described account corresponding safety check information.
Ideally, the different corresponding random keyboards of account are different, the difference that puts in order of character on different random keyboard, because of
This, is using position on random keyboard for the initial character of checking information as safety check code, even if account number cipher is revealed, random by key
Dish will not be revealed, and therefore safety check code also will not be revealed.In Shi Ji, on random keyboard, the number of character is limited, therefore at random
The quantity of keyboard is also limited, but a combination thereof is more, still can increase the security performance of system.
Optionally, after generating the corresponding safety check information of described account, it is also possible that the initial character stated on random keyboard
Position is highlighted, to point out user to remember safety check information, it is simple to user logs on subsequently through terminal.
Optionally, described judge whether account first logs into, comprising:
Send login record and obtain request to described server;
Receive the described login record of described server feedback;
If in described login record, described account Successful login is recorded as sky, then confirm that described account first logs into.
Fig. 2 show the schematic diagram generating safety check code according to the password that user inputs of the embodiment of the present invention, as in figure 2 it is shown,
The corresponding random keyboard of a certain account is 201, and for ease of example, random keyboard 201 only schematically shows several character,
In fact, this random keyboard includes that 26 letters and underscore, numeral etc. can be combined into multiple characters of password.
The corresponding password of account is alibaba, and the initial character of password is " a ".By password initial character " a " at random keyboard 201
Position 202 as safety check code, in the embodiment shown in Fig. 2, by the of the random keyboard 201 at character " a " place
The position 202 of second character of a line is as safety check code, and highlights described safety check code.With oblique line table in Fig. 2
Show and highlight safety check code, in actual application, can show by the more eye-catching color such as yellow, redness, it is also possible to use
Highlighted or big character etc. highlights prompting.
Fig. 3 show the display schematic diagram of account corresponding random keyboard when the user of the embodiment of the present invention logs in.As it is shown on figure 3,
The random keyboard 301 getting conceals all characters.The position of the initial character of the password of user's input is 302.Receive user
After the initial character of the password being inputted by random keyboard 301, it is judged that position on random keyboard 301 for the initial character of described password
Whether mate with safety check code-phase.In the present embodiment, 302 corresponding positions are mated with safety check code-phase, then display is random
Character on keyboard.
If the position of the password initial character of user's input is 303, then point out user's input error, send note and move to first passage
Mobile terminal number during dynamic terminal Successful login, to point out user account and password to have revealed.
In the present embodiment, due to the corresponding different random keyboard of different accounts, the corresponding different character arrangements of different random keyboard is suitable
Sequence, therefore, even if the account of user and password are revealed, by the random keyboard that hides character and secure authentication information, it is possible to
To avoid terminal to be broken into.
In other embodiments of the invention, it is also possible to only hide on corresponding random keyboard when first passage current mobile terminal logs in
Character, directly display the character on random keyboard when non-first passage current mobile terminal logs in, i.e. can increase system peace
Quan Xing, can simplify again 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, described method bag
Include:
Step 401, receives the account of user's input that terminal sends.
Step 402, it is judged that whether described account first logs into, if first logging into, then goes to step 403, if not first
Log in, then go to step 405.
Step 403, generates the corresponding random keyboard of described account, sends the corresponding random keyboard of described account to described terminal.
Step 404, receives the checking information that described user is inputted by described random keyboard, by the initial character of described checking information
Position on described random keyboard is as described account corresponding safety check information.
Step 405, obtains the corresponding random keyboard of described account and safety check information according to described account.
Step 406, hides the character of described random keyboard, and sends the random keyboard hiding character to described terminal.
Step 407, receives the checking information that described user is inputted by the described random keyboard hiding character.
Step 408, it is judged that whether described checking information matches with described safety check information, if coupling, then goes to step 409,
If not mating, then go to step 410.
Step 409, then send and allow log on command to described terminal to make described terminal send logging request to server.
Step 410, corresponding termination number when sending note extremely described account Successful login first, when pointing out described user to log in
Input error.
The method of the embodiment of the present invention, even if after log-on message is revealed, it is also possible to avoid mobile terminal to be broken into, thus avoids using
Family privacy leakage, reduces the economic loss causing after being broken into due to mobile terminal.
Corresponding with said method, the embodiment of the present invention additionally provides a kind of terminal security protection device.Fig. 5 show the present invention
The schematic diagram of the terminal security protection device of embodiment, as it is shown in figure 5, described device includes:
Account receiving unit 501, for receiving the account of user's input that terminal sends;
Acquiring unit 502, for obtaining the corresponding random keyboard of described account and safety check information according to described account;
Transmitting element 503, is used for hiding the character of described random keyboard, and sends the random keyboard hiding character to described terminal;
Checking information receiving unit 504, for receiving the checking letter that described user is inputted by the described random keyboard hiding character
Breath;
Processing unit 505, is used for judging whether described checking information matches with described safety check information, if coupling, then sends out
Permission log on command to described terminal is sent to make described terminal send logging request to server.
Optionally, described processing unit 505 includes:
Position acquisition subelement, is used for obtaining position on described random keyboard for the initial character of described checking information;
Position judgment subelement, for judge the position of described initial character whether with described safety check information match.
Optionally, described device also includes:
Log in judging unit, be used for judging whether described account first logs into;
Random keyboard signal generating unit, if described account is to first log into server, then generates the corresponding random keyboard of described account,
Send the corresponding random keyboard of described account to described terminal;
Safety check information generating unit, for receiving the checking information that described user is inputted by described random keyboard, by described
Position on described random keyboard for the initial character of checking information is as described account corresponding safety check information.
Optionally, described login judging unit includes:
Logging request subelement, is used for sending login record and obtains request to described server;
Login record receives subelement, for receiving the described login record of described server feedback;
Logging in and confirming subelement, if in described login record, described account Successful login is recorded as sky, then confirm described account
Number first log into.
Optionally, described device also includes Alarm Unit, if not mating with described safety check information for described checking information,
Then send note to corresponding termination number during described account Successful login first, input error when pointing out described user to log in.
The terminal security protection device of the embodiment of the present invention, even if after log-on message is revealed, it is also possible to avoid terminal to be broken into, from
And avoid privacy of user to reveal, reduce the economic loss causing after being broken into due to mobile terminal
Embodiments of the invention disclose a kind of terminal safety protection method and device, obtains account according to account corresponding at random
Keyboard and safety check information, hide the character of described random keyboard, and send the random keyboard hiding character to terminal, reception
The checking information that described user is inputted by the described random keyboard hiding character, it is judged that described checking information and described safety check
Whether information matches, if coupling, then sends and allows log on command to described terminal to make described terminal send logging request to service
Device.The method and apparatus of the embodiment of the present invention, even if after log-on message is revealed, it is also possible to avoid mobile terminal to be broken into, thus
Avoid privacy of user to reveal, reduce the economic loss causing after being broken into due to mobile terminal.
Those skilled in the art it can be understood that can add by software to the technology in the embodiment of the present invention required
The mode of common hardware realizes, common hardware includes universal integrated circuit, universal cpu, general-purpose storage, universal element
Device etc., naturally it is also possible to include special IC, dedicated cpu, private memory, special unit by specialized hardware
Devices etc. realize, but a lot of in the case of the former is more preferably embodiment.Based on such understanding, the embodiment of the present invention
In the part that substantially in other words prior art contributed of technical scheme can embody with the form of software product
Come, this computer software product can be stored in storage medium, as read-only storage (ROM, Read-Only Memory),
Random access memory (RAM, Random Access Memory), magnetic disc, CD etc., including some instructions are in order to make
Each is real to obtain computer equipment (can be personal computer, server, or the network equipment an etc.) execution present invention
Execute the method described in some part of example or embodiment.
Each embodiment in this specification all uses the mode gone forward one by one to describe, identical similar part between each embodiment
Seeing mutually, what each embodiment stressed is the difference with other embodiments.Especially for system
For embodiment, owing to it is substantially similar to embodiment of the method, so describe is fairly simple, related part sees method
The part of embodiment illustrates.
Invention described above embodiment, is not intended that limiting the scope of the present invention.Any the present invention's
Modification, equivalent and the improvement etc. made within spirit and principle, should be included within the scope of the present invention.