A kind of short message encryption method, device and mobile terminal
Technical field
The present embodiments relate to field of information security technology, more particularly to a kind of short message encryption method, device and shifting
Dynamic terminal.
Background technology
With the popularization of informationization, information security issue turns into the matter of utmost importance that people are worried.People are for life
Succinctly with conveniently, it will usually shopping at network is applied, the application such as the Internet bank and the phone number of oneself are bound together, applied
Platform goes to verify whether to be that user is operated in application end by way of sending checking short message to phone number, once
After the mobile phone of user is lost, personal security's information will also be completely exposed, and others can arbitrarily change user profile, jeopardize use
The property safety at family;In addition, some of user be related to the short message of individual privacy or with the interactive short message of certain special object not
Wish by others see in face of it is such the problem of people without well prevent and handle.
In the prior art, more by identifying code short message content coding encrypting mode protection information safety or passing through the
Tripartite applies and carries out interception encryption to identifying code short message.But above method implementation process is complicated or needs
Information safety protection is realized by third-party application.
The content of the invention
The embodiment of the present invention provides a kind of short message encryption method, device and mobile terminal, is prevented with realizing comprising key
The information leakage of word, protection information safety.
In a first aspect, the embodiments of the invention provide a kind of short message encryption method, this method includes:
Receive short message;
The short message content is extracted, and is matched with the keyword of user preset;
If the success of the keyword match of the short message content and user preset, prompt user to input unlocking pin, and
The short message is shown after unlocking pin is verified.
Second aspect, the embodiment of the present invention additionally provide a kind of short message encryption device, and the device includes:
Information receiving module, for receiving short message;
Keyword-matching module, matched for extracting the short message content, and with the keyword of user preset;
Short message display module, when the success of the keyword match of the short message content and user preset, prompt user defeated
Enter unlocking pin, and read identifying code after unlocking pin is verified and show the short message.
The third aspect, the embodiment of the present invention additionally provide a kind of mobile terminal, and the mobile terminal includes any reality of the present invention
Apply the SMS encryption device described in example.
The embodiment of the present invention is shown by the short message encryption for information to including preset keyword after unlocking pin is verified
Show information, solve the problems, such as the important information leakage for being related to individual privacy and property safety, the information of user can be protected
Safety.
Brief description of the drawings
Fig. 1 is the flow chart of the short message encryption method in the embodiment of the present invention one;
Fig. 2 is the flow chart of the short message encryption method in the embodiment of the present invention two;
Fig. 3 is the structural representation of the short message encryption device in the embodiment of the present invention three.
Embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining the present invention, rather than limitation of the invention.It also should be noted that in order to just
Part related to the present invention rather than entire infrastructure are illustrate only in description, accompanying drawing.
Embodiment one
Fig. 1 is the flow chart for the short message encryption method that the embodiment of the present invention one provides, and the present embodiment is applicable to protect
The situation of information security, this method can be performed by short message encryption device, and the device can use software and/or hardware
Mode is realized.As shown in figure 1, this method specifically includes:
S110, receive short message.
When mobile terminal is in open state, will monitoring reception short message event, when there is short message to be sent to terminal
Step S120 will be performed.
S120, the extraction short message content, and matched with the keyword of user preset.
Wherein, the keyword of user preset can be " identifying code " or the word with " identifying code " similar import, can be with
It is the name or number of individual subscriber topic interested or a certain mobile phone contact.The embodiment of the present invention to
The number of the default keyword in family also not restriction, can be that one in above-mentioned category keywords can also be multiple, enter one
Step, there can be a keyword matched with the short message received under the classification of each keyword, can also
Have multiple.
Specifically, after mobile terminal receives short message, content the delaying to mobile terminal of short message will be extracted
Memory cell, and then all keywords with user preset are matched, when content and wherein any one key of short message
Word then performs step S130 when the match is successful.
If S130, the short message content and user preset keyword match success, prompt user to input unblock close
Code, and the short message is shown after unlocking pin is verified.
When the match is successful for the identifying code of short message content and user preset, then it is that user is not intended to let out to illustrate the short message
Reveal the information seen by other people, be the information for needing to encrypt.If specifically, it is with the short message content keyword that the match is successful
" identifying code " or the word with " identifying code " similar import, then illustrate the short message be bank bound in user, shopping or
Be other account platforms send on verification code information, for logon account, obtain password and complete the operation such as transaction;If with it is short
The information content keyword that the match is successful is the name or number of topic interested or a certain mobile phone contact, then illustrates short
The information content is related to the individual privacy of user, and user is not intended to others and sees its Content of Communication or use with a certain contact person
A certain topic that family is paid close attention in itself etc..
When the match is successful for the identifying code of short message content and user preset, mobile terminal will eject prompt message, with
Prompting user inputs password can just be ceased with short message reading, and when user's input password, and password authentification, by rear, mobile terminal can incite somebody to action
The short message is shown on interface of mobile terminal, so that user reads.
Optionally, user input unlocking pin can be numeral with letter any combination, terminal screen slip gesture, refer to
Any one in line password, iris password.Unlocking manner depends on the cipher mode of user preset.
Further, before short message is received, short message encryption method also includes:
Obtain the keyword of user preset;
Obtain the unlocking pin for including the short message of the keyword for unlocking content.
Specifically, when user uses the short message function of mobile terminal, personalization can be carried out to short message function and set
Put, set user to want the keyword of short message content that encryption is protected, keyword can be " identifying code " or with " testing
Demonstrate,prove code " similar import word, can be individual subscriber topic interested or a certain mobile phone contact name or
It is number.The password for reading the short message containing default keyword content is set simultaneously, and its cipher mode is according to user's morning
Personal like and custom can be numerals with appointing in alphabetical any combination, terminal screen slip gesture, finger-print cipher, iris password
Meaning is a kind of.
The technical scheme of the present embodiment, by the short message encryption for information to including preset keyword, verified in unlocking pin
By rear display information, solve the problems, such as the important information leakage for being related to individual privacy and property safety, use can be protected
The information security at family.
Embodiment two
Fig. 2 is the flow chart for the short message encryption method that the embodiment of the present invention two provides, and the present embodiment is in above-mentioned each implementation
Further optimize on the basis of example.As shown in Fig. 2 this method specifically includes:
S210, receive short message.
S220, the extraction short message content, and matched with the keyword of user preset.
When the content of short message and the successful keyword match of user preset, step S230 is performed;When in short message
When holding with the failure of the keyword match of user preset, step S240 is performed.
If S230, the short message content and user preset keyword match success, prompt user to input unblock close
Code, and the short message is shown after unlocking pin is verified.
If S240, the short message content and user preset keyword match failure, directly display the short message
Content.
If the keyword match of the short message content and user preset fails, illustrate not wrap in the content of the short message
Keyword containing user preset, i.e., it is not related to the individual privacy and property safety problem of user, can be directly being moved without encryption
Dynamic terminal interface is shown.
Further, short message encryption method also includes:
Judge whether the number of the unlocking pin input error exceedes default value;
If the number of the unlocking pin input error exceedes default value, transmission SMS Tip to user is tight automatically
Anxious contact person.
Specifically, if the terminal device of user is lost or is stolen, stealer may pass through the mobile terminal of user
Steal its privacy or login user bank account, shopping account steal the property of user.Assuming that one in customer mobile terminal
Individual bank APP makes user log in APP by way of sending identifying code short message to mobile terminal, and stealer, which does not know, to be checked and test
The password of card code short message cannot obtain the verification code information that can log in APP, therefore, can protect the property safety of user
And information security.When unlocking pin input error number is more than default value, then explanation input password person immobile terminal is used
Family, mobile terminal will send prompt message to programmed emergency.Wherein, prompt message content can be that mobile terminal is write from memory
The short message content that the abnormal prompt information recognized or user were configured;Programmed emergency is in its communication for default
One of contact person in record.
The embodiment of the present invention is by a pair short message content encryption successful with user preset keyword match, in unlocking pin
Short message content is shown after being proved to be successful, pair short message content to fail with user preset keyword match directly displays movement
Terminal, efficient is the need client information to be protected of user filtering, and the embodiment of the present invention is further in unlocking pin input time
Safety instruction short message is sent to programmed emergency when number exceedes default value, further enhances and user information safety property is pacified
Full protection, it can be that user pinpoints the problems and takes corresponding safeguard measure in time, avoid unnecessary loss.
Embodiment three
Fig. 3 show the structural representation of the short message encryption device of the offer of the embodiment of the present invention three, and the present embodiment can fit
For the situation of protection information safety, as shown in figure 3, the concrete structure of the short message encryption device is as follows:
Information receiving module 310, for receiving short message;
Keyword-matching module 320, carried out for extracting the short message content, and with the keyword of user preset
Match somebody with somebody;
Short message display module 330, when the success of the keyword match of the short message content and user preset, prompt user
Unlocking pin is inputted, and reads identifying code after unlocking pin is verified and shows the short message.
Further, short message encryption device also includes:
Keyword acquisition module, for obtaining the keyword of user preset;
Password acquisition module, for obtaining the unlocking pin for being used for unlocking the short message that content includes the keyword.
Optionally, unlocking pin is that numeral and alphabetical any combination, terminal screen slip gesture, finger-print cipher, iris are close
Any one in code.
Further, short message display module 330 is additionally operable to:
When the keyword match of the short message content and user preset fails, the interior of the short message is directly displayed
Hold.
Optionally, short message encryption device also includes:
Safety instruction module, for judging whether the number of the unlocking pin input error exceedes default value;
When the number of the unlocking pin input error exceedes default value, transmission SMS Tip to user is tight automatically
Anxious contact person.
Said short message encryption for information device can perform the short message encryption method that any embodiment of the present invention is provided, and possesses and holds
The corresponding functional module of row method and beneficial effect.
The technical scheme of the present embodiment, it is pre- to including by keyword-matching module 320 and short message display module 330
If the short message encryption for information of keyword, the display information after unlocking pin is verified, solves and is related to individual privacy and property
The problem of important information leakage of safety, the information security of user can be protected.
Example IV
The embodiment of the present invention four provides a kind of mobile terminal, and the mobile terminal is included described in any of the above-described embodiment
SMS encryption device.
Pay attention to, above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that
The invention is not restricted to specific embodiment described here, can carry out for a person skilled in the art various obvious changes,
Readjust and substitute without departing from protection scope of the present invention.Therefore, although being carried out by above example to the present invention
It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also
Other more equivalent embodiments can be included, and the scope of the present invention is determined by scope of the appended claims.