Communication method

By using telephone numbers in 5G message nodes to add friends and interact with messages between users, the problem of low social security of user friends in the prior art is solved, and a safe and convenient social communication is achieved.

CN119316809APending Publication Date: 2025-01-14CHINA MOBILE INTERNET CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411239629.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-05
Publication Date
2025-01-14

AI Technical Summary

Technical Problem

In the prior art, user friends social relies on third-party applications, have low security and cannot display users' social relationships and social information based on the system's native address book and SMS application.

Method used

By receiving and sending messages containing phone numbers in 5G message nodes, friends addition and message interaction between users are realized, and real-name authentication is used for phone numbers to ensure the security of message interaction.

Benefits of technology

It effectively solves the security problem of the source of the user's real identity, realizes safe and convenient social communication between users, and enhances the reliability of user identity authentication.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119316809A_ABST
    Figure CN119316809A_ABST
Patent Text Reader

Abstract

The invention discloses a communication method. The communication method is applied to a 5G message node, and the method comprises the following steps: receiving a first 5G message sent by a first terminal, and sending the first 5G message to a second terminal according to a telephone number of the second terminal contained in the first 5G message; and receiving a second 5G message sent by the second terminal, and sending the second 5G message to the first terminal according to the phone number of the first terminal included in the second 5G message, the second 5G message being a 5G message which is returned by the second terminal and agrees to add a friend or a 5G message which is returned by the second terminal and refuses to add a friend. According to the embodiment of the invention, on the basis of the 5G message, communication such as friend adding between the first terminal and the second terminal is carried out based on the telephone number of the first terminal and the telephone number of the second terminal, and the telephone numbers are authenticated by real names, so that the security problem of a real identity source of a user is effectively solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of 5G message technology, and in particular to a communication method. Background Art

[0002] With the development of Internet technology, people are increasingly inseparable from various software in their lives. Major software, such as WeChat, QQ, Taobao, etc., can also provide social functions to users to meet people's social needs. The software platform builds friend system modules, personal information modules, friend circle modules, resource modules, etc. The platform system with these modules supports users to add friends to each other, set avatars, set friend tags, post to friends circle, etc.

[0003] However, the relevant technologies are all based on third-party applications to achieve user-friend social interaction. They cannot determine the other party's real user identity and rely on third-party application account systems, which greatly reduces the convenience and security of use, and cannot display users' social relationships and social information based on the system's native address book and SMS applications. Summary of the invention

[0004] The embodiment of the present application provides a communication method to solve the problem in the related art that user friend social networking needs to rely on third-party applications and has low security.

[0005] In a first aspect, an embodiment of the present application provides a communication method, which is applied to a 5G message node, and the method includes:

[0006] receiving a first 5G message sent by a first terminal, and sending the first 5G message to the second terminal according to the phone number of the second terminal included in the first 5G message;

[0007] Receive a second 5G message sent by the second terminal, and send the second 5G message to the first terminal according to the phone number of the first terminal contained in the second 5G message, the second 5G message being a 5G message returned by the second terminal agreeing to add a friend or a 5G message returned by the second terminal rejecting to add a friend.

[0008] In one example, the receiving a first 5G message sent by the first terminal, and sending the first 5G message to the second terminal according to the phone number of the second terminal included in the first 5G message, includes:

[0009] Receiving a first 5G message for adding a friend sent by the first terminal;

[0010] Parse the first 5G message, determine that the first 5G message is a social message for adding a friend, and the first 5G message includes a first message interaction encryption public key, a phone number of the second terminal, and a phone number of the first terminal;

[0011] According to the telephone number of the second terminal, the first 5G message is sent to the second terminal.

[0012] In one example, the receiving a second 5G message sent by the second terminal, and sending the second 5G message to the first terminal according to the telephone number of the first terminal included in the second 5G message, includes:

[0013] Receiving a second 5G message sent by the 5G message node of the second terminal;

[0014] Parse the second 5G message, determine that the second 5G message is a 5G message for agreeing to add a friend, and the second 5G message includes a second message interaction encryption public key;

[0015] Based on the second 5G message, update and save the friend relationship information, as well as the first message interaction encryption public key and the second message interaction encryption public key;

[0016] The 5G message agreeing to add a friend and the second message interactive encryption public key are sent to the first terminal.

[0017] In one example, the 5G message node includes a first 5G message center 5GMC and a first 5G message commercial network element MaaP;

[0018] The receiving a first 5G message sent by the first terminal, and sending the first 5G message to the second terminal according to the phone number of the second terminal included in the first 5G message, includes:

[0019] The first 5GMC receives a first 5G message sent by the first terminal, and sends the first 5G message to the first MaaP;

[0020] The first MaaP parses the first 5G message and determines that the first 5G message is a social message for adding a friend, and the first 5G message includes a first message interaction encryption public key, a phone number of the second terminal, and a phone number of the first terminal;

[0021] The first MaaP sends the first 5G message to the 5G message node corresponding to the second terminal according to the phone number of the second terminal.

[0022] In one example, the method further includes:

[0023] When receiving a third 5G message for publishing a circle of friends sent by the first terminal, the first 5GMC sends the third 5G message to the first MaaP, where the third 5G message includes at least one of text, picture, and video;

[0024] The first MaaP parses the third 5G message and determines that the third 5G message is a published circle of friends message;

[0025] The first MaaP sends a request for obtaining a friend list of the first terminal to the first 5GMC;

[0026] Upon receiving the request for obtaining the friend list of the first terminal, the first 5GMC queries the friend number list of the first terminal and sends the friend number list to the first MaaP;

[0027] The first MaaP uses the first message interaction encryption public key to encrypt the circle of friends message, and sends the encrypted circle of friends message to the 5G message node where each terminal in the friend number list is located.

[0028] In one example, the method further includes:

[0029] When receiving a fourth 5G message for sending a friend message sent by the first terminal, the first 5GMC sends the fourth 5G message to the first MaaP, where the fourth 5G message includes at least one of text, picture, and video;

[0030] The first MaaP parses the fourth 5G message and determines that the fourth 5G message is a message sent to the first friend;

[0031] The first MaaP sends information about acquiring the first friend to the first 5GMC;

[0032] Upon receiving the information of obtaining the first friend, the first 5GMC queries the number of the first friend and sends the number of the first friend to the first MaaP;

[0033] The first MaaP uses the first message interaction encryption public key to encrypt the message sent to the first friend, and sends the encrypted message to the 5G message node where the terminal of the first friend is located.

[0034] In one example, the method further includes:

[0035] The first 5GMC, when receiving a request for querying friend's personal information sent by the first terminal, determines whether the friend to be queried has a friend relationship with the first terminal, wherein the request for querying friend's personal information adopts a general authentication mechanism GBA authentication, and the request for querying friend's personal information includes querying personal information and a message interaction encryption public key;

[0036] When the first 5GMC determines that the friend to be queried and the first terminal are in a friend relationship, query whether the personal information and the message interaction encryption public key of the friend to be queried are stored in the first 5GMC;

[0037] When the personal information of the friend to be queried and the message interaction encryption public key are saved in the first 5GMC, the personal information of the friend to be queried and the message interaction encryption public key are sent to the first terminal.

[0038] In one example, the method further comprises:

[0039] In the case that the personal information of the friend to be queried and the message interaction encryption public key are not stored in the first 5GMC, a request for querying the friend's personal information is sent to the 5G message node where the terminal of the friend to be queried is located;

[0040] The first 5GMC receives the personal information and message interaction encryption public key of the friend to be queried sent by the 5G message node where the terminal of the friend to be queried is located, and sends the personal information and message interaction encryption public key of the friend to be queried to the first terminal.

[0041] In one example, the method further comprises:

[0042] The first 5GMC receives a personal information update request sent by the first terminal, where the personal information update request adopts GBA authentication, and the personal information update request includes updated personal information, where the updated personal information includes at least one of a personal nickname, a personal portrait, a personal status, a personal signature, and a personal background;

[0043] The first 5GMC updates and stores the updated personal information;

[0044] The first 5GMC sends the updated personal information to the 5G message nodes where other terminals that have a friend relationship with the first terminal are located.

[0045] In a second aspect, an embodiment of the present application provides a communication method, which is applied to a 5G message node, and the method includes:

[0046] Receive a first 5G message sent by a 5G message node of the first terminal, and send the first 5G message to the second terminal;

[0047] Receive a second 5G message sent by the second terminal, and send the second 5G message to the first terminal according to the phone number of the first terminal contained in the second 5G message, the second 5G message being a 5G message returned by the second terminal agreeing to add a friend or a 5G message returned by the second terminal rejecting to add a friend.

[0048] In one example, the receiving a first 5G message sent by a 5G message node of a first terminal, and sending the first 5G message to the second terminal according to the telephone number of the second terminal included in the first 5G message, includes:

[0049] Receiving a first 5G message sent by a 5G message node of the first terminal;

[0050] Parse the first 5G message, determine that the first 5G message is a social message for adding a friend, and the first 5G message includes a first message interaction encryption public key and a phone number of the first terminal;

[0051] Send the first 5G message to the second terminal.

[0052] In one example, the receiving a second 5G message sent by the second terminal, and sending the second 5G message to the first terminal according to the telephone number of the first terminal included in the second 5G message, includes:

[0053] Receiving a second 5G message sent by the second terminal;

[0054] Parse the second 5G message, determine that the second 5G message is a 5G message for agreeing to add a friend, and the second 5G message includes a second message interaction encryption public key and a phone number of the first terminal;

[0055] Based on the second 5G message, update and save the friend relationship information, as well as the first message interaction encryption public key and the second message interaction encryption public key;

[0056] Send the second 5G message to the 5G message node of the first terminal.

[0057] In one example, the 5G messaging node includes a second 5GMC and a second MaaP;

[0058] The receiving a first 5G message sent by a 5G message node of the first terminal, and sending the first 5G message to the second terminal includes:

[0059] The second MaaP receives a first 5G message sent by the 5G message node of the first terminal, parses the first 5G message, and determines that the first 5G message is a social message for adding a friend, and the first 5G message includes a first message interaction encryption public key and a phone number of the first terminal;

[0060] The second MaaP sends the first 5G message to the second 5GMC;

[0061] The second 5GMC sends the first 5G message to the second terminal.

[0062] In a third aspect, an embodiment of the present application provides a communication method, which is applied to a first terminal, and the method includes:

[0063] When receiving the add friend operation of the first user, displaying the address book user interface;

[0064] Determining a second user to be added as a friend based on the operation of the first user on the address book user interface;

[0065] When the second user is determined, generating a first 5G message based on the phone number of the second terminal corresponding to the second user, the first 5G message including the first message interaction encryption public key, the phone number of the second terminal, and the phone number of the first terminal;

[0066] Sending the first 5G message to a 5G message node;

[0067] Receive a second 5G message sent by the 5G message node, where the second 5G message is a 5G message returned by the second terminal agreeing to add a friend or a 5G message returned by the second terminal refusing to add a friend.

[0068] In one example, receiving a second 5G message sent by the 5G message node includes:

[0069] In the case that the second 5G message is a 5G message returned by the second terminal for agreeing to add a friend, the 5G message for agreeing to add a friend sent by the 5G message node receiving the 5G message and the second message exchange encryption public key.

[0070] In a fourth aspect, an embodiment of the present application provides a communication method, which is applied to a second terminal, and the method includes:

[0071] Receive a first 5G message sent by a 5G message node, where the first 5G message includes a first message interaction encryption public key and a telephone number of the first terminal;

[0072] Based on the first 5G message, receiving a selection of the second user, where the selection includes agreeing or rejecting;

[0073] Based on the selection of the second user, a second 5G message is generated and sent to the 5G message node, where the second 5G message is a 5G message agreeing to add a friend or a 5G message refusing to add a friend.

[0074] In a fifth aspect, an embodiment of the present application provides a communication device, applied to a 5G message node, the device comprising:

[0075] A first receiving and sending module is used to receive a first 5G message sent by a first terminal, and send the first 5G message to the second terminal according to the phone number of the second terminal included in the first 5G message;

[0076] The second receiving and sending module is used to receive a second 5G message sent by the second terminal, and send the second 5G message to the first terminal according to the phone number of the first terminal contained in the second 5G message, wherein the second 5G message is a 5G message returned by the second terminal to agree to add a friend or a 5G message returned by the second terminal to refuse to add a friend.

[0077] In a sixth aspect, an embodiment of the present application provides a communication device, applied to a 5G message node, the device comprising:

[0078] A third receiving and sending module is used to receive a first 5G message sent by the 5G message node of the first terminal, and send the first 5G message to the second terminal;

[0079] The fourth receiving and sending module is used to receive the second 5G message sent by the second terminal, and send the second 5G message to the first terminal according to the phone number of the first terminal contained in the second 5G message, wherein the second 5G message is a 5G message returned by the second terminal agreeing to add a friend or a 5G message returned by the second terminal rejecting to add a friend.

[0080] In a seventh aspect, an embodiment of the present application provides a communication device, applied to a first terminal, the device comprising:

[0081] A first receiving module, configured to display a contact book user interface when receiving an add friend operation from the first user;

[0082] A determination module, configured to determine a second user to be added as a friend based on the operation of the first user on the address book user interface;

[0083] A first generating module is used to generate a first 5G message based on the telephone number of the second terminal corresponding to the second user when the second user is determined, wherein the first 5G message includes a first message interaction encryption public key, the telephone number of the second terminal, and the telephone number of the first terminal;

[0084] A first sending module, used to send the first 5G message to a 5G message node;

[0085] The second receiving module is used to receive a second 5G message sent by the 5G message node, where the second 5G message is a 5G message returned by the second terminal to agree to add a friend or a 5G message returned by the second terminal to refuse to add a friend.

[0086] In an eighth aspect, an embodiment of the present application provides a communication device, applied to a second terminal, the device comprising:

[0087] A third receiving module is used to receive a first 5G message sent by the 5G message node, where the first 5G message includes a first message interaction encryption public key and a telephone number of the first terminal;

[0088] A fourth receiving module, configured to receive a selection of a second user based on the first 5G message, where the selection includes consent or rejection;

[0089] The second generating module is used to generate a second 5G message based on the selection of the second user, and send it to the 5G message node, where the second 5G message is a 5G message agreeing to add a friend or a 5G message refusing to add a friend.

[0090] In the ninth aspect, an embodiment of the present application provides an electronic device, comprising a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method described in the first aspect, or implements the steps of the method described in the second aspect, or implements the steps of the method described in the third aspect, or implements the steps of the method described in the fourth aspect.

[0091] In the tenth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it implements the steps of the method described in the first aspect, or implements the steps of the method described in the second aspect, or implements the steps of the method described in the third aspect, or implements the steps of the method described in the fourth aspect.

[0092] In the eleventh aspect, an embodiment of the present application provides a computer program product, comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions, and when the program instructions are executed by a computer, the steps of the method described in the first aspect are implemented, or the steps of the method described in the second aspect are implemented, or the steps of the method described in the third aspect are implemented, or the steps of the method described in the fourth aspect are implemented.

[0093] In an embodiment of the present application, a first 5G message sent by a first terminal is first received, and according to the phone number of the second terminal contained in the first 5G message, the first 5G message is sent to the second terminal, and then a second 5G message sent by the second terminal is received, and according to the phone number of the first terminal contained in the second 5G message, the second 5G message is sent to the first terminal, and the second 5G message is a 5G message returned by the second terminal agreeing to add a friend or a 5G message returned by the second terminal refusing to add a friend. Based on the 5G message, the embodiment of the present application performs communication such as adding friends between the two based on the phone number of the first terminal and the phone number of the second terminal. Since the phone number is authenticated by real name, the security problem of the user's real identity source is effectively solved. BRIEF DESCRIPTION OF THE DRAWINGS

[0094] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0095] Figure 1 is a flow chart of a communication method provided in an embodiment of the present application;

[0096] Figure 2 is a schematic diagram of a social friend system based on 5G messages provided in an embodiment of the present application;

[0097] Figure 3 is a flow chart of another communication method provided by an embodiment of the present application;

[0098] Figure 4 This is a schematic diagram of an interface for adding friends provided in an embodiment of the present application;

[0099] Figure 5 It is an overall flow chart of the communication method provided in the embodiment of the present application;

[0100] Figure 6 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0101] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0102] 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. In addition, the "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally represents that the objects associated with each other are in an "or" relationship.

[0103] The following is combined with Figures 1 to 6 , a communication method provided in an embodiment of the present application is described in detail through specific embodiments and application scenarios.

[0104] like Figure 1 As shown, it is a flow chart of a communication method provided by an embodiment of the present application. Figure 1 As shown, the communication method is applied to a 5G message node, hereinafter referred to as the first 5G message node, and the communication method may include: the contents shown in S101 to S102.

[0105] In S101, a first 5G message sent by a first terminal is received, and the first 5G message is sent to a second terminal according to the phone number of the second terminal contained in the first 5G message.

[0106] In other words, this application does not require additional applications, only some information about the terminal device itself, such as phone number, etc., and terminal devices can be added through 5G messages.

[0107] In this embodiment, the first 5G message can be sent to the second terminal based on the telephone number of the second terminal contained in the first 5G message.

[0108] In S102, a second 5G message sent by the second terminal is received, and according to the phone number of the first terminal contained in the second 5G message, the second 5G message is sent to the first terminal. The second 5G message is a 5G message returned by the second terminal agreeing to add a friend or a 5G message returned by the second terminal refusing to add a friend.

[0109] In this embodiment, the first terminal can send a message to the second terminal via a 5G message, and correspondingly, the second terminal can also send a message to the first terminal via a 5G message. That is to say, the first terminal and the second terminal can communicate via a 5G message without using a third-party application, and use a telephone number to communicate during the communication process to ensure the security of the communication.

[0110] In an embodiment of the present application, a first 5G message sent by a first terminal is first received, and according to the phone number of the second terminal contained in the first 5G message, the first 5G message is sent to the second terminal, and then a second 5G message sent by the second terminal is received, and according to the phone number of the first terminal contained in the second 5G message, the second 5G message is sent to the first terminal, and the second 5G message is a 5G message returned by the second terminal agreeing to add a friend or a 5G message returned by the second terminal refusing to add a friend. Based on the 5G message, the embodiment of the present application performs communication such as adding friends between the two based on the phone number of the first terminal and the phone number of the second terminal. Since the phone number is authenticated by real name, the security issue of the user's real identity source is effectively solved.

[0111] In a possible implementation of the present application, receiving a first 5G message sent by a first terminal, and sending the first 5G message to a second terminal according to the phone number of the second terminal contained in the first 5G message, may include: receiving a first 5G message for adding a friend sent by the first terminal; parsing the first 5G message as a social message for adding a friend, the first 5G message including a first message interaction encryption public key, the phone number of the second terminal and the phone number of the first terminal; and sending the first 5G message to the second terminal according to the phone number of the second terminal.

[0112] That is to say, when receiving the first 5G message for adding a friend sent by the first terminal, the first 5G message can be parsed to determine that the message is a social message for adding a friend, and the first 5G message can be sent to the second terminal according to the phone number contained in the message. The message interaction between the terminals can be completed through the phone number, making the message interaction safe and convenient.

[0113] In a possible implementation of the present application, receiving a second 5G message sent by a second terminal, and sending the second 5G message to the first terminal according to the phone number of the first terminal contained in the second 5G message, may include: receiving the second 5G message sent by the 5G message node of the second terminal; parsing the second 5G message, determining that the second 5G message is a 5G message of agreement to add a friend, and the second 5G message includes a second message interaction encryption public key; based on the second 5G message, updating and saving the friend relationship information, as well as the first message interaction encryption public key and the second message interaction encryption public key; sending the 5G message of agreement to add a friend and the second message interaction encryption public key to the first terminal.

[0114] That is to say, when the second 5G message sent by the second 5G message node of the second terminal is received, the message is parsed to determine that the second 5G message is a 5G message in which the second terminal agrees to add a friend and the second message interaction encryption public key of the second terminal. The first 5G message node updates and saves the friend relationship information between the first terminal and the second terminal, as well as the first message interaction encryption public key and the second message interaction encryption public key, for subsequent use by the first terminal and the second terminal in communication, and sends the 5G message in which the second terminal agrees to add a friend and the second message interaction encryption public key to the first terminal to complete the addition of friends between the first terminal and the second terminal.

[0115] In a possible implementation of the present application, the 5G message node includes a first 5G message center 5GMC and a first 5G message commercial network element MaaP (Massage as a platform).

[0116] Receiving a first 5G message sent by a first terminal, and sending the first 5G message to a second terminal according to the phone number of the second terminal contained in the first 5G message, may include: a first 5GMC receives the first 5G message sent by the first terminal, and sends the first 5G message to a first MaaP; the first MaaP parses the first 5G message, determines that the first 5G message is a social message for adding a friend, and the first 5G message includes a first message interaction encryption public key, the phone number of the second terminal and the phone number of the first terminal; the first MaaP sends the first 5G message to a 5G message node corresponding to the second terminal according to the phone number of the second terminal.

[0117] It is worth noting that the 5GMC in the 5G message node is responsible for individuals and uplinks and downlinks personal messages; MaaP is responsible for uplinks and downlinks of 5G commercial messages. 5GMC and MaaP each have multiple regional nodes, which carry users in various regions across the country.

[0118] Figure 2 This is a schematic diagram of a social friend system based on 5G messages. 5GMC may include a personal information module, a social friend module, and a personal friend circle module, and MaaP includes a social message communication module.

[0119] Among them, the personal message module is responsible for adding, deleting, modifying and checking the user's 5G message personal information, including personal nickname, personal avatar, personal status, personal signature, personal background and other information; the social friend module is responsible for adding, deleting, modifying and checking the user's 5G message friend relationship information, including friend's number, friend's notes and other information, realizing functions such as message forwarding between friends and message authentication verification; the personal circle of friends module is responsible for adding, deleting, modifying and checking the user's circle of friends information, supporting a variety of rich media forms, including text, pictures, videos, cards and other information. The social message communication module is responsible for the user's functions such as adding friend notifications, deleting friend notifications, sending circle of friends notifications, etc.

[0120] Among them, the 5G message node where the first terminal UE1 is located includes 5GMC1 and MaaP1, and the 5G message node where the second terminal UE2 is located includes 5GMC2 and MaaP2.

[0121] In other words, the system mainly includes a personal information module, a social friend module, and a personal circle of friends module based on 5G messages. The system uses the Authentication and Key Agreement (AKA) authentication and authentication of the third-generation mobile communication network of 5G messages as the user login mechanism, and uses the Session Initialization Protocol (SIP) of the 5G message Subscriber Identity Module (SIM) card information and the Hypertext Transfer Protocol (HTTP) authenticated by the Generic Bootstrapping Architecture (GBA) to expand the communication and social functions of the device while ensuring the true identity of the user.

[0122] In this embodiment, in response to the user clicking the add friend button, the 5G message pops up the address book user interface, and based on the user selected by the user, the chatbot's friend system pops up to assemble the add friend information.

[0123] Specifically, when the 5G messaging application of the first terminal receives a click operation of the first user on the add friend button, the 5G messaging application calls up the system address book application, and the first terminal pops up a user interface for selecting the address book. When the first user selects the address book user interface, the 5G messaging application pops up the official Chatbot friend system, and the 5G messaging application automatically assembles a message for adding friends. The 5G messaging application is an application on the terminal, which can perform operations such as adding friends based on the terminal number.

[0124] In one example of this application, the message format may be as follows:

[0125] {

[0126] "reply":{

[0127]

[0128] Among them, displayText is the input display content of the sent message; Postback is the data information carried by the sent message, type = add_friend indicates a request to add a friend, sendId indicates the sender number, and receiverId indicates the receiver number; msgPublicKey indicates the first message interaction encryption public key, which is used to securely encrypt the interactive messages between users' social friends when the sender sends a message to the receiver to prevent information leakage. In other embodiments, the message format can also be in other forms, which are subject to actual application and are not limited in this embodiment.

[0129] In one example, the msgPublicKey generation algorithm at the UE terminal is as follows:

[0130] 1) The first terminal UE1 establishes a key coefficient library

[0131] The first terminal UE1 selects the addition clusters W1 and W2 on the elliptic curve, the generator of the W1 cluster is p, and the order is q greater than or equal to 2 l , where l is the safety factor and the generator of the W2 cluster is p.

[0132] Terminal UE1 selects bilinear mapping e: W1*W2→W2, hash function F1: {0,1} * →W1 * , F2: {0,1} * →Z q * , F3: W2→Z q * , F4: W1→Z q * , in Z q * Select the master key X∈Z q * , and calculate the corresponding public key Y=xP.

[0133] The key coefficient library constructed by the terminal UE1 is {W1, W2, q, p, e, F1, F2, F3, F4, Y}.

[0134] 2) Generate a public key and a private key corresponding to the second terminal of the second user, and feed the generated public key back to the second terminal

[0135] The first terminal UE1 generates a public key and a private key corresponding to the second terminal based on the number of the second terminal, wherein the public key is T 公1 =F1(ID2), private key is T 私1 =xF1(ID2), and record and store.

[0136] The purpose of generating public and private keys between friends is to encrypt based on the SIP protocol to ensure the security and reliability of messages between friends.

[0137] Optionally, in response to the first user clicking "send" in the chatbot's friend system, the assembled message is sent to the first MaaP (MaaP1), and the social message communication module of MaaP1 assembles a new add friend message based on the first user's personal information and sends it to the second terminal UE2 of the second user, so that the second terminal UE2 can determine whether to add a friend based on the add friend message, and return to the first 5G message node of the first terminal.

[0138] Specifically, after the first user clicks send in the chatbot's friend system, the assembled message is sent to the first 5GMC (5GMC1) of the node where the first user is located, and 5GMC1 sends the message to MaaP1; the social message communication module of MaaP1 receives the message sent by the first user to the chatbot's friend system, parses and identifies the message content to confirm that the message is a social message for adding friends, and then assembles a new friend-adding message based on the initiator's personal information and sends it to the second user, and the message is sent to the second MaaP (MaaP2) of the node where the second user is located.

[0139] The assembled message may be a single-card message, the card image of the message is the avatar of the first user, and the message body is "XX user, number XXX, requests to add you as a friend".

[0140] It should be noted that the message may carry two suggested reply buttons, one button is an approval button, and the other button is a rejection button.

[0141] The first MaaP delivers the message to the second MaaP where the second terminal is located. The second MaaP sends the message to the second 5GMC (5GMC2), and 5GMC2 sends it to the 5G message application of the second terminal UE2, so that the second terminal determines whether to agree to add the first terminal as a friend based on the above message.

[0142] In a possible implementation of the present application, the communication method may also include: when the first 5GMC receives a third 5G message sent by the first terminal to publish a circle of friends, the third 5G message sends the third 5G message to the first MaaP, and the third 5G message includes at least one of text, pictures, and videos; the first MaaP parses the third 5G message and determines that the third 5G message is a published circle of friends message; the first MaaP sends a request for obtaining a friend list of the first terminal to the first 5GMC; when the first 5GMC receives the request for obtaining a friend list of the first terminal, it queries the friend number list of the first terminal and sends the friend number list to the first MaaP; the first MaaP encrypts the circle of friends message using the first message interaction encryption public key, and sends the encrypted circle of friends message to the 5G message node where each terminal in the friend number list is located.

[0143] That is to say, the first user can post a circle of friends message in the 5G message application, and can synchronize the message to the terminals of other users who have a friend relationship with the first user.

[0144] In one example, first, in response to the user selecting content to be posted to Moments, the 5G messaging application assembles the message to be sent and sends it to the 5GMC.

[0145] The first terminal receives an operation of the first user to open the friend system interface of the Chatbot of the 5G message application. The first terminal opens the friend system interface of the Chatbot. The friend system interface of the Chatbot receives the content of the circle of friends message input by the first user. The content can be in the format of text, picture, video, etc. The first terminal uplinks the circle of friends message to 5GMC1, and 5GMC1 sends the message to MaaP1.

[0146] Secondly, MaaP1 receives and identifies the uplink friend circle message sent by UE1, and obtains the corresponding friend list interactive message public key T 公 , encrypt the message content and send it to each friend user.

[0147] The social message communication module of MaaP1 identifies the message as a friend circle message, and sends a request to the node 5GMC1 where the initiator of the message is located to obtain the friend list of the user; after receiving the request, the social friend module of 5GMC1 queries the friend number list and sends it to MaaP1; after receiving the friend number list of the user, MaaP1 uses the T 公 After encryption, it is forwarded to the MaaP where each friend is located; after receiving the downlink message, the MaaP of other nodes sends the circle of friends message to the friend user through 5MGC.

[0148] In a possible implementation of the present application, the communication method may also include: when the first 5GMC receives the fourth 5G message for sending a friend message sent by the first terminal, the first 5G message is sent to the first MaaP, and the fourth 5G message includes at least one of text, pictures, and videos; the first MaaP parses the fourth 5G message and determines that the fourth 5G message is a message sent to the first friend; the first MaaP sends information to obtain the first friend to the first 5GMC; when the first 5GMC receives the information for obtaining the first friend, it queries the number of the first friend and sends the number of the first friend to the first MaaP; the first MaaP uses the first message interaction encryption public key to encrypt the message sent to the first friend, and sends the encrypted message to the 5G message node where the terminal of the first friend is located.

[0149] That is to say, in addition to sending messages to the circle of friends through the first terminal and synchronizing them to all friends, the first user can also send messages to one or several other friends separately.

[0150] In one example, first, in response to the user selecting a button to send a message to a friend, the 5G message assembles the message to be sent and sends it to the 5GMC.

[0151] The first terminal receives an operation of the first user to open the friend system interface of the Chatbot of the 5G message application. The first terminal opens the friend system interface of the Chatbot. The friend system interface of the Chatbot receives content input by the first user to be sent to friends. The content can be in the format of text, picture, video, etc. The first terminal uplinks the circle of friends message to 5GMC1, and 5GMC1 sends the message to MaaP1.

[0152] Secondly, MaaP1 receives and identifies the uplink message sent by UE1 to the friend, and obtains the corresponding friend's interactive message public key T 公 , encrypt the message content and send it to the friend user.

[0153] The social messaging module of MaaP1 identifies the message as a message to friends, and sends a request to the node 5GMC1 where the initiator of the message is located to obtain the friend list of the user; after receiving the request, the social friend module of 5GMC1 queries the friend's number and sends it to MaaP1; after MaaP1 receives the friend's number of the user, it uses the T 公 After encryption, it is forwarded to the MaaP where the friend is located; after receiving the downlink message, the friend's MaaP sends the friend message to the friend user through 5MGC.

[0154] In a possible implementation of the present application, the communication method may also include: when the first 5GMC receives a request for querying a friend's personal information sent by the first terminal, determining whether the friend to be queried and the first terminal are in a friend relationship, the request for querying the friend's personal information adopts the general authentication mechanism GBA authentication, and the request for querying the friend's personal information includes querying the personal information and the message interaction encryption public key; when the first 5GMC determines that the friend to be queried and the first terminal are in a friend relationship, querying whether the personal information and the message interaction encryption public key of the friend to be queried are saved in the first 5GMC; when the personal information and the message interaction encryption public key of the friend to be queried are saved in the first 5GMC, the personal information and the message interaction encryption public key of the friend to be queried are sent to the first terminal.

[0155] In this embodiment, the first user can obtain the personal information and message interaction encryption public key of the friend user.

[0156] First, UE1 initiates a request to 5GMC to query the friend’s personal information and interactive encryption public key.

[0157] UE1's 5G message initiates an http request to 5GMC1 to query the user's friend's personal information. This http request uses GBA authentication.

[0158] Then, the social friend module of 5GMC verifies and authenticates the friend information query request, and responds to the social friend information and returns it to the UE. The request includes: user nickname, avatar, remarks, and the encrypted public key T for message interaction 公 .

[0159] The user social friend module of 5GMC1 verifies whether the first user (user 1) and the second user (user 2) are friends. If yes, the personal information module queries whether there is the personal information of user 2. The personal information module of 5GMC1 stores the personal information of user 2 and the encrypted public key T of the message interaction. 公 , then send the information to UE1.

[0160] In a possible implementation of the present application, the communication method may also include: when the personal information of the friend to be queried and the message interaction encryption public key are not saved in the first 5GMC, sending a request to query the friend's personal information to the 5G message node where the terminal of the friend to be queried is located; the first 5GMC receives the personal information of the friend to be queried and the message interaction encryption public key sent by the 5G message node where the terminal of the friend to be queried is located, and sends the personal information of the friend to be queried and the message interaction encryption public key to the first terminal.

[0161] That is to say, if the personal information module of 5GMC1 does not store the personal information of user 2 and the encrypted public key T for message interaction公 , then a request to query the personal information of user 2 is initiated to the node 5MGC2 where user 2 is located. 5GMC1 receives the personal information of the friend to be queried and the encrypted public key for message interaction sent by the 5GMC where the terminal of user 2 is located. The personal information module of 5GMC1 stores the personal information of user 2 and the encrypted public key T for message interaction. 公 , and send the information to UE1 at the same time.

[0162] Correspondingly, the social friend information module of the first terminal 5G message receives and saves the friend's personal information and the encrypted public key T public of the message interaction. UE1 refreshes the personal information of the friend in the 5G message and updates the contact book friend information.

[0163] In a possible implementation of the present application, the communication method may also include: the first 5GMC receives a personal information update request sent by the first terminal, the personal information update request adopts GBA authentication, the personal information update request includes updated personal information, and the updated personal information includes at least one of personal nickname, personal portrait, personal status, personal signature, and personal background; the first 5GMC updates and saves the updated personal information; the first 5GMC sends the updated personal information to the 5G message node where other terminals that have a friend relationship with the first terminal are located.

[0164] That is to say, the first terminal can also update personal information so that the user can freely show his or her information to other friends, such as current mood, interesting things, etc.

[0165] Specifically, the user opens the personal information editing interface of UE1's 5G message; the user edits personal information in the personal information editing interface of UE1's 5G message, including personal nickname, personal avatar, personal status, personal signature, personal background and other information. And the GBA authentication based on the sim card is used to send the http request to the personal information module of 5GMC1; the personal information module of 5GMC1 updates the user's personal information, and the information is synchronized to other 5MGC nodes to ensure information synchronization.

[0166] like Figure 3 As shown, it is a flow chart of a communication method provided by an embodiment of the present application. Figure 3 As shown, the communication method is applied to a 5G message node, which may be referred to as a second 5G message node below, and the communication method may include: the contents shown in S301 to S302.

[0167] In S301, a first 5G message sent by a 5G message node of a first terminal is received, and the first 5G message is sent to a second terminal.

[0168] In S302, a second 5G message sent by the second terminal is received, and according to the phone number of the first terminal contained in the second 5G message, the second 5G message is sent to the first terminal. The second 5G message is a 5G message returned by the second terminal agreeing to add a friend or a 5G message returned by the second terminal refusing to add a friend.

[0169] The second terminal UE2 receives and displays the message of adding a friend sent by the Chatbot's friend system. In response to the user 2 clicking the agree button, UE2 sends the message to the second 5G message node. Figure 4 As shown, the user can click an Agree button or a Reject button.

[0170] In an embodiment of the present application, the first 5G message sent by the 5G message node of the first terminal is first received, the first 5G message is sent to the second terminal, and then the second 5G message sent by the second terminal is received. According to the phone number of the first terminal contained in the second 5G message, the second 5G message is sent to the first terminal, and the second 5G message is a 5G message returned by the second terminal agreeing to add a friend or a 5G message returned by the second terminal refusing to add a friend. Based on the 5G message, the embodiment of the present application determines whether to add the friend based on the phone number of the first terminal, that is, communication can be carried out on the 5G message through the phone number. Since the phone number is real-name authenticated, the security problem of the user's real identity source is effectively solved.

[0171] In a possible implementation of the present application, a first 5G message sent by a 5G message node of a first terminal is received, and the first 5G message is sent to a second terminal according to the phone number of the second terminal contained in the first 5G message, including: receiving the first 5G message sent by the 5G message node of the first terminal; parsing the first 5G message, determining that the first 5G message is a social message for adding a friend, the first 5G message including a first message interaction encryption public key and the phone number of the first terminal; sending the first 5G message to the second terminal.

[0172] That is to say, when receiving the first 5G message for adding a friend sent by the first terminal, the first 5G message can be parsed to determine that the message is a social message for adding a friend, and the first 5G message can be sent to the second terminal according to the phone number contained in the message. The message interaction between the terminals can be completed through the phone number, making the message interaction safe and convenient.

[0173] In a possible implementation of the present application, a second 5G message sent by a second terminal is received, and according to the phone number of the first terminal contained in the second 5G message, the second 5G message is sent to the first terminal, including: receiving the second 5G message sent by the second terminal; parsing the second 5G message, determining that the second 5G message is a 5G message agreeing to add a friend, the second 5G message including a second message interaction encryption public key and the phone number of the first terminal; based on the second 5G message, updating and saving the friend relationship information, as well as the first message interaction encryption public key and the second message interaction encryption public key; sending the second 5G message to the 5G message node of the first terminal.

[0174] That is to say, when the second 5G message sent by the second terminal is received, the message is parsed to determine that the second 5G message is a 5G message in which the second terminal agrees to add a friend and the second message interaction encryption public key of the second terminal, and the second 5G message node updates and saves the friend relationship information between the first terminal and the second terminal, as well as the first message interaction encryption public key and the second message interaction encryption public key, so as to be used for subsequent communication between the first terminal and the second terminal, and the 5G message in which the second terminal agrees to add a friend and the second message interaction encryption public key are sent to the first 5G message node where the first terminal is located to complete the addition of friends between the first terminal and the second terminal.

[0175] Specifically, the social friend information modules of UE2 and UE1 store friend relationship information.

[0176] The social message communication module of MaaP2 sends the above-assembled message to the node 5GMC2 where user 2 is located. 5GMC2 recognizes that the message is a message of mutual successful friends, and the social friend module updates and saves the friend relationship information of both parties, as well as the public key T public of the interactive messages between the two parties, and sends the message to UE2; UE2's 5G message receives the message, and UE2's social friend information module saves the friend relationship information. The MaaP2 social message communication module sends the message to the node MaaP1 where user 1 is located, and MaaP1 sends the message to the corresponding 5GMC1; 5GMC1 recognizes that the message is a message of mutual successful friends, and the social friend module updates and saves the friend relationship information of both parties, and sends the message to UE1. UE1's 5G message receives the message, and UE1's social friend information module saves the friend relationship information.

[0177] In a possible implementation of the present application, the 5G message node includes a second 5GMC and a second MaaP.

[0178] Receiving the first 5G message sent by the 5G message node of the first terminal and sending the first 5G message to the second terminal may include: the second MaaP receives the first 5G message sent by the 5G message node of the first terminal, and parses the first 5G message, determining that the first 5G message is a social message for adding friends, and the first 5G message includes the first message interaction encryption public key and the phone number of the first terminal; the second MaaP sends the first 5G message to the second 5GMC; the second 5GMC sends the first 5G message to the second terminal.

[0179] Specifically, user 2 clicks the consent button of the card message on the conversation page of the Chatbot's friend system. The user terminal UE2 sends a reply message of the button to the second 5GMC (5GMC2), which carries the postback content of the consent button and appends the interactive message encryption public key T of user 2 to the postback content. 公2 5GMC2 forwards the message to MaaP2.

[0180] MaaP2's social messaging module parses the postback content of the message to obtain the initiator's user number and the recipient's user number, and assembles and sends a message that the initiator and the recipient have successfully become friends with each other; MaaP2's social messaging module receives the upstream message from user 2 agreeing to add a friend, parses the postback content of the message to obtain the initiator's user number and the recipient's user number, as well as the public key T of the two parties' interactive messages 公1 , T 公2 The social messaging communication module of MaaP2 assembles and sends messages that the initiator and the receiver have successfully become friends with each other.

[0181] Figure 5 Flowchart of adding friends and obtaining friends for the first terminal. The specific process has been described in detail in the above embodiments, and will not be repeated in this embodiment. The above embodiments shall prevail.

[0182] The embodiment of the present application also provides a communication method, which is applied to a first terminal, and the communication method may include: displaying a contact book user interface when receiving a friend adding operation of a first user; determining a second user to be added as a friend based on the operation of the first user on the contact book user interface; generating a first 5G message based on the phone number of a second terminal corresponding to the second user when the second user is determined, the first 5G message including a first message interaction encryption public key, a phone number of the second terminal, and a phone number of the first terminal; sending the first 5G message to a 5G message node; receiving a second 5G message sent by the 5G message node, the second 5G message being a 5G message returned by the second terminal agreeing to add a friend or a 5G message returned by the second terminal refusing to add a friend. Specifically, it has been described in detail in the above embodiments, and this embodiment will not be repeated.

[0183] In one embodiment, receiving a second 5G message sent by a 5G message node may include: when the second 5G message is a 5G message returned by the second terminal for agreeing to add a friend, receiving the 5G message sent by the 5G message node for agreeing to add a friend and exchanging the encryption public key with the second message.

[0184] The embodiment of the present application also provides a communication method, which is applied to a second terminal, and the communication method may include: receiving a first 5G message sent by a 5G message node, the first 5G message including a first message interaction encryption public key and a phone number of the first terminal; based on the first 5G message, receiving a second user's selection, the selection including consent or refusal; based on the second user's selection, generating a second 5G message and sending it to the 5G message node, the second 5G message being a 5G message for consenting to add a friend or a 5G message for refusal to add a friend. Specific details have been described in detail in the above embodiments, and this embodiment will not be repeated.

[0185] An embodiment of the present application also provides a communication device, applied to a first 5G message node, and the communication device may include: a first receiving and sending module and a second receiving and sending module.

[0186] Among them, the first receiving and sending module is used to receive a first 5G message sent by the first terminal, and send the first 5G message to the second terminal according to the phone number of the second terminal contained in the first 5G message; the second receiving and sending module is used to receive a second 5G message sent by the second terminal, and send the second 5G message to the first terminal according to the phone number of the first terminal contained in the second 5G message, and the second 5G message is a 5G message returned by the second terminal agreeing to add a friend or a 5G message returned by the second terminal refusing to add a friend.

[0187] In the embodiment of the present application, first, the first receiving and sending module receives the first 5G message sent by the first terminal, and sends the first 5G message to the second terminal according to the phone number of the second terminal contained in the first 5G message. Then, the second receiving and sending module receives the second 5G message sent by the second terminal, and sends the second 5G message to the first terminal according to the phone number of the first terminal contained in the second 5G message. The second 5G message is a 5G message returned by the second terminal agreeing to add a friend or a 5G message returned by the second terminal refusing to add a friend. Based on the 5G message, the embodiment of the present application performs communication such as adding friends between the two based on the phone number of the first terminal and the phone number of the second terminal. Since the phone number is authenticated by real name, the security problem of the user's real identity source is effectively solved.

[0188] An embodiment of the present application also provides a communication device, applied to a second 5G message node, and the communication device may include: a third receiving and sending module and a fourth receiving and sending module.

[0189] Among them, the third receiving and sending module is used to receive the first 5G message sent by the 5G message node of the first terminal, and send the first 5G message to the second terminal; the fourth receiving and sending module is used to receive the second 5G message sent by the second terminal, and send the second 5G message to the first terminal according to the phone number of the first terminal contained in the second 5G message, and the second 5G message is a 5G message returned by the second terminal agreeing to add friends or a 5G message returned by the second terminal refusing to add friends.

[0190] In the embodiment of the present application, first, the third receiving and sending module receives the first 5G message sent by the 5G message node of the first terminal, and sends the first 5G message to the second terminal. Then, the fourth receiving and sending module receives the second 5G message sent by the second terminal, and according to the phone number of the first terminal contained in the second 5G message, sends the second 5G message to the first terminal. The second 5G message is a 5G message returned by the second terminal agreeing to add a friend or a 5G message returned by the second terminal refusing to add a friend. Based on the 5G message, the embodiment of the present application determines whether to add the friend based on the phone number of the first terminal, that is, communication can be carried out on the 5G message through the phone number. Since the phone number is real-name authenticated, the security problem of the user's real identity source is effectively solved.

[0191] An embodiment of the present application further provides a communication device, which is applied to a first terminal. The communication device may include: a first receiving module, a determining module, a first generating module, a first sending module, and a second receiving module.

[0192] Among them, the first receiving module is used to display the address book user interface when receiving the add friend operation of the first user; the determination module is used to determine the second user to be added as a friend based on the operation of the first user on the address book user interface; the first generating module is used to generate a first 5G message based on the phone number of the second terminal corresponding to the second user when the second user is determined, and the first 5G message includes the first message interaction encryption public key, the phone number of the second terminal and the phone number of the first terminal; the first sending module is used to send the first 5G message to the 5G message node; the second receiving module is used to receive the second 5G message sent by the 5G message node, and the second 5G message is a 5G message returned by the second terminal agreeing to add friends or a 5G message returned by the second terminal refusing to add friends.

[0193] The embodiment of the present application further provides a communication device, which is applied to a second terminal. The communication device may include: a third receiving module, a fourth receiving module and a second generating module.

[0194] Among them, the third receiving module is used to receive the first 5G message sent by the 5G message node, and the first 5G message includes the first message interaction encryption public key and the telephone number of the first terminal; the fourth receiving module is used to receive the second user's selection based on the first 5G message, and the selection includes agreement or refusal; the second generating module is used to generate a second 5G message based on the second user's selection, and send it to the 5G message node, and the second 5G message is a 5G message agreeing to add a friend or a 5G message refusing to add a friend.

[0195] like Figure 6 As shown, an embodiment of the present application also provides an electronic device 600, including a processor 601, a memory 602, and a program or instruction stored in the memory 602 and executable on the processor 601. When the program or instruction is executed by the processor 601, each process of the above-mentioned communication processing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0196] Optionally, the embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, each process of the above-mentioned communication method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. The computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0197] Optionally, an embodiment of the present application also provides a computer program product, the computer program product includes a computer program stored on a non-transitory computer-readable storage medium, the computer program includes program instructions, and when the program instructions are executed by a computer, the various processes of the above-mentioned communication method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, they are not repeated here.

[0198] It should be noted that, in this article, the terms "include", "comprises" or any other variations 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 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 existence of other identical elements in the process, method, article or device including the element.

[0199] 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 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 a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0200] 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.

Claims

1. A communication method, characterized in that: Applied to a 5G message node, the method comprises: receiving a first 5G message sent by a first terminal, and sending the first 5G message to the second terminal according to the phone number of the second terminal included in the first 5G message; Receive a second 5G message sent by the second terminal, and send the second 5G message to the first terminal according to the phone number of the first terminal contained in the second 5G message, the second 5G message being a 5G message returned by the second terminal agreeing to add a friend or a 5G message returned by the second terminal rejecting to add a friend.

2. The method according to claim 1, characterized in that The receiving a first 5G message sent by the first terminal, and sending the first 5G message to the second terminal according to the phone number of the second terminal included in the first 5G message, includes: Receiving a first 5G message for adding a friend sent by the first terminal; Parse the first 5G message, determine that the first 5G message is a social message for adding a friend, and the first 5G message includes a first message interaction encryption public key, a phone number of the second terminal, and a phone number of the first terminal; According to the telephone number of the second terminal, the first 5G message is sent to the second terminal.

3. The method according to claim 1, characterized in that The 5G message node includes a first 5G message center 5GMC and a first 5G message commercial network element MaaP; The receiving a first 5G message sent by the first terminal, and sending the first 5G message to the second terminal according to the phone number of the second terminal included in the first 5G message, includes: The first 5GMC receives a first 5G message sent by the first terminal, and sends the first 5G message to the first MaaP; The first MaaP parses the first 5G message and determines that the first 5G message is a social message for adding a friend, and the first 5G message includes a first message interaction encryption public key, a phone number of the second terminal, and a phone number of the first terminal; The first MaaP sends the first 5G message to the 5G message node corresponding to the second terminal according to the phone number of the second terminal.

4. The method according to claim 3, characterized in that The method further comprises: When receiving a third 5G message for publishing a circle of friends sent by the first terminal, the first 5GMC sends the third 5G message to the first MaaP, where the third 5G message includes at least one of text, picture, and video; The first MaaP parses the third 5G message and determines that the third 5G message is a published circle of friends message; The first MaaP sends a request for obtaining a friend list of the first terminal to the first 5GMC; Upon receiving the request for obtaining the friend list of the first terminal, the first 5GMC queries the friend number list of the first terminal and sends the friend number list to the first MaaP; The first MaaP uses the first message interaction encryption public key to encrypt the circle of friends message, and sends the encrypted circle of friends message to the 5G message node where each terminal in the friend number list is located.

5. The method according to claim 3, characterized in that: The method further comprises: When receiving a fourth 5G message for sending a friend message sent by the first terminal, the first 5GMC sends the fourth 5G message to the first MaaP, where the fourth 5G message includes at least one of text, picture, and video; The first MaaP parses the fourth 5G message and determines that the fourth 5G message is a message sent to the first friend; The first MaaP sends information about acquiring the first friend to the first 5GMC; Upon receiving the information of obtaining the first friend, the first 5GMC queries the number of the first friend and sends the number of the first friend to the first MaaP; The first MaaP uses the first message interaction encryption public key to encrypt the message sent to the first friend, and sends the encrypted message to the 5G message node where the terminal of the first friend is located.

6. The method according to claim 3, characterized in that The method further comprises: The first 5GMC, when receiving a request for querying friend's personal information sent by the first terminal, determines whether the friend to be queried has a friend relationship with the first terminal, wherein the request for querying friend's personal information adopts a general authentication mechanism GBA authentication, and the request for querying friend's personal information includes querying personal information and a message interaction encryption public key; When the first 5GMC determines that the friend to be queried and the first terminal are in a friend relationship, query whether the personal information and the message interaction encryption public key of the friend to be queried are stored in the first 5GMC; When the personal information of the friend to be queried and the message interaction encryption public key are saved in the first 5GMC, the personal information of the friend to be queried and the message interaction encryption public key are sent to the first terminal.

7. The method according to claim 6, characterized in that The method further comprises: In the case that the personal information of the friend to be queried and the message interaction encryption public key are not stored in the first 5GMC, a request for querying the friend's personal information is sent to the 5G message node where the terminal of the friend to be queried is located; The first 5GMC receives the personal information and message interaction encryption public key of the friend to be queried sent by the 5G message node where the terminal of the friend to be queried is located, and sends the personal information and message interaction encryption public key of the friend to be queried to the first terminal.

8. The method according to claim 3, characterized in that The method further comprises: The first 5GMC receives a personal information update request sent by the first terminal, where the personal information update request adopts GBA authentication, and the personal information update request includes updated personal information, where the updated personal information includes at least one of a personal nickname, a personal portrait, a personal status, a personal signature, and a personal background; The first 5GMC updates and stores the updated personal information; The first 5GMC sends the updated personal information to the 5G message nodes where other terminals that have a friend relationship with the first terminal are located.

9. A communication method, characterized in that: Applied to a 5G message node, the method comprises: Receive a first 5G message sent by a 5G message node of the first terminal, and send the first 5G message to the second terminal; Receive a second 5G message sent by the second terminal, and send the second 5G message to the first terminal according to the phone number of the first terminal contained in the second 5G message, the second 5G message being a 5G message returned by the second terminal agreeing to add a friend or a 5G message returned by the second terminal rejecting to add a friend.

10. The method according to claim 9, characterized in that The receiving a second 5G message sent by the second terminal, and sending the second 5G message to the first terminal according to the telephone number of the first terminal included in the second 5G message, includes: Receiving a second 5G message sent by the second terminal; Parse the second 5G message, determine that the second 5G message is a 5G message for agreeing to add a friend, and the second 5G message includes a second message interaction encryption public key and a phone number of the first terminal; Based on the second 5G message, update and save the friend relationship information, as well as the first message interaction encryption public key and the second message interaction encryption public key; Send the second 5G message to the 5G message node of the first terminal.