CN104768148B - A kind of message encryption method and device - Google Patents

A kind of message encryption method and device Download PDF

Info

Publication number
CN104768148B
CN104768148B CN201510107122.5A CN201510107122A CN104768148B CN 104768148 B CN104768148 B CN 104768148B CN 201510107122 A CN201510107122 A CN 201510107122A CN 104768148 B CN104768148 B CN 104768148B
Authority
CN
China
Prior art keywords
encrypted object
encryption
message
encrypted
message content
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510107122.5A
Other languages
Chinese (zh)
Other versions
CN104768148A (en
Inventor
王腾飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Yi Xin Science And Technology Ltd
Original Assignee
Zhejiang Yi Xin Science And Technology Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Yi Xin Science And Technology Ltd filed Critical Zhejiang Yi Xin Science And Technology Ltd
Priority to CN201510107122.5A priority Critical patent/CN104768148B/en
Publication of CN104768148A publication Critical patent/CN104768148A/en
Application granted granted Critical
Publication of CN104768148B publication Critical patent/CN104768148B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephone Function (AREA)

Abstract

Embodiments of the present invention provide a kind of message encryption method.This method comprises: receiving the operation for determining encrypted object and triggering the operation of encryption;The operation of operation and the triggering encryption in response to the determining encrypted object, is encrypted the determining encrypted object.Method provided by the invention can be encrypted with flexible choice part or all of message corresponding with particular contact or particular telephone number, either the partial content of particular message corresponding with particular contact or particular telephone number is selected to be encrypted, so that user can be with flexible setting encrypted object;In addition, facilitating the operation of encryption and decryption the present invention provides the convenient and fast triggering mode encrypted and decrypt, improving the experience of user.In addition, embodiments of the present invention provide a kind of message encryption device.

Description

A kind of message encryption method and device
Technical field
Embodiments of the present invention are related to technical field of information processing, more specifically, embodiments of the present invention are related to one Kind message encryption method and device.
Background technique
Background that this section is intended to provide an explanation of the embodiments of the present invention set forth in the claims or context.Herein Description recognizes it is the prior art not because not being included in this section.
In technical field of information processing, user using in electronic equipment short message communication function and instant messaging it is soft It is more prevalent that part carries out interacting message.Currently, the message that there has been no in the prior art for instant communication software is encrypted Scheme.In the existing encryption method for short message communication, encrypted generally by the mode of preset password, Correspondingly, needing to click the short message icon of client when user wants the short message that browsing has encrypted, calling short message function And it inputs corresponding short message password and can browse the short message encrypted in inbox.
Summary of the invention
It in the prior art, is for the All Contacts in address list for the encryption of message function.However it is real It is not to be required to encrypt for the short message of All Contacts in the application of border.The method that the prior art provides is due to only It is to be encrypted for general message function, so that user when checking the short message of any contact person, is required to input Preset password, short message can be checked by causing user to need to carry out cumbersome operation, and there are cumbersome, no for this mode The defect of energy flexible setting encrypted object.
In addition, the encryption of the prior art and manner of decryption are relatively simple, haves the defects that inconvenient for use, poor user experience.
Thus, it is also very desirable to which a kind of improved message encryption method and device can be reduced and be used with flexible setting encrypted object The troublesome operation at family promotes user experience.
In the present context, embodiments of the present invention are intended to provide a kind of message encryption method and device.
In the first aspect of embodiment of the present invention, provide a method, comprising:
It receives the operation for determining encrypted object and triggers the operation of encryption;
The operation of operation and the triggering encryption in response to the determining encrypted object, to the determining encryption Object is encrypted.
In one embodiment of the first aspect of the present invention, the determining encrypted object includes any one in following Person:
Some or all of message corresponding with particular telephone number or particular contact mark is determined as encrypting Object;Alternatively, the partial content for identifying corresponding particular message with particular telephone number or particular contact is determined as Encrypted object;The identification of contacts includes the connection in the identification of contacts or instant messaging tools of telephone communication record record People's mark.
In another embodiment of first aspect present invention, the identification of contacts in the instant messaging tools includes i.e. When means of communication in contact name, contact person ID, remarks title or head portrait.
In another embodiment of first aspect present invention, the operation of the triggering encryption includes:
Default for the corresponding telephone number of the encrypted object, identification of contacts or message content region adds Close gesture operation.
In the further embodiment of first aspect present invention, it is described for the corresponding telephone number of the encrypted object, The predetermined encryption gesture operation of identification of contacts or message content region includes any one in following:
The operation of the corresponding telephone number of encrypted object described in adopting consecutive click chemical reaction or identification of contacts;
Touch operation and the touch operation for the corresponding telephone number of the encrypted object or identification of contacts Duration be greater than first time threshold;
The operation in the region where the corresponding message content of encrypted object described in adopting consecutive click chemical reaction;
For the touch operation in region where the corresponding message content of the encrypted object and holding for the touch operation The continuous time is greater than second time threshold;
The operation of Encryption Options in selection function menu.
In another embodiment of first aspect present invention, the described pair of determining encrypted object is encrypted Include:
The corresponding message content of the encrypted object is hidden, and avoids display reminding message to prompt in the message Hold encryption;Alternatively,
The corresponding message content of the encrypted object is hidden, and display reminding message is for prompting to the message content Encryption.
In the further embodiment of first aspect present invention, the method also includes:
In response to the operation that the encrypted object is decrypted, display is decrypted to the encrypted object.
In another embodiment of first aspect present invention, the operation that the encrypted object is decrypted Include:
For the default of region associated by the corresponding telephone number of the encrypted object, identification of contacts or message content Decrypt gesture operation.
In another embodiment of the present invention, described to be marked for the corresponding telephone number of the encrypted object, contact person The default decryption gesture operation in region associated by knowledge or message content includes any one in following:
The operation of the corresponding telephone number of encrypted object described in adopting consecutive click chemical reaction or identification of contacts;
Touch operation and the touch operation for the corresponding telephone number of the encrypted object or identification of contacts Duration be greater than third time threshold;
The operation in region associated by the corresponding message content of encrypted object described in adopting consecutive click chemical reaction;
Touch operation and the touch operation for region associated by the corresponding message content of the encrypted object Duration is greater than the 4th time threshold;
Input the operation of clear crytpographic key.
In the second aspect of embodiment of the present invention, a kind of device is provided, comprising:
Receiving unit is configured to receive the operation of determining encrypted object and triggers the operation of encryption;
Encryption unit is configured to the behaviour of operation and the triggering encryption in response to the determining encrypted object Make, the determining encrypted object is encrypted.
In an embodiment of the second aspect of the present invention, the receiving unit includes receiving to determine encrypted object behaviour Make unit and receive triggering encryption processing operation unit, wherein the reception determines that encrypted object operating unit specifically includes down Any one in stating:
First receives and determines encrypted object operating unit, be configured to receive will with particular telephone number or specific contact People identifies the operation that corresponding some or all of message is determined as encrypted object;
Second receives and determines encrypted object operating unit, be configured to receive will with particular telephone number or specific contact The partial content that people identifies corresponding particular message is determined as the operation of encrypted object;The identification of contacts includes that phone is logical Identification of contacts in the identification of contacts or instant messaging tools of letter record record.
Identification of contacts packet in the another embodiment of the second aspect of the present invention, in the instant messaging tools Include contact name, contact person ID, remarks title or the head portrait in instant messaging tools.
In the another embodiment of the second aspect of the present invention, the receiving unit includes receiving to determine encrypted object Operating unit and reception triggering encryption processing operation unit, wherein the reception triggers encryption processing operation unit concrete configuration For:
It receives for the pre- of the corresponding telephone number of the encrypted object, identification of contacts or message content region If encrypting gesture operation to trigger encryption.
In the yet another embodiment of the second aspect of the present invention, the reception triggering encryption processing operation unit includes Any one in following or multiple subelements:
First receives triggering encryption processing operation subelement, and it is corresponding to be configured to encrypted object described in reception adopting consecutive click chemical reaction The operation of telephone number or identification of contacts;
Second receives triggering encryption processing operation subelement, is configured to receive for the corresponding phone of the encrypted object The duration of the touch operation of number or identification of contacts, the touch operation is greater than first time threshold;
Third receives triggering encryption processing operation subelement, and it is corresponding to be configured to encrypted object described in reception adopting consecutive click chemical reaction The operation in the region where message content;
4th receives triggering encryption processing operation subelement, is configured to receive for the corresponding message of the encrypted object The duration of the touch operation in the region where content, the touch operation is greater than second time threshold;
5th receives triggering encryption processing operation subelement, is configured to receive the Encryption Options in selection function menu Operation.
In the another embodiment of the second aspect of the present invention, the encryption unit includes:
First encryption unit is configured to hide the corresponding message content of the encrypted object, and display reminding is avoided to disappear Breath is to prompt to encrypt the message content;
Second encryption unit is configured to hide the corresponding message content of the encrypted object, and display reminding message is used The message content has been encrypted in prompt.
In the yet another embodiment of the second aspect of the present invention, described device further include:
Decryption unit is configured to the operation in response to the encrypted object is decrypted, to the encryption pair As display is decrypted.
In the another embodiment of the second aspect of the present invention, the decryption unit is configured specifically for:
In response to for region associated by the corresponding telephone number of the encrypted object, identification of contacts or message content Default decryption gesture operation, display is decrypted to the encrypted object.
In the another embodiment of the second aspect of the present invention, the decryption unit specifically include it is following any one Or multiple subelements:
First decryption subelement, is configured in response to the corresponding telephone number of encrypted object described in adopting consecutive click chemical reaction or connection It is the operation of people's mark, display is decrypted to the encrypted object.
Second decryption subelement, is configured in response to for the corresponding telephone number of the encrypted object or contact person Display is decrypted to the encrypted object in the touch operation of mark;Wherein, the duration of the touch operation is greater than third Time threshold.
Third decrypts subelement, is configured in response to associated by the corresponding message content of encrypted object described in adopting consecutive click chemical reaction Region operation, display is decrypted to the encrypted object.
4th decryption subelement, is configured in response to for area associated by the corresponding message content of the encrypted object Display is decrypted to the encrypted object in the touch operation in domain;Wherein, when the duration of the touch operation is greater than the 4th Between threshold value.
5th decryption subelement is configured to solve the encrypted object in response to the operation for inputting clear crytpographic key Close display.
The message encryption method and device of embodiment according to the present invention can be selected encrypted object by user flexibility, and Determining encrypted object is encrypted in response to the encryption trigger action of user.Due to user can choose with it is specific It is that perhaps the corresponding part or all of message of particular telephone number is encrypted or selected and particular contact or spy people The partial content for determining the corresponding particular message of telephone number is encrypted, so that user can be with flexible setting encryption pair As inputting password in the message for receiving All Contacts therefore without user, significantly reducing the operation of user, improve The flexibility of operation improves the experience of user.
In addition, the message encryption method and device of embodiment according to the present invention, provides and easily encrypt and decryption Triggering mode facilitates the operation of encryption and decryption, compared with the existing technology single encryption and manner of decryption, more convenient use Family operation, improves the experience of user.
Detailed description of the invention
The following detailed description is read with reference to the accompanying drawings, above-mentioned and other mesh of exemplary embodiment of the invention , feature and advantage will become prone to understand.In the accompanying drawings, if showing by way of example rather than limitation of the invention Dry embodiment, in which:
Fig. 1 schematically shows embodiment according to the present invention can be in the application scenarios wherein realized;
Fig. 2 schematically shows message encryption method flow charts according to an embodiment of the invention;
Fig. 3 schematically shows message encryption device schematic diagram according to an embodiment of the invention.
In the accompanying drawings, identical or corresponding label indicates identical or corresponding part.
Specific embodiment
The principle and spirit of the invention are described below with reference to several illustrative embodiments.It should be appreciated that providing this A little embodiments are used for the purpose of making those skilled in the art can better understand that realizing the present invention in turn, and be not with any Mode limits the scope of the invention.On the contrary, these embodiments are provided so that this disclosure will be more thorough and complete, and energy It is enough that the scope of the present disclosure is completely communicated to those skilled in the art.
Those skilled in the art will understand that embodiments of the present invention can be implemented as a kind of system, device, equipment, Method or computer program product.Therefore, the present disclosure may be embodied in the following forms, it may be assumed that complete hardware, complete soft The form that part (including firmware, resident software, microcode etc.) or hardware and software combine.
Embodiment according to the present invention proposes a kind of message encryption method and device.
Herein, it is to be understood that any number of elements in attached drawing be used to example rather than limit and it is any Name is only used for distinguishing, without any restrictions meaning.
Below with reference to several representative embodiments of the invention, the principle and spirit of the present invention are explained in detail.
Summary of the invention
The inventors discovered that in the prior art, user is using the short message communication function in electronic equipment and immediately It is more prevalent that communication software carries out interacting message.User is often desirable to for the needs of privacy and protection business secret can be to friendship Mutual message maintains secrecy, however, often leading for the Privacy Protection function of message communicating both sides and unsound in the prior art It causes the message of communicating pair to be seen by the third party, so as to cause the leakage of individual privacy or confidential information, not can guarantee communication Safety.In the prior art, despite the presence of the encryption method for being directed to short message communication function, protect message logical to a certain extent Believe the personal secrets of both sides, but inventors have found that is in address list in the prior art for the encryption of message function All Contacts'.It is not to be required to encrypt for the short message of All Contacts however in practical application.Existing skill The method that art provides just for general message function due to being encrypted, so that user checks that any contact person's is short It when message, is required to input preset password, short message, this side can be checked by causing user to need to carry out cumbersome operation Formula have the defects that it is cumbersome, be unable to flexible setting encrypted object.In addition, the encryption of the prior art and manner of decryption are more single One, have the defects that inconvenient for use, poor user experience.
Therefore for the prior art can not flexible setting encrypted object, user's operation it is cumbersome, inconvenient for use, poor user experience The shortcomings that, the present invention provides a kind of message encryption method and device, encrypted object can be selected by user flexibility, and in response to Determining encrypted object is encrypted in the encryption trigger action of user.Due to user can choose with particular contact or The corresponding part or all of message of person's particular telephone number encrypts, and either selects particular contact or particular telephone number The partial content of the corresponding particular message of code is encrypted, so that user can be with flexible setting encrypted object, thus Password is inputted in the message for receiving All Contacts without user, the operation of user is significantly reduced, improves operation Flexibility improves the experience of user.In addition, the message encryption method and device of embodiment according to the present invention, provides just The triggering mode of prompt encryption and decryption, facilitates the operation of encryption and decryption, compared with the existing technology single encryption reconciliation Close mode, more convenient user's operation improve the experience of user.
After introduced the basic principles of the present invention, lower mask body introduces various non-limiting embodiment party of the invention Formula.
Application scenarios overview
Referring initially to Fig. 1, it is schematically shown that embodiment of the present invention can be in the application scenarios wherein realized.It is described Message encryption device 300 can be individual equipment, also can be applied in any client or electronic equipment 400.For example, The message encryption device 300 can be the application program dedicated for message encryption processing of an installation in the electronic device APP.More generally, which may include non-expert at message encryption in the electronic device in installation In the application APP of reason (i.e. the non-expert APP for message encryption processing has message encryption processing function).It is described to answer The short message communication module that for example can be electronic equipment with program APP is also possible to install Instant Messenger in the electronic device Letter tool.Shown electronic equipment 400 can be it is existing, researching and developing or in the future research and development any electronic equipments, including but It is not limited to: existing, researching and developing or research and development in the future desktop computers, laptop computer, mobile terminal (including intelligence Mobile phone, non-smart mobile phone, various tablet computers) etc..It will be understood by those skilled in the art that schematic diagram shown in FIG. 1 is only this The embodiment of invention can be in an example being wherein achieved.The scope of application of embodiment of the present invention is not by the frame The limitation of any aspect of frame.
Illustrative methods
Below with reference to the application scenarios of Fig. 1, be described with reference to Figure 2 illustrative embodiments according to the present invention for message The method of encryption.It should be noted which is shown only for the purpose of facilitating an understanding of the spirit and principles of the present invention for above-mentioned application scenarios, Embodiments of the present invention are not limited in this respect.On the contrary, embodiments of the present invention can be applied to applicable appoint What scene.
Referring to fig. 2, it is schematically shown that message encryption method flow chart according to an embodiment of the invention, this method tool Body for example may include:
S201 receives the operation for determining encrypted object and triggers the operation of encryption.
Wherein, the determining encrypted object may include any one in following:
Some or all of message corresponding with particular telephone number or particular contact mark is determined as encrypting Object;Alternatively,
The partial content for identifying corresponding particular message with particular telephone number or particular contact is determined as adding Close object.
Wherein, the identification of contacts includes in the identification of contacts or instant messaging tools of telephone communication record record Identification of contacts.The identification of contacts of telephonic communication record record may include telephonic communication record record contact name, Contact head image or remarks title.Identification of contacts in the instant messaging tools includes the connection in instant messaging tools Name claims, contact person ID, remarks title or head portrait.
In one possible implementation, determining encrypted object can be particular telephone number or particular contact Identify corresponding entire message.At this moment, it can be completed by selection particular telephone number or particular contact mark to adding The selection of close object.In this case, the operation of the determining encrypted object may include: to click particular telephone number or spy Determine the operation of identification of contacts;Alternatively, touch operation and institute for the particular telephone number or particular contact mark The duration for stating touch operation is greater than preset time threshold.The preset time threshold can according to need by user or be System setting.The operation of the determining encrypted object can be determined once to be identified with a particular telephone number or particular contact Corresponding message can also be determined once and multiple particular telephone numbers or particular contact mark phase as encrypted object Corresponding message is as encrypted object, herein without limiting.Due to the present invention can voluntarily select by user, flexibly determine with One or more particular telephone number or the corresponding message of identification of contacts can refine differentiation and add as encrypted object Close object and non-encrypted object, therefore can only be improved compared with the existing technology for the method that All Contacts are encrypted The flexibility ratio of operation, and then reduce the troublesome operation of user, increase the convenience that user uses.
In the implementation of another possibility, determining encrypted object be can also be and particular telephone number or spy Determine the corresponding part messages of identification of contacts.For example, the encrypted object can be and particular telephone number or specific It is specific one or specific several message in the corresponding message of people's mark.It at this moment, can be by selecting this specific one Or specific several message completes the selection to encrypted object.In this case, the operation of the determining encrypted object can be with It include: the operation for clicking particular message region;Alternatively, for the touch operation of the particular message region and described The duration of touch operation is greater than preset time threshold.The preset time threshold can according to need by user or system Setting.The operation of the determining encrypted object can once determine that a piece of news as encrypted object, can also be determined once more Message is as encrypted object, herein without limiting.Due to the present invention can voluntarily be selected by user, flexible determination will be with spy The corresponding part messages of telephone number or particular contact are determined as encrypted object, only can need to carry out in encryption part The message of secret protection, and then normally shown for most of message, meet different secret protections of the user to different messages Demand, improves the flexibility ratio of operation, and then reduces the troublesome operation of user, increases the convenience that user uses.
In one possible implementation, determining encrypted object can be and particular telephone number or specific contact People identifies the partial content of corresponding particular message.For example, the encrypted object can be particular telephone number or specific The partial content in specific a piece of news in message corresponding to identification of contacts, the partial content can be with text or figures Piece.For example, user only wants to encrypt the part sensitive information in a certain message content under certain application scenarios, At this moment, the choosing to encrypted object can be completed by the region where the partial content that selects the needs in this message to encrypt It selects.Then the operation of the determining encrypted object may include: to click the operation of the specific part content region of particular message; Alternatively, the duration of touch operation and the touch operation for the specific part content region of the particular message Greater than preset time threshold.The preset time threshold can according to need by user or default.Since the present invention can Voluntarily to be selected by user, flexibly determines and make a part of content of the particular message of particular telephone number or particular contact For encrypted object, the part sensitive information in message can be only encrypted, and is then normally shown for most of message content, is met Different secret protection demands of the user to different piece in same message, increase the convenience that user uses.
It should be noted that determining that the operation of encrypted object can have different implementations, the above is only exemplary Illustrate, is not intended as limitation of the present invention.Those skilled in the art are in other the realization sides for not making the creative labor lower acquisition Formula all belongs to the scope of protection of the present invention.
Wherein, the operation of the triggering encryption includes: for the corresponding telephone number of the encrypted object, contact person The predetermined encryption gesture operation of mark or message content region.Certainly, it will be appreciated by persons skilled in the art that needle For the electronic equipment for not having touch screen, the operation of the triggering encryption of acquisition is also possible to: for the encryption pair As corresponding telephone number, identification of contacts or the non-gesture input of message content region operate, such as mouse input, Keyboard input etc., herein without limiting.
When it is described triggering encryption operation be for the corresponding telephone number of the encrypted object, identification of contacts or May include that any one in following operates when the predetermined encryption gesture operation of person's message content region:
(1) operation of the corresponding telephone number of encrypted object described in adopting consecutive click chemical reaction or identification of contacts.For example, connection two Secondary click or the operation for clicking the corresponding telephone number of the encrypted object or identification of contacts three times.
(2) touch operation for the corresponding telephone number of the encrypted object or identification of contacts and touch behaviour The duration of work is greater than first time threshold.For example, the corresponding telephone number of long-pressing encrypted object or identification of contacts Operation, and the operation is continued above certain time.
(3) operation in the region where the corresponding message content of encrypted object described in adopting consecutive click chemical reaction.When the encrypted object For with particular telephone number perhaps the corresponding part messages of particular contact mark or with particular telephone number or spy When determining the partial content of the corresponding particular message of identification of contacts, the message content of the adopting consecutive click chemical reaction encrypted object can be passed through Encryption is triggered in region, such as clicks twice in succession or three times area where the message content text for needing to encrypt Domain.
(4) touch operation for the region where the corresponding message content of the encrypted object and the touch operation Duration is greater than second time threshold.When the encrypted object is that particular telephone number or particular contact mark are corresponding Part messages, or identify with particular telephone number or particular contact the partial content of corresponding particular message When, encryption can be triggered by the message content region of the long-pressing encrypted object, such as pin message content pair Region where the text or picture answered is more than preset time.Wherein, the first time threshold and second time threshold are equal It can be preset by user or system.
(5) operation of the Encryption Options in selection function menu.In this implementation, it can be shown in user interface Function menu, the function menu have Encryption Options, and user can be triggered pair by clicking or touching the Encryption Options The encryption processing operation of encrypted object.
(6) other default gesture operations.For example, at the corresponding identification of contacts of encrypted object or telephone number, or The text of the corresponding message content of encrypted object or the sliding of picture region, input " L " type gesture operation, wherein " L " generation Table " Lock (locking, encryption) ".It is of course also possible to preset operation of other gesture inputs as triggering encryption.
It will be appreciated by persons skilled in the art that the operation of the determining encrypted object and the triggering encryption There is no the successive of certainty to execute sequence for operation.Generally, operation can be first passed through and determine encrypted object, then by preset Encryption of the operation triggering to the encrypted object.It is of course also possible in response to the operation for triggering encrypted object, then by user It determines encrypted object, then executes the encryption to determining encrypted object.The two also may be performed simultaneously.In some applications Under scene, the operation for determining encrypted object and the operation for triggering encryption are also possible to the same operation, such as in a company The triggering of determination and the encryption of encrypted object is completed at the same time in continuous gesture input.
S202, the operation of operation and the triggering encryption in response to the determining encrypted object, to determining institute Encrypted object is stated to be encrypted.
Wherein, the described pair of determining encrypted object, which is encrypted, includes:
The corresponding message content of the encrypted object is hidden, and avoids display reminding message to prompt in the message Hold encryption;Alternatively,
The corresponding message content of the encrypted object is hidden, and display reminding message is for prompting to the message content Encryption.
In one implementation, encryption can be realized by the corresponding message content of concealed encrypted object, and And it will not show any prompting message.It, can also be into after concealed encrypted corresponding message content in another implementation One step display reminding message prompts user's respective encrypted object to encrypt.More specifically, user interface can provide option for Family chooses whether to want display reminding message.
Further, in some embodiments, method provided by the invention can also include (it is not necessary to):
S203 is decrypted the encrypted object aobvious in response to the operation that the encrypted object is decrypted Show.Wherein, dashed-line outer box in Fig. 2 indicate shown in step it is not necessary to there are the step of, those skilled in the art can root According to needing to implement.
Wherein, the operation that the encrypted object is decrypted includes: corresponding for the encrypted object The default decryption gesture operation in region associated by telephone number, identification of contacts or message content.Certainly, art technology For personnel it is understood that for the electronic equipment without touch screen, the operation of the triggering decryption processing of acquisition can also To be: for the non-hand in region associated by the corresponding telephone number of the encrypted object, identification of contacts or message content Gesture input operation, such as mouse input, keyboard input etc., herein without limiting.
When it is described triggering decryption processing operation be for the corresponding telephone number of the encrypted object, identification of contacts or May include that any one in following operates when the predetermined encryption gesture operation in region associated by person's message content:
(1) operation of the corresponding telephone number of encrypted object described in adopting consecutive click chemical reaction or identification of contacts.For example, connection two Secondary click or the operation for clicking the corresponding telephone number of the encrypted object or identification of contacts three times, to trigger to described The decryption processing of encrypted object.
(2) touch operation for the corresponding telephone number of the encrypted object or identification of contacts and touch behaviour The duration of work is greater than third time threshold.For example, the corresponding telephone number of long-pressing encrypted object or identification of contacts Operation, and the operation is continued above certain time.
(3) operation in region associated by the corresponding message content of encrypted object described in adopting consecutive click chemical reaction.When the encryption pair As for particular telephone number perhaps the corresponding part messages of particular contact mark or with particular telephone number or It, can be corresponding by encrypted object described in adopting consecutive click chemical reaction when particular contact identifies the partial content of corresponding particular message Trigger encryption in region associated by message content, wherein region associated by the message content can be encrypted Message content region or region adjacent thereto.When the invention is realized in detail, it will be encrypted even by encryption Object corresponding message content enciphering hiding can also have the message content region in Message Record or chat record Display, although the display user of region can be according in the position for the message not encrypted or message The partial content not encrypted judges the institute of the partial content encrypted in position or message where the message encrypted Region, to complete decryption oprerations to encrypted message content region.Certainly, when the user clicks or touch When the adjoining region in message content corresponding with encrypted object region, decryption oprerations can also be triggered.For example, user's point Hit or touch encryption message preceding a piece of news perhaps the region where rear a piece of news alternatively, user click or touch The content neighbouring with the partial content item that has encrypted in specific message, such as in message when the part content of unencryption, Decryption oprerations can be triggered.
(4) touch operation for region associated by the corresponding message content of the encrypted object and the touch operation Duration be greater than the 4th time threshold.When the encrypted object is to identify phase with particular telephone number or particular contact Corresponding part messages, or identify with particular telephone number or particular contact in the part of corresponding particular message Rong Shi can trigger decryption processing by region associated by the corresponding message content of the long-pressing encrypted object, such as pin and disappear Region where ceasing the corresponding text of content or picture is more than preset time.Wherein, the third time threshold and when the 4th Between threshold value can be preset by user or system.It should be noted that region associated by message content can be by The message content region or region adjacent thereto of encryption.The specific method of determination in region associated by message content can be with Same or similar with the implementation in front portion mode (3), details are not described herein.
(5) operation of clear crytpographic key is inputted.It accordingly, can be close by input encryption when triggering encryption as user Code completes the encryption to encrypted object, similarly, close by input decryption when encrypted object is decrypted in user Code completes the decryption processing to encrypted object.The clear crytpographic key and the Crypted password have corresponding relationship.
(6) other default gesture operations.For example, at the corresponding identification of contacts of encrypted object or telephone number, or The sliding of region associated by the corresponding message content text of encrypted object or picture, inputs U-typed gesture operation, wherein " U " Represent " Unlock (unlock, decryption) ".It is of course also possible to preset operation of other gesture inputs as triggering decryption processing, example Such as, gesture trigger decryption processing identical with encryption gesture.
After receiving the operation that the encrypted object is decrypted, that is, respond the operation to encrypted object into Row decryption processing.Specifically hiding encrypted object is normally shown.
In message encryption method provided by the invention, encrypted object can be selected by user flexibility, and in response to user Encryption trigger action determining encrypted object is encrypted.The encrypted object can be and particular contact or spy Determine all message corresponding to telephone number;Or be particular contact or particular telephone number conversation message content in Specific part content in specific one or specific several message or specific message, can be accurately positioned needs in this way The specifying information of encryption avoids also encrypting the information of unnecessary secrecy, user-friendly.
On the other hand, the present invention can provide a variety of flexile cipher modes, and the corresponding prior art passes through default The single mode that password is encrypted, cipher mode is more diversified, and convenient for the user to operate, and the user experience is improved.
In another aspect, compared with the existing technology can only be by way of inputting password and display is decrypted, the present invention provides It is a variety of to the mode for having encrypted message display being decrypted, inputted without user in the message for receiving All Contacts close Code, user's operation of being more convenient for, the user experience is improved.
Particularly, method provided by the invention can be applied to the message encryption to instant messaging tools, perfect and abundant That is the constantly encryption function of means of communication, significantly reduces the operation of user, improves the flexibility of operation, improve user Experience.
Example devices
After describing the method for exemplary embodiment of the invention, next, with reference to Fig. 3 to the exemplary reality of the present invention Apply mode, be introduced for the device of message encryption, the message encryption device 300 for example may include:
Receiving unit 301 is configured to receive the operation of determining encrypted object and triggers the operation of encryption.
Encryption unit 302 is configured to operation and the triggering encryption in response to the determining encrypted object Operation, is encrypted the determining encrypted object.
Wherein, the receiving unit includes receiving to determine encrypted object operating unit and reception triggering encryption processing operation list Member, wherein the reception determines that encrypted object operating unit specifically includes any one in following:
First receives and determines encrypted object operating unit, be configured to receive will with particular telephone number or specific contact People identifies the operation that corresponding some or all of message is determined as encrypted object;
Second receives and determines encrypted object operating unit, be configured to receive will with particular telephone number or specific contact The partial content that people identifies corresponding particular message is determined as the operation of encrypted object;The identification of contacts includes that phone is logical Identification of contacts in the identification of contacts or instant messaging tools of letter record record.
Wherein, the identification of contacts in the instant messaging tools includes contact name in instant messaging tools, connection It is people ID, remarks title or head portrait.
Wherein, the receiving unit includes receiving to determine encrypted object operating unit and reception triggering encryption processing operation list Member, wherein the reception triggering encryption processing operation unit is configured specifically for:
It receives for the pre- of the corresponding telephone number of the encrypted object, identification of contacts or message content region If encrypting gesture operation to trigger encryption.
Wherein, the reception triggering encryption processing operation unit includes any one in following or multiple subelements:
First receives triggering encryption processing operation subelement, and it is corresponding to be configured to encrypted object described in reception adopting consecutive click chemical reaction The operation of telephone number or identification of contacts;
Second receives triggering encryption processing operation subelement, is configured to receive for the corresponding phone of the encrypted object The duration of the touch operation of number or identification of contacts, the touch operation is greater than first time threshold;
Third receives triggering encryption processing operation subelement, and it is corresponding to be configured to encrypted object described in reception adopting consecutive click chemical reaction The operation in the region where message content;
4th receives triggering encryption processing operation subelement, is configured to receive for the corresponding message of the encrypted object The duration of the touch operation in the region where content, the touch operation is greater than second time threshold;
5th receives triggering encryption processing operation subelement, is configured to receive the Encryption Options in selection function menu Operation.
Wherein, the encryption unit includes:
First encryption unit is configured to hide the corresponding message content of the encrypted object, and display reminding is avoided to disappear Breath is to prompt to encrypt the message content;
Second encryption unit is configured to hide the corresponding message content of the encrypted object, and display reminding message is used The message content has been encrypted in prompt.
Further, described device further include:
Decryption unit 303 is configured to the operation in response to the encrypted object is decrypted, to the encryption Display is decrypted in object.Wherein, unit shown in Fig. 3 dotted line frame is it is not necessary to existing unit.
Wherein, the decryption unit is configured specifically for:
In response to for region associated by the corresponding telephone number of the encrypted object, identification of contacts or message content Default decryption gesture operation, display is decrypted to the encrypted object.
Wherein, the decryption unit specifically includes following any one or more subelements:
First decryption subelement, is configured in response to the corresponding telephone number of encrypted object described in adopting consecutive click chemical reaction or connection It is the operation of people's mark, display is decrypted to the encrypted object.
Second decryption subelement, is configured in response to for the corresponding telephone number of the encrypted object or contact person Display is decrypted to the encrypted object in the touch operation of mark;Wherein, the duration of the touch operation is greater than third Time threshold.
Third decrypts subelement, is configured in response to associated by the corresponding message content of encrypted object described in adopting consecutive click chemical reaction Region operation, display is decrypted to the encrypted object.
4th decryption subelement, is configured in response to for area associated by the corresponding message content of the encrypted object Display is decrypted to the encrypted object in the touch operation in domain;Wherein, when the duration of the touch operation is greater than the 4th Between threshold value.
5th decryption subelement is configured to solve the encrypted object in response to the operation for inputting clear crytpographic key Close display.
It should be noted that although being referred to the several devices or sub-devices of message encryption device in the above detailed description, It is that this division is only not enforceable.In fact, embodiment according to the present invention, two or more above-described dresses The feature and function set can embody in one apparatus.Conversely, the feature and function of an above-described device can be with Further division is to be embodied by multiple devices.
In addition, although describing the operation of the method for the present invention in the accompanying drawings with particular order, this do not require that or Hint must execute these operations in this particular order, or have to carry out shown in whole operation be just able to achieve it is desired As a result.Additionally or alternatively, it is convenient to omit multiple steps are merged into a step and executed by certain steps, and/or by one Step is decomposed into execution of multiple steps.
Although detailed description of the preferred embodimentsthe spirit and principles of the present invention are described by reference to several, it should be appreciated that, this It is not limited to the specific embodiments disclosed for invention, does not also mean that the feature in these aspects cannot to the division of various aspects Combination is benefited to carry out, this to divide the convenience merely to statement.The present invention is directed to cover appended claims spirit and Included various modifications and equivalent arrangements in range.

Claims (5)

1. a kind of message encryption method, comprising:
It receives the operation for determining encrypted object and triggers the operation of encryption;
The operation of operation and the triggering encryption in response to the determining encrypted object, to the determining encrypted object It is encrypted;
Wherein, the determining encrypted object includes:
The partial content for identifying corresponding particular message with particular telephone number or particular contact is determined as encryption pair As;The partial content that corresponding particular message is identified with particular telephone number or particular contact, comprising: specific electricity Talk about the partial content in the specific a piece of news in message corresponding to number or particular contact mark;
The identification of contacts includes contact person's mark in the identification of contacts or instant messaging tools of telephone communication record record Know;
Identification of contacts in the instant messaging tools includes contact name in instant messaging tools, contact person ID, standby Infuse title or head portrait;
It is described triggering encryption operation include:
For the predetermined encryption gesture operation of the corresponding message content region of the encrypted object;
The predetermined encryption gesture operation for the corresponding message content region of the encrypted object includes in following Any one:
The operation in the region where the corresponding message content of encrypted object described in adopting consecutive click chemical reaction;
Touch operation and the touch operation for the region where the corresponding message content of the encrypted object it is lasting when Between be greater than second time threshold;
The operation of Encryption Options in selection function menu;
The described pair of determining encrypted object is encrypted and includes:
The corresponding message content of the encrypted object is hidden, and avoids display reminding message to prompt to add the message content It is close;Alternatively,
The corresponding message content of the encrypted object is hidden, and display reminding message adds the message content for prompting It is close.
2. according to the method described in claim 1, further include:
In response to the operation that the encrypted object is decrypted, display is decrypted to the encrypted object.
3. according to the method described in claim 2, wherein, the operation that the encrypted object is decrypted includes:
For the default decryption gesture operation in region associated by the corresponding message content of the encrypted object.
4. described for area associated by the corresponding message content of the encrypted object according to the method described in claim 3, wherein The default decryption gesture operation in domain includes:
The operation in region associated by the corresponding message content of encrypted object described in adopting consecutive click chemical reaction;
For the touch operation in region associated by the corresponding message content of the encrypted object and continuing for the touch operation Time is greater than the 4th time threshold;
Input the operation of clear crytpographic key.
5. a kind of message encryption device, comprising:
Receiving unit is configured to receive the operation of determining encrypted object and triggers the operation of encryption;
Encryption unit is configured to the operation of operation and the triggering encryption in response to the determining encrypted object, right The determining encrypted object is encrypted;
The receiving unit includes receiving to determine encrypted object operating unit and reception triggering encryption processing operation unit, wherein The reception determines that encrypted object operating unit includes:
Second receives determining encrypted object operating unit, and being configured to reception will be with particular telephone number or particular contact mark The partial content of sensible corresponding particular message is determined as the operation of encrypted object;Described and particular telephone number or specific It is the partial content that people identifies corresponding particular message, comprising: corresponding to particular telephone number or particular contact mark Message in specific a piece of news in partial content;
The identification of contacts includes contact person's mark in the identification of contacts or instant messaging tools of telephone communication record record Know;
Identification of contacts in the instant messaging tools includes contact name in instant messaging tools, contact person ID, standby Infuse title or head portrait;
Wherein, the reception triggering encryption processing operation unit is configured specifically for:
The predetermined encryption gesture operation for the corresponding message content region of the encrypted object is received to trigger at encryption Reason;
The reception triggers encryption processing operation unit
Third receives triggering encryption processing operation subelement, is configured to receive the corresponding message of encrypted object described in adopting consecutive click chemical reaction The operation in the region where content;
4th receives triggering encryption processing operation subelement, is configured to receive for the corresponding message content of the encrypted object The duration of the touch operation in the region at place, the touch operation is greater than second time threshold;
5th receives triggering encryption processing operation subelement, is configured to receive the behaviour of the Encryption Options in selection function menu Make;
Wherein, the encryption unit includes:
First encryption unit is configured to hide the corresponding message content of the encrypted object, and avoid display reminding message with Prompt encrypts the message content;
Second encryption unit is configured to hide the corresponding message content of the encrypted object, and display reminding message is for mentioning Show and the message content is encrypted.
CN201510107122.5A 2015-03-11 2015-03-11 A kind of message encryption method and device Active CN104768148B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510107122.5A CN104768148B (en) 2015-03-11 2015-03-11 A kind of message encryption method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510107122.5A CN104768148B (en) 2015-03-11 2015-03-11 A kind of message encryption method and device

Publications (2)

Publication Number Publication Date
CN104768148A CN104768148A (en) 2015-07-08
CN104768148B true CN104768148B (en) 2019-01-18

Family

ID=53649679

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510107122.5A Active CN104768148B (en) 2015-03-11 2015-03-11 A kind of message encryption method and device

Country Status (1)

Country Link
CN (1) CN104768148B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104954237A (en) * 2015-07-15 2015-09-30 山西佰纳得科技有限公司 Instant massaging method
CN105120074A (en) * 2015-07-20 2015-12-02 陈包容 Information burn-after-reading method and information burn-after-reading device
CN105184183A (en) * 2015-07-30 2015-12-23 努比亚技术有限公司 Chatting record encryption method and mobile terminal
CN105426745B (en) * 2015-10-28 2019-08-06 小米科技有限责任公司 Information display method and device
CN106685791B (en) * 2015-11-06 2021-01-08 北京奇虎科技有限公司 Secret information sending method and device
CN106502502A (en) * 2016-10-31 2017-03-15 深圳市金立通信设备有限公司 A kind of method of locking applications and terminal
CN106650374A (en) * 2016-12-21 2017-05-10 努比亚技术有限公司 Mobile terminal and message check method
CN108540645B (en) * 2018-03-12 2021-01-08 维沃移动通信有限公司 Mobile terminal operation method and mobile terminal
CN112416210A (en) * 2020-11-11 2021-02-26 珠海格力电器股份有限公司 Information encryption and decryption method, system, storage medium and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102497633A (en) * 2011-12-14 2012-06-13 华中科技大学 Protection method for private information in cellphones
CN102624683A (en) * 2011-06-30 2012-08-01 北京小米科技有限责任公司 Method for adding contact person
CN102769699A (en) * 2012-07-05 2012-11-07 天翼电信终端有限公司 Method and system for encrypting cell phone information
CN103095890A (en) * 2012-12-31 2013-05-08 东莞宇龙通信科技有限公司 Contact person information encryption method and communication terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102624683A (en) * 2011-06-30 2012-08-01 北京小米科技有限责任公司 Method for adding contact person
CN102497633A (en) * 2011-12-14 2012-06-13 华中科技大学 Protection method for private information in cellphones
CN102769699A (en) * 2012-07-05 2012-11-07 天翼电信终端有限公司 Method and system for encrypting cell phone information
CN103095890A (en) * 2012-12-31 2013-05-08 东莞宇龙通信科技有限公司 Contact person information encryption method and communication terminal

Also Published As

Publication number Publication date
CN104768148A (en) 2015-07-08

Similar Documents

Publication Publication Date Title
CN104768148B (en) A kind of message encryption method and device
CN106534570B (en) A kind of method for secret protection and device
WO2016045469A1 (en) Information encryption method and mobile terminal
CN104732121A (en) Encryption setting method, decryption setting method and corresponding device of application program
CN104270353B (en) information security transmission method and system, receiving terminal and sending terminal
US10846412B2 (en) Electronic device including display and method of encrypting and decrypting information
CN105981423A (en) Method and apparatus for transmitting and receiving encrypted message between terminals
CN103092484A (en) Method and device and terminal for unlocking screen
KR20100050638A (en) Method and apparatus for ciphering user data
CN101534311A (en) An information security method and procedure
CN105005731A (en) Data encryption and decryption methods and mobile terminal
CN104933343A (en) Secrecy method and apparatus of application program, and electronic device
CN109639702A (en) A kind of data communications method, system and electronic equipment and storage medium
CN103188371A (en) Private communication method and communication terminal
CN106161762A (en) The decryption method of video data
CN106570405A (en) Method and apparatus for performing encryption/decryption on text in input method
EP3203407A1 (en) Information processing method and information processing device
CN103780756B (en) The method of client identification card data secrecy and mobile terminal thereof
CN104751028B (en) The method and device of application program encryption, decryption
CN101754209A (en) Method for protecting contents of mobile phone
CN111818466B (en) Information sending and receiving method and device, electronic equipment and readable storage medium
KR101042227B1 (en) A Method for Preventing from Hacking with Virtual Keyboard
CN106332011B (en) Short message encryption communication method and terminal
CN103002117A (en) Phone information encryption method and phone information encryption system
CN106708366A (en) Mobile terminal desktop application-based protection enabling apparatus and method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant