[go: up one dir, main page]

CN106453052B - Message interaction method and device - Google Patents

Message interaction method and device Download PDF

Info

Publication number
CN106453052B
CN106453052B CN201610899194.2A CN201610899194A CN106453052B CN 106453052 B CN106453052 B CN 106453052B CN 201610899194 A CN201610899194 A CN 201610899194A CN 106453052 B CN106453052 B CN 106453052B
Authority
CN
China
Prior art keywords
message
encrypted
identifier
encryption
display
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
CN201610899194.2A
Other languages
Chinese (zh)
Other versions
CN106453052A (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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201610899194.2A priority Critical patent/CN106453052B/en
Publication of CN106453052A publication Critical patent/CN106453052A/en
Application granted granted Critical
Publication of CN106453052B publication Critical patent/CN106453052B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • H04L51/046Interoperability with other network applications or services
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • G06F21/6245Protecting personal data, e.g. for financial or medical purposes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Theoretical Computer Science (AREA)
  • General Health & Medical Sciences (AREA)
  • General Engineering & Computer Science (AREA)
  • Bioethics (AREA)
  • Health & Medical Sciences (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Medical Informatics (AREA)
  • Computing Systems (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

The disclosure relates to a message interaction method and a message interaction device, and belongs to the technical field of communication. The method comprises the following steps: judging whether a first message is encrypted and displayed or not, wherein the first message is a message to be sent, when the first message is determined to be encrypted and displayed, adding an encryption identifier in the first message to generate a second message, and sending the second message to a target terminal to indicate the target terminal to encrypt and display the first message. According to the method and the device, whether each message to be sent is encrypted to be displayed is judged, and when the message to be sent is determined to be encrypted to be displayed, the target terminal is indicated to encrypt and display the message to be sent, so that the safety and the flexibility of message interaction are improved.

Description

消息交互方法及装置Message interaction method and device

技术领域technical field

本公开涉及通信技术领域,尤其涉及一种消息交互方法及装置。The present disclosure relates to the field of communication technologies, and in particular, to a message interaction method and device.

背景技术Background technique

随着通信技术的发展和用户生活水平的提高,用户生活中所能够使用的终端也越来越多。用户在使用该终端的过程中,为了使该终端实现某些功能,通常需要通过该终端与其它终端之间发送消息,以与该其它终端之间进行交互,因此,亟需一种消息交互方法。With the development of communication technology and the improvement of users' living standards, more and more terminals can be used in the user's life. In the process of using the terminal, in order for the terminal to realize certain functions, it is usually necessary to send messages between the terminal and other terminals to interact with the other terminals. Therefore, a message interaction method is urgently needed. .

相关技术中,为了提高该终端与其它终端的之间消息交互的安全性,保护用户的信息安全,该终端可以设置启动密码,该终端可以在开机启动时提示用户输入该启动密码,当用户输入的启动密码正确时,该终端启动成功,之后,该终端可以接收并显示该其它终端发送的消息。In the related art, in order to improve the security of message interaction between the terminal and other terminals and protect the user's information security, the terminal can set a startup password, and the terminal can prompt the user to input the startup password when the terminal is turned on. When the startup password of the terminal is correct, the terminal is successfully started, and then the terminal can receive and display the messages sent by the other terminals.

发明内容SUMMARY OF THE INVENTION

为克服相关技术中存在的问题,本公开提供一种消息交互方法及装置。In order to overcome the problems existing in the related art, the present disclosure provides a message interaction method and device.

根据本公开实施例的第一方面,提供一种消息交互方法,所述方法包括:According to a first aspect of the embodiments of the present disclosure, there is provided a message interaction method, the method comprising:

判断是否对第一消息进行加密显示,所述第一消息为待发送的消息;judging whether to perform encrypted display on the first message, the first message being a message to be sent;

当确定对所述第一消息进行加密显示时,在所述第一消息中添加加密标识,生成第二消息;When it is determined that the first message is encrypted and displayed, adding an encryption identifier to the first message to generate a second message;

将所述第二消息发送给目标终端,以指示所述目标终端对所述第一消息进行加密显示。The second message is sent to the target terminal to instruct the target terminal to perform encrypted display of the first message.

可选地,所述判断是否对第一消息进行加密显示,包括:Optionally, the judging whether to encrypt and display the first message includes:

当检测到针对所述第一消息的指示加密操作时,确定对所述第一消息进行加密显示。When an instruction encryption operation for the first message is detected, it is determined that the first message is encrypted and displayed.

可选地,所述判断是否对第一消息进行加密显示,包括:Optionally, the judging whether to encrypt and display the first message includes:

当检测到所述第一消息中包括指定字符时,确定对所述第一消息进行加密显示。When it is detected that the first message includes a specified character, it is determined that the first message is encrypted and displayed.

根据本公开实施例的第二方面,提供一种消息交互方法,所述方法包括:According to a second aspect of the embodiments of the present disclosure, there is provided a message interaction method, the method comprising:

接收终端发送的消息;Receive the message sent by the terminal;

检测所述消息中是否携带加密标识;Detecting whether the message carries an encryption identifier;

当所述消息中携带有所述加密标识时,对所述消息进行加密显示。When the message carries the encryption identifier, the message is encrypted and displayed.

可选地,所述对所述消息进行加密显示,包括:Optionally, the encrypted display of the message includes:

显示加密消息图标,所述加密消息图标用于指示所述消息为加密的消息;displaying an encrypted message icon, where the encrypted message icon is used to indicate that the message is an encrypted message;

当基于所述加密消息图标接收到指定操作时,显示用户隐私保护界面;When a specified operation is received based on the encrypted message icon, a user privacy protection interface is displayed;

当基于所述用户隐私保护界面接收到解密操作时,显示所述消息的消息内容。When a decryption operation is received based on the user privacy protection interface, the message content of the message is displayed.

可选地,所述方法还包括:Optionally, the method further includes:

显示加密方式设置提示信息,所述加密方式设置提示信息中包括至少一种加密方式;displaying encryption mode setting prompt information, wherein the encryption mode setting prompt information includes at least one encryption mode;

接收加密方式选择指令,所述加密方式选择指令指示所述至少一种加密方式中的一种加密方式;receiving an encryption mode selection instruction, the encryption mode selection instruction indicating an encryption mode in the at least one encryption mode;

确定通过所述加密方式选择指令所指示的加密方式对所述消息进行加密显示。It is determined that the message is encrypted and displayed in the encryption mode indicated by the encryption mode selection instruction.

根据本公开实施例的第三方面,提供一种消息交互装置,所述装置包括:According to a third aspect of the embodiments of the present disclosure, there is provided a message interaction apparatus, the apparatus comprising:

判断模块,用于判断是否对第一消息进行加密显示,所述第一消息为待发送的消息;a judgment module for judging whether to encrypt and display a first message, the first message being a message to be sent;

添加模块,用于当确定对所述第一消息进行加密显示时,在所述第一消息中添加加密标识,生成第二消息;The adding module is configured to add an encryption identifier to the first message to generate a second message when it is determined that the first message is encrypted and displayed;

发送模块,用于将所述第二消息发送给目标终端,以指示所述目标终端对所述第一消息进行加密显示。A sending module, configured to send the second message to a target terminal to instruct the target terminal to encrypt and display the first message.

可选地,所述判断模块包括:Optionally, the judging module includes:

第一确定子模块,用于当检测到针对所述第一消息的指示加密操作时,确定对所述第一消息进行加密显示;或者,a first determining submodule, configured to determine to perform encrypted display on the first message when an indicated encryption operation for the first message is detected; or,

第二确定子模块,用于当检测到所述第一消息中包括指定字符时,确定对所述第一消息进行加密显示。The second determination submodule is configured to determine to perform encrypted display on the first message when it is detected that the first message includes a specified character.

根据本公开实施例的第四方面,提供一种消息交互装置,所述装置包括:According to a fourth aspect of the embodiments of the present disclosure, there is provided a message interaction apparatus, the apparatus comprising:

第一接收模块,用于接收终端发送的消息;a first receiving module, configured to receive a message sent by the terminal;

检测模块,用于检测所述消息中是否携带加密标识;a detection module, configured to detect whether the message carries an encryption identifier;

第一显示模块,用于当所述消息中携带有所述加密标识时,对所述消息进行加密显示。The first display module is configured to perform encrypted display on the message when the encrypted identifier is carried in the message.

可选地,所述第一显示模块包括:Optionally, the first display module includes:

第一显示子模块,用于显示加密消息图标,所述加密消息图标用于指示所述消息为加密的消息;a first display submodule for displaying an encrypted message icon, where the encrypted message icon is used to indicate that the message is an encrypted message;

第二显示子模块,用于当基于所述加密消息图标接收到指定操作时,显示用户隐私保护界面;a second display submodule, configured to display a user privacy protection interface when a specified operation is received based on the encrypted message icon;

第三显示子模块,用于当基于所述用户隐私保护界面接收到解密操作时,显示所述消息的消息内容。The third display submodule is configured to display the message content of the message when a decryption operation is received based on the user privacy protection interface.

可选地,所述装置还包括:Optionally, the device further includes:

第二显示模块,用于显示加密方式设置提示信息,所述加密方式设置提示信息中包括至少一种加密方式;a second display module, configured to display encryption mode setting prompt information, wherein the encryption mode setting prompt information includes at least one encryption mode;

第二接收模块,用于接收加密方式选择指令,所述加密方式选择指令指示所述至少一种加密方式中的一种加密方式;a second receiving module, configured to receive an encryption mode selection instruction, wherein the encryption mode selection instruction indicates an encryption mode in the at least one encryption mode;

确定模块,用于确定通过所述加密方式选择指令所指示的加密方式对所述消息进行加密显示。A determining module, configured to determine that the message is encrypted and displayed by using the encryption mode indicated by the encryption mode selection instruction.

根据本公开实施例的第五方面,提供一种消息交互装置,所述装置包括:According to a fifth aspect of the embodiments of the present disclosure, there is provided a message interaction apparatus, the apparatus comprising:

处理器;processor;

用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;

其中,所述处理器被配置为:wherein the processor is configured to:

判断是否对第一消息进行加密显示,所述第一消息为待发送的消息;judging whether to perform encrypted display on the first message, the first message being a message to be sent;

当确定对所述第一消息进行加密显示时,在所述第一消息中添加加密标识,生成第二消息;When it is determined that the first message is encrypted and displayed, adding an encryption identifier to the first message to generate a second message;

将所述第二消息发送给目标终端,以指示所述目标终端对所述第一消息进行加密显示。The second message is sent to the target terminal to instruct the target terminal to perform encrypted display of the first message.

根据本公开实施例的第六方面,提供一种消息交互装置,所述装置包括:According to a sixth aspect of the embodiments of the present disclosure, there is provided a message interaction apparatus, the apparatus comprising:

处理器;processor;

用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;

其中,所述处理器被配置为:wherein the processor is configured to:

接收终端发送的消息;Receive the message sent by the terminal;

检测所述消息中是否携带加密标识;Detecting whether the message carries an encryption identifier;

当所述消息中携带有所述加密标识时,对所述消息进行加密显示。When the message carries the encryption identifier, the message is encrypted and displayed.

本公开的实施例提供的技术方案可以包括以下有益效果:在本公开实施例中,判断是否对第一消息进行加密显示,也即是,对于每个待发送的消息,都可以判断是否对该消息进行加密显示,提高了消息交互的安全性和灵活性。当确定对第一消息进行加密显示时,可以在第一消息中添加加密标识,从而指示接收到该第一消息的目标终端对该第一消息进行加密显示,由于不需要事先将对应的解密方式发送给该目标终端,避免了该解密方式被其它用户获取得到,进而提高了消息交互的安全性。The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects: in the embodiments of the present disclosure, it is judged whether to encrypt and display the first message, that is, for each message to be sent, it can be judged whether the first message is encrypted and displayed. The message is encrypted and displayed, which improves the security and flexibility of message interaction. When it is determined that the first message is encrypted and displayed, an encryption identifier may be added to the first message, thereby instructing the target terminal that receives the first message to perform encrypted display of the first message. Sending to the target terminal prevents the decryption method from being acquired by other users, thereby improving the security of message interaction.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.

附图说明Description of drawings

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本发明的实施例,并与说明书一起用于解释本发明的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description serve to explain the principles of the invention.

图1A是根据一示例性实施例示出的一种消息交互系统架构图。FIG. 1A is an architecture diagram of a message interaction system according to an exemplary embodiment.

图1B是根据一示例性实施例示出的一种消息交互方法的流程图。Fig. 1B is a flow chart of a message interaction method according to an exemplary embodiment.

图2是根据一示例性实施例示出的另一种消息交互方法的流程图。Fig. 2 is a flow chart of another message interaction method according to an exemplary embodiment.

图3A是根据一示例性实施例示出的又一种消息交互方法的流程图。Fig. 3A is a flow chart of yet another message interaction method according to an exemplary embodiment.

图3B是根据一示例性实施例示出的一种终端的显示界面示意图。FIG. 3B is a schematic diagram of a display interface of a terminal according to an exemplary embodiment.

图3C是根据一示例性实施例示出的一种目标终端的显示界面示意图。FIG. 3C is a schematic diagram of a display interface of a target terminal according to an exemplary embodiment.

图3D是根据一示例性实施例示出的另一种目标终端的显示界面示意图。FIG. 3D is a schematic diagram of a display interface of another target terminal according to an exemplary embodiment.

图3E是根据一示例性实施例示出的又一种目标终端的显示界面示意图。FIG. 3E is a schematic diagram of a display interface of yet another target terminal according to an exemplary embodiment.

图3F是根据一示例性实施例示出的又一种目标终端的显示界面示意图。FIG. 3F is a schematic diagram of a display interface of yet another target terminal according to an exemplary embodiment.

图3G是根据一示例性实施例示出的又一种目标终端的显示界面示意图。FIG. 3G is a schematic diagram of a display interface of yet another target terminal according to an exemplary embodiment.

图4是根据一示例性实施例示出的一种消息交互装置的结构示意图。Fig. 4 is a schematic structural diagram of a message interaction apparatus according to an exemplary embodiment.

图5是根据一示例性实施例示出的另一种消息交互装置的结构示意图。Fig. 5 is a schematic structural diagram of another message interaction apparatus according to an exemplary embodiment.

图6是根据一示例性实施例示出的又一种消息交互装置的结构示意图。Fig. 6 is a schematic structural diagram of yet another message interaction apparatus according to an exemplary embodiment.

图7是根据一示例性实施例示出的又一种消息交互装置的结构示意图。FIG. 7 is a schematic structural diagram of yet another message interaction apparatus according to an exemplary embodiment.

具体实施方式Detailed ways

这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本发明相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本发明的一些方面相一致的装置和方法的例子。Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. Where the following description refers to the drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the illustrative examples below are not intended to represent all implementations consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with some aspects of the invention as recited in the appended claims.

图1A是根据一示例性实施例示出的一种即时通信系统架构图,参照图1A,该即时通信系统包括终端01、服务器02和目标终端03,终端01、服务器02和目标终端03之间可以通过网络连接。FIG. 1A is an architecture diagram of an instant messaging system according to an exemplary embodiment. Referring to FIG. 1A , the instant messaging system includes a terminal 01, a server 02 and a target terminal 03. Connect via network.

终端01和目标终端03可以是手机、电脑、智能手表、智能眼镜等能够安装能够发送和接收消息的应用从而实现消息交互的电子设备,终端01可以通过服务器02向目标终端03发送消息,并接收目标终端03发送的消息。该服务器02可以是终端01和目标终端03的服务器,当然也可以是终端01和该目标终端03中安装的用于发送或接收消息的能够发送和接收消息的应用的服务器。Terminal 01 and target terminal 03 can be electronic devices such as mobile phones, computers, smart watches, smart glasses, etc. that can install applications that can send and receive messages to realize message interaction. Terminal 01 can send messages to target terminal 03 through server 02 and receive them. The message sent by the target terminal 03. The server 02 may be the server of the terminal 01 and the target terminal 03, and of course may also be the server of an application capable of sending and receiving messages installed in the terminal 01 and the target terminal 03 for sending or receiving messages.

以终端01向目标终端03发送消息为例,当终端01接收到消息发送指令时,向目标终端03发送消息,并在该消息中携带加密标识;当目标终端03接收到该消息且检测到该消息中携带有该加密标识时,可以对该消息加密显示。Taking the terminal 01 sending a message to the target terminal 03 as an example, when the terminal 01 receives the message sending instruction, it sends a message to the target terminal 03 and carries the encrypted identifier in the message; when the target terminal 03 receives the message and detects the When the encryption identifier is carried in the message, the message can be encrypted and displayed.

图1B是根据一示例性实施例示出的一种消息交互方法的流程图,参照图1B,该方法用于终端中,包括以下步骤。Fig. 1B is a flowchart showing a message interaction method according to an exemplary embodiment. Referring to Fig. 1B, the method is used in a terminal and includes the following steps.

在步骤101中,判断是否对第一消息进行加密显示,该第一消息为待发送的消息;In step 101, it is judged whether to encrypt and display the first message, which is the message to be sent;

在步骤102中,当确定对该第一消息进行加密显示时,在该第一消息中添加加密标识,生成第二消息;In step 102, when it is determined that the first message is encrypted and displayed, an encryption identifier is added to the first message to generate a second message;

在步骤103中,将该第二消息发送给目标终端,以指示该目标终端对该第一消息进行加密显示。In step 103, the second message is sent to the target terminal to instruct the target terminal to perform encrypted display of the first message.

在本公开实施例中,该终端能够判断是否对第一消息进行加密显示,也即是,对于该终端中每个待发送的消息,终端都可以判断是否对该消息进行加密显示,提高了消息交互的安全性和灵活性。当确定对第一消息进行加密显示时,该终端可以在第一消息中添加加密标识,从而指示接收到该第一消息的目标终端对该第一消息进行加密显示,由于不需要事先将对应的解密方式发送给该目标终端,避免了该解密方式被其它用户获取得到,进而提高了消息交互的安全性。In the embodiment of the present disclosure, the terminal can determine whether to perform encrypted display on the first message, that is, for each message to be sent in the terminal, the terminal can determine whether to perform encrypted display on the message, which improves the message Security and flexibility of interaction. When it is determined that the first message is to be encrypted and displayed, the terminal may add an encryption identifier to the first message, thereby instructing the target terminal that receives the first message to perform encrypted display of the first message. The decryption method is sent to the target terminal to prevent the decryption method from being acquired by other users, thereby improving the security of message interaction.

可选地,判断是否对第一消息进行加密显示,包括:Optionally, judging whether to encrypt and display the first message, including:

当检测到针对该第一消息的指示加密操作时,确定对该第一消息进行加密显示。When an instruction encryption operation for the first message is detected, it is determined that the first message is encrypted and displayed.

可选地,判断是否对第一消息进行加密显示,包括:Optionally, judging whether to encrypt and display the first message, including:

当检测到该第一消息中包括指定字符时,确定对该第一消息进行加密显示。When it is detected that the first message includes the specified character, it is determined that the first message is encrypted and displayed.

上述所有可选技术方案,均可按照任意结合形成本公开的可选实施例,本公开实施例对此不再一一赘述。All the above-mentioned optional technical solutions can be combined to form optional embodiments of the present disclosure, which are not repeated in the embodiments of the present disclosure.

图2是根据一示例性实施例示出的一种即时通信方法的流程图,参照图2,该方法用于目标终端中,包括以下步骤。FIG. 2 is a flow chart of an instant messaging method according to an exemplary embodiment. Referring to FIG. 2 , the method used in a target terminal includes the following steps.

在步骤201中,接收终端发送的消息;In step 201, a message sent by a terminal is received;

在步骤202中,检测该消息中是否携带加密标识;In step 202, detect whether the message carries an encryption identifier;

在步骤203中,当该消息中携带有该加密标识时,对该消息进行加密显示。In step 203, when the message carries the encryption identifier, the message is encrypted and displayed.

在本公开实施例中,该目标终端能够在接收到终端发送的消息时,检测该该消息中是否携带加密标识,进而确定是否对该消息进行加密显示,因此,对于接收到的每个消息,该目标终端都可以在该消息携带该加密标识时,对该消息进行加密显示,提高了消息交互的安全性和灵活性。且由于是通过该终端在消息中添加加密标识,从而该目标终端在接收到该消息时对该第一消息进行加密显示,因此不需要事先从该终端中获取解密方式,避免了该解密方式被其它用户获取得到,进而提高了消息交互的安全性。In the embodiment of the present disclosure, when receiving a message sent by the terminal, the target terminal can detect whether the message carries an encryption identifier, and then determine whether to display the message encrypted. Therefore, for each received message, The target terminal can encrypt and display the message when the message carries the encrypted identifier, which improves the security and flexibility of message interaction. And because the terminal adds an encryption identifier to the message, the target terminal encrypts and displays the first message when receiving the message, so there is no need to obtain the decryption method from the terminal in advance, which avoids the decryption method being used. Other users can obtain it, thereby improving the security of message interaction.

可选地,对该消息进行加密显示,包括:Optionally, the encrypted display of the message includes:

显示加密消息图标,该加密消息图标用于指示该消息为加密的消息;Display an encrypted message icon, which is used to indicate that the message is an encrypted message;

当基于该加密消息图标接收到指定操作时,显示用户隐私保护界面;When a specified operation is received based on the encrypted message icon, a user privacy protection interface is displayed;

当基于该用户隐私保护界面接收到解密操作时,显示该消息的消息内容。When a decryption operation is received based on the user privacy protection interface, the message content of the message is displayed.

可选地,该方法还包括:Optionally, the method further includes:

显示加密方式设置提示信息,该加密方式设置提示信息中包括至少一种加密方式;Displaying prompt information of encryption mode setting, the prompt information of encryption mode setting includes at least one encryption mode;

接收加密方式选择指令,该加密方式选择指令指示该至少一种加密方式中的一种加密方式;receiving an encryption mode selection instruction, the encryption mode selection instruction indicating an encryption mode in the at least one encryption mode;

确定通过该加密方式选择指令所指示的加密方式对该消息进行加密显示。It is determined that the message is encrypted and displayed in the encryption mode indicated by the encryption mode selection instruction.

上述所有可选技术方案,均可按照任意结合形成本公开的可选实施例,本公开实施例对此不再一一赘述。All the above-mentioned optional technical solutions can be combined to form optional embodiments of the present disclosure, which are not repeated in the embodiments of the present disclosure.

图3A是根据一示例性实施例示出的一种即时通信方法的流程图,参照图3A,该即时通信方法用于终端与目标终端的交互中,包括以下步骤。FIG. 3A is a flowchart of an instant messaging method according to an exemplary embodiment. Referring to FIG. 3A , the instant messaging method used in the interaction between a terminal and a target terminal includes the following steps.

在步骤301中,该终端获取第一消息,该第一消息为待发送的消息。In step 301, the terminal acquires a first message, where the first message is a message to be sent.

为了确保该终端可以向其它终端发送消息,从而与其它终端进行交互,该终端可以获取待发送的消息,并将该消息作为第一消息。In order to ensure that the terminal can send messages to other terminals, thereby interacting with other terminals, the terminal can acquire the message to be sent, and use the message as the first message.

其中,该终端可以在接收到消息发送指令时,获取该第一消息。Wherein, the terminal may acquire the first message when receiving the message sending instruction.

需要说明的是,该消息发送指令可以是基于该终端安装的任一能够发送和接收消息的应用所触发,以指示该终端向其他终端发送消息,该消息发送指令可以由用户通过执行预设操作触发,该消息发送指令可以由用户通过执行预设操作触发,该预设操作可以是点击操作、滑动操作、触摸操作、按键操作等操作,当然,在实际应用中,该预设操作还可以是其它操作。It should be noted that the message sending instruction may be triggered based on any application installed on the terminal capable of sending and receiving messages, so as to instruct the terminal to send messages to other terminals, and the message sending instruction may be performed by the user by performing a preset operation. Triggered, the message sending instruction can be triggered by the user performing a preset operation, and the preset operation can be a click operation, a sliding operation, a touch operation, a key operation, etc. Of course, in practical applications, the preset operation can also be other operations.

还需要说明的是,该终端可以在获取第一消息之前,在该在终端中安装得到至少一个能够发送和接收消息的应用。It should also be noted that, before acquiring the first message, the terminal may install at least one application capable of sending and receiving messages in the terminal.

其中,该消息可以是文字消息、多媒体消息等通信消息,比如即时通信消息,当然,该消息也可以是用于请求与其它终端建立通信信道的请求消息或信令消息,比如来电请求消息、语音通信请求消息或视频通信请求消息等,当然,在实际应用中,该消息还可以是其它该终端能够发送给其它终端的消息。The message may be a communication message such as a text message, a multimedia message, etc., such as an instant messaging message, and of course, the message may also be a request message or signaling message for requesting to establish a communication channel with other terminals, such as an incoming call request message, a voice message A communication request message or a video communication request message, etc. Of course, in practical applications, the message may also be other messages that the terminal can send to other terminals.

进一步地,为了准确地将第一消息发送给目标终端,该消息发送指令中还可以携带目标终端标识,该目标终端标识用于唯一标识一个目标终端,该目标终端标识可以是该目标终端的IP(Internet Protocol,网际协议)地址、MAC(Media Access Control,媒体访问控制)地址,当然,在实际应用中,该目标终端标识还可以是其它能够唯一标识该目标终端的标识。Further, in order to accurately send the first message to the target terminal, the message sending instruction can also carry the target terminal identifier, the target terminal identifier is used to uniquely identify a target terminal, and the target terminal identifier can be the IP address of the target terminal. (Internet Protocol, Internet Protocol) address, MAC (Media Access Control, Media Access Control) address, of course, in practical applications, the target terminal identifier may also be other identifiers that can uniquely identify the target terminal.

另外,由于该消息发送指令可以是基于该终端安装的任一能够发送和接收消息的应用所触发,因此,该消息发送指令中也可以不携带目标终端标识,而是携带目标联系人标识,该目标联系人标识可以为当前登录该目标终端中的能够发送和接收消息的应用中的联系人标识,该联系人标识可以是用户ID(Identification,身份证)、用户昵称等。In addition, since the message sending instruction may be triggered based on any application installed on the terminal capable of sending and receiving messages, the message sending instruction may also not carry the target terminal identifier, but carry the target contact identifier. The target contact identifier may be a contact identifier in an application capable of sending and receiving messages currently logged into the target terminal, and the contact identifier may be a user ID (Identification, identity card), a user nickname, or the like.

在步骤302中,该终端判断是否对该第一消息进行加密显示。In step 302, the terminal determines whether to perform encrypted display of the first message.

由于该终端发送给该目标终端的消息中可能会包括个人隐私等比较重要的信息,因此为了保护用户隐私安全,提高该终端与其它终端进行消息交互的安全性,同时提高对该消息交互过程进行保护的灵活性,对于该终端发送的任一第一消息,该终端可以判断是否对第一消息进行加密显示。Since the message sent by the terminal to the target terminal may include more important information such as personal privacy, in order to protect the privacy of the user, the security of the message interaction between the terminal and other terminals is improved, and the process of the message interaction is improved. The flexibility of protection, for any first message sent by the terminal, the terminal can determine whether to encrypt and display the first message.

进一步地,为了提高该终端判断是否对第一消息进行加密显示的准确率,该终端可以通过下述两种可能的实现方式来判断是否对第一消息进行加密显示:Further, in order to improve the accuracy rate with which the terminal judges whether to encrypt and display the first message, the terminal can judge whether to encrypt and display the first message through the following two possible implementations:

第一种可能的实现方式,当检测到针对该第一消息的指示加密操作时,该终端确定对第一消息进行加密显示。In a first possible implementation manner, the terminal determines to perform encrypted display of the first message when detecting an encrypted operation of the instruction for the first message.

其中,该指示加密操作可以由用户在确定对第一消息进行加密显示时执行,该指示加密操作可以是点击操作、滑动操作、触摸操作、按键操作等操作,当然,在实际应用中,该指示加密操作还可以是其它操作。The instruction encryption operation may be performed by the user when the user determines to encrypt and display the first message, and the instruction encryption operation may be a click operation, a sliding operation, a touch operation, a key operation and other operations. Of course, in practical applications, the instruction encryption operation The cryptographic operations can also be other operations.

需要说明的是,为了便于该终端检测该指示加密操作,提高确定是否对该消息进行加密的准确性,该终端还可以显示在检测该指示加密操作之前,显示加密提示信息,并可以根据该加密提示信息对该指示加密操作进行检测。It should be noted that, in order to facilitate the terminal to detect the instruction encryption operation and improve the accuracy of determining whether to encrypt the message, the terminal may also display encryption prompt information before detecting the instruction encryption operation, and can display encryption prompt information according to the encryption operation. The prompt information detects the indicated encryption operation.

还需要说明的是,该终端可以通过窗口或弹窗等方式显示该加密提示信息,本公开实施例对此加密提示信息的显示方式不做具体限定。It should also be noted that the terminal may display the encrypted prompt information through a window or a pop-up window, and the embodiment of the present disclosure does not specifically limit the display method of the encrypted prompt information.

例如,该终端可以显示如图3B所示的界面,该显示界面中包括联系人输入框、消息输入框、是否加密复选框和发送按钮,该终端可以基于该联系人输入框接收用户输入的目标联系人标识,基于该消息输入框接收用户输入的待发送的消息,当该终端基于该发送按钮接收到点击操作时,可以触发该消息发送指令,当该终端检测到该是否加密复选框被选中时,确定对该消息进行加密显示。For example, the terminal can display an interface as shown in FIG. 3B , the display interface includes a contact input box, a message input box, an encryption check box and a send button, and the terminal can receive user input based on the contact input box. Target contact identifier, based on the message input box to receive the message to be sent input by the user, when the terminal receives a click operation based on the send button, it can trigger the message sending instruction, when the terminal detects the encryption check box When selected, determines the encrypted display of the message.

还需要说明的是,当没有检测到该指示加密操作时,该终端可以确定不对该消息进行加密显示。It should also be noted that, when no encryption operation is detected, the terminal may determine that the message is not encrypted and displayed.

第二种可能的实现方式,为了减少用户与该终端的交互次数,提高该终端确定是否对该消息进行加密显示的效率,当该终端检测到第一消息中包括指定字符时,确定对第一消息进行加密显示。In the second possible implementation manner, in order to reduce the number of interactions between the user and the terminal and improve the efficiency of the terminal in determining whether to encrypt and display the message, when the terminal detects that the first message includes specified characters, it determines that the first message contains the specified characters. The message is displayed encrypted.

其中,该指定字符可以由该终端在检测第一消息中是否包括指定字符之前确定,比如一种可能的实现策略为,该终端显示指定字符输入提示信息,当基于该指定字符输入提示信息接收到用户输入的字符时,将接收到的字符确定为该指定字符。该指定字符可以包括“账号”、“密码”、“网银”、“银行”、“资产”、“机密”等,当然,在实际应用中,该指定字符还可以包括其它字符。The designated character may be determined by the terminal before detecting whether the first message includes the designated character. For example, a possible implementation strategy is that the terminal displays the designated character input prompt information, and when the designated character input prompt information is received based on the designated character input prompt information When a character is input by the user, the received character is determined as the specified character. The specified characters may include "account number", "password", "online banking", "bank", "assets", "confidential", etc. Of course, in practical applications, the specified characters may also include other characters.

还需要说明的是,该终端可以通过窗口或弹窗等方式显示该加密提示信息,本公开实施例对此指定字符输入提示信息的显示方式不做具体限定。It should also be noted that the terminal may display the encrypted prompt information through a window or a pop-up window, and the embodiment of the present disclosure does not specifically limit the display method of the input prompt information for the specified characters.

例如,消息1的内容为:“我的银行账号是XXXXXX,密码是XXXXXX”,则该终端检测到消息1中包括“银行”、“账号”和“密码”,因此,该终端确定对消息1进行加密。For example, the content of message 1 is: "My bank account number is XXXXXX, and the password is XXXXXX", then the terminal detects that message 1 includes "bank", "account number" and "password", therefore, the terminal determines that the message 1 to encrypt.

还需要说明的是,当该终端检测到第一消息中不包括指定字符时,可以确定不对第一消息进行加密。It should also be noted that when the terminal detects that the first message does not include the specified character, it may determine that the first message is not encrypted.

另外,该终端也可以通过其它方式来判断是否对该即时通信消息进行加密,比如,另一种可能的实现方式,当消息发送指令中携带的目标终端标识为指定终端标识或携带的目标联系人标识为指定联系人标识时,确定对第一消息进行加密显示。In addition, the terminal can also determine whether to encrypt the instant communication message in other ways. For example, in another possible implementation, when the target terminal identifier carried in the message sending instruction is the designated terminal identifier or the target contact carried When the identifier is the identifier of the designated contact, it is determined that the first message is encrypted and displayed.

其中,该终端可以在判断是否对第一消息进行加密显示之前,接收用户指定的终端标识或联系人标识,并将接收到的终端标识确定为该指定目标终端标识或者将接收到的联系人标识确定为该指定联系人标识。The terminal may, before judging whether to encrypt and display the first message, receive the terminal identification or contact identification specified by the user, and determine the received terminal identification as the designated target terminal identification or the received contact identification. Determine the ID for the specified contact.

在步骤303中,当该终端确定对该第一消息进行加密显示时,在该第一消息中添加加密标识,生成第二消息。In step 303, when the terminal determines to perform encrypted display on the first message, an encrypted identifier is added to the first message to generate a second message.

由于需要对第一消息进行加密显示,所以可以在第一消息中添加加密标识,生成携带加密标识的第二消息。Since the first message needs to be encrypted and displayed, an encrypted identifier may be added to the first message to generate a second message carrying the encrypted identifier.

其中,该加密标识用于说明第一消息为需要加密的消息,该加密标识可以是一个字符,比如布尔值1、+等,本公开实施例对该字符的形式不做具体限定。The encryption identifier is used to indicate that the first message is a message that needs to be encrypted, and the encryption identifier may be a character, such as a Boolean value of 1, +, etc. The form of the character is not specifically limited in the embodiments of the present disclosure.

需要说明的是,该终端可以在在该第一消息中添加加密标识之前,确定该加密标识,比如,一种可能实现策略为,该终端可以接收用户输入的字符,并将接收到的字符确定为该加密标识,当然,在实际应用中,该终端还可以通过其它方式确定加密标识,本公开实施例对确定该加密标识的方式同样不做具体限定。It should be noted that the terminal can determine the encrypted identifier before adding the encrypted identifier to the first message. For example, a possible implementation strategy is that the terminal can receive the characters input by the user, and determine the received characters. For the encrypted identifier, of course, in practical applications, the terminal may also determine the encrypted identifier in other ways, and the embodiment of the present disclosure also does not specifically limit the method of determining the encrypted identifier.

另外,在另一种可能的实现策略中,该终端向该目标终端发送的所有消息中均携带该加密标识,其中,当该终端确定对该消息加密时,在该消息中携带第一加密标识,当该终端确定不对该消息加密时,在该消息中携带第二加密标识,比如,第一加密标识可以为布尔值1,第二加密标识可以为布尔值0,或者第一加密标识可以为+,第二加密标识可以为-。当然,在实际应用中,该第一加密标识和该第二加密标识还可以是其它字符,本公开实施例对此不做具体限定。In addition, in another possible implementation strategy, all messages sent by the terminal to the target terminal carry the encryption identifier, wherein when the terminal determines to encrypt the message, the message carries the first encryption identifier , when the terminal determines not to encrypt the message, it carries a second encryption identifier in the message, for example, the first encryption identifier can be Boolean value 1, the second encryption identifier can be Boolean value 0, or the first encryption identifier can be +, the second encryption identifier can be -. Of course, in practical applications, the first encrypted identifier and the second encrypted identifier may also be other characters, which are not specifically limited in this embodiment of the present disclosure.

在步骤304中,该终端将该第二消息发送给该目标终端,以指示该目标终端对该第一消息进行加密显示。In step 304, the terminal sends the second message to the target terminal to instruct the target terminal to perform encrypted display of the first message.

由于当需要对第一消息进行加密显示时,如果由该终端对第一消息进行加密,再将加密后的第一消息发送给目标终端,则为了确保该目标终端的用户能够获取到第一消息的消息内容,该终端需要事先将对应的解密方式发送给该目标终端,不仅降低了消息交互的效率,而且该解密方式也可能被其它用户获取得到,进而降低了消息交互的安全性。所以为了提高消息交互的效率和安全性,当需要对第一消息进行加密显示时,该终端指示该目标终端对第一消息进行加密。Because when the first message needs to be encrypted and displayed, if the terminal encrypts the first message and then sends the encrypted first message to the target terminal, in order to ensure that the user of the target terminal can obtain the first message The terminal needs to send the corresponding decryption method to the target terminal in advance, which not only reduces the efficiency of message interaction, but also the decryption method may be obtained by other users, thereby reducing the security of message interaction. Therefore, in order to improve the efficiency and security of message interaction, when the first message needs to be encrypted and displayed, the terminal instructs the target terminal to encrypt the first message.

其中,该终端可以通过服务器,基于该目标终端标识或该目标联系人标识,将该第二消息发送给该目标终端。Wherein, the terminal may send the second message to the target terminal through the server based on the target terminal identifier or the target contact identifier.

在步骤305中,该目标终端接收该终端发送的消息。In step 305, the target terminal receives the message sent by the terminal.

为了实现该终端与该目标终端之间的消息交互,该目标终端可以接收该终端发送的消息。In order to realize the message interaction between the terminal and the target terminal, the target terminal may receive the message sent by the terminal.

需要说明的是,该目标终端接收到的消息也能为第一消息,也可能为第二消息,即该目标终端接收到的消息可能携带加密标识,也可能不携带加密标识,因此,该目标终端在接收到该终端发送的消息之后,可以执行步骤306来检测该消息中是否携带有该加密标识。It should be noted that the message received by the target terminal may also be the first message or the second message, that is, the message received by the target terminal may or may not carry an encrypted identifier. Therefore, the target terminal may not carry an encrypted identifier. After receiving the message sent by the terminal, the terminal may perform step 306 to detect whether the message carries the encrypted identifier.

在步骤306中,该目标终端检测该消息中是否携带加密标识。In step 306, the target terminal detects whether the message carries an encryption identifier.

由于该消息的消息内容中可能包括比较重要的信息,因此,为了确保用户的隐私安全,提高信息交互的安全性,该目标终端可以检测该消息中是否携带该加密标识。Since the message content of the message may include relatively important information, the target terminal may detect whether the message carries the encrypted identifier in order to ensure the privacy of the user and improve the security of information interaction.

例如,该加密标识为布尔值1,该目标终端接收到消息1,因此,该目标终端可以检测该消息1中是否携带该布尔值1。For example, the encryption identifier is a Boolean value of 1, and the target terminal receives the message 1. Therefore, the target terminal can detect whether the Boolean value of 1 is carried in the message 1.

在步骤307中,当该消息中携带有该加密标识时,对该消息进行加密显示。In step 307, when the message carries the encryption identifier, the message is encrypted and displayed.

由于该消息中携带有该加密标识,说明该消息中包括有比较重要的信息,因此,为了确保用户隐私安全,提高消息交互的安全性,该目标终端可以对该消息进行加密显示。Since the encrypted identifier is carried in the message, it indicates that the message contains relatively important information. Therefore, in order to ensure user privacy and improve the security of message interaction, the target terminal can encrypt and display the message.

其中,该目标终端可以在对该消息进行加密显示之前,确定对该消息进行加密显示的加密方式,比如,一种可能的实现方式为,该目标终端显示加密方式设置提示信息,该加密方式设置提示信息中包括该目标终端当前所支持的至少一种加密方式,该终端接收加密方式选择指令,该加密方式选择指令指示该至少一种加密方式中的一种加密方式,确定通过该加密方式选择指令所指示的加密方式对该消息进行加密显示。The target terminal may determine an encryption method for encrypting and displaying the message before the message is encrypted and displayed. For example, a possible implementation method is that the target terminal displays an encryption method setting prompt message, and the encryption method is set The prompt information includes at least one encryption mode currently supported by the target terminal, the terminal receives an encryption mode selection instruction, and the encryption mode selection instruction indicates an encryption mode in the at least one encryption mode, and determines to select an encryption mode through the encryption mode The message is encrypted and displayed in the encryption mode indicated by the instruction.

需要说明的是,该目标终端可以通过窗口、弹窗等方式显示该加密方式设置提示信息。It should be noted that the target terminal may display the encryption mode setting prompt information through a window, a pop-up window, or the like.

还需要说明的是,该选择指令用于在该至少一种加密方式中选择一种加密方式,该选择指令可以由用户通过执行预设操作触发。It should also be noted that the selection instruction is used to select an encryption method from the at least one encryption method, and the selection instruction can be triggered by the user performing a preset operation.

例如,该目标终端显示加密方式设置提示信息如图3C所示,该加密方式设置提示信息中包括密码加密、指纹加密、语音加密、视网膜加密、手势加密等加密方式,取消按钮,当基于指纹加密接收到选择指令时,选择指纹加密。当基于该取消按钮接收到取消操作时,取消设置加密方式的操作。For example, the target terminal displays the encryption mode setting prompt information as shown in FIG. 3C , the encryption mode setting prompt information includes encryption methods such as password encryption, fingerprint encryption, voice encryption, retina encryption, gesture encryption, etc., the cancel button, when based on fingerprint encryption When receiving the selection instruction, select fingerprint encryption. When a cancel operation is received based on the cancel button, the operation of setting the encryption method is canceled.

另外,由前述可知,在另一种可能的实现策略中,当该终端确定对该消息加密时,在该消息中携带第一加密标识,当该终端确定不对该消息加密时,在该消息中携带第二加密标识。因此,在步骤307中,该目标终端可以在检测到该消息中携带第一加密消息时,确定对该消息进行加密显示。In addition, as can be seen from the foregoing, in another possible implementation strategy, when the terminal determines to encrypt the message, the first encryption identifier is carried in the message, and when the terminal determines not to encrypt the message, the message is included in the message. Carry the second encryption identifier. Therefore, in step 307, the target terminal may determine to perform encrypted display on the message when detecting that the message carries the first encrypted message.

进一步地,为了提高该目标终端在显示第一消息的过程中与用户的交互效果,该目标终端对该消息进行加密显示的操作可以为:显示加密消息图标,该加密消息图标用于指示该消息为加密的消息,当基于该加密消息图标接收到指定操作时,显示用户隐私保护界面,当基于该用户隐私保护界面接收到解密操作时,显示该消息的消息内容。Further, in order to improve the interaction effect between the target terminal and the user in the process of displaying the first message, the operation of encrypting and displaying the message by the target terminal may be: displaying an encrypted message icon, and the encrypted message icon is used to indicate the message For an encrypted message, when a designated operation is received based on the encrypted message icon, a user privacy protection interface is displayed, and when a decryption operation is received based on the user privacy protection interface, the message content of the message is displayed.

其中,该目标终端可以通过窗口或弹窗等方式显示该加密消息图标。The target terminal may display the encrypted message icon through a window or a pop-up window.

需要说明的是,该加密消息图标可以由该目标终端在显示该加密消息图标之前确定。It should be noted that, the encrypted message icon may be determined by the target terminal before displaying the encrypted message icon.

例如,消息1为文字消息,该目标终端对消息1加密显示如图3D所示,该显示界面中不包括消息1的消息内容,且包括一个锁形的图标,以指示当前显示的消息1为加密的消息1。消息2为来电请求,该目标终端对消息2显示如图3E所示,该显示界面中包括一个锁形图标、“来电”等文字和拒绝按钮,当该终端基于该拒绝按钮接收到拒绝操作时,不响应该来电请求。For example, message 1 is a text message, and the target terminal encrypts and displays message 1, as shown in Figure 3D, the display interface does not include the message content of message 1, and includes a lock-shaped icon to indicate that the currently displayed message 1 is Encrypted message 1. Message 2 is an incoming call request. The target terminal displays message 2 as shown in Figure 3E. The display interface includes a lock icon, text such as "incoming call", and a reject button. When the terminal receives a reject operation based on the reject button , do not respond to the incoming call request.

需要说明的是,该指定操作可以是指示该目标终端对该消息的消息内容进行显示或播放的操作,也可以是对来电请求等进行响应的操作,该指定操作可以是点击操作、滑动操作、触摸操作、按键操作等操作,当然,在实际应用中,该指定操作还可以是其它操作。It should be noted that the specified operation may be an operation of instructing the target terminal to display or play the message content of the message, or an operation of responding to an incoming call request, etc. The specified operation may be a click operation, a sliding operation, Operations such as touch operations, key operations, and, of course, in practical applications, the specified operations may also be other operations.

其中,该用户隐私保护界面用于指示用户执行解密操作,且该目标终端可以基于对该消息进行加密显示的加密方式,显示与该加密方式对应的用户隐私保护界面,比如,当对该消息进行加密显示的加密方式为密码加密时,该用户隐私保护界面可以包括“请输入密码”等提示信息和密码输入框,还可以包括用于接收密码输入的虚拟键盘;当对该消息进行加密显示的加密方式为指纹加密时,该用户隐私保护界面可以包括“请输入您的指纹”等提示信息;当对该消息进行加密显示的加密方式为手势加密时,该用户隐私保护界面可以包括“请绘制图形”等提示信息和用于接收用户绘制图形的区域。The user privacy protection interface is used to instruct the user to perform a decryption operation, and the target terminal can display the user privacy protection interface corresponding to the encryption method based on the encryption method for encrypting and displaying the message. When the encryption method for encrypted display is password encryption, the user privacy protection interface may include prompt information such as "Please enter your password" and a password input box, and may also include a virtual keyboard for receiving password input; When the encryption method is fingerprint encryption, the user privacy protection interface may include prompt information such as "Please enter your fingerprint"; when the encryption method for encrypted display of the message is gesture encryption, the user privacy protection interface may include "Please draw Graphics” and other prompt information and an area for receiving user-drawn graphics.

需要说明的是,该目标终端可以通过窗口或弹窗等方式显示该用户隐私保护界面。It should be noted that the target terminal may display the user privacy protection interface through a window or a pop-up window.

还需要说明的是,解密操作可以是与对该消息进行加密显示的加密方式对应的操作,比如,当对该消息进行加密显示的加密方式为密码加密时,该解密操作可以为输入密码;当对该消息进行加密显示的加密方式为指纹加密时,该解密操作可以为输入指纹;当对该消息进行加密显示的加密方式为语音加密时,该解密操作可以为输入语音;当对该消息进行加密显示的加密方式为视网膜加密时,该解密操作可以为输入视网膜图像;当对该消息进行加密显示的加密方式手势加密时,该解密操作可以为在屏幕中绘制图形。It should also be noted that the decryption operation may be an operation corresponding to the encryption method for encrypting and displaying the message. For example, when the encryption method for encrypting and displaying the message is password encryption, the decryption operation may be inputting a password; when When the encryption method for encrypting and displaying the message is fingerprint encryption, the decryption operation may be inputting fingerprints; when the encryption method for encrypting and displaying the message is voice encryption, the decryption operation may be inputting voice; When the encryption method of the encrypted display is retina encryption, the decryption operation may be inputting a retinal image; when the encryption method of the encrypted display is gesture encryption, the decryption operation may be drawing graphics on the screen.

还需要说明的是,该目标终端可以通过窗口或弹窗等方式显示该消息的消息内容。It should also be noted that the target terminal may display the message content of the message through a window or a pop-up window.

例如,消息1为文字消息,该目标终端可以显示消息1的消息内容如图3F所示,该显示界面中包括消息1的消息内容:“我的银行账号是XXXXXX,密码是XXXXXX”。消息2为来电请求,该目标终端可以消息2的消息内容如图3G所示,该显示界面包括“来电”等文字、接听按钮和拒绝按钮,当该目标终端基于该接听按钮接收到接听操作时,响应该来电请求。For example, if message 1 is a text message, the target terminal can display the message content of message 1 as shown in FIG. 3F . The display interface includes the message content of message 1: "My bank account number is XXXXXX, and the password is XXXXXX". Message 2 is an incoming call request, and the target terminal can use the message content of message 2 as shown in Figure 3G. The display interface includes words such as "incoming call", an answer button and a reject button. When the target terminal receives an answer operation based on the answer button , in response to the incoming call request.

在本公开实施例中,该终端能够将待发送的消息获取为第一消息,并判断是否对第一消息进行加密显示,也即是,对于该终端中每个待发送的消息,终端都可以判断是否对该消息进行加密显示,提高了消息交互的安全性和灵活性。当确定对第一消息进行加密显示时,该终端可以在第一消息中添加加密标识,从而指示接收到该第一消息的目标终端对该第一消息进行加密显示,由于不需要事先将对应的解密方式发送给该目标终端,避免了该解密方式被其它用户获取得到,进而提高了消息交互的安全性。其次,该终端可以在检测到针对第一消息的指示加密操作或者在第一消息中包括指定字符时,确定对第一消息进行加密,提高了判断是否对第一消息进行加密的灵活性和准确率,进一步提高了即时通信的安全性。另外,该目标终端可以通过显示加密消息图标的方式显示该第一消息,对第一消息的消息内容进行保护,当基于该加密消息图标接收到用于显示第一消息的消息内容的指定操作时,显示用户隐私界面,并在基于该用户隐私界面接收解密操作,进而对第一消息的消息内容进行显示,从而提高了该目标终端在显示第一消息的过程中与用户的交互效果。In the embodiment of the present disclosure, the terminal can acquire the message to be sent as the first message, and determine whether to encrypt and display the first message, that is, for each message to be sent in the terminal, the terminal can Determining whether to encrypt and display the message improves the security and flexibility of message interaction. When it is determined that the first message is to be encrypted and displayed, the terminal may add an encryption identifier to the first message, thereby instructing the target terminal that receives the first message to perform encrypted display of the first message. The decryption method is sent to the target terminal to prevent the decryption method from being acquired by other users, thereby improving the security of message interaction. Secondly, the terminal can determine to encrypt the first message when detecting an instruction encryption operation for the first message or when a specified character is included in the first message, which improves the flexibility and accuracy of judging whether to encrypt the first message rate, further improving the security of instant communication. In addition, the target terminal can display the first message by displaying the encrypted message icon to protect the message content of the first message, and when receiving a designated operation for displaying the message content of the first message based on the encrypted message icon , displaying the user privacy interface, and receiving the decryption operation based on the user privacy interface, and then displaying the message content of the first message, thereby improving the interaction effect between the target terminal and the user in the process of displaying the first message.

图4是根据一示例性实施例示出的一种消息交互装置框图。参照图4,该装置包括判断模块401,添加模块402和发送模块403。Fig. 4 is a block diagram of a message interaction apparatus according to an exemplary embodiment. Referring to FIG. 4 , the apparatus includes a judgment module 401 , an adding module 402 and a sending module 403 .

判断模块401,用于判断是否对第一消息进行加密显示,该第一消息为待发送的消息;The judgment module 401 is used for judging whether to encrypt and display the first message, and the first message is the message to be sent;

添加模块402,用于当确定对该第一消息进行加密显示时,在该第一消息中添加加密标识,生成第二消息;The adding module 402 is configured to add an encryption identifier to the first message to generate a second message when it is determined that the first message is encrypted and displayed;

发送模块403,用于将该第二消息发送给目标终端,以指示该目标终端对该第一消息进行加密显示。The sending module 403 is configured to send the second message to the target terminal to instruct the target terminal to encrypt and display the first message.

可选地,该判断模块401包括:Optionally, the judging module 401 includes:

第一确定子模块,用于当检测到针对该第一消息的指示加密操作时,确定对该第一消息进行加密显示;或者,a first determination submodule, configured to determine to perform encrypted display on the first message when an indicated encryption operation for the first message is detected; or,

第二确定子模块,用于当检测到该第一消息中包括指定字符时,确定对该第一消息进行加密显示。The second determination sub-module is configured to determine that the first message is encrypted and displayed when it is detected that the first message includes a specified character.

在本公开实施例中,该终端能够判断是否对第一消息进行加密显示,也即是,对于该终端中每个待发送的消息,终端都可以判断是否对该消息进行加密显示,提高了消息交互的安全性和灵活性。当确定对第一消息进行加密显示时,该终端可以在第一消息中添加加密标识,从而指示接收到该第一消息的目标终端对该第一消息进行加密显示,由于不需要事先将对应的解密方式发送给该目标终端,避免了该解密方式被其它用户获取得到,进而提高了消息交互的安全性。In the embodiment of the present disclosure, the terminal can determine whether to perform encrypted display on the first message, that is, for each message to be sent in the terminal, the terminal can determine whether to perform encrypted display on the message, which improves the message Security and flexibility of interaction. When it is determined that the first message is to be encrypted and displayed, the terminal may add an encryption identifier to the first message, thereby instructing the target terminal that receives the first message to perform encrypted display of the first message. The decryption method is sent to the target terminal to prevent the decryption method from being acquired by other users, thereby improving the security of message interaction.

关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the above-mentioned embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be described in detail here.

图5是根据一示例性实施例示出的一种消息交互装置框图。参照图5,该装置包括第一接收模块501,检测模块502和第一显示模块503。Fig. 5 is a block diagram of a message interaction apparatus according to an exemplary embodiment. Referring to FIG. 5 , the apparatus includes a first receiving module 501 , a detection module 502 and a first display module 503 .

第一接收模块501,用于接收终端发送的消息;a first receiving module 501, configured to receive a message sent by a terminal;

检测模块502,用于检测该消息中是否携带加密标识;A detection module 502, configured to detect whether the message carries an encryption identifier;

第一显示模块503,用于当该消息中携带有该加密标识时,对该消息进行加密显示。The first display module 503 is configured to perform encrypted display on the message when the encrypted identifier is carried in the message.

可选地,该第一显示模块503包括:Optionally, the first display module 503 includes:

第一显示子模块,用于显示加密消息图标,该加密消息图标用于指示该消息为加密的消息;a first display submodule for displaying an encrypted message icon, where the encrypted message icon is used to indicate that the message is an encrypted message;

第二显示子模块,用于当基于该加密消息图标接收到指定操作时,显示用户隐私保护界面;a second display submodule, configured to display a user privacy protection interface when a specified operation is received based on the encrypted message icon;

第三显示子模块,用于当基于该用户隐私保护界面接收到解密操作时,显示该消息的消息内容。The third display sub-module is configured to display the message content of the message when a decryption operation is received based on the user privacy protection interface.

可选地,该装置还包括:Optionally, the device also includes:

第二显示模块,用于显示加密方式设置提示信息,该加密方式设置提示信息中包括至少一种加密方式;a second display module, configured to display encryption mode setting prompt information, where the encryption mode setting prompt information includes at least one encryption mode;

第二接收模块,用于接收加密方式选择指令,该加密方式选择指令指示该至少一种加密方式中的一种加密方式;a second receiving module, configured to receive an encryption mode selection instruction, where the encryption mode selection instruction indicates an encryption mode in the at least one encryption mode;

确定模块,用于确定通过该加密方式选择指令所指示的加密方式对该消息进行加密显示。The determining module is configured to determine that the message is encrypted and displayed by the encryption mode indicated by the encryption mode selection instruction.

在本公开实施例中,该目标终端能够在接收到终端发送的消息时,检测该该消息中是否携带加密标识,进而确定是否对该消息进行加密显示,因此,对于接收到的每个消息,该目标终端都可以在该消息携带该加密标识时,对该消息进行加密显示,提高了消息交互的安全性和灵活性。且由于是通过该终端在消息中添加加密标识,从而该目标终端在接收到该消息时对该第一消息进行加密显示,因此不需要事先从该终端中获取解密方式,避免了该解密方式被其它用户获取得到,进而提高了消息交互的安全性。In the embodiment of the present disclosure, when receiving a message sent by the terminal, the target terminal can detect whether the message carries an encryption identifier, and then determine whether to display the message encrypted. Therefore, for each received message, The target terminal can encrypt and display the message when the message carries the encrypted identifier, which improves the security and flexibility of message interaction. And because the terminal adds an encryption identifier to the message, the target terminal encrypts and displays the first message when receiving the message, so there is no need to obtain the decryption method from the terminal in advance, which avoids the decryption method being used. Other users can obtain it, thereby improving the security of message interaction.

关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the above-mentioned embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be described in detail here.

图6是根据一示例性实施例示出的一种用于消息交互的装置600的框图。例如,装置600可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。FIG. 6 is a block diagram of an apparatus 600 for message interaction according to an exemplary embodiment. For example, apparatus 600 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, fitness device, personal digital assistant, and the like.

参照图6,装置600可以包括以下一个或多个组件:处理组件602,存储器604,电源组件606,多媒体组件608,音频组件610,输入/输出(I/O)的接口612,传感器组件614,以及通信组件616。6, the apparatus 600 may include one or more of the following components: a processing component 602, a memory 604, a power supply component 606, a multimedia component 608, an audio component 610, an input/output (I/O) interface 612, a sensor component 614, and communication component 616 .

处理组件602通常控制装置600的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件602可以包括一个或多个处理器620来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件602可以包括一个或多个模块,便于处理组件602和其他组件之间的交互。例如,处理组件602可以包括多媒体模块,以方便多媒体组件608和处理组件602之间的交互。The processing component 602 generally controls the overall operation of the device 600, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to perform all or some of the steps of the methods described above. Additionally, processing component 602 may include one or more modules that facilitate interaction between processing component 602 and other components. For example, processing component 602 may include a multimedia module to facilitate interaction between multimedia component 608 and processing component 602.

存储器604被配置为存储各种类型的数据以支持在装置600的操作。这些数据的示例包括用于在装置600上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器604可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。Memory 604 is configured to store various types of data to support operations at device 600 . Examples of such data include instructions for any application or method operating on device 600, contact data, phonebook data, messages, pictures, videos, and the like. Memory 604 may be implemented by any type of volatile or nonvolatile storage device or combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.

电源组件606为装置600的各种组件提供电源。电源组件606可以包括电源管理系统,一个或多个电源,及其他与为装置600生成、管理和分配电源相关联的组件。Power supply assembly 606 provides power to the various components of device 600 . Power components 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to device 600 .

多媒体组件608包括在所述装置600和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件608包括一个前置摄像头和/或后置摄像头。当装置600处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。Multimedia component 608 includes screens that provide an output interface between the device 600 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touch, swipe, and gestures on the touch panel. The touch sensor may not only sense the boundaries of a touch or swipe action, but also detect the duration and pressure associated with the touch or swipe action. In some embodiments, the multimedia component 608 includes a front-facing camera and/or a rear-facing camera. When the apparatus 600 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera may receive external multimedia data. Each of the front and rear cameras can be a fixed optical lens system or have focal length and optical zoom capability.

音频组件610被配置为输出和/或输入音频信号。例如,音频组件610包括一个麦克风(MIC),当装置600处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器604或经由通信组件616发送。在一些实施例中,音频组件610还包括一个扬声器,用于输出音频信号。Audio component 610 is configured to output and/or input audio signals. For example, audio component 610 includes a microphone (MIC) that is configured to receive external audio signals when device 600 is in operating modes, such as call mode, recording mode, and voice recognition mode. The received audio signal may be further stored in memory 604 or transmitted via communication component 616 . In some embodiments, audio component 610 also includes a speaker for outputting audio signals.

I/O接口612为处理组件602和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 612 provides an interface between the processing component 602 and a peripheral interface module, which may be a keyboard, a click wheel, a button, or the like. These buttons may include, but are not limited to: home button, volume buttons, start button, and lock button.

传感器组件614包括一个或多个传感器,用于为装置600提供各个方面的状态评估。例如,传感器组件614可以检测到装置600的打开/关闭状态,组件的相对定位,例如所述组件为装置600的显示器和小键盘,传感器组件614还可以检测装置600或装置600一个组件的位置改变,用户与装置600接触的存在或不存在,装置600方位或加速/减速和装置600的温度变化。传感器组件614可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件614还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件614还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。Sensor assembly 614 includes one or more sensors for providing status assessment of various aspects of device 600 . For example, the sensor assembly 614 can detect the open/closed state of the device 600, the relative positioning of components, such as the display and keypad of the device 600, and the sensor assembly 614 can also detect a change in the position of the device 600 or a component of the device 600 , the presence or absence of user contact with the device 600 , the orientation or acceleration/deceleration of the device 600 and the temperature change of the device 600 . Sensor assembly 614 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. Sensor assembly 614 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

通信组件616被配置为便于装置600和其他设备之间有线或无线方式的通信。装置600可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件616经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件616还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。Communication component 616 is configured to facilitate wired or wireless communication between apparatus 600 and other devices. Device 600 may access wireless networks based on communication standards, such as WiFi, 2G or 3G, or a combination thereof. In one exemplary embodiment, the communication component 616 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

在示例性实施例中,装置600可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment, apparatus 600 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A gate array (FPGA), controller, microcontroller, microprocessor or other electronic component implementation is used to perform the above method.

在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器604,上述指令可由装置600的处理器620执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as a memory 604 including instructions, executable by the processor 620 of the apparatus 600 to perform the method described above. For example, the non-transitory computer-readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.

一种非临时性计算机可读存储介质,当所述存储介质中的指令由移动终端的处理器执行时,使得移动终端能够执行一种消息交互方法,所述方法包括:A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of a mobile terminal, enabling the mobile terminal to execute a message interaction method, the method comprising:

判断是否对第一消息进行加密显示,该第一消息为待发送的消息;judging whether to encrypt and display the first message, the first message being a message to be sent;

当确定对该第一消息进行加密显示时,在该第一消息中添加加密标识,生成第二消息;When it is determined that the first message is encrypted and displayed, an encryption identifier is added to the first message to generate a second message;

将该第二消息发送给目标终端,以指示该目标终端对该第一消息进行加密显示。The second message is sent to the target terminal to instruct the target terminal to perform encrypted display of the first message.

可选地,判断是否对第一消息进行加密显示,包括:Optionally, judging whether to encrypt and display the first message, including:

当检测到针对该第一消息的指示加密操作时,确定对该第一消息进行加密显示。When an instruction encryption operation for the first message is detected, it is determined that the first message is encrypted and displayed.

可选地,判断是否对第一消息进行加密显示,包括:Optionally, judging whether to encrypt and display the first message, including:

当检测到该第一消息中包括指定字符时,确定对该第一消息进行加密显示。When it is detected that the first message includes the specified character, it is determined that the first message is encrypted and displayed.

在本公开实施例中,该终端能够判断是否对第一消息进行加密显示,也即是,对于该终端中每个待发送的消息,终端都可以判断是否对该消息进行加密显示,提高了消息交互的安全性和灵活性。当确定对第一消息进行加密显示时,该终端可以在第一消息中添加加密标识,从而指示接收到该第一消息的目标终端对该第一消息进行加密显示,由于不需要事先将对应的解密方式发送给该目标终端,避免了该解密方式被其它用户获取得到,进而提高了消息交互的安全性。In the embodiment of the present disclosure, the terminal can determine whether to perform encrypted display on the first message, that is, for each message to be sent in the terminal, the terminal can determine whether to perform encrypted display on the message, which improves the message Security and flexibility of interaction. When it is determined that the first message is to be encrypted and displayed, the terminal may add an encryption identifier to the first message, thereby instructing the target terminal that receives the first message to perform encrypted display of the first message. The decryption method is sent to the target terminal to prevent the decryption method from being acquired by other users, thereby improving the security of message interaction.

图7是根据一示例性实施例示出的一种用于消息交互的装置700的框图。例如,装置700可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。FIG. 7 is a block diagram of an apparatus 700 for message interaction according to an exemplary embodiment. For example, apparatus 700 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, fitness device, personal digital assistant, and the like.

参照图7,装置700可以包括以下一个或多个组件:处理组件702,存储器704,电源组件706,多媒体组件708,音频组件710,输入/输出(I/O)的接口712,传感器组件714,以及通信组件716。7, the apparatus 700 may include one or more of the following components: a processing component 702, a memory 704, a power supply component 706, a multimedia component 708, an audio component 710, an input/output (I/O) interface 712, a sensor component 714, And the communication component 716 .

处理组件702通常控制装置700的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件702可以包括一个或多个处理器720来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件702可以包括一个或多个模块,便于处理组件702和其他组件之间的交互。例如,处理组件702可以包括多媒体模块,以方便多媒体组件708和处理组件702之间的交互。The processing component 702 generally controls the overall operation of the device 700, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 702 can include one or more processors 720 to execute instructions to perform all or some of the steps of the methods described above. Additionally, processing component 702 may include one or more modules to facilitate interaction between processing component 702 and other components. For example, processing component 702 may include a multimedia module to facilitate interaction between multimedia component 708 and processing component 702.

存储器704被配置为存储各种类型的数据以支持在装置700的操作。这些数据的示例包括用于在装置700上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器704可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。Memory 704 is configured to store various types of data to support operations at device 700 . Examples of such data include instructions for any application or method operating on device 700, contact data, phonebook data, messages, pictures, videos, and the like. Memory 704 may be implemented by any type of volatile or nonvolatile storage device or combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.

电源组件706为装置700的各种组件提供电源。电源组件706可以包括电源管理系统,一个或多个电源,及其他与为装置700生成、管理和分配电源相关联的组件。Power supply assembly 706 provides power to the various components of device 700 . Power components 706 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to device 700 .

多媒体组件708包括在所述装置700和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件708包括一个前置摄像头和/或后置摄像头。当装置700处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。Multimedia component 708 includes screens that provide an output interface between the device 700 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touch, swipe, and gestures on the touch panel. The touch sensor may not only sense the boundaries of a touch or swipe action, but also detect the duration and pressure associated with the touch or swipe action. In some embodiments, multimedia component 708 includes a front-facing camera and/or a rear-facing camera. When the apparatus 700 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera may receive external multimedia data. Each of the front and rear cameras can be a fixed optical lens system or have focal length and optical zoom capability.

音频组件710被配置为输出和/或输入音频信号。例如,音频组件710包括一个麦克风(MIC),当装置700处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器704或经由通信组件716发送。在一些实施例中,音频组件710还包括一个扬声器,用于输出音频信号。Audio component 710 is configured to output and/or input audio signals. For example, audio component 710 includes a microphone (MIC) that is configured to receive external audio signals when device 700 is in operating modes, such as calling mode, recording mode, and voice recognition mode. The received audio signal may be further stored in memory 704 or transmitted via communication component 716 . In some embodiments, audio component 710 also includes a speaker for outputting audio signals.

I/O接口712为处理组件702和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 712 provides an interface between the processing component 702 and a peripheral interface module, which may be a keyboard, a click wheel, a button, or the like. These buttons may include, but are not limited to: home button, volume buttons, start button, and lock button.

传感器组件714包括一个或多个传感器,用于为装置700提供各个方面的状态评估。例如,传感器组件714可以检测到装置700的打开/关闭状态,组件的相对定位,例如所述组件为装置700的显示器和小键盘,传感器组件714还可以检测装置700或装置700一个组件的位置改变,用户与装置700接触的存在或不存在,装置700方位或加速/减速和装置700的温度变化。传感器组件714可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件714还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件714还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。Sensor assembly 714 includes one or more sensors for providing status assessment of various aspects of device 700 . For example, the sensor assembly 714 can detect the open/closed state of the device 700, the relative positioning of components, such as the display and keypad of the device 700, and the sensor assembly 714 can also detect a change in the position of the device 700 or a component of the device 700 , the presence or absence of user contact with the device 700 , the orientation or acceleration/deceleration of the device 700 and the temperature change of the device 700 . Sensor assembly 714 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. Sensor assembly 714 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 714 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

通信组件716被配置为便于装置700和其他设备之间有线或无线方式的通信。装置700可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件716经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件716还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。Communication component 716 is configured to facilitate wired or wireless communication between apparatus 700 and other devices. Device 700 may access wireless networks based on communication standards, such as WiFi, 2G or 3G, or a combination thereof. In one exemplary embodiment, the communication component 716 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 716 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

在示例性实施例中,装置700可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment, apparatus 700 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A gate array (FPGA), controller, microcontroller, microprocessor or other electronic component implementation is used to perform the above method.

在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器704,上述指令可由装置700的处理器720执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as a memory 704 including instructions, executable by the processor 720 of the apparatus 700 to perform the method described above. For example, the non-transitory computer-readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.

一种非临时性计算机可读存储介质,当所述存储介质中的指令由移动终端的处理器执行时,使得移动终端能够执行一种消息方法,所述方法包括:A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of a mobile terminal, enabling the mobile terminal to execute a message method, the method comprising:

接收终端发送的消息;Receive the message sent by the terminal;

检测该消息中是否携带加密标识;Detecting whether the message carries an encryption identifier;

当该消息中携带有该加密标识时,对该消息进行加密显示。When the message carries the encryption identifier, the message is encrypted and displayed.

可选地,对该消息进行加密显示,包括:Optionally, the encrypted display of the message includes:

显示加密消息图标,该加密消息图标用于指示该消息为加密的消息;Display an encrypted message icon, which is used to indicate that the message is an encrypted message;

当基于该加密消息图标接收到指定操作时,显示用户隐私保护界面;When a specified operation is received based on the encrypted message icon, a user privacy protection interface is displayed;

当基于该用户隐私保护界面接收到解密操作时,显示该消息的消息内容。When a decryption operation is received based on the user privacy protection interface, the message content of the message is displayed.

可选地,该方法还包括:Optionally, the method further includes:

显示加密方式设置提示信息,该加密方式设置提示信息中包括至少一种加密方式;Displaying prompt information of encryption mode setting, the prompt information of encryption mode setting includes at least one encryption mode;

接收加密方式选择指令,该加密方式选择指令指示该至少一种加密方式中的一种加密方式;receiving an encryption mode selection instruction, the encryption mode selection instruction indicating an encryption mode in the at least one encryption mode;

确定通过该加密方式选择指令所指示的加密方式对该消息进行加密显示。It is determined that the message is encrypted and displayed in the encryption mode indicated by the encryption mode selection instruction.

在本公开实施例中,该目标终端能够在接收到终端发送的消息时,检测该该消息中是否携带加密标识,进而确定是否对该消息进行加密显示,因此,对于接收到的每个消息,该目标终端都可以在该消息携带该加密标识时,对该消息进行加密显示,提高了消息交互的安全性和灵活性。且由于是通过该终端在消息中添加加密标识,从而该目标终端在接收到该消息时对该第一消息进行加密显示,因此不需要事先从该终端中获取解密方式,避免了该解密方式被其它用户获取得到,进而提高了消息交互的安全性。In the embodiment of the present disclosure, when receiving a message sent by the terminal, the target terminal can detect whether the message carries an encryption identifier, and then determine whether to display the message encrypted. Therefore, for each received message, The target terminal can encrypt and display the message when the message carries the encrypted identifier, which improves the security and flexibility of message interaction. And because the terminal adds an encryption identifier to the message, the target terminal encrypts and displays the first message when receiving the message, so there is no need to obtain the decryption method from the terminal in advance, which avoids the decryption method being used. Other users can obtain it, thereby improving the security of message interaction.

本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本发明的其它实施方案。本申请旨在涵盖本发明的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本发明的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本发明的真正范围和精神由下面的权利要求指出。Other embodiments of the invention will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention that follow the general principles of the invention and include common knowledge or conventional techniques in the art not disclosed by this disclosure . The specification and examples are to be regarded as exemplary only, with the true scope and spirit of the invention being indicated by the following claims.

应当理解的是,本发明并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本发明的范围仅由所附的权利要求来限制。It should be understood that the present invention is not limited to the precise structures described above and illustrated in the accompanying drawings, and that various modifications and changes may be made without departing from its scope. The scope of the present invention is limited only by the appended claims.

Claims (10)

1.一种消息交互方法,其特征在于,所述方法包括:1. A message interaction method, wherein the method comprises: 当接收消息发送指令时,获取第一消息,所述第一消息为待发送的消息;When receiving a message sending instruction, obtain a first message, where the first message is a message to be sent; 判断是否对所述第一消息进行加密显示;judging whether to perform encrypted display on the first message; 当确定对所述第一消息进行加密显示时,在所述第一消息中添加第一加密标识,生成第二消息,所述第一加密标识为用户输入的字符,所述第一加密标识用于表示所述第一消息为需要加密显示的消息,所述第二消息中包括所述第一消息和所述第一加密标识;将所述第二消息发送给目标终端,以指示所述目标终端对所述第一消息进行加密显示;When it is determined that the first message is encrypted and displayed, a first encrypted identifier is added to the first message to generate a second message, where the first encrypted identifier is a character input by the user, and the first encrypted identifier is In order to indicate that the first message is a message that needs to be encrypted and displayed, the second message includes the first message and the first encryption identifier; send the second message to the target terminal to indicate the target The terminal encrypts and displays the first message; 当确定不对所述第一消息进行加密显示时,在所述第一消息中添加第二加密标识,生成第三消息,所述第二加密标识为所述用户输入的字符,所述第二加密标识用于表示所述第二消息为不需要加密显示的消息,所述第三消息中包括所述第一消息和所述第二加密标识;将所述第三消息发送给所述目标终端,以指示所述目标终端显示所述第一消息的消息内容;When it is determined that the encrypted display of the first message is not to be performed, a second encrypted identifier is added to the first message to generate a third message, the second encrypted identifier is a character input by the user, and the second encrypted identifier is a character input by the user. The identifier is used to indicate that the second message is a message that does not require encrypted display, and the third message includes the first message and the second encrypted identifier; sending the third message to the target terminal, to instruct the target terminal to display the message content of the first message; 其中,所述判断是否对第一消息进行加密显示,包括:Wherein, the judging whether to encrypt and display the first message includes: 在显示界面中显示加密提示信息对应的加密复选框,当检测到针对所述加密复选框的选中操作时,确定对所述第一消息进行加密显示;或者,An encryption check box corresponding to the encryption prompt information is displayed on the display interface, and when a selection operation for the encryption check box is detected, it is determined to encrypt and display the first message; or, 当检测到所述第一消息中包括指定字符时,确定对所述第一消息进行加密显示,其中,所述指定字符的确定过程包括:显示指定字符输入提示信息,基于所述指定字符输入提示信息接收用户输入的字符,将所述用户输入的字符确定为所述指定字符;或者,When it is detected that the first message includes a specified character, it is determined that the first message is encrypted and displayed, wherein the process of determining the specified character includes: displaying specified character input prompt information, and inputting a prompt based on the specified character The information receives the character input by the user, and determines the character input by the user as the specified character; or, 当所述消息发送指令中携带的目标终端标识为指定终端标识或携带的目标联系人标识为指定联系人标识时,确定对所述第一消息进行加密显示。When the target terminal identifier carried in the message sending instruction is the designated terminal identifier or the target contact identifier carried is the designated contact identifier, it is determined that the first message is encrypted and displayed. 2.一种消息交互方法,其特征在于,所述方法包括:2. A message interaction method, wherein the method comprises: 接收终端发送的消息;Receive the message sent by the terminal; 检测所述消息中携带的加密标识的类型,所述加密标识为用户输入的字符;Detecting the type of the encrypted identifier carried in the message, where the encrypted identifier is a character input by the user; 当所述消息中携带有第一加密标识时,显示加密消息图标,所述加密消息图标用于指示所述消息为加密的消息;当基于所述加密消息图标接收到指定操作时,显示用户隐私保护界面,所述用户隐私保护界面用于执行解密操作,且所述用户隐私保护界面为与加密方式对应的界面,所述加密方式为对所述消息进行加密显示的方式,所述解密操作为与所述加密方式对应的操作;当基于所述用户隐私保护界面接收到解密操作时,显示所述消息的消息内容,所述第一加密标识用于表示所述消息为需要加密显示的消息,所述消息中包括所述消息内容和所述第一加密标识;When the message carries the first encryption identifier, an encrypted message icon is displayed, and the encrypted message icon is used to indicate that the message is an encrypted message; when a specified operation is received based on the encrypted message icon, the user privacy is displayed A protection interface, the user privacy protection interface is used to perform a decryption operation, and the user privacy protection interface is an interface corresponding to an encryption method, the encryption method is a method for encrypting and displaying the message, and the decryption operation is An operation corresponding to the encryption method; when a decryption operation is received based on the user privacy protection interface, the message content of the message is displayed, and the first encryption identifier is used to indicate that the message is a message that needs to be encrypted and displayed, The message includes the message content and the first encrypted identifier; 当所述消息中携带第二加密标识时,显示所述消息的消息内容,所述第二加密标识用于表示所述消息为不需要加密显示的消息,所述消息中包括所述消息内容和所述第二加密标识。When the message carries a second encryption identifier, the message content of the message is displayed, and the second encryption identifier is used to indicate that the message is a message that does not require encrypted display, and the message includes the message content and the second encrypted identifier. 3.如权利要求2所述的方法,其特征在于,所述方法还包括:3. The method of claim 2, wherein the method further comprises: 显示加密方式设置提示信息,所述加密方式设置提示信息中包括至少一种加密方式;displaying encryption mode setting prompt information, wherein the encryption mode setting prompt information includes at least one encryption mode; 接收加密方式选择指令,所述加密方式选择指令指示所述至少一种加密方式中的一种加密方式;receiving an encryption mode selection instruction, the encryption mode selection instruction indicating an encryption mode in the at least one encryption mode; 确定通过所述加密方式选择指令所指示的加密方式对所述消息进行加密显示。It is determined that the message is encrypted and displayed in the encryption mode indicated by the encryption mode selection instruction. 4.一种消息交互装置,其特征在于,所述装置包括:4. A message interaction device, wherein the device comprises: 判断模块,用于当接收消息发送指令时,获取第一消息;判断是否对第一消息进行加密显示,所述第一消息为待发送的消息;a judging module, configured to obtain a first message when receiving a message sending instruction; judging whether to encrypt and display the first message, the first message being a message to be sent; 添加模块,用于当确定对所述第一消息进行加密显示时,在所述第一消息中添加第一加密标识,生成第二消息,所述第一加密标识为用户输入的字符,所述第一加密标识用于表示所述第一消息为需要加密显示的消息,所述第二消息中包括所述第一消息和所述第一加密标识;发送模块,用于将所述第二消息发送给目标终端,以指示所述目标终端对所述第一消息进行加密显示;The adding module is configured to add a first encrypted identifier to the first message when it is determined to perform encrypted display on the first message to generate a second message, where the first encrypted identifier is a character input by the user, and the The first encryption identifier is used to indicate that the first message is a message that needs to be encrypted and displayed, and the second message includes the first message and the first encryption identifier; a sending module is configured to send the second message sending it to the target terminal to instruct the target terminal to perform encrypted display of the first message; 所述添加模块,还用于当确定不对所述第一消息进行加密显示时,在所述第一消息中添加第二加密标识,生成第三消息,所述第二加密标识为所述用户输入的字符,所述第二加密标识用于表示所述第二消息为不需要加密显示的消息,所述第三消息中包括所述第一消息和所述第二加密标识;所述发送模块,还用于将所述第三消息发送给所述目标终端,以指示所述目标终端显示所述第一消息的消息内容;The adding module is further configured to add a second encrypted identifier to the first message when it is determined not to perform encrypted display on the first message to generate a third message, where the second encrypted identifier is input by the user character, the second encryption identifier is used to indicate that the second message is a message that does not require encrypted display, and the third message includes the first message and the second encryption identifier; the sending module, is further configured to send the third message to the target terminal to instruct the target terminal to display the message content of the first message; 其中,所述判断模块,还用于在显示界面中显示加密提示信息对应的加密复选框,当检测到针对所述加密复选框的选中操作时,确定对所述第一消息进行加密显示;或者,Wherein, the judging module is further configured to display an encryption check box corresponding to the encryption prompt information in the display interface, and when a selection operation for the encryption check box is detected, determine to encrypt and display the first message ;or, 所述判断模块,还用于当检测到所述第一消息中包括指定字符时,确定对所述第一消息进行加密显示,其中,所述指定字符的确定过程包括:显示指定字符输入提示信息,基于所述指定字符输入提示信息接收用户输入的字符,将所述用户输入的字符确定为所述指定字符;或者,The judging module is further configured to determine that the first message is encrypted and displayed when it is detected that the first message includes a designated character, wherein the process of determining the designated character includes: displaying the designated character input prompt information , receiving the character input by the user based on the specified character input prompt information, and determining the character input by the user as the specified character; or, 所述判断模块,还用于当所述消息发送指令中携带的目标终端标识为指定终端标识或携带的目标联系人标识为指定联系人标识时,确定对所述第一消息进行加密显示。The judging module is further configured to determine that the first message is encrypted and displayed when the target terminal identifier carried in the message sending instruction is a designated terminal identifier or the target contact identifier carried in the message sending instruction is a designated contact identifier. 5.一种消息交互装置,其特征在于,所述装置包括:5. A message interaction device, wherein the device comprises: 第一接收模块,用于接收终端发送的消息;a first receiving module, configured to receive a message sent by the terminal; 检测模块,用于检测所述消息中携带的加密标识的类型,所述加密标识为用户输入的字符;a detection module for detecting the type of the encrypted identifier carried in the message, where the encrypted identifier is a character input by the user; 第一显示模块,用于当所述消息中携带有第一加密标识时,显示加密消息图标,所述加密消息图标用于指示所述消息为加密的消息;当基于所述加密消息图标接收到指定操作时,显示用户隐私保护界面,所述用户隐私保护界面用于执行解密操作,且所述用户隐私保护界面为与加密方式对应的界面,所述加密方式为对所述消息进行加密显示的方式,所述解密操作为与所述加密方式对应的操作;当基于所述用户隐私保护界面接收到解密操作时,显示所述消息的消息内容,所述第一加密标识用于表示所述消息为需要加密显示的消息,所述消息中包括所述消息内容和所述第一加密标识;a first display module, configured to display an encrypted message icon when the message carries a first encrypted identifier, and the encrypted message icon is used to indicate that the message is an encrypted message; when the encrypted message icon is received based on the encrypted message icon When specifying an operation, a user privacy protection interface is displayed, and the user privacy protection interface is used to perform a decryption operation, and the user privacy protection interface is an interface corresponding to an encryption method that encrypts and displays the message. method, the decryption operation is an operation corresponding to the encryption method; when a decryption operation is received based on the user privacy protection interface, the message content of the message is displayed, and the first encryption identifier is used to represent the message For a message that needs to be encrypted and displayed, the message includes the message content and the first encrypted identifier; 所述第一显示模块,还用于当所述消息中携带第二加密标识时,显示所述消息的消息内容,所述第二加密标识用于表示所述消息为不需要加密显示的消息,所述消息中包括所述消息内容和所述第二加密标识。The first display module is further configured to display the message content of the message when the message carries a second encrypted identifier, and the second encrypted identifier is used to indicate that the message is a message that does not require encrypted display, The message includes the message content and the second encrypted identifier. 6.如权利要求5所述的装置,其特征在于,所述装置还包括:6. The apparatus of claim 5, wherein the apparatus further comprises: 第二显示模块,用于显示加密方式设置提示信息,所述加密方式设置提示信息中包括至少一种加密方式;a second display module, configured to display encryption mode setting prompt information, wherein the encryption mode setting prompt information includes at least one encryption mode; 第二接收模块,用于接收加密方式选择指令,所述加密方式选择指令指示所述至少一种加密方式中的一种加密方式;a second receiving module, configured to receive an encryption mode selection instruction, wherein the encryption mode selection instruction indicates an encryption mode in the at least one encryption mode; 确定模块,用于确定通过所述加密方式选择指令所指示的加密方式对所述消息进行加密显示。A determining module, configured to determine that the message is encrypted and displayed by using the encryption mode indicated by the encryption mode selection instruction. 7.一种消息交互装置,其特征在于,所述装置包括:7. A message interaction device, wherein the device comprises: 处理器;processor; 用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions; 其中,所述处理器被配置为:wherein the processor is configured to: 当接收消息发送指令时,获取第一消息,所述第一消息为待发送的消息;When receiving a message sending instruction, obtain a first message, where the first message is a message to be sent; 判断是否对所述第一消息进行加密显示;judging whether to perform encrypted display on the first message; 当确定对所述第一消息进行加密显示时,在所述第一消息中添加第一加密标识,生成第二消息,所述第一加密标识为用户输入的字符,所述第一加密标识用于表示所述第一消息为需要加密显示的消息,所述第二消息中包括所述第一消息和所述第一加密标识;将所述第二消息发送给目标终端,以指示所述目标终端对所述第一消息进行加密显示;When it is determined that the first message is encrypted and displayed, a first encrypted identifier is added to the first message to generate a second message, where the first encrypted identifier is a character input by the user, and the first encrypted identifier is In order to indicate that the first message is a message that needs to be encrypted and displayed, the second message includes the first message and the first encryption identifier; send the second message to the target terminal to indicate the target The terminal encrypts and displays the first message; 当确定不对所述第一消息进行加密显示时,在所述第一消息中添加第二加密标识,生成第三消息,所述第二加密标识为所述用户输入的字符,所述第二加密标识用于表示所述第二消息为不需要加密显示的消息,所述第三消息中包括所述第一消息和所述第二加密标识;将所述第三消息发送给所述目标终端,以指示所述目标终端显示所述第一消息的消息内容;When it is determined that the encrypted display of the first message is not to be performed, a second encrypted identifier is added to the first message to generate a third message, the second encrypted identifier is a character input by the user, and the second encrypted identifier is a character input by the user. The identifier is used to indicate that the second message is a message that does not require encrypted display, and the third message includes the first message and the second encrypted identifier; sending the third message to the target terminal, to instruct the target terminal to display the message content of the first message; 其中,所述判断是否对第一消息进行加密显示,包括:Wherein, the judging whether to encrypt and display the first message includes: 在显示界面中显示加密提示信息对应的加密复选框,当检测到针对所述加密复选框的选中操作时,确定对所述第一消息进行加密显示;或者,An encryption check box corresponding to the encryption prompt information is displayed on the display interface, and when a selection operation for the encryption check box is detected, it is determined to encrypt and display the first message; or, 当检测到所述第一消息中包括指定字符时,确定对所述第一消息进行加密显示,其中,所述指定字符的确定过程包括:显示指定字符输入提示信息,基于所述指定字符输入提示信息接收用户输入的字符,将所述用户输入的字符确定为所述指定字符;或者,When it is detected that the first message includes a specified character, it is determined that the first message is encrypted and displayed, wherein the process of determining the specified character includes: displaying specified character input prompt information, and inputting a prompt based on the specified character The information receives the character input by the user, and determines the character input by the user as the specified character; or, 当所述消息发送指令中携带的目标终端标识为指定终端标识或携带的目标联系人标识为指定联系人标识时,确定对所述第一消息进行加密显示。When the target terminal identifier carried in the message sending instruction is the designated terminal identifier or the target contact identifier carried is the designated contact identifier, it is determined that the first message is encrypted and displayed. 8.一种消息装置,其特征在于,所述装置包括:8. A message device, wherein the device comprises: 处理器;processor; 用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions; 其中,所述处理器被配置为:wherein the processor is configured to: 接收终端发送的消息;Receive the message sent by the terminal; 检测所述消息中携带的加密标识的类型,所述加密标识为用户输入的字符;Detecting the type of the encrypted identifier carried in the message, where the encrypted identifier is a character input by the user; 当所述消息中携带有第一加密标识时,显示加密消息图标,所述加密消息图标用于指示所述消息为加密的消息;当基于所述加密消息图标接收到指定操作时,显示用户隐私保护界面,所述用户隐私保护界面用于执行解密操作,且所述用户隐私保护界面为与加密方式对应的界面,所述加密方式为对所述消息进行加密显示的方式,所述解密操作为与所述加密方式对应的操作;当基于所述用户隐私保护界面接收到解密操作时,显示所述消息的消息内容,所述第一加密标识用于表示所述消息为需要加密显示的消息,所述消息中包括所述消息内容和所述第一加密标识;When the message carries the first encryption identifier, an encrypted message icon is displayed, and the encrypted message icon is used to indicate that the message is an encrypted message; when a specified operation is received based on the encrypted message icon, the user privacy is displayed A protection interface, the user privacy protection interface is used to perform a decryption operation, and the user privacy protection interface is an interface corresponding to an encryption method, the encryption method is a method for encrypting and displaying the message, and the decryption operation is An operation corresponding to the encryption method; when a decryption operation is received based on the user privacy protection interface, the message content of the message is displayed, and the first encryption identifier is used to indicate that the message is a message that needs to be encrypted and displayed, The message includes the message content and the first encrypted identifier; 当所述消息中携带第二加密标识时,显示所述消息的消息内容,所述第二加密标识用于表示所述消息为不需要加密显示的消息,所述消息中包括所述消息内容和所述第二加密标识。When the message carries a second encryption identifier, the message content of the message is displayed, and the second encryption identifier is used to indicate that the message is a message that does not require encrypted display, and the message includes the message content and the second encrypted identifier. 9.一种计算机可读存储介质,当所述计算机可读存储介质中存储有至少一条指令,所述指令由处理器加载并执行以实现如权利要求1所述的消息交互方法中所运行的操作。9. A computer-readable storage medium, when at least one instruction is stored in the computer-readable storage medium, the instruction is loaded and executed by a processor to realize the operation in the message interaction method according to claim 1. operate. 10.一种计算机可读存储介质,当所述计算机可读存储介质中存储有至少一条指令,所述指令由处理器加载并执行以实现如权利要求2至3任一项所述的消息交互方法中所运行的操作。10. A computer-readable storage medium, when at least one instruction is stored in the computer-readable storage medium, the instruction is loaded and executed by a processor to realize the message interaction according to any one of claims 2 to 3 The operation to be run in the method.
CN201610899194.2A 2016-10-14 2016-10-14 Message interaction method and device Active CN106453052B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610899194.2A CN106453052B (en) 2016-10-14 2016-10-14 Message interaction method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610899194.2A CN106453052B (en) 2016-10-14 2016-10-14 Message interaction method and device

Publications (2)

Publication Number Publication Date
CN106453052A CN106453052A (en) 2017-02-22
CN106453052B true CN106453052B (en) 2020-06-19

Family

ID=58174951

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610899194.2A Active CN106453052B (en) 2016-10-14 2016-10-14 Message interaction method and device

Country Status (1)

Country Link
CN (1) CN106453052B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106850416A (en) * 2017-03-31 2017-06-13 努比亚技术有限公司 Message processing apparatus and method
KR102325169B1 (en) * 2017-08-28 2021-11-11 텐디론 코포레이션 Security marking method, device and security terminal
CN108681664B (en) * 2018-05-28 2020-05-19 维沃移动通信有限公司 An encryption method and device
CN110827176B (en) * 2018-08-11 2023-04-07 冯兴 Legal consultation operation management system and method thereof
CN109165517B (en) * 2018-08-16 2024-06-25 腾讯科技(深圳)有限公司 Method, device, medium and equipment for preventing information leakage
CN109829526B (en) * 2019-01-25 2023-09-26 深圳市优博讯科技股份有限公司 Bar code management method and device and electronic equipment
CN109951604B (en) * 2019-02-27 2021-10-15 维沃移动通信有限公司 A message processing method, mobile terminal and user identity recognition module
EP3949371A4 (en) * 2019-03-29 2023-01-11 PopSockets LLC Obscured media communication
CN111600847A (en) * 2020-04-22 2020-08-28 维沃移动通信有限公司 Information processing method and electronic device
CN112416210A (en) * 2020-11-11 2021-02-26 珠海格力电器股份有限公司 Information encryption and decryption method, system, storage medium and electronic equipment
CN113378241B (en) * 2021-06-23 2023-07-28 安徽中电光达通信技术有限公司 Safety technology protection engineering design system and method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101815267A (en) * 2010-03-05 2010-08-25 惠州Tcl移动通信有限公司 Method for encrypting short message of mobile communication terminal
CN105162693A (en) * 2015-09-16 2015-12-16 小米科技有限责任公司 Message display method and device
CN105162804A (en) * 2015-09-30 2015-12-16 北京奇虎科技有限公司 Communication information protection method and apparatus
CN105184183A (en) * 2015-07-30 2015-12-23 努比亚技术有限公司 Chatting record encryption method and mobile terminal

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7349538B2 (en) * 2002-03-21 2008-03-25 Ntt Docomo Inc. Hierarchical identity-based encryption and signature schemes
KR20140110639A (en) * 2013-03-08 2014-09-17 삼성전자주식회사 Data security method and electronic device implementing the same
CN106020587A (en) * 2016-04-29 2016-10-12 北京小米移动软件有限公司 Method and device for message display

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101815267A (en) * 2010-03-05 2010-08-25 惠州Tcl移动通信有限公司 Method for encrypting short message of mobile communication terminal
CN105184183A (en) * 2015-07-30 2015-12-23 努比亚技术有限公司 Chatting record encryption method and mobile terminal
CN105162693A (en) * 2015-09-16 2015-12-16 小米科技有限责任公司 Message display method and device
CN105162804A (en) * 2015-09-30 2015-12-16 北京奇虎科技有限公司 Communication information protection method and apparatus

Also Published As

Publication number Publication date
CN106453052A (en) 2017-02-22

Similar Documents

Publication Publication Date Title
CN106453052B (en) Message interaction method and device
CN105656948A (en) Account login method and device
US10922444B2 (en) Method and apparatus for displaying application interface
CN107145800A (en) Privacy information protection method and device, terminal and storage medium
CN106790043B (en) Method and device for sending message in live broadcast application
CN107959757B (en) User information processing method, device, APP server and terminal device
CN109039860B (en) Method and device for sending and displaying messages, and method and device for identity authentication
WO2016155231A1 (en) Network access method and device
CN108319832A (en) Unlocking method and device
CN107147815B (en) Taxi-based call processing method and device
US9667784B2 (en) Methods and devices for providing information in voice service
CN106446653A (en) Application authority management method and device and electronic equipment
CN107748991A (en) Account safety management method and device
CN105809440B (en) Online payment method and device
CN107734178A (en) Presentation of information processing method, device, equipment and storage medium
CN106789070A (en) The decryption method of data, device and terminal
CN106792041A (en) Content share method and device
CN106600768A (en) Intelligent door lock authentication method, device and terminal
CN109246094B (en) User terminal verification method, device and storage medium
CN105681261A (en) Security authentication method and apparatus
CN106961664A (en) Communicate to connect control method, device and bluetooth keyboard
CN106611112A (en) Application program safe processing method, device and equipment
CN106506808B (en) Method and device for prompting communication message
CN115706966A (en) Method and device for connecting network and readable storage medium
CN108391323A (en) Equipment interconnected method, device and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant