Message display method

By receiving and displaying encrypted 5G messages on user terminals, combined with the encryption and issuance mechanism of the message platform, the problem of poor privacy of sensitive information of 5G messages received by user terminals is solved, and more efficient privacy protection and security display are achieved.

CN119421146APending Publication Date: 2025-02-11CHINA MOBILE INTERNET CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411403284.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-09
Publication Date
2025-02-11

AI Technical Summary

Technical Problem

The sensitive information of 5G messages received by user terminals is not privacy-friendly, and anyone who gets the unlocked terminal can see sensitive privacy information.

Method used

Provide a message display method, by receiving a message body carrying an encrypted identifier, displaying a desensitized message, and displaying the original original message after the user enters the correct privacy code. When sending messages, the message platform uses a pre-stored public key to encrypt the original text message.

Benefits of technology

It effectively guarantees the privacy and security of personal messages, and data display is more secure, reliable and efficient, greatly improving the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119421146A_ABST
    Figure CN119421146A_ABST
Patent Text Reader

Abstract

The invention discloses a message display method, and belongs to the technical field of communication. The method comprises the steps that a message body which is sent by a message platform and carries an encryption identifier is received, and the message body comprises a desensitization message corresponding to an original text message and an encryption message corresponding to the original text message; displaying the desensitized message on a message page; responding to an operation request for checking an original text message corresponding to the desensitization message, and obtaining an input first privacy password; and under the condition that the first privacy password is consistent with a pre-acquired second privacy password, acquiring the original text message, and displaying the original text message on the message page.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of communication technology, and specifically relates to a message display method. Background Art

[0002] Currently, a lot of personal sensitive information is stored in the fifth generation mobile communication technology (5G) messages of personal mobile terminals, such as salary messages, transfer messages, balance reminder messages, account password messages, etc. This kind of information is stored and displayed in plain text in the mobile terminal. Anyone who gets the unlocked terminal can see the sensitive privacy information inside.

[0003] In the related art, the privacy of sensitive information in 5G messages received by user terminals is poor. Summary of the invention

[0004] The purpose of the embodiment of the present application is to provide a message display method that can solve the problem that the privacy of messages received by a user terminal is difficult to ensure.

[0005] In a first aspect, an embodiment of the present application provides a message display method, which is applied to a user terminal, and the method includes: receiving a message body carrying an encryption identifier sent by a message platform, wherein the message body includes a desensitized message corresponding to the original text message and an encrypted message corresponding to the original text message; displaying the desensitized message on a message page; in response to an operation request to view the original text message corresponding to the desensitized message, obtaining an input first privacy password; when the first privacy password is consistent with a pre-acquired second privacy password, obtaining the original text message, and displaying the original text message on the message page.

[0006] In the second aspect, an embodiment of the present application provides a message sending method, which is applied to a message platform, and the method includes: receiving a receiving user identifier, an original text message, and a desensitized message transmitted by a business platform; when it is determined according to the receiving user identifier that the user corresponding to the receiving user identifier has set up privacy message encryption, the original text message is encrypting the original text message using a pre-stored public key corresponding to the receiving user identifier to obtain an encrypted message; forming a message body according to the encrypted message and the desensitized message, wherein the message body carries the encryption identifier; and sending the message body to a user terminal corresponding to the receiving user identifier.

[0007] In the third aspect, an embodiment of the present application provides a message display device, which is applied to a user terminal, and the device includes: a receiving module, which is used to receive a message body carrying an encryption identifier sent by a message platform, wherein the message body includes a desensitized message corresponding to the original text message and an encrypted message corresponding to the original text message; a display module, which is used to display the desensitized message on a message page; a first acquisition module, which is used to obtain an input first privacy password in response to an operation request to view the original text message corresponding to the desensitized message; and a second acquisition module, which is used to obtain the original text message when the first privacy password is consistent with a pre-acquired second privacy password, and display the original text message on the message page.

[0008] In the fourth aspect, an embodiment of the present application provides a message sending device, which is applied to a message platform, and the device includes: a receiving module, which is used to receive a receiving user identifier, an original text message and a desensitized message transmitted by a business platform; an acquisition module, which is used to encrypt the original text message using a pre-stored public key corresponding to the receiving user identifier to obtain an encrypted message when it is determined according to the receiving user identifier that the user corresponding to the receiving user identifier has set up privacy message encryption; a assembling module, which is used to assemble a message body according to the encrypted message and the desensitized message, wherein the message body carries an encryption identifier; and a sending module, which is used to send the message body to a user terminal corresponding to the receiving user identifier.

[0009] In a fifth aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the method described in the first aspect or the second aspect are implemented.

[0010] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method described in the first aspect or the second aspect are implemented.

[0011] In the seventh aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect or the second aspect.

[0012] In an eighth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the first aspect or the second aspect.

[0013] In an embodiment of the present application, a user terminal can receive a message body carrying an encryption identifier sent by a message platform, wherein the message body includes a desensitized message corresponding to the original text message and an encrypted message corresponding to the original text message; display the desensitized message on a message page; obtain the input first privacy password in response to an operation request to view the original text message corresponding to the desensitized message; obtain the original text message when the first privacy password is consistent with the pre-acquired second privacy password, and display the original text message on the message page. This not only effectively protects the privacy and security of personal messages, but also makes data display more secure, reliable and efficient, greatly improving user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] Figure 1 A schematic diagram showing a flow chart of a message display method provided in an embodiment of the present application; Figure 2 A schematic diagram showing a message page provided in an embodiment of the present application is shown; Figure 3 A schematic diagram showing a flow chart of a message sending method provided in an embodiment of the present application; Figure 4 An overall schematic diagram showing a message display method and a message sending method provided in an embodiment of the present application is shown; Figure 5 A schematic diagram showing the structure of a message display device provided in an embodiment of the present application is shown; Figure 6 A schematic diagram showing the structure of a message sending device provided in an embodiment of the present application is shown; Figure 7 A structural block diagram of an electronic device provided by an exemplary embodiment of the present application is shown; Figure 8 A structural block diagram of another electronic device provided by an exemplary embodiment of the present application is shown. DETAILED DESCRIPTION

[0015] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.

[0016] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0017] In the related technology, various algorithms can be used to ensure that data during the communication process is secure, complete, and cannot be intercepted.

[0018] One technology is to encrypt text messages during transmission by using font tools (fontTools can provide a series of tools to process font files). Dynamic mapping is performed on text messages; the encryption method for graphic messages is to encrypt the image in the time domain by using scrambling encryption and grayscale encryption, and then encrypt the image in the frequency domain by using frequency domain encryption. After encryption is completed, the encrypted message is again generated with fontTools to generate a dynamic verification script.

[0019] There is another technology that authenticates user information based on 5G messages when sending messages, which can ensure the accuracy of user information and improve the security of subsequent data transmission; when the user information authentication is successful, the security of online message data transmission can be improved by differentially encoding and encrypting the online message data.

[0020] The 5G messages in current personal mobile terminals store a lot of personal sensitive information, such as salary messages, transfer messages, balance reminder messages, account password messages, etc. This type of information is stored and displayed in plain text in the mobile terminal. Anyone who gets the unlocked terminal can see the sensitive privacy information inside.

[0021] In the related art, the privacy of sensitive information in 5G messages received by user terminals is poor.

[0022] The message display method provided by the embodiment of the present application is described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.

[0023] Figure 1 A message display method provided by an exemplary embodiment of the present application is shown, which is applied to a user terminal. The method 100 can be executed by an electronic device, which can be a mobile phone, a computer, etc. Figure 1 As shown, the method mainly includes the following steps: S101: receiving a message body carrying an encryption identifier sent by a message platform.

[0024] The message body includes a desensitized message corresponding to the original text message and an encrypted message corresponding to the original text message.

[0025] In the embodiment of the present application, the user terminal receives a message body carrying an encryption identifier sent by the message platform. The encryption identifier can be <privatemsg>true< / privateMsg> The identification field can also be other identifications, which are used to identify that the message body is encrypted and distinguish it from the unencrypted message received by the user terminal. If there is no encryption identification, the user terminal can directly display the received message, which helps to improve the efficiency of message transmission. The user terminal can be a 5G message terminal or other types of message terminals, which is not specifically limited in the embodiments of the present application. The message body may include a desensitized message corresponding to the original text message and an encrypted message corresponding to the original text message. The original text message that needs to be encrypted is generally some private information with sensitive content. It is usually transmitted after desensitization processing to reduce the possibility of privacy information leakage.

[0026] In an optional implementation, before receiving the message body carrying the encryption identifier sent by the message platform, the method may further include the following steps: Step 1: Receive the instruction to set up privacy message encryption and the second privacy password; the user terminal can set up a privacy message password page, on which a privacy message encryption switch and an input box for the second privacy password are set. The user can set it by voice or enter it manually.

[0027] Step 2: Generate a message encryption key pair, wherein the message encryption key pair includes an asymmetric public key and a private key; Step 3: Encrypt the private key using the second privacy password, and obtain and save the encrypted private key; Step 4: Send the public key and the user ID corresponding to the user terminal to the message platform. The user ID corresponding to the user terminal can be a user number or user account information, which is not specifically limited in the present embodiment.

[0028] Through the above implementation, the user can pre-set the encryption of private messages and obtain a message encryption key pair. The user terminal can ensure the security of the private key by encrypting and storing the private key of the generated encryption key pair, thereby avoiding the security of subsequent received messages.

[0029] In an optional implementation, performing the above step 2, generating a message encryption key pair includes: The elliptic curve algorithm is used to establish the token coefficient library; The message encryption key pair is generated according to the token coefficient library and the randomly generated character string.

[0030] In an embodiment of the present application, an elliptic curve algorithm may be used to establish a token coefficient library, or other algorithms may be used to establish it; then, a message encryption key pair (asymmetric public key and private key) is generated based on the created token coefficient library and a randomly generated string.

[0031] In the above optional implementation, the use of an elliptic curve algorithm to establish a token coefficient library includes: (1) Obtaining a first additive cluster and a second additive cluster on an elliptic curve, wherein the generators of the first additive cluster and the second additive cluster are the same, and the order of the first additive cluster is greater than or equal to 2 1 The user terminal can select the first additive cluster W1 and the second additive cluster W2 on the elliptic curve, the generator of the W1 cluster is p, the order is q greater than or equal to 2l, where l is the security factor, and the generator of the W2 cluster is p.

[0032] (2) Construct a bilinear map and a hash function based on the first addition cluster and the second addition cluster; the user terminal can construct a bilinear map e: W1*W2→W2, a hash function F1: {0,1}*→W1*, F2: {0,1}*→Zq*, F3: W2→Zq*, F4: W1→Zq* based on W1 and W2.

[0033] (3) Generate the master key and the corresponding master public key according to the hash function; in this embodiment of the application, the master key X can be selected in Zq* Zq*, and calculate the corresponding master public key Y=xP.

[0034] (4) Constructing the token coefficient library according to the first addition cluster and the second addition cluster, the bilinear map, the hash function, and the master public key. The token coefficient library constructed by the user terminal is {W1, W2, q, p, e, F1, F2, F3, F4, Y}.

[0035] In the embodiment of the present application, a message encryption key pair can be generated based on the token coefficient library and the randomly generated string. For example, an asymmetric public key and private key can be generated based on the randomly generated string storeKey, where the public key is T 公 =F1 (storeKey), whose private key is T 私 =xF1(storeKey).

[0036] In an optional implementation, encrypting the private key using the second privacy password to obtain and save the encrypted private key includes: The encryption private key K is obtained by the following formula using the SM4 algorithm: K=SM4(F(T 私 , SaltStr), KeySM4), Among them, SaltStr is a string of fixed length, F(T 私 , SaltStr) is the content encrypted by SM4, F function is the string cross-merge function, KeySM4 is the second privacy password, T 私 Represents the private key.

[0037] In an embodiment of the present application, the SM4 algorithm can be used to obtain the encrypted private key K. The SM4 algorithm is a symmetric encryption block cipher algorithm. Take the rule of string cross-merging as an example: string one is: abcd, string two is: 123456, then the result of merging string one and string two is: a1b2c3d456. In an embodiment of the present application, a string cross-merge function can be used to perform preliminary processing on the private key, and then the SM4 symmetric encryption algorithm is used to encrypt the merged private key according to the second privacy password to obtain the final encrypted private key K. The use of the SM4 algorithm can improve the security of the private key. In an embodiment of the present application, other methods can also be used to obtain the encrypted private key K, without specific limitation.

[0038] S102: Displaying the desensitized message on a message page.

[0039] In the embodiments of the present application, Figure 2 As shown, the user terminal can display the received desensitized message on the message page.

[0040] S103: In response to an operation request to view the original text message corresponding to the desensitized message, an input first privacy password is obtained.

[0041] In an embodiment of the present application, the user terminal can obtain the input first privacy password in response to the operation request of viewing the original text message corresponding to the desensitized message. The first privacy password can be used to decrypt the encrypted message in the message body.

[0042] In an optional implementation, a view original text button is spliced ​​into the message body; and in response to an operation request to view the original text message corresponding to the desensitized message, obtaining the input first privacy password includes: In response to an operation request for the view original text button displayed on the message page, displaying an input box for a first privacy password; The first privacy password entered in the input box is obtained.

[0043] In an embodiment of the present application, the message body received by the user terminal may include a view original text button, and the user terminal may directly call the view original text button to display it on the message page. The user terminal may respond to an operation request for the view original text button displayed on the message page by displaying an input box for the first privacy password; and then obtain the first privacy password entered in the input box.

[0044] S104: When the first privacy password is consistent with the pre-acquired second privacy password, the original text message is obtained, and the original text message is displayed on the message page.

[0045] In an embodiment of the present application, when the first privacy password is consistent with the pre-acquired second privacy password, the user terminal can use the first privacy password to decrypt the encrypted private key, and then decrypt the encrypted message using the private key obtained by decryption, obtain the original text message and display it on the message page.

[0046] It should be noted that if the first privacy password obtained by the user terminal is inconsistent with the second privacy password used when encrypting the private key, then the correct private key cannot be obtained, that is, it cannot be decrypted correctly. When encrypting and transmitting private messages, the embodiment of the present application can use a secondary authentication method to protect the private display of messages, which helps to improve the security of private messages and avoid leaking users' private messages.

[0047] If the first privacy password obtained by the user terminal is inconsistent with the pre-acquired second privacy password, the user terminal may give a prompt on the message page, and the user may then re-enter the first privacy password; the user terminal may also use the first privacy password to decrypt the encrypted message, display the incorrect original text message, and mark "decryption error", which is not specifically limited in the embodiments of the present application.

[0048] In practical applications, the first privacy password can be used to decrypt the pre-stored encrypted private key K using the SM4 algorithm, and the reverse rule of string cross-merging can be used to remove SaltStr and decompose the private key T 私 In a specific implementation, the user terminal can use the private key to reversely decrypt the originalMsg.data value in the view original text button of the message body to obtain the original text message and display it on the message page.

[0049] In an optional implementation, after displaying the original text message, the method further includes: In response to receiving an instruction to close the message page, the message page is closed and the original text message is deleted.

[0050] In an embodiment of the present application, after the user terminal displays the original text message, it can respond to receiving an instruction to close the message page, close the message page, and delete the original text message, thereby reducing the possibility of privacy information leakage, reducing the memory occupied by the information, and saving resources.

[0051] In an embodiment of the present application, a user terminal can receive a message body carrying an encryption identifier sent by a message platform, wherein the message body includes a desensitized message corresponding to the original text message and an encrypted message corresponding to the original text message; display the desensitized message on a message page; in response to an operation request to view the original text message corresponding to the desensitized message, obtain the input first privacy password; when the first privacy password is consistent with the pre-acquired second privacy password, obtain the original text message, and display the original text message on the message page. This not only effectively protects the privacy of personal messages, but also makes data display more secure, reliable and efficient, and can also enrich application scenarios and greatly improve user experience.

[0052] Figure 3 1 shows a message sending method provided by an exemplary embodiment of the present application, which is applied to a message platform. The method 300 can be executed by an electronic device. Figure 3 As shown, the method mainly includes the following steps: S301: receiving a receiving user ID, an original text message and a desensitized message transmitted by a receiving service platform.

[0053] In an embodiment of the present application, the message platform can receive the receiving user identification, the original original message and the desensitized message transmitted by the business platform, wherein the receiving user identification is used to identify the receiving user's information, which can be the receiving user number or the receiving user account, which is not specifically limited in the embodiment of the present application. In a specific implementation method, the message platform receives the application programming interface (Application Programming Interface, API) called by the business platform to send the message to pass the receiving user number, the original message content and the desensitized message content. The original original message in the embodiment of the present application usually includes some privacy content, so the business platform usually desensitizes the original original message and transmits the desensitized message to the message platform synchronously. The message platform can be a 5G message platform, which is not specifically limited in the embodiment of the present application.

[0054] In an optional implementation, before receiving the receiving user identifier, the original original message and the desensitized message transmitted by the receiving service platform, the method further includes: Receive the public key and the user identification sent by the user terminal, set to encrypt the private message corresponding to the user identification, and save the public key and the user identification.

[0055] In an embodiment of the present application, the message platform can receive the public key and user identification sent by the user terminal, set to encrypt the private message corresponding to the user identification, and save the public key and user identification. In actual application, a table can be created to store the public key and user identification sent by the user terminal, which is not only clear but also can improve work efficiency.

[0056] S302: When it is determined according to the receiving user identifier that the user corresponding to the receiving user identifier has set up privacy message encryption, the original original message is encrypted using a pre-stored public key corresponding to the receiving user identifier to obtain an encrypted message.

[0057] In the embodiment of the present application, when the message platform determines that the user corresponding to the receiving user ID has set up private message encryption according to the receiving user ID, the original original message can be encrypted using the pre-stored public key corresponding to the receiving user ID to obtain an encrypted message. Targeted encryption can be achieved to improve the security and reliability of private data.

[0058] S303: Build a message body according to the encrypted message and the desensitized message.

[0059] Wherein, the message body carries an encryption identifier.

[0060] In the embodiment of the present application, after the message platform determines that the receiving user sets the privacy message encryption and encrypts the original original message by the pre-stored public key of the receiving user to obtain the encrypted message, the message body can be formed according to the desensitized message and the encrypted message, wherein the message body can carry <privatemsg>true< / privateMsg> The field identifier is used as an encryption identifier to distinguish it from ordinary unencrypted messages.

[0061] S304: Send the message body to the user terminal corresponding to the receiving user identifier.

[0062] In an embodiment of the present application, the message platform may send the message body to a user terminal corresponding to the receiving user identifier.

[0063] In an optional implementation, before sending the message body to the user terminal corresponding to the receiving user identifier, the method further includes: A button for viewing the original text is provided for the message body.

[0064] In an embodiment of the present application, when assembling a message body, the message platform may splice a suggested operation button for the message body. The structure of the suggested operation button is shown in Table 1.

[0065] Table 1

[0066] The extended 5G message recommended operation type decryptAction indicates the behavior of viewing private messages, and carries the value of orginalMsg.data for the original private message <encryptmsg>The recommended action button name is "View original text". The recommended action click message behavior postback.data="set_by_decrypt_origin_msg" is reported to the message platform.

[0067] In an optional implementation, after the message body is sent to the user terminal corresponding to the receiving user identifier, a return message can be sent to the business platform. The return message carries information that the message body has been successfully sent. For example, after the message body is successfully sent, the message platform can call back to the business platform, and the message is sent successfully and carries the encrypted parameter information of the message.

[0068] In an embodiment of the present application, the message platform can receive a receiving user identifier, an original text message, and a desensitized message transmitted by a business platform; when it is determined based on the receiving user identifier that the user corresponding to the receiving user identifier has set up privacy message encryption, the original text message is encrypted using a pre-stored public key corresponding to the receiving user identifier to obtain an encrypted message; a message body is assembled based on the encrypted message and the desensitized message, and the message body is sent to a user terminal corresponding to the receiving user identifier, which can improve data security and reliability and protect privacy data.

[0069] Figure 4 The overall flow chart of the message display method and message delivery method provided by the embodiment of the present application is shown. Step 1 (1-5) Password setting process (message display method): The 5G message terminal (user terminal) supports the user to set the privacy message encryption switch and the privacy message password (second privacy password), and uses the elliptic curve algorithm to generate an asymmetric public key and private key, wherein the public key is uploaded to the 5G message platform for subsequent message encryption, and the private key uses the SM4 algorithm to generate a key based on the user's password and is stored in the terminal.

[0070] Step 2 (6-12) Message sending process (message sending method): The 5G message platform receives the service platform and calls the API interface for sending messages to pass the receiving user number, original message content and desensitized message content. Determine the user number to set up privacy message encryption and obtain the receiving user's public key T 公 The original text message is encrypted, and a 5G message (message body) carrying the desensitized content and the encrypted original text content is assembled and sent to the 5G message terminal.

[0071] Step 3 (13-15) Message decryption process (message display method): After the 5G message terminal responds to the user's button click instruction to view the original text and receives the privacy password (first privacy password), it reversely decrypts the originalMsg.data value of the recommended operation of the message to obtain the original text message and displays it to the user.

[0072] The message display method provided in the embodiment of the present application can be executed by a message display device. In the embodiment of the present application, the message display device provided in the embodiment of the present application is described by taking the message display method executed by the message display device as an example.

[0073] Figure 5 The schematic diagram of the structure of a message display device provided by an exemplary embodiment of the present application is shown. The message display device can be applied to a user terminal and can implement the following Figure 1 All or part of the content in the illustrated embodiment, the message display device includes: a receiving module 501, a display module 502, a first acquisition module 503 and a second acquisition module 504.

[0074] In an embodiment of the present application, a receiving module 501 is used to receive a message body carrying an encryption identifier sent by a message platform, wherein the message body includes a desensitized message corresponding to the original text message and an encrypted message corresponding to the original text message; a display module 502 is used to display the desensitized message on a message page; a first acquisition module 503 is used to obtain an input first privacy password in response to an operation request to view the original text message corresponding to the desensitized message; a second acquisition module 504 is used to obtain the original text message when the first privacy password is consistent with a pre-acquired second privacy password, and display the original text message on the message page.

[0075] In an optional implementation, the receiving module 501 is further configured to close the message page and delete the original text message in response to receiving an instruction to close the message page.

[0076] In an optional implementation, the receiving module 501 is further configured to receive an instruction for setting encryption of a private message and a second private password; Generate a message encryption key pair, wherein the message encryption key pair includes an asymmetric public key and a private key; Encrypt the private key using the second privacy password, and obtain and save the encrypted private key; The public key and the user identification corresponding to the user terminal are sent to the message platform.

[0077] In an optional implementation, when the receiving module 501 is used to generate the message encryption key pair, it is specifically used to: The elliptic curve algorithm is used to establish the token coefficient library; The message encryption key pair is generated according to the token coefficient library and the randomly generated character string.

[0078] In an optional implementation, when the receiving module 501 is used to establish a token coefficient library using an elliptic curve algorithm, it is specifically used to: Obtain a first additive cluster and a second additive cluster on an elliptic curve, wherein the generators of the first additive cluster and the second additive cluster are the same, and the order of the first additive cluster is greater than or equal to 2 1 ; Constructing a bilinear map and a hash function according to the first additive cluster and the second additive cluster; Generate the master key and the corresponding master public key according to the hash function; The token coefficient library is constructed according to the first additive cluster and the second additive cluster, the bilinear map, the hash function, and the master public key.

[0079] In an optional implementation, when the receiving module 501 is used to encrypt the private key using the second privacy password to obtain and save the encrypted private key, it is specifically used to: The encryption private key K is obtained by the following formula using the SM4 algorithm: K=SM4(F(T 私 , SaltStr), KeySM4), Among them, SaltStr is a string of fixed length, F(T 私 , SaltStr) is the content encrypted by SM4, F function is the cross-merging of strings, KeySM4 is the second privacy password, T 私 Represents the private key.

[0080] In an optional implementation, a view original text button is spliced ​​into the message body; when the first acquisition module 503 is used to obtain the input first privacy password in response to the operation request of viewing the original text message corresponding to the desensitized message, it is specifically used to: In response to an operation request for the view original text button displayed on the message page, displaying an input box for a first privacy password; The first privacy password entered in the input box is obtained.

[0081] The message display device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or it can be other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0082] The message display device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0083] The message display device provided in the embodiment of the present application can achieve Figure 1 To avoid repetition, the various processes implemented in the illustrated method embodiment will not be described again here.

[0084] The message sending method provided in the embodiment of the present application can be executed by a message sending device. In the embodiment of the present application, the message sending device provided in the embodiment of the present application is described by taking the message sending method executed by the message sending device as an example.

[0085] Figure 6 The schematic diagram of the structure of a message sending device provided by an exemplary embodiment of the present application is shown. The message sending device can implement the following Figure 3 All or part of the content in the illustrated embodiment, the message sending device includes: a receiving module 601, an acquiring module 602, a building module 603 and a sending module 604.

[0086] In an embodiment of the present application, a receiving module 601 is used to receive a receiving user identifier, an original text message and a desensitized message transmitted by a business platform; an acquiring module 602 is used to encrypt the original text message using a pre-stored public key corresponding to the receiving user identifier to obtain an encrypted message when it is determined based on the receiving user identifier that the user corresponding to the receiving user identifier has set up privacy message encryption; a assembling module 603 is used to assemble a message body based on the encrypted message and the desensitized message, wherein the message body carries an encryption identifier; a sending module 604 is used to send the message body to a user terminal corresponding to the receiving user identifier.

[0087] In an optional implementation, the receiving module 601 is further configured to receive a public key and a user identifier sent by the user terminal, encrypt a private message corresponding to the user identifier, and save the public key and the user identifier.

[0088] In an optional implementation, the assembly module 603 is also used to splice a view original text button for the message body.

[0089] The message sending device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or it can be other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0090] The message sending device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0091] The message sending device provided in the embodiment of the present application can achieve Figure 3 To avoid repetition, the various processes implemented in the illustrated method embodiment will not be described again here.

[0092] Alternatively, if Figure 7 As shown, an embodiment of the present application also provides an electronic device 700, including a processor 701 and a memory 702, wherein the memory 702 stores programs or instructions that can be executed on the processor 701, and when the program or instructions are executed by the processor 701, the various steps of the above-mentioned message display method or message sending method are implemented, and the same technical effect can be achieved. To avoid repetition, they are not repeated here.

[0093] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.

[0094] Figure 8 FIG. 8 is a block diagram of another electronic device 800 according to an exemplary embodiment of the present application. The electronic device 800 may be implemented as a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart watch, a TV, etc. The electronic device 800 may also be called a user device, a portable terminal, a laptop terminal, a desktop terminal, etc.

[0095] Typically, the electronic device 800 includes a processor 801 and a memory 802 .

[0096] The processor 801 may include one or more processing cores, such as a 4-core processor, a 10-core processor, etc. The processor 801 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 801 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 801 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 801 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.

[0097] The memory 802 may include one or more computer-readable storage media, which may be non-transitory. The memory 802 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 802 is used to store at least one instruction, which is used to be executed by the processor 801 to implement all or part of the steps in the message display method or message delivery method shown in the embodiment of the present application.

[0098] In some embodiments, the electronic device 800 may further optionally include: a peripheral device interface 803 and at least one peripheral device. The processor 801, the memory 802 and the peripheral device interface 803 may be connected via a bus or a signal line. Each peripheral device may be connected to the peripheral device interface 803 via a bus, a signal line or a circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 804, a display screen 805, a camera assembly 806, an audio circuit 807 and a power supply 808.

[0099] In some embodiments, the electronic device 800 further includes one or more sensors 809 , including but not limited to: an acceleration sensor 810 , a gyroscope sensor 811 , a pressure sensor 812 , an optical sensor 813 , and a proximity sensor 814 .

[0100] Those skilled in the art will understand that Figure 8 The structure shown in the figure does not constitute a limitation on the electronic device 800, and may include more or less components than those shown in the figure, or combine some components, or adopt a different component arrangement.

[0101] An embodiment of the present application also provides a computer-readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned message display method or message sending method are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0102] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.

[0103] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement each process of the above-mentioned message display method or message sending method, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0104] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0105] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement various processes of the above-mentioned message display method or message sending method, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0106] It should be noted that, in this article, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved. For example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0107] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0108] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.< / encryptmsg> < / privatemsg> < / privatemsg>

Claims

1. A message display method, applied to a user terminal, characterized in that: include: Receive a message body carrying an encryption identifier sent by a message platform, wherein the message body includes a desensitized message corresponding to an original text message and an encrypted message corresponding to the original text message; Displaying the desensitized message on a message page; In response to an operation request to view the original text message corresponding to the desensitized message, obtaining an input first privacy password; When the first privacy password is consistent with the pre-acquired second privacy password, the original text message is obtained and displayed on the message page.

2. The method according to claim 1, characterized in that After displaying the original text message, the method further includes: In response to receiving an instruction to close the message page, the message page is closed and the original text message is deleted.

3. The method according to claim 1, characterized in that: Before receiving the message body carrying the encryption identifier sent by the message platform, the method further includes: Receiving instructions for setting up private message encryption and a second privacy password; Generate a message encryption key pair, wherein the message encryption key pair includes an asymmetric public key and a private key; Encrypt the private key using the second privacy password, and obtain and save the encrypted private key; The public key and the user identification corresponding to the user terminal are sent to the message platform.

4. The method according to claim 3, characterized in that The generating of the message encryption key pair comprises: The elliptic curve algorithm is used to establish the token coefficient library; The message encryption key pair is generated according to the token coefficient library and the randomly generated character string.

5. The method according to claim 4, characterized in that The method of using the elliptic curve algorithm to establish a token coefficient library includes: Obtain a first additive cluster and a second additive cluster on an elliptic curve, wherein the generators of the first additive cluster and the second additive cluster are the same, and the order of the first additive cluster is greater than or equal to 2 1 ; Constructing a bilinear map and a hash function according to the first additive cluster and the second additive cluster; Generate the master key and the corresponding master public key according to the hash function; The token coefficient library is constructed according to the first additive cluster and the second additive cluster, the bilinear map, the hash function, and the master public key.

6. The method according to claim 3, characterized in that The step of encrypting the private key using the second privacy password to obtain and save the encrypted private key includes: The encryption private key K is obtained by the following formula using the SM4 algorithm: K=SM4(F(T 私 ,SaltStr),KeySM4), Among them, SaltStr is a string of fixed length, F(T 私 , SaltStr) is the content encrypted by SM4, F function is the cross-merging of strings, KeySM4 is the second privacy password, T 私 Represents the private key.

7. The method according to any one of claims 1 to 6, characterized in that: The message body is provided with a view original text button; the step of obtaining the input first privacy password in response to the operation request of viewing the original text message corresponding to the desensitized message includes: In response to an operation request for the view original text button displayed on the message page, displaying an input box for a first privacy password; The first privacy password entered in the input box is obtained.

8. A message sending method, applied to a message platform, characterized in that: include: The receiving user ID, original text message and desensitized message transmitted by the receiving service platform; In the case where it is determined according to the receiving user identifier that the user corresponding to the receiving user identifier has set up private message encryption, the original original message is encrypted using a pre-stored public key corresponding to the receiving user identifier to obtain an encrypted message; Building a message body according to the encrypted message and the desensitized message, wherein the message body carries an encryption identifier; The message body is sent to the user terminal corresponding to the receiving user identifier.

9. The method according to claim 8, characterized in that Before receiving the receiving user identifier, the original original message and the desensitized message transmitted by the receiving service platform, the method further includes: Receive the public key and the user identification sent by the user terminal, set to encrypt the private message corresponding to the user identification, and save the public key and the user identification.

10. The method according to claim 8 or 9, characterized in that: Before sending the message body to the user terminal corresponding to the receiving user identifier, the method further includes: A button for viewing the original text is provided for the message body.