Message sharing method, device, electronic device and storage medium
By receiving instructions in 5G message sharing, determining sharing parameters and encryption parameters, encrypting the message, and sending it to the target user through the server, the problems of inconvenient message sharing and insufficient security in the existing technology are solved, and the current Dynamic and secure message sharing within the chat interface.
Patent Information
- Application Number
- CN202311119133.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-31
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2043-08-31
AI Technical Summary
The existing 5G message sharing methods are inconvenient and lack user permission control, leading to message leakage and security issues.
By receiving message sharing instructions, the sharing parameters are determined based on the associated information of the message to be shared, the encryption parameters are generated to encrypt the message, and encryption is performed based on the target user's identity. The encrypted data is sent to the target user through the server to ensure that the message is in the current chat interface. Dynamic sharing within the system improves security and convenience.
It improves the security and convenience of message sharing and ensures the security and user experience of messages in the dynamic sharing process.
Smart Images

Figure CN117061110B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of communication technology, and in particular to a message sharing method, device, electronic device and storage medium. Background Art
[0002] In the field of communications, real-time message transmission through 5G messages requires forwarding messages to the recipient one by one or merging them together. However, this method is not convenient for users to share messages, and there are no restrictions on user permissions, which can easily lead to message leaks and security issues. Summary of the invention
[0003] The present disclosure aims to solve one of the technical problems in the related art at least to some extent.
[0004] The first aspect of the present disclosure provides a message sharing method, which is executed by a first client and includes:
[0005] Receiving a message sharing instruction, wherein the message sharing instruction includes the message to be shared and an identifier of a target user;
[0006] Determining sharing parameters according to the associated information of the message to be shared;
[0007] Based on the shared parameters, determining encryption parameters;
[0008] Encrypting the message to be shared using the encryption parameter to generate first encrypted data;
[0009] Encrypting the first encrypted data based on the identifier of the target user to obtain target shared data;
[0010] In the case that the first client is a client that creates a conversation group to which the message to be shared belongs, the target sharing data is sent to a second client associated with the identifier of the target user through a server.
[0011] The second aspect of the present disclosure provides a message sharing device, wherein the method is executed by a server and includes:
[0012] Receiving a data sharing instruction sent by a first client, wherein the data sharing instruction includes an identifier of the first client, target sharing data, and an identifier of a target user;
[0013] In a case where the first client is a client that creates a session group to which the target shared data belongs, the target shared data is sent to a second client associated with the identifier of the target user.
[0014] The third aspect of the present disclosure provides a message sharing device, which is configured in a first client and includes:
[0015] A first receiving module, configured to receive a message sharing instruction, wherein the message sharing instruction includes a message to be shared and an identifier of a target user;
[0016] A first determination module, used to determine sharing parameters according to the associated information of the message to be shared;
[0017] A second determination module, configured to determine an encryption parameter based on the sharing parameter;
[0018] A first encryption module, used to encrypt the message to be shared using the encryption parameter to generate first encrypted data;
[0019] A second encryption module, configured to encrypt the first encrypted data based on the identifier of the target user to obtain target shared data;
[0020] The first sending module is configured to send the target sharing data to a second client associated with the identifier of the target user through a server when the first client is a client that creates a conversation group to which the message to be shared belongs.
[0021] The fourth aspect of the present disclosure provides a message sharing device, which is configured in a server and includes:
[0022] A second receiving module, configured to receive a data sharing instruction sent by a first client, wherein the data sharing instruction includes an identifier of the first client, target sharing data, and an identifier of a target user;
[0023] A second sending module is configured to send the target shared data to a second client associated with the identifier of the target user when the first client is a client that creates a session group to which the target shared data belongs.
[0024] The fifth aspect embodiment of the present disclosure proposes a computer device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the message sharing method proposed in the first and second aspects embodiments of the present disclosure is implemented.
[0025] The sixth aspect embodiment of the present disclosure proposes a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, it implements the message sharing method proposed in the first and second aspects embodiments of the present disclosure.
[0026] The seventh aspect embodiment of the present disclosure proposes a computer program product, including a computer program, which, when executed by a processor, implements the message sharing method proposed in the first and second aspects embodiments of the present disclosure.
[0027] The message sharing method, device, computer equipment and storage medium provided by the present disclosure have the following beneficial effects:
[0028] In the disclosed embodiment, a message sharing instruction is first received, and sharing parameters are determined according to the associated information of the message to be shared, and then encryption parameters are determined based on the sharing parameters, and then the message to be shared is encrypted using the encryption parameters to generate first encrypted data, and then the first encrypted data is encrypted based on the identifier of the target user to obtain target sharing data, and finally, when the first client is the client that creates the conversation group to which the message to be shared belongs, the target sharing data is sent to the second client associated with the identifier of the target user through the server. Thus, the message to be shared is processed based on the encryption parameters and the identifier of the target user, thereby improving the security of message sharing and the convenience of message sharing.
[0029] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.
[0031] Figure 1 A schematic diagram of a flow chart of a message sharing method provided by an embodiment of the present disclosure;
[0032] Figure 2 A triggering schematic diagram of a message sharing method provided by an embodiment of the present disclosure;
[0033] Figure 3 A schematic diagram of a flow chart of a message sharing method provided by an embodiment of the present disclosure;
[0034] Figure 4 A schematic diagram of a flow chart of a message sharing method provided by an embodiment of the present disclosure;
[0035] Figure 5 A schematic diagram of a flow chart of a message sharing method provided by an embodiment of the present disclosure;
[0036] Figure 6 A schematic diagram of a flow chart of a message sharing method provided by an embodiment of the present disclosure;
[0037] Figure 7 A schematic diagram of the effect of a message sharing method provided by an embodiment of the present disclosure;
[0038] Figure 8 A schematic diagram of a flow chart of a message sharing method provided by an embodiment of the present disclosure;
[0039] Fig. 9 A schematic diagram of the structure of a message sharing device provided by an embodiment of the present disclosure;
[0040] Fig.10 A schematic diagram of the structure of a message sharing device provided by an embodiment of the present disclosure;
[0041] Fig.11 A block diagram of an exemplary computer device suitable for implementing embodiments of the present disclosure is shown. DETAILED DESCRIPTION
[0042] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.
[0043] The present disclosure aims at the related technology of real-time transmission through 5G messages, especially message sharing between groups, which requires forwarding messages to the recipient one by one or merged. However, for the user, this method requires jumping out of the current chat interface and creating a new session window to achieve it, which is inconvenient. At the same time, for the shared users, the shared messages are not dynamic, and the immersive experience is poor for the shared users. Moreover, since the current message sharing does not restrict the user's permissions, it will cause message leakage and there are security issues.
[0044] In view of the above problems, the present disclosure proposes a message sharing method, in particular, a group-based 5G message forwarding method, which provides corresponding message sharing methods for users with different permissions, so that users can share messages in the current chat interface window, and the users being shared can obtain dynamically shared messages, thereby improving the experience of reading messages. At the same time, the present disclosure proposes different message sharing steps for different user permissions, thereby ensuring the security of the message sharing process.
[0045] The message sharing method, device, electronic device, and storage medium according to embodiments of the present disclosure are described below with reference to the accompanying drawings.
[0046] Combine the following Figure 1 Taking the message sharing method executed by the first client as an example, the message sharing method provided by the present disclosure is described in detail. Figure 1 The following is a flow chart of a message sharing method provided by an embodiment of the present disclosure. Figure 1 As shown, the message sharing method may include the following steps:
[0047] Step 101: receiving a message sharing instruction, wherein the message sharing instruction includes a message to be shared and an identifier of a target user.
[0048] The message sharing instruction is an instruction used to instruct the first client to share a message.
[0049] The target user's identifier is used to indicate the user with whom the first client wants to share the message, and it can be the target user's mobile phone number, email address, unique user nickname, etc., which is not limited in the present disclosure.
[0050] In some possible implementations, it is determined that a message sharing instruction has been received in response to receiving an input that is identical to a sharing instruction associated with an identifier of a target user and the current conversation window includes a selected message.
[0051] Among them, the sharing instruction is preset by the user who wants to share the message, and is used to trigger the instruction to share the message to the target user. For example, the sharing instruction can be a specific voice, a specific gesture operation, or a specific symbol or text, etc., which is not limited in this disclosure.
[0052] For example, user A shares a message with user C. User A sets it to share a message with user C, and it can be triggered by inputting "???". When the client used by user A receives "???", it can determine whether there are selected messages in the current session. If so, it can confirm that user A wants to share these selected messages with user C. Figure 2 As shown, Figure 2 A triggering diagram of a message sharing method provided by an embodiment of the present disclosure.
[0053] Step 102: Determine sharing parameters according to the associated information of the message to be shared.
[0054] The associated information may include the number of messages to be shared, the size of the message content, the start and end time of the message, etc., which is not limited in the present disclosure.
[0055] The sharing parameters are parameters of the associated information of the message to be shared.
[0056] In some possible implementations, the first client may determine the sharing parameters including, based on the associated information of the messages to be shared: determining the number N1 of messages to be shared, and the content size N2 of the messages to be shared; determining the average size N3 of each message to be shared based on N1 and N2; determining the time difference N4 between the start time and the end time of the messages to be shared; and determining the average time interval N5 between the messages to be shared based on N4.
[0057] It should be noted that when the first client determines the time difference N4 between the start time and the end time of the message to be shared, the start time and the end time are unified into the same format. For example, if the start time and the end time correspond to XX:YY:ZZ respectively, they are unified into the format of XXYYZZ, and then the start time is subtracted from the end time to obtain the time difference N4.
[0058] Step 103: Determine encryption parameters based on the shared parameters.
[0059] The encryption parameter is a parameter used by the first client to encrypt the message to be shared.
[0060] In some possible implementation forms, the sharing parameters are first processed based on the digital fingerprint of the first electronic device where the first client is located to obtain a first sub-encryption parameter, and the sharing parameters are sent to a third client, where the third client is a client other than the first client in the conversation group to which the message to be shared belongs. Then, the second sub-encryption parameter returned by the third client is received, and the first sub-encryption parameter and the second sub-encryption parameter are merged to generate an encryption parameter.
[0061] It should be noted that the first electronic device is a device with a wireless connection function, such as a mobile phone, a computer, a mobile Internet device, etc., and the present disclosure does not limit this.
[0062] The first sub-encryption parameter is an encryption parameter generated based on the digital fingerprint of the first electronic device where the first client is located.
[0063] The second sub-encryption parameter is an encryption parameter generated by the third client based on the digital fingerprint of the electronic device where the third client is located after the third client receives the sharing parameter.
[0064] For example, the first sub-encryption parameter is represented by H2, the second sub-encryption parameter is represented by H1, and the encryption parameter is represented by H3. After the first client obtains H1 and H2, it merges H1 and H2 to obtain encryption parameter H3 = (H1, H2).
[0065] Step 104: encrypt the message to be shared using the encryption parameter to generate first encrypted data.
[0066] The first encrypted data is encrypted data including encryption parameters and the message to be shared after encryption.
[0067] Taking the above example, the first client uses H3 to encrypt the message to be shared and obtains the encrypted message T to be shared. Then the generated first encrypted data is (H3|T).
[0068] Step 105: encrypt the first encrypted data based on the identifier of the target user to obtain target shared data.
[0069] The target shared data is shared data including the identifier of the target user and the encrypted first encrypted data.
[0070] It should be noted that when the first encrypted data is encrypted based on the target user's identifier, the second client identifier associated with the target user's identifier or the identifier of the second electronic device associated with the target user's identifier is used for encryption.
[0071] Taking the above example, user A shares a message with user C. The target user is user C, and user C's identifier is UID c , the target shared data is represented by P. The first client uses UID c By encrypting and encapsulating the first encrypted data (H3|T), the target shared data P={UIDc|(H3|T)} can be obtained.
[0072] Step 106 , when the first client is the client that creates the conversation group to which the message to be shared belongs, the target sharing data is sent to the second client associated with the identifier of the target user through the server.
[0073] It should be noted that after receiving the target shared data, the second client associated with the target user's identifier can decrypt the encrypted message to be shared based on the encryption parameters, so that the second client can see the message shared by the first client.
[0074] In the disclosed embodiment, a message sharing instruction is first received, and sharing parameters are determined according to the associated information of the message to be shared, and then encryption parameters are determined based on the sharing parameters, and then the message to be shared is encrypted using the encryption parameters to generate first encrypted data, and then the first encrypted data is encrypted based on the identifier of the target user to obtain target sharing data, and finally, when the first client is the client that creates the conversation group to which the message to be shared belongs, the target sharing data is sent to the second client associated with the identifier of the target user through the server. Thus, the message to be shared is processed based on the encryption parameters and the identifier of the target user, thereby improving the security of message sharing and the convenience of message sharing.
[0075] Combine the following Figure 3 Taking the message sharing method executed by the first client as an example, the message sharing method provided by the present disclosure is further described in detail. Figure 3 The following is a flow chart of a message sharing method provided by an embodiment of the present disclosure. Figure 3 As shown, the message sharing method may include the following steps:
[0076] Step 301: Receive a message sharing instruction, wherein the message sharing instruction includes the message to be shared and the identifier of the target user.
[0077] The specific implementation form of step 301 can refer to the detailed description in other embodiments of the present disclosure, and will not be described in detail here.
[0078] Step 302: Send a message sharing request to the server, wherein the sharing request includes a first user identifier of a first client and an identifier of a target user.
[0079] The message sharing request is sent by the first client and is used to indicate a request to share a message with a target user.
[0080] The first user identifier is an identifier indicating the first user of the first client, which may be a nickname, mobile phone number, email address, etc. of the first user, and the present disclosure does not limit this.
[0081] It should be noted that, before sending a message sharing request to the server, the first client needs to first determine whether the sharing permission is enabled in the attributes of the conversation group to which the message to be shared belongs.
[0082] It should be noted that only the creator of the conversation group can set the sharing permissions of the conversation group.
[0083] Step 303: upon receiving the sharing approval instruction returned by the server, determining sharing parameters according to the associated information of the message to be shared.
[0084] The sharing instruction is an instruction for instructing the first client to share the message with the target user.
[0085] In the present disclosure, after receiving the sharing instruction returned by the server, the first client can determine the sharing parameters based on the associated information in the message to be shared.
[0086] Step 304, determining encryption parameters based on the sharing parameters.
[0087] Step 305: encrypt the message to be shared using the encryption parameter to generate first encrypted data.
[0088] Step 306: encrypt the first encrypted data based on the identifier of the target user to obtain target shared data.
[0089] Step 307 : When the first client is the client that creates the conversation group to which the message to be shared belongs, the target sharing data is sent to the second client associated with the identifier of the target user through the server.
[0090] The specific implementation forms of steps 304 to 307 may refer to the detailed descriptions in other embodiments of the present disclosure, and will not be described in detail here.
[0091] In the disclosed embodiment, a message sharing instruction is first received, and a message sharing request is sent to a server. When a sharing instruction is received back from the server, sharing parameters are determined according to the associated information of the message to be shared. Then, based on the sharing parameters, encryption parameters are determined, and the message to be shared is encrypted using the encryption parameters to generate first encrypted data. Then, the first encrypted data is encrypted based on the identifier of the target user to obtain target sharing data. Finally, when the first client is the client that creates the conversation group to which the message to be shared belongs, the target sharing data is sent to the second client associated with the identifier of the target user through the server. Thus, a message sharing request is sent to the server through the first client, and when a sharing instruction is received back from the server, sharing parameters are determined, thereby ensuring the security of the conversation content.
[0092] Combine the following Figure 4 Taking the message sharing method executed by the first client as an example, the message sharing method provided by the present disclosure is further described in detail. Figure 4 The following is a flow chart of a message sharing method provided by an embodiment of the present disclosure. Figure 4 As shown, the message sharing method may include the following steps:
[0093] Step 401: receiving a message sharing instruction, wherein the message sharing instruction includes the message to be shared and the identifier of the target user.
[0094] Step 402: Determine sharing parameters according to the associated information of the message to be shared.
[0095] Step 403: Determine encryption parameters based on the sharing parameters.
[0096] Step 404: encrypt the message to be shared using the encryption parameter to generate first encrypted data.
[0097] Step 405: encrypt the first encrypted data based on the identifier of the target user to obtain target shared data.
[0098] The specific implementation forms of steps 401 to 405 can refer to the detailed descriptions in other embodiments of the present disclosure, and will not be described in detail here.
[0099] Step 406 : If the first client is not the client that created the session group, the target shared data and the private token of the first client are sent to the server.
[0100] In some possible implementation forms, the first client receives a private token sent by the server.
[0101] In the present disclosure, when the first client is not the client that creates the session group, after receiving the private token sent by the server, the first client digitally signs the private token, and then encapsulates the target shared data and the signed private token and sends them to the server.
[0102] The digital signature may include the identifiers of other members of the conversation group to which the first client belongs, as well as the content and number of messages to be shared, etc., which is not limited in the present disclosure.
[0103] In the disclosed embodiment, a message sharing instruction is first received, and sharing parameters are determined according to the associated information of the message to be shared, and then encryption parameters are determined based on the sharing parameters, and the message to be shared is encrypted using the encryption parameters to generate first encrypted data, and then the first encrypted data is encrypted based on the identifier of the target user to obtain target shared data, and finally, when the first client is not the client that created the conversation group, the target shared data and the private token of the first client are sent to the server. Thus, when the first client is not the client that created the conversation group, the target shared data and the private token are sent to the server, thereby reducing the overhead of the first client when sharing messages.
[0104] Combine the following Figure 5Taking the message sharing method executed by the server as an example, the message sharing method provided by the present disclosure is described in detail. Figure 5 The following is a flow chart of a message sharing method provided by an embodiment of the present disclosure. Figure 5 As shown, the message sharing method may include the following steps:
[0105] Step 501: receiving a data sharing instruction sent by a first client, wherein the data sharing instruction includes an identifier of the first client, target sharing data, and an identifier of a target user.
[0106] The data sharing instruction is an instruction sent by the first client and is used to instruct to share a message with a target user, and may include an identifier of a conversation group to which the target shared data belongs.
[0107] In the present disclosure, after receiving the data sharing instruction sent by the first client, the server can obtain the identifier of the first client, the target sharing data and the identifier of the target user.
[0108] Step 502 : When the first client is a client that creates a session group to which the target shared data belongs, the target shared data is sent to a second client associated with the identifier of the target user.
[0109] In the present disclosure, when the first client is a client that creates a conversation group to which the target shared data belongs, the server may send the target shared data to a second client associated with the target user's identifier based on the target user's identifier in the data sharing instruction.
[0110] In the disclosed embodiment, a data sharing instruction sent by a first client is first received. If the first client is a client that creates a session group to which the target shared data belongs, the target shared data is sent to a second client associated with the identifier of the target user. Thus, by receiving the data sharing instruction and sending the target shared data to the target user, the security of data sharing is improved.
[0111] Combine the following Figure 6 Taking the message sharing method executed by the server as an example, the message sharing method provided by the present disclosure is further described in detail. Figure 6 The following is a flow chart of a message sharing method provided by an embodiment of the present disclosure. Figure 6 As shown, the message sharing method may include the following steps:
[0112] Step 601: receiving a message sharing request sent by a first client, wherein the sharing request includes an identifier of a first user using the first client and an identifier of a target user.
[0113] In the present disclosure, after receiving the message sharing request sent by the first client, the server can obtain the identifier of the first user of the first client and the identifier of the target user.
[0114] Step 602: Based on the identifier of the first user and the identifier of the target user, obtain the historical conversation record between the first user and the target user.
[0115] In the present disclosure, after receiving the message sharing request, the server can obtain the historical conversation record between the first user and the target user based on the identifier of the first user and the identifier of the target user.
[0116] It should be noted that the server can obtain characteristics such as whether the first user and the target user have established a session before, the number of sessions established, and the length of time the other party's communication address information is stored locally from the historical session records between the first user and the target user.
[0117] Step 603: Determine the current sharing feature value between the first user and the target user based on the historical session records.
[0118] The sharing characteristic value is obtained by weighted summing up characteristic values obtained from historical session records, such as whether a session has been established before, the number of times a session has been established, the length of time the other party's communication address information is stored locally, and the like.
[0119] It should be noted that, based on the historical session records, if the first user and the target user have established a session before, the characteristic value of the established session can be set to a specific value (for example, set to 10) to indicate that; if the first user and the target user have not established a session before, that is, the historical session record is empty, the characteristic value of the non-established session can be set to another specific value (for example, set to 0) to indicate that, and the present disclosure does not limit this.
[0120] Step 604: When the characteristic value is greater than the threshold, a sharing pass instruction is returned to the first client.
[0121] The threshold is preset by the server and is used to indicate a critical value of the sharing feature value between the first user and the target user.
[0122] In the present disclosure, when the sharing characteristic value is greater than a threshold, it can be considered that a session has been established between the first user and the target user before, and message sharing can be performed, and the server returns a sharing pass instruction to the first client.
[0123] It should be noted that, when the feature value is greater than the threshold, it can be considered that the first user can share messages with the target user. At this time, the target user will join the conversation group to which the first user belongs and can see the chat process between the first user and other users in the conversation group. However, the target user can only see the messages shared by the first user and the coded messages that are not shared, such as Figure 7 As shown, Figure 7 A schematic diagram of the effect of a message sharing method provided by an embodiment of the present disclosure.
[0124] Step 605: receiving a data sharing instruction sent by the first client, wherein the data sharing instruction includes an identifier of the first client, target sharing data, and an identifier of a target user.
[0125] Step 606: When the first client is the client that creates the session group to which the target shared data belongs, the target shared data is sent to the second client associated with the identifier of the target user.
[0126] The specific implementation forms of step 605 to step 606 can refer to the detailed descriptions in other embodiments of the present disclosure, and will not be described in detail here.
[0127] In the disclosed embodiment, a message sharing request sent by a first client is first received, and based on the identifier of the first user and the identifier of the target user in the sharing request, the historical conversation record between the first user and the target user is obtained, and then based on the historical conversation record, the current sharing characteristic value between the first user and the target user is determined, and when the characteristic value is greater than a threshold, a sharing pass instruction is returned to the first client, and then a data sharing instruction sent by the first client is received, and when the first client is the client that created the conversation group to which the target sharing data belongs, the target sharing data is sent to the second client associated with the identifier of the target user. Thus, by obtaining the historical conversation record between the first user and the target user, determining the sharing characteristic value, and when the characteristic value is greater than a threshold, a sharing pass instruction is returned to the first client, thereby further improving the security of the message sharing process.
[0128] Combine the following Figure 8 Taking the message sharing method executed by the server as an example, the message sharing method provided by the present disclosure is further described in detail. Figure 8 The following is a flow chart of a message sharing method provided by an embodiment of the present disclosure. Figure 8 As shown, the message sharing method may include the following steps:
[0129] Step 801: receiving a message sharing request sent by a first client, wherein the sharing request includes an identifier of a first user using the first client and an identifier of a target user.
[0130] Step 802: Based on the identifier of the first user and the identifier of the target user, obtain the historical conversation record between the first user and the target user.
[0131] Step 803: Determine the current sharing feature value between the first user and the target user based on the historical session records.
[0132] The specific implementation forms of steps 801 to 803 can refer to the detailed descriptions in other embodiments of the present disclosure, and will not be described in detail here.
[0133] Step 804 : when the characteristic value is greater than the threshold, determine whether the first client is a client that creates the session group to which the target shared data belongs.
[0134] In the present disclosure, when the characteristic value is greater than the threshold, the server first needs to determine whether the first client is a client that creates the conversation group to which the target shared data belongs, so that the corresponding message sharing method can be used to share the message.
[0135] Step 805 : when the first client is not a client of the session group to which the target shared data belongs, obtain the historical sharing record associated with the first client.
[0136] In the present disclosure, in the case where the first client is not a client of the session group to which the target shared data belongs, the server needs to obtain the historical sharing record associated with the first client.
[0137] It should be noted that the server can obtain characteristics such as whether the first client has established a session with the target user before, the number of sessions established, and the length of time the other party's communication address information is stored locally from the historical sharing record associated with the first client.
[0138] Step 806: Based on the historical sharing record, authorization verification is performed on the first client.
[0139] Among them, the authorization verification is used by the server to determine whether it can be made for the first client to complete the verification of the token used in the message sharing process.
[0140] In the present disclosure, when the server performs authorization verification on the first client based on the historical sharing record, it is necessary to verify whether the first client has the permission to open the message sharing. The specific contents of the verification include whether there is a historical information leakage time. If not, the authorization verification is passed; it is necessary to verify whether there is a non-sharing event between the target user and other clients in the conversation group to which the target shared data belongs. Among them, the first client can set a non-sharing client list. If not, the authorization verification is passed; it is also necessary to verify whether the conversation group to which the first client belongs has previously opened the message sharing function. If yes, the authorization verification is passed. When all the verifications are passed, the server can make a token for the first client to use in the message sharing process.
[0141] Step 807: If the verification is successful, generate a public token and a private token associated with the first client.
[0142] In the present disclosure, after the server performs authorization verification on the first client and determines that the verification passes, it can generate a public token and a private token for the first client to be used in the message sharing process.
[0143] Step 808: Return a sharing instruction to the first client, wherein the sharing instruction includes a private token.
[0144] It should be noted that after receiving the sharing instruction, the first client can obtain the private token and then digitally sign the private token.
[0145] Step 809: receiving a data sharing instruction sent by the first client, wherein the data sharing instruction includes an identifier of the first client, target sharing data, and an identifier of a target user.
[0146] It should be noted that, in the case where the first client is not the client that creates the session group to which the target shared data belongs, the data sharing instruction received by the server also includes a private token that has been digitally signed by the first client.
[0147] Step 810 , based on the public token associated with the first client, the private token in the data sharing instruction is verified, and if the verification passes, the target shared data is sent to the second client associated with the identifier of the target user.
[0148] In the present disclosure, after receiving the data sharing instruction sent by the first client, the server can obtain the private token of the first client, and then use the public token to verify the private token. If the verification passes, the target shared data is sent to the second client associated with the identifier of the target user.
[0149] It should be noted that based on the private token in the data sharing instruction, the server can obtain the specific operation behavior of the first client. Based on the public token, the server can determine that the first client has the authority to share the message, so that the first client can complete the subsequent message sharing.
[0150] In the disclosed embodiment, a message sharing request sent by a first client is first received, and based on the identifier of the first user and the identifier of the target user in the message sharing request, a historical conversation record between the first user and the target user is obtained, and then based on the historical conversation record, the current sharing feature value between the first user and the target user is determined, and when the feature value is greater than a threshold, it is determined whether the first client is a client that creates the conversation group to which the target sharing data belongs. In the case that the first client is not a client that creates the conversation group to which the target sharing data belongs, the historical sharing record associated with the first client is obtained, and based on the historical sharing record, the first client is authorized to be verified, and when the verification passes, a public token and a private token associated with the first client are generated, and then a sharing pass instruction is returned to the first client, and then a data sharing instruction sent by the first client is received, and based on the public token associated with the first client, the private token in the data sharing instruction is verified, and when the verification passes, the target sharing data is sent to the second client associated with the identifier of the target user. Thus, in the case that the first client is not a client that creates the conversation group to which the target sharing data belongs, the server generates a token for the first client, and message sharing is performed, thereby further reducing the overhead of the first client in the message sharing process.
[0151] In order to implement the above embodiment, the present disclosure also proposes a message sharing device.
[0152] Fig. 9 A schematic diagram of the structure of a message sharing device provided by an embodiment of the present disclosure.
[0153] like Fig. 9 As shown, the message sharing device 900 is configured in the first client, and includes: a first receiving module 901 , a first determining module 902 , a second determining module 903 , a first encryption module 904 , a second encryption module 905 , and a first sending module 906 .
[0154] A first receiving module 901 is used to receive a message sharing instruction, wherein the message sharing instruction includes the message to be shared and the identifier of the target user;
[0155] A first determination module 902, configured to determine sharing parameters according to associated information of the message to be shared;
[0156] A second determination module 903, configured to determine encryption parameters based on the sharing parameters;
[0157] A first encryption module 904, configured to encrypt the message to be shared using encryption parameters to generate first encrypted data;
[0158] The second encryption module 905 is used to encrypt the first encrypted data based on the identifier of the target user to obtain target shared data;
[0159] The first sending module 906 is configured to send the target sharing data to a second client associated with the identifier of the target user through the server when the first client is the client that creates the conversation group to which the message to be shared belongs.
[0160] In a possible implementation of the present disclosure, the first determining module 902 is configured to:
[0161] Determine the number N1 of messages to be shared and the content size N2 of the messages to be shared;
[0162] According to N1 and N2, determine the average size N3 of each message to be shared;
[0163] Determine the time difference N4 between the start time and the end time of the message to be shared;
[0164] According to N4, determine the average time interval N5 between the messages to be shared.
[0165] In a possible implementation of the present disclosure, the second determining module 903 is configured to:
[0166] Based on the digital fingerprint of the first electronic device where the first client is located, the sharing parameter is processed to obtain a first sub-encryption parameter;
[0167] Sending the sharing parameter to a third client, wherein the third client is a client other than the first client in the conversation group to which the message to be shared belongs;
[0168] receiving a second sub-encryption parameter returned by the third client;
[0169] The first sub-encryption parameter and the second sub-encryption parameter are merged to generate an encryption parameter.
[0170] In a possible implementation of the present disclosure, the first receiving module 901 is configured to:
[0171] In response to the received input being the same as the sharing instruction associated with the identifier of the target user, and the current conversation window containing the selected message, it is determined that the message sharing instruction has been received.
[0172] In a possible implementation of the present disclosure, the first determining module 902 is configured to:
[0173] Sending a message sharing request to the server, wherein the sharing request includes a first user identifier of the first client and an identifier of a target user;
[0174] When receiving the sharing instruction returned by the server, the sharing parameters are determined according to the associated information of the message to be shared.
[0175] In a possible implementation of the present disclosure, after obtaining the target shared data, the second encryption module 905 is used to:
[0176] In the case that the first client is not the client that creates the session group, the target shared data and the private token of the first client are sent to the server.
[0177] In a possible implementation of the present disclosure, the second encryption module 905 is used to:
[0178] Receive the private token sent by the server.
[0179] The functions and specific implementation principles of the above modules in the embodiments of the present disclosure can be referred to the above method embodiments, and will not be repeated here.
[0180] In the disclosed embodiment, a message sharing instruction is first received, and sharing parameters are determined according to the associated information of the message to be shared, and then encryption parameters are determined based on the sharing parameters, and then the message to be shared is encrypted using the encryption parameters to generate first encrypted data, and then the first encrypted data is encrypted based on the identifier of the target user to obtain target sharing data, and finally, when the first client is the client that creates the conversation group to which the message to be shared belongs, the target sharing data is sent to the second client associated with the identifier of the target user through the server. Thus, the message to be shared is processed based on the encryption parameters and the identifier of the target user, thereby improving the security of message sharing and the convenience of message sharing.
[0181] Fig.10 A schematic diagram of the structure of a message sharing device provided by an embodiment of the present disclosure.
[0182] like Fig.10 As shown, the message sharing device 1000 is configured in the server, and includes: a second receiving module 1001 and a second sending module 1002 .
[0183] The second receiving module 1001 is used to receive a data sharing instruction sent by the first client, wherein the data sharing instruction includes an identifier of the first client, target sharing data, and an identifier of a target user;
[0184] The second sending module 1002 is configured to send the target shared data to a second client associated with the identifier of the target user when the first client is a client that creates the session group to which the target shared data belongs.
[0185] In a possible implementation of the present disclosure, before receiving the data sharing instruction sent by the first client, the second receiving module 1001 is used to:
[0186] receiving a message sharing request sent by a first client, wherein the sharing request includes an identifier of a first user using the first client and an identifier of a target user;
[0187] Based on the identifier of the first user and the identifier of the target user, obtaining a historical conversation record between the first user and the target user;
[0188] Based on the historical session records, determining the current sharing feature value between the first user and the target user;
[0189] When the characteristic value is greater than the threshold, a sharing pass instruction is returned to the first client.
[0190] In a possible implementation of the present disclosure, after determining the current sharing feature value between the first user and the target user, the second receiving module 1001 is configured to:
[0191] When the characteristic value is greater than the threshold, determining whether the first client is a client that creates a session group to which the target shared data belongs;
[0192] In a case where the first client is not a client that creates a session group to which the target shared data belongs, obtaining a historical sharing record associated with the first client;
[0193] Based on the historical sharing records, authorization verification is performed on the first client;
[0194] If the verification is successful, a public token and a private token associated with the first client are generated;
[0195] A sharing instruction is returned to the first client, wherein the sharing instruction includes a private token.
[0196] In a possible implementation of the present disclosure, after receiving the data sharing instruction sent by the first client, the second receiving module 1001 is used to:
[0197] The private token in the data sharing instruction is verified based on the public token associated with the first client, and if the verification passes, the target shared data is sent to the second client associated with the identifier of the target user.
[0198] The functions and specific implementation principles of the above modules in the embodiments of the present disclosure can be referred to the above method embodiments, and will not be repeated here.
[0199] In the disclosed embodiment, a data sharing instruction sent by a first client is first received. If the first client is a client that creates a session group to which the target shared data belongs, the target shared data is sent to a second client associated with the identifier of the target user. Thus, by receiving the data sharing instruction and sending the target shared data to the target user, the security of data sharing is improved.
[0200] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.
[0201] Fig.11 A schematic block diagram of an example electronic device 1100 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0202] like Fig.11 As shown, the device 1100 includes a computing unit 1101, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 1102 or a computer program loaded from a storage unit 1108 into a random access memory (RAM) 1103. In the RAM 1103, various programs and data required for the operation of the device 1100 can also be stored. The computing unit 1101, the ROM 1102, and the RAM 1103 are connected to each other via a bus 1104. An input / output (I / O) interface 1105 is also connected to the bus 1104.
[0203] A number of components in the device 1100 are connected to the I / O interface 1105, including: an input unit 1106, such as a keyboard, a mouse, etc.; an output unit 1107, such as various types of displays, speakers, etc.; a storage unit 1108, such as a disk, an optical disk, etc.; and a communication unit 1109, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 1109 allows the device 1100 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0204] The computing unit 1101 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 1101 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 1101 performs the various methods and processes described above, such as the message sharing method. For example, in some embodiments, the message sharing method may be implemented as a computer software program, which is tangibly included in a machine-readable medium, such as a storage unit 1108. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 1100 via the ROM 1102 and / or the communication unit 1109. When the computer program is loaded into the RAM 1103 and executed by the computing unit 1101, one or more steps of the message sharing method described above may be performed. Alternatively, in other embodiments, the computing unit 1101 may be configured to execute the message sharing method in any other appropriate manner (for example, by means of firmware).
[0205] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0206] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0207] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0208] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0209] The systems and techniques described herein can be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), the Internet, and a blockchain network.
[0210] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services ("Virtual Private Server", or "VPS" for short). The server may also be a server of a distributed system, or a server combined with a blockchain.
[0211] In the disclosed embodiment, a message sharing instruction is first received, and sharing parameters are determined according to the associated information of the message to be shared, and then encryption parameters are determined based on the sharing parameters, and then the message to be shared is encrypted using the encryption parameters to generate first encrypted data, and then the first encrypted data is encrypted based on the identifier of the target user to obtain target sharing data, and finally, when the first client is the client that creates the conversation group to which the message to be shared belongs, the target sharing data is sent to the second client associated with the identifier of the target user through the server. Thus, the message to be shared is processed based on the encryption parameters and the identifier of the target user, thereby improving the security of message sharing and the convenience of message sharing.
[0212] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0213] In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present disclosure, the meaning of "multiple" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined. In the description of the present disclosure, the words "if" and "if" used can be interpreted as "at the time of" or "when" or "in response to determination" or "under the circumstances of".
[0214] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. A message sharing method, characterized in that: Executed by a first client, the method includes: Receiving a message sharing instruction, wherein the message sharing instruction includes the message to be shared and an identifier of a target user; Determining sharing parameters according to the associated information of the message to be shared; Based on the shared parameters, determining encryption parameters; Encrypting the message to be shared using the encryption parameter to generate first encrypted data; Encrypting the first encrypted data based on the identifier of the target user to obtain target shared data; In a case where the first client is a client that creates a conversation group to which the message to be shared belongs, sending the target sharing data to a second client associated with the identifier of the target user through a server; The determining the sharing parameters according to the associated information of the message to be shared includes: Determine the number N1 of the messages to be shared and the content size N2 of the messages to be shared; According to N1 and N2, determine the average size N3 of each message to be shared; Determine a time difference N4 between the start time and the end time of the message to be shared; According to N4, determining an average time interval N5 between the messages to be shared; The step of determining encryption parameters based on the shared parameters includes: Based on the digital fingerprint of the first electronic device where the first client is located, the sharing parameter is processed to obtain a first sub-encryption parameter; Sending the sharing parameter to a third client, wherein the third client is a client other than the first client in the conversation group to which the message to be shared belongs; Receiving a second sub-encryption parameter returned by the third client; The first sub-encryption parameter and the second sub-encryption parameter are merged to generate the encryption parameter.
2. The method according to claim 1, characterized in that The receiving message sharing instruction includes: In response to the received input being the same as the sharing instruction associated with the identifier of the target user, and the current conversation window containing the selected message, it is determined that the message sharing instruction has been received.
3. The method according to any one of claims 1-2, characterized in that: The determining the sharing parameters according to the associated information of the message to be shared includes: Sending a message sharing request to a server, wherein the sharing request includes a first user identifier of the first client and an identifier of the target user; When the sharing instruction returned by the server is received, the sharing parameters are determined according to the associated information of the message to be shared.
4. The method according to any one of claims 1-2, characterized in that: After obtaining the target sharing data, the method further includes: In a case where the first client is not a client that creates the session group, the target shared data and a private token of the first client are sent to the server.
5. The method according to claim 4, characterized in that Also includes: Receive the private token sent by the server.
6. A message sharing method, characterized in that: Executed by a server, the method includes: Receiving a data sharing instruction sent by a first client, wherein the data sharing instruction includes an identifier of the first client, target sharing data, and an identifier of a target user; In a case where the first client is a client that creates a session group to which the target shared data belongs, sending the target shared data to a second client associated with the identifier of the target user; The target sharing data is generated by the first client according to a message sharing instruction, and the first client generates the target sharing data according to the message sharing instruction, including: the first client receives the message sharing instruction, and the message sharing instruction includes the message to be shared and the identifier of the target user; determines the sharing parameters according to the associated information of the message to be shared; determines the encryption parameters based on the sharing parameters; encrypts the message to be shared using the encryption parameters to generate the first encrypted data; encrypts the first encrypted data based on the identifier of the target user to obtain the target sharing data; The first client determines the sharing parameters according to the associated information of the message to be shared, including: the first client determines the number N1 of the messages to be shared and the content size N2 of the messages to be shared; determines the average size N3 of each message to be shared according to N1 and N2; determines the time difference N4 between the start time and the end time of the message to be shared; and determines the average time interval N5 between the messages to be shared according to N4; Among them, the first client determines the encryption parameter based on the sharing parameter, including: the first client processes the sharing parameter based on the digital fingerprint of the first electronic device where the first client is located to obtain a first sub-encryption parameter; sends the sharing parameter to a third client, wherein the third client is a client other than the first client in the conversation group to which the message to be shared belongs; receives the second sub-encryption parameter returned by the third client; and merges the first sub-encryption parameter and the second sub-encryption parameter to generate the encryption parameter.
7. The method according to claim 6, characterized in that Before receiving the data sharing instruction sent by the first client, the method further includes: receiving a message sharing request sent by the first client, wherein the sharing request includes an identifier of a first user using the first client and an identifier of the target user; Based on the identifier of the first user and the identifier of the target user, obtaining a historical conversation record between the first user and the target user; Based on the historical session records, determining a current sharing feature value between the first user and the target user; When the characteristic value is greater than a threshold, a sharing pass instruction is returned to the first client.
8. The method according to claim 7, characterized in that After determining the current sharing feature value between the first user and the target user, the method further includes: In a case where the characteristic value is greater than a threshold, determining whether the first client is a client that creates a session group to which the target shared data belongs; In a case where the first client is not a client that creates a session group to which the target shared data belongs, obtaining a historical sharing record associated with the first client; Based on the historical sharing record, performing authorization verification on the first client; If the verification is successful, generating a public token and a private token associated with the first client; A sharing instruction is returned to the first client, wherein the sharing instruction includes the private token.
9. The method according to claim 8, characterized in that After receiving the data sharing instruction sent by the first client, the method further includes: The private token in the data sharing instruction is verified based on the public token associated with the first client, and if the verification passes, the target shared data is sent to the second client associated with the identifier of the target user.
10. A message sharing device, the device being configured in a first client, comprising: A first receiving module, configured to receive a message sharing instruction, wherein the message sharing instruction includes a message to be shared and an identifier of a target user; A first determination module, used to determine sharing parameters according to the associated information of the message to be shared; A second determination module, configured to determine an encryption parameter based on the sharing parameter; A first encryption module, used to encrypt the message to be shared using the encryption parameter to generate first encrypted data; A second encryption module, configured to encrypt the first encrypted data based on the identifier of the target user to obtain target shared data; A first sending module, configured to send the target sharing data to a second client associated with the identifier of the target user through a server when the first client is a client that creates a conversation group to which the message to be shared belongs; The first determining module is specifically configured to: Determine the number N1 of the messages to be shared and the content size N2 of the messages to be shared; According to N1 and N2, determine the average size N3 of each message to be shared; Determine a time difference N4 between the start time and the end time of the message to be shared; According to N4, determining an average time interval N5 between the messages to be shared; The second determining module is specifically used to: Based on the digital fingerprint of the first electronic device where the first client is located, the sharing parameter is processed to obtain a first sub-encryption parameter; Sending the sharing parameter to a third client, wherein the third client is a client other than the first client in the conversation group to which the message to be shared belongs; Receiving a second sub-encryption parameter returned by the third client; The first sub-encryption parameter and the second sub-encryption parameter are merged to generate the encryption parameter.
11. A message sharing device, the device being configured in a server, comprising: A second receiving module, configured to receive a data sharing instruction sent by a first client, wherein the data sharing instruction includes an identifier of the first client, target sharing data, and an identifier of a target user; A second sending module, configured to send the target shared data to a second client associated with the identifier of the target user when the first client is a client that creates the session group to which the target shared data belongs; The target sharing data is generated by the first client according to a message sharing instruction, and the first client generates the target sharing data according to the message sharing instruction, including: the first client receives the message sharing instruction, and the message sharing instruction includes the message to be shared and the identifier of the target user; determines the sharing parameters according to the associated information of the message to be shared; determines the encryption parameters based on the sharing parameters; encrypts the message to be shared using the encryption parameters to generate the first encrypted data; encrypts the first encrypted data based on the identifier of the target user to obtain the target sharing data; The first client determines the sharing parameters according to the associated information of the message to be shared, including: the first client determines the number N1 of the messages to be shared and the content size N2 of the messages to be shared; determines the average size N3 of each message to be shared according to N1 and N2; determines the time difference N4 between the start time and the end time of the message to be shared; and determines the average time interval N5 between the messages to be shared according to N4; Among them, the first client determines the encryption parameter based on the sharing parameter, including: the first client processes the sharing parameter based on the digital fingerprint of the first electronic device where the first client is located to obtain a first sub-encryption parameter; sends the sharing parameter to a third client, wherein the third client is a client other than the first client in the conversation group to which the message to be shared belongs; receives the second sub-encryption parameter returned by the third client; and merges the first sub-encryption parameter and the second sub-encryption parameter to generate the encryption parameter.
12. An electronic device, characterized in that: include: at least one processor; and, a memory communicatively coupled to the at least one processor; The memory stores instructions that may be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method of any one of claims 1-5 or 6-9.
13. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-5 or 6-9.
14. A computer program product, comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1-5 or 6-9.
