Data processing method, terminal, server, electronic device, and storage medium
By displaying a session verification control in the chat history, the system generates and displays the message consistency and integrity verification results, solving the problem of needing to provide a copy of the original content in existing technologies, and realizing the verification of the trustworthiness of session messages without affecting privacy.
Patent Information
- Application Number
- CN202111124031.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-24
- Publication Date
- 2025-12-09
- Estimated Expiration
- 2041-09-24
AI Technical Summary
In existing technologies, users need to provide a copy of the original content when proving the authenticity and credibility of chat logs, which raises uncertainties about privacy protection. Furthermore, ToC communication software lacks relevant functions, while ToB software's session recording interface is complex to operate and its privacy protection is unsatisfactory.
A data processing method is provided that, in response to the selection of a target session message, displays a session verification control to generate and display message consistency and integrity verification results. Verification is performed using consistency ciphertext and integrity ciphertext to avoid reproducing chat log content and ensure privacy.
It enables the verification of session message trustworthiness from two dimensions without providing a copy of the original content, provides an intuitive and convenient verification method, ensures message privacy, and avoids the drawbacks of privacy and lack of knowledge in existing technologies.
Smart Images

Figure CN115883093B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of computer, in particular, the present application relates to a kind of data processing method, terminal, server, electronic equipment and storage medium. BACKGROUND
[0002] In today's society, online life on various real-time communication software and offline life of users are more and more closely related, when encountering disputes, how to prove the authenticity of chat records becomes a problem to be solved.
[0003] In the prior art, users often seek neutral agencies to verify credibility, but generally need to provide a copy of the original content of the chat record, which has uncertainty in privacy protection. In addition, there is no such function in existing To Consumer (ToC) communication software; while some To Business (ToB) customer relationship maintenance software may provide a session record interface for pulling customer service personnel for enterprises. At present, such operations are all from the perspective of backtracking chat records, and the content of the chat record at that time is reproduced, which is also unsatisfactory in privacy protection. SUMMARY
[0004] The embodiments of the present application provide a data processing method, terminal, server, electronic equipment and storage medium that overcome the above problems or at least partially solve the above problems.
[0005] In a first aspect, a data processing method is provided, which comprises:
[0006] In response to selecting at least one target session message, a session verification control is displayed;
[0007] In response to triggering the session verification control, a message consistency verification result and / or a message integrity verification result of the target session message after session verification are displayed;
[0008] The message consistency verification result is used to indicate whether the target session message is tampered with.
[0009] The message integrity verification result is used to indicate whether the context of the target session message is tampered with.
[0010] In a second aspect, a data processing method is provided, which comprises:
[0011] Session verification information is received, which includes the message identifier of at least one selected target session message in the session event, and the second consistency ciphertext used to generate the message consistency verification result and the second integrity ciphertext used to generate the message integrity verification result generated in response to the selection operation of the target session message.
[0012] determining pre-stored session protection information including the message identifier of the target session message, the session protection information including first consistency cryptogram generated in response to the target session message appearing in the session event for generating the message consistency verification result and first integrity cryptogram for generating the message integrity verification result;
[0013] generating the message consistency verification result according to the first consistency cryptogram and the second consistency cryptogram; and / or generating the message integrity verification result according to the first integrity cryptogram and the second integrity cryptogram;
[0014] wherein the message consistency verification result is used to indicate whether the target session message is tampered; and the message integrity verification result is used to indicate whether the context of the target session message is tampered.
[0015] In a third aspect, a terminal is provided, comprising:
[0016] a verification control display module configured to display a session verification control in response to selecting at least one target session message;
[0017] a verification result display module configured to display a message consistency verification result and / or a message integrity verification result of the target session message after session verification in response to triggering the session verification control;
[0018] wherein the message consistency verification result is used to indicate whether the target session message is tampered;
[0019] the message integrity verification result is used to indicate whether the context of the target session message is tampered.
[0020] In a fourth aspect, a server is provided, comprising:
[0021] a verification information receiving module configured to receive session verification information, the session verification information including a message identifier of at least one target session message selected in a session event, and second consistency cryptogram generated in response to the selection operation of the target session message for generating a message consistency verification result and second integrity cryptogram for generating a message integrity verification result;
[0022] a finding information module configured to determine pre-stored session protection information including the message identifier of the target session message, the session protection information including first consistency cryptogram generated in response to the target session message appearing in the session event for generating the message consistency verification result and first integrity cryptogram for generating the message integrity verification result;
[0023] a verification result generation module configured to generate the message consistency verification result according to the first consistency ciphertext and the second consistency ciphertext, and / or generate the message integrity verification result according to the first integrity ciphertext and the second integrity ciphertext;
[0024] The message consistency verification result is used to indicate whether the target session message is tampered with, and the message integrity verification result is used to indicate whether the context of the target session message is tampered with.
[0025] In a fifth aspect, an embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the method provided in the first or second aspect when executing the program.
[0026] In a sixth aspect, an embodiment of the present application provides a computer readable storage medium, which stores a computer program, and the computer program is executable by a processor to implement the steps of the method provided in the first or second aspect.
[0027] In a seventh aspect, an embodiment of the present application provides a computer program, which includes computer instructions stored in a computer readable storage medium, and when a processor of a computer device reads the computer instructions from the computer readable storage medium, the processor executes the computer instructions to enable the computer device to implement the steps of the method provided in the first or second aspect.
[0028] The data processing method, terminal, server, electronic device and storage medium provided by the embodiments of the present application provide an intuitive and convenient triggering mode for verifying the session message by displaying the session verification control in response to selecting at least one target session message, and provide the message consistency verification result and the message integrity verification result of the target session message in response to triggering the session verification control. The message consistency verification result is used to indicate whether the target session message is tampered with, and the message integrity verification result is used to indicate whether the context of the target session message is tampered with. The credibility of the target message is verified from two dimensions, the original content copy of the session does not need to be provided by the user in the verification process, the privacy of the message is ensured, the representation of the verification result is more intuitive and refined, and the disadvantages of not considering privacy and no knowledge caused by reproducing the chat record content when verifying in the prior art are avoided. BRIEF DESCRIPTION OF DRAWINGS
[0029] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed in the description of the embodiments of the present application will be briefly introduced.
[0030] Figure 1A schematic diagram of an implementation environment involved in an embodiment of the present application;
[0031] Figure 2 A schematic diagram of a flow of a data processing method of an embodiment of the present application;
[0032] Figure 3 A schematic diagram of an embodiment of the present application for displaying a session verification control on a session interface;
[0033] Figure 4 A schematic diagram of a display interface of a verification result of an embodiment of the present application;
[0034] Figure 5 A schematic diagram of a partial session protection selection interface of an embodiment of the present application;
[0035] Figure 6 A schematic diagram of a flow of an embodiment of the present application for updating a session protection statistical table on a server side according to states of a first session protection switch and a second session protection switch;
[0036] Figure 7 A schematic diagram of a flow of an embodiment of the present application for judging whether to start a session protection function of a session event;
[0037] Figure 8 An interaction flowchart of an embodiment of the present application for a terminal to generate session protection information of a new session message and synchronize to a server;
[0038] Figure 9 A schematic diagram of a flow of a data processing method of another embodiment of the present application;
[0039] Figure 10 An interaction schematic diagram of an embodiment of the present application for a server and a terminal to verify a session message;
[0040] Figure 11 A schematic diagram of a structure of a terminal provided by an embodiment of the present application;
[0041] Figure 12 A schematic diagram of a structure of a server provided by an embodiment of the present application;
[0042] Figure 13 A schematic diagram of a structure of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION
[0043] Embodiments of the present application are described in detail below with reference to the accompanying drawings. Examples of the embodiments are shown in the drawings, wherein the same or similar notations represent the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the drawings are exemplary and are only used to explain the present application, and cannot be interpreted as a limitation of the present application.
[0044] Those skilled in the art can understand that the singular forms "a", "an" and "the" used herein also include the plural forms unless specifically stated otherwise. It should be further understood that the use of the term "include" in the specification of the present application means that the presence of a feature, integer, step, operation, element and / or component, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof. It should be understood that when we say that an element is "connected" or "coupled" to another element, it can be directly connected or coupled to the other element, or there can be an intermediate element. In addition, "connected" or "coupled" used herein can include wireless connection or wireless coupling. The phrase "and / or" used herein includes all or any single unit and all combinations of the associated listed items.
[0045] For the purpose, technical solutions and advantages of the present application to be clearer, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.
[0046] Firstly, several terms related to the present application are introduced and explained:
[0047] Consistency: indicates whether the content of the session message when verified is consistent with the content of the session message when it appears in the session event.
[0048] Consistency ciphertext: for a session message, the one-way unique information generated by operating on the content of the session message.
[0049] Integrity: indicates whether the context selected when the session information is verified is consistent with the context when the session information appears in the session event, so as to judge whether the session event has appeared to be deleted.
[0050] Integrity ciphertext: for a session message, the one-way unique information that guarantees the connection between the session message and the previous session message; the consistency ciphertext of the previous chat record in the chat content can be used as the integrity ciphertext in the embodiments of the present application.
[0051] Zero-knowledge proof: the embodiments of the present application indicate that the user with verification requirement can perform consistency and integrity verification of the chat content itself without reporting the original content of the chat record to the server.
[0052] The data processing method, device, electronic equipment and computer readable storage medium provided by the present application aim to solve the above technical problems of the prior art.
[0053] The technical solutions of the present application and how the technical solutions of the present application solve the above technical problems will be described in detail below with specific examples. The following specific examples can be combined with each other, and the same or similar concepts or processes can not be described again in some examples. The embodiments of the present application will be described below with reference to the drawings.
[0054] Please refer to Figure 1 which exemplarily shows a schematic diagram of an implementation environment related to the embodiments of the present application, as Figure 1 shown, the implementation environment 1000 can include one or more of terminal devices 1100, 1200, 1300, a network 1400 and a server 1500. The network 1400 is a medium for providing a communication link between the terminal devices 1100, 1200, 1300 and the server 1500. The network 1400 can include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0055] It should be understood that Figure 1 the number of terminal devices, networks and servers in may be only illustrative. According to the needs of implementation, there can be any number of terminal devices, networks and servers. For example, the server 150 can be a standalone physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud computing services.
[0056] The execution method of the server of the embodiments of the present application can be completed in the form of cloud computing. Cloud computing is a computing mode that distributes computing tasks on a resource pool composed of a large number of computing machines, so that various application systems can obtain computing power, storage space and information services according to needs. The network that provides resources is called "cloud". The resources in the "cloud" are infinitely expandable to users and can be obtained at any time, used on demand, expanded at any time, and paid according to use.
[0057] As a basic capability provider of cloud computing, a cloud computing resource pool (referred to as a cloud platform, generally referred to as an IaaS (Infrastructure as a Service) platform) is established, and a plurality of types of virtual resources are deployed in the resource pool for external customers to select and use. The cloud computing resource pool mainly includes: computing devices (virtualized machines containing operating systems), storage devices, network devices.
[0058] According to logical function division, the PaaS (Platform as a Service) layer can be deployed on the IaaS (Infrastructure as a Service) layer, and the SaaS (Software as a Service) layer is deployed on the PaaS layer, or the SaaS is directly deployed on the IaaS. The PaaS is a platform for software running, such as a database and a web container. The SaaS is various business software, such as a web portal and a short message massager. Generally, the SaaS and the PaaS are upper layers relative to the IaaS.
[0059] The user can use the terminal device 1100, 1200, and 1300 to interact with the server 150 through the network 140 to complete the session verification. The terminal device 110, 120, and 130 can be various electronic devices supporting instant messaging, including but not limited to a smart phone, a tablet computer, a portable computer, a desktop computer, a wearable device, a virtual reality device, a smart home, a car, and the like.
[0060] The terminal is installed with a target application program provided by the server 1500, the target application program can be an application program or an operating system, and the target application program provides an environment for instant messaging. For example, the target application program can be a chat application program, a browser, a multimedia player, a navigation application program, and the like. For another example, the target application program can be an Android operating system, the session verification can have a fast application implementation of the target application program, and the target application program provides a running environment for a fast application for providing the session verification.
[0061] The server 1500 can be a server providing various services, in particular, a server providing a session verification service.
[0062] Please refer to Figure 2 which exemplarily shows a flowchart of a data processing method of an embodiment of the present application. The data processing method of the embodiment of the present application can be applied to both ToC and ToB application scenarios. As shown in the figure, the method comprises:
[0063] S101, in response to selecting at least one target session message, a session verification control is displayed.
[0064] The embodiment of the present application can perform session verification in a session interface of an instant messaging application program.
[0065] Please refer to Figure 3Exemplarily, the left drawing of the figure shows a single-person session interface, i.e., a one-to-one session interface, and the session interface shows a plurality of session messages, which include session messages sent by a session object and session messages sent by the user. The user can long-press any session message (e.g., "have a meal together") to pop up a message processing sub-interface. The middle drawing of the figure shows an operation sub-interface 10 for the session message. As shown in the figure, the operation sub-interface 10 includes a copy control, a forward control, a delete control, a multi-selection control, and the like. It can be understood that when the user clicks the copy control, the content of the session message is copied to the clipboard for pasting. When the user clicks the forward control, the session message is forwarded to another session object. When the user clicks the delete control, the session message is deleted from the session interface of the user. When the multi-selection control is clicked, the session interface further displays a selected control 20 and a session verification interface 30. The right drawing of the figure shows the session verification sub-interface and the selected control. As shown in the figure, the left side of each message displays a selected control. It can be understood that the initial state of the selected control is an unselected state. When the user clicks the selected control for the first time, the state of the selected control is updated to a selected state, indicating that the session message corresponding to the selected control is selected. The session verification interface displays a session verification control. If the user triggers the session verification control, the selected session message is subjected to session verification.
[0066] It should be understood that Figure 3 It should be understood that the style, operation logic, and display effect of the session interface shown in the figure are only examples, and the embodiments of the present application are not limited specifically. For example, the operation logic of triggering the selected message can also be clicking or long-pressing any avatar in the session interface. The session verification interface can also display other controls, such as a screenshot control and a mail forwarding control. The screenshot control is used to save the selected chat record in the form of a screenshot. The mail forwarding control is used to send the selected chat record in the form of a mail.
[0067] S102, in response to triggering the session verification control, displaying a message consistency verification result and / or a message integrity verification result of the target session message after session verification.
[0068] It should be understood that when the user triggers the session verification control, i.e., starts to perform session verification on the selected target session message, the session verification of the embodiments of the present application includes the verification results of the two dimensions of integrity and consistency of the selected target session message. Unlike the complex way of developing a pull session record interface provided by the developer in the prior art, the embodiments of the present application only need to trigger the session verification control in the interface to automatically obtain the verification result.
[0069] Specifically, the verification result of the consistency is used to represent whether the content of the target session message at the time of verification is consistent with the content of the target session message at the time of occurrence in the session event.
[0070] The session event of the embodiments of the present application can refer to a session with a certain session object. The session object of the embodiments of the present application can be a single session party or a session group composed of multiple session parties. For example, all sessions of user Zhang San and single session party Li Si belong to one session event, and all sessions in the session group Happiness Family that user Zhang San joins belong to one session event.
[0071] The session event of the embodiments of the present application can also refer to a session with a certain session object that has continuity. The continuity of the embodiments of the present application can refer to the continuity of the session message saved in the terminal. It can be understood that the session message that can be seen by the user on the session interface is the session message that has been cached locally in the terminal. Conversely, when the user deletes all session messages of a certain session object, it means that when the session interface of the session object is opened again, no historical session message will be displayed in the session interface.
[0072] Therefore, the embodiments of the present application can determine whether the session message of the corresponding session object is stored locally after receiving a session message. If not, it means that a new session event is generated, and the session message is the first (new) session message of the new session event. If the session message of the corresponding session object is stored locally, the session message is only a new session message in the current session event. That is, in this case, one session object can generate multiple session events, but at most only one session event in the multiple session events is the current session event, and the other session events are historical session events that have been deleted. The embodiments of the present application can set a unique event identifier for each session event
[0073] The following will be described in combination with a specific example:
[0074] After Zhang San adds friend Li Si, the following dialogues occur:
[0075] Zhang San: The weather is good this week.
[0076] Li Si: Yes, go shopping on the weekend?
[0077] Zhang San: Yes, where do you want to go?
[0078] Li Si: Just go to the People's Square.
[0079] Zhang San: That's settled then.
[0080] When Zhang San sends "The weather this week is good" to Li Si, since Zhang San has not chatted with Li Si before, Zhang San's terminal naturally has no cached conversation messages with Li Si, and thus a first conversation event between Zhang San and Li Si is generated, and the first sentence in the conversation event is "The weather this week is good". If Zhang San deletes the three conversation messages "The weather this week is good", "Yes, go shopping on the weekend?" and "Can you go where to go?" after sending "Can you go where to go?", Zhang San's terminal no longer has the conversation messages of Li Si, and thus no historical conversation record can be seen when the conversation interface with Li Si is opened. When receiving "Just go to the People's Square", a second conversation event is generated, and the first sentence in the conversation event is "Just go to the People's Square". The "That's settled" sent by Zhang San is the second conversation message of the second conversation event.
[0081] The moment when the target conversation message appears in the conversation event can be the moment when the terminal receives the target conversation message and displays it in the conversation interface. The sender of the target conversation message can be the user himself or the conversation object. It can be understood that the application embodiment can also set a precondition for displaying the target conversation message in the conversation interface: successful sending of the target conversation message. Successful sending can be divided into two cases. When the target conversation message is sent by the user himself, successful sending means that the target conversation message successfully reaches the conversation object. When the target conversation message is sent by the conversation object, successful sending means that the target conversation message is received by the user. That is, the message displayed in the conversation interface according to the application embodiment is the successfully sent conversation message.
[0082] If the content of the target conversation message when verified is consistent with the content of the target conversation message when appearing in the conversation event, the message consistency verification result is that the target conversation message has consistency, otherwise, the message consistency verification result is that the target conversation message does not have consistency.
[0083] The message integrity verification result is used to indicate whether the context of the target conversation message is tampered with, for example, whether the selected n conversation messages of the target conversation message are consistent with the n conversation messages appearing in the conversation event, or whether the selected n conversation messages before and after the target conversation message are consistent with the n conversation messages appearing before and after the target conversation message. The application embodiment does not make a specific limitation on the specific value of n, for example, n can be 1.
[0084] In the case that the first consistency ciphertext of the selected previous session message of the target session message is taken as the first integrity ciphertext and the first consistency ciphertext of the selected previous session message of the target session message is taken as the second integrity ciphertext, since the embodiment of the present application compares the selected previous session message with the previous session message appearing in the session event when verifying each target session message, theoretically, if the user has selected all the session messages without omission when selecting the target session message, and the user has not deleted the session message from the session interface before the selection operation, the selected previous session message of the target session message is consistent with the previous session message of the target session message appearing in the session event when verifying, the target session message has integrity, if the user has skipped some session messages when selecting the target session message, or the user has deleted the session message from the session interface before the selection operation, the message integrity verification result will be that the target session message does not have integrity.
[0085] Please refer to Figure 4 which exemplarily shows a schematic diagram of a display interface of the verification result of the embodiment of the present application, as shown in the figure, the display interface displays the verification results of the consistency and the integrity of two dimensions, and the verification results of the two dimensions have passed the verification. The display mode of the verification result of the embodiment of the present application can help the user to intuitively determine whether the selected session message has passed the verification, and also overcomes the drawbacks of not considering privacy and lack of knowledge in the prior art which reproduces the content of the chat record from the perspective of the session record.
[0086] It should be understood that the embodiment of the present application does not make specific limitations on how to display the consistency and message integrity verification results of the target session message, in addition to the above Figure 4 way, the message consistency verification result and the message integrity verification result of each target session message selected can also be displayed in the form of a list. Table 1 shows a verification result display table of the embodiment of the present application, as shown in Table 1, the table shows the verification results of three target session messages selected by the user, each row in the table corresponds to a target session message, and the content, consistency verification result and integrity verification result of each target session message are displayed.
[0087] Content Consistency verification result Integrity verification result "XXXXXXXX" Pass Pass "XXXXXX" Pass Pass "XXXXXXXXXX" Pass Fail
[0088] Table 1 Verification result display table
[0089] The data processing method of the embodiment of the present application provides an intuitive and convenient triggering mode for verifying the session message in response to selecting at least one target session message, and displays the consistency and message integrity verification results of the target session message in response to triggering the session verification control. The message consistency verification result is used to indicate whether the content of the target session message is consistent with the content of the session message when the session event occurs. The message integrity verification result is used to indicate whether the selected context of the target session message is consistent with the context of the session event. The target message is verified from two dimensions. The verification process does not require the user to provide the original content copy of the session, ensures the privacy of the message, and the representation of the verification result is more intuitive and refined, avoiding the disadvantages of not considering privacy and lack of knowledge caused by reproducing the chat record content in the prior art.
[0090] On the basis of the above embodiments, as an optional embodiment, in response to selecting at least one session message, the previous embodiment further includes:
[0091] In response to the occurrence of a new session message in the session event, if it is determined that the session protection function of the session event has been started, the session protection information of the new session message is generated, and the session protection information is synchronized to the server.
[0092] It should be noted that the embodiment of the present application can pre-set to start the session protection function for the global session object or the session event of part of the session object. The global session object refers to all session objects of the user. When the session protection function is started, the ciphertext of the session message that can be used to verify the consistency and integrity is generated. The embodiment of the present application can only verify the session message that occurs after the session function is started.
[0093] When a new session message occurs in the session event, the embodiment of the present application needs to judge whether the session protection function of the session event is started.
[0094] Please refer to Figure 5 which exemplarily shows a schematic diagram of a session protection selection interface of the embodiment of the present application. As shown in the figure, the interface displays the default selected session object. The interface can be triggered by clicking the avatar of the session object for which the session protection is wanted to be set and the like. The interface further displays an add member control. The user can add more session objects to start or stop the session protection function by operating the add member control. The interface also displays a first session protection switch 40. When the switch is off, it indicates that the session protection function of the session message of the default selected and added session object is not started. When the switch is on, it indicates that the session protection function of the session message of the default selected and added session object is started.
[0095] When the embodiment of the present application can also set a second session protection switch capable of setting to open or close the session protection function of the session event of the global session object. When the switch is opened, it means that the session protection function of the session message of all session objects is opened, and when the second session protection switch is closed, it means that the session protection function of the session message of all session objects is closed.
[0096] Further, when the above two session protection switches are set at the same time, in order to avoid the conflict between the first session protection switch and the second session protection switch, the embodiment of the present application can further set that the priority of the first session protection switch is higher than that of the second session protection switch.
[0097] Specifically, when the second session protection switch is opened, the session event of all session objects is opened, and when the second session protection switch is closed, if the first session protection switch of part of the session objects has been opened, only the session protection function of the other session objects except the above part of the session objects is closed.
[0098] The advantage of such setting is that the second session protection switch can quickly open the session protection function of all session objects, and at the same time, the first session object protection switch can ensure that part of the session objects which are set to open the session protection function by the user can continue to maintain the opening of the session protection function when the second session protection switch is closed.
[0099] The embodiment of the present application can maintain a session protection statistics table on the terminal side and / or the server side to record whether the session event opens the session protection function. Since there is a case that the user logs in the account on multiple terminals, by maintaining the session protection statistics table on the server side, the effect of synchronizing the session protection function of multiple terminals can be realized.
[0100] Please refer to Table 2, which is used to record the four-tuple information of the object identifier of the session object, the event identifier of the session event, the first session protection switch value and the second session protection switch, for example:
[0101] In response to selecting at least one session object and opening the first session protection switch, the first session protection switch value corresponding to the session event of the selected at least one session object in the session protection statistics table is updated to the first preset value (for example, 1).
[0102] For example, the user opens the first session protection switch of the session object Li Si, and then only the first session protection switch corresponding to the session event of Li Si in the session protection statistics table is updated to the first preset value. When the first session protection switch is updated to the first preset value, it means that the session protection function of the corresponding session object has been opened.
[0103] In response to selecting at least one session object and turning off the first session protection switch, the first session protection switch value corresponding to the session event of the selected at least one session object in the session protection statistics table is updated to a second preset value (for example, 0). When the first session protection switch of a session object is turned off, the session event of the session object will not be protected.
[0104] In response to turning on the second session protection switch, the second session protection switch value corresponding to the session event of all session objects in the session protection statistics table is updated to a third preset value (for example, -1), which indicates that the session protection function of the session event of all session objects including the corresponding session object is turned on.
[0105] It should be understood that after the second session protection switch is turned on, when a new session event occurs subsequently, a corresponding row of data is created in the session protection statistics table, and the second session protection switch value is also set to the third preset value.
[0106] When the terminal turns off the second session protection switch, the second session protection switch value corresponding to the session event of all session objects in the session protection statistics table except for the marked session object is updated to the second preset value. The marked session object is the session object whose first session protection switch is turned on, and is also the session object whose first session protection switch value in the session protection statistics table is the first preset value.
[0107]
[0108] Table 2 Session protection statistics table
[0109] Please refer to Figure 6 which shows a flowchart of updating the session protection statistics table on the server side according to the states of the first session protection switch and the second session protection switch. As shown in the figure, it includes:
[0110] S10, in response to turning on the first session protection switch for a certain session object, the terminal sends a local session opening request to the server, and the request includes the object identifier of the session object and the event identifier of the session event of the session object;
[0111] S11, the server determines a four-tuple recording the object identifier of the session object and the event identifier of the session event of the session object in the session protection statistics table, and sets the first session protection switch value in the four-tuple to the first preset value;
[0112] S12, the server sends a message of setting success to the terminal;
[0113] S13, in response to the second session protection switch being turned on, the terminal sends a global session opening request to the server, the request including event identifiers of all session events existing in the current session list and object identifiers of all session objects;
[0114] S14, the server determines a four-tuple recording the object identifiers and the event identifiers in the session protection statistics table, and sets the second session protection switch value in all four-tuples to a third preset value;
[0115] S15, the server sends a setting success message to the terminal;
[0116] S16, in response to the second session protection switch being turned off, the terminal sends a global session closing request to the server, the request including event identifiers of all session events existing in the current session list and object identifiers of all session objects;
[0117] S17, the server determines a target four-tuple recording the first session protection switch value being the first preset value in the session protection statistics table, and sets the second session protection switch value in all four-tuples except the target four-tuple to the second preset value;
[0118] S18, the server sends a setting success message to the terminal;
[0119] S19, when the first session protection switch for a certain session object in the terminal is turned off, the terminal sends a local session closing request to the server, the request including the object identifier of the session object and the event identifier of the session event of the session object;
[0120] S20, the server determines a four-tuple recording the object identifier of the session object and the event identifier of the session event of the session object in the session protection statistics table, and sets the first session protection switch in the four-tuple to the second preset value;
[0121] S21, the server sends a setting success message to the terminal.
[0122] From the above embodiments, when a new session message appears in a session event, the four-tuple information with the event identifier is found in the session protection statistics table, and it is determined whether the session protection function of the session event is turned on:
[0123] If it is determined that the first session protection switch value in the four-tuple information is the first preset value, it is determined that the session protection function of the session event is turned on; or
[0124] If it is determined that the second session protection switch value in the four-tuple information is the third preset value, it is determined that the session protection function of the session event is turned on.
[0125] Please refer toFigure 7 which exemplarily shows a flowchart of judging whether to start the session protection function of the session event according to the embodiment of the application, as shown in the figure, comprising:
[0126] S210, receiving a new session message;
[0127] S220, determining the event identification of the session event of the new session message;
[0128] S230, determining the four-tuple of the event identification in the session protection statistical table, judging whether the second session protection switch value in the four-tuple is the third preset value, if yes, executing step S250, if not, executing step S240;
[0129] S240, judging whether the first session protection switch value in the four-tuple is the first preset value, if yes, executing step S250, if not, executing step S260;
[0130] S250, determining that the session protection function has been started, generating the session protection information of the new session message, and ending the flow;
[0131] S260, determining that the session protection function has not been started, and ending the flow.
[0132] The session protection information according to the embodiment of the application comprises the message identification of the new session message, the first consistency cipher text for generating the message consistency verification result, and the first integrity cipher text for generating the message integrity verification result.
[0133] It should be noted that the embodiment of the application does not upload the original text of the session message to the system, but generates the first integrity cipher text and the first consistency cipher text according to the content of the session message and the last session information of the session message in the session event, and uploads the first integrity cipher text and the first consistency cipher text to the system, thereby ensuring the privacy of the session information.
[0134] Specifically, the embodiment of the application generates the session protection information of the new session message and synchronizes to the server, comprising S201-S203, specifically:
[0135] S201, generating the first consistency cipher text of the new session message according to the message content of the new session message through a preset encryption algorithm.
[0136] The embodiment of the application does not limit the specific encryption algorithm, which can be a one-way encryption algorithm, one-way encryption is also called irreversible encryption algorithm, and the key thereof is generated by an encryption hash function. Specifically, MD5 (Message Digest Algorithm 5) algorithm, SHA (Secure Hash Algorithm) algorithm, CRC-32 algorithm, etc. can be used.
[0137] S202, obtaining the first integrity cipher of the new session message according to the consistency cipher of n continuous session messages appearing before and / or after the target session information in the session event, n is a positive integer.
[0138] After obtaining the integrity cipher of the new session message, the embodiment of the present application determines the integrity cipher of the new session message according to the consistency cipher of one session message appearing before and after the session event. Optionally, when the integrity cipher of the new session message is determined according to the consistency cipher of n session messages appearing before the session event, the embodiment of the present application can store the consistency cipher of each session message in order according to the appearance order of each session message. Thus, when the new session message appears, the consistency cipher of the most recently appearing session message is taken as the first integrity cipher of the new session message.
[0139] It should be understood that, if the consistency cipher of the subsequently appearing session message of the new session message is needed, the integrity cipher of the new session message can be generated after n session messages subsequently appear and the consistency cipher of the n session messages is generated.
[0140] It should be noted that, if the integrity cipher of the new session message is generated only based on the consistency cipher of the session message appearing before the new session message, the consistency cipher and the integrity cipher can be generated immediately after the session message appears, and the one-way uniqueness of the information is ensured.
[0141] The following will be described in combination with a specific example:
[0142] After Zhang San adds a friend Li Si, the following dialogues occur:
[0143] Zhang San: The weather is good this week
[0144] Li Si: Yes, go shopping on the weekend?
[0145] Zhang San: Yes, where do you want to go?
[0146] Li Si: Just go to the People's Square.
[0147] Zhang San: That's settled.
[0148] If the session protection function is started from the beginning, the terminal can generate the corresponding consistency ciphertext 1 according to the preset encryption algorithm based on "It's a nice day this week", and the session message does not need to set the integrity ciphertext because there is no previous session message; after receiving "Yes, go shopping on the weekend?", the terminal can further generate the consistency ciphertext 2 based on the preset encryption algorithm, and because the previous session message of this session message is "It's a nice day this week", the consistency ciphertext 1 of "It's a nice day this week" is used as the integrity ciphertext of "Yes, go shopping on the weekend?". The generation of the ciphertext information of the subsequent session messages can be similarly generated, and the present application will not be repeated.
[0149] S203, pack the message identifier of the new session message, the event identifier of the session event, and the first consistency ciphertext and the first integrity ciphertext into the session protection information and send to the server for synchronization.
[0150] After receiving the first consistency ciphertext and the first integrity ciphertext, the server can store the message identifier of the session message, the first consistency ciphertext and the first integrity ciphertext in the form of a triple, and send a response information of synchronization success to the terminal after storage.
[0151] On the basis of the above embodiments, as an optional embodiment, in order to further reduce the space occupied by the ciphertext information of the session message saved by the terminal, the present embodiment can only maintain the integrity ciphertext of one session event, specifically, obtaining the first integrity ciphertext of the new session message, including:
[0152] Reading the integrity ciphertext of the session event as the integrity ciphertext of the new session message.
[0153] In the present embodiment, one integrity ciphertext is maintained for each session event, and the integrity ciphertext maintained by the session event is directly used as the integrity ciphertext of the new session message when a new session message appears in each session event.
[0154] Correspondingly, the present embodiment packs the message identifier of the new session message, the event identifier of the session event, and the first ciphertext information including the consistency ciphertext and the integrity ciphertext into the session protection information and sends to the server for synchronization, and then further includes:
[0155] If the response information of synchronization success sent by the server is received, the first consistency ciphertext of the new session message is updated to the integrity ciphertext of the session event.
[0156] That is, the embodiment of the application updates the consistency cipher of the new session message to the integrity cipher of the session event after receiving the response information of successful synchronization, and realizes the function of updating the integrity cipher of the session event to the consistency cipher of the latest session message in the terminal after each synchronization.
[0157] Please refer to Figure 8 which exemplarily shows the interaction flowchart of the terminal generating the session protection information of the new session message and synchronizing to the server according to the embodiment of the application. It should be understood that when the new session message passes the judgment of whether to start the session protection function of the session event and determines that the session protection function of the session event has been started, the terminal performs the following steps as shown in Figure 8 as shown in Figure 8
[0158] When the new session message of the session event appears on the terminal side, the consistency cipher of the new session message is generated according to the message content of the new session message through a preset encryption algorithm;
[0159] The terminal side reads the integrity cipher of the session event, which is the consistency cipher of the last session message of the session event;
[0160] The message identifier of the new session message, the event identifier of the session event, the first consistency cipher and the first integrity cipher are packaged as the session protection information and sent to the server for synchronization;
[0161] The server stores the message identifier of the session message, the first consistency cipher and the first integrity cipher, and sends the response information of successful synchronization to the terminal. The response information can include the unique identifier of the session event, the synchronization success result information and the first integrity cipher;
[0162] The terminal updates the integrity cipher of the session event according to the first integrity cipher in the received response information.
[0163] In the embodiment of the application, the response information sent by the server includes the first integrity cipher, and the terminal updates the integrity cipher of the session event according to the first integrity cipher in the response information, which is equivalent to updating the result to get the synchronization of the server.
[0164] On the basis of the above embodiments, as an optional embodiment, the message consistency verification result and / or the message integrity verification result of the target session message after the session verification are displayed, and the previous steps further include:
[0165] The session verification information of the target session message is generated, and the session verification information is sent to the server.
[0166] The session verification information of the embodiment of the present application comprises a message identifier of the target session message, second consistency ciphertext used for generating the message consistency verification result, and second integrity ciphertext used for generating the message integrity verification result.
[0167] Specifically, the session verification information of the target session message is generated, comprising:
[0168] S301, generating second consistency ciphertext of the target session message according to the message content of the target session message through a preset encryption algorithm.
[0169] The embodiment of the present application is not limited to a specific encryption algorithm, which can be a one-way encryption algorithm, one-way encryption also known as irreversible encryption algorithm, the key of which is generated by an encryption hash function. Specifically, MD5 (Message Digest Algorithm 5) algorithm, SHA (Secure Hash Algorithm) algorithm, CRC-32 algorithm, etc. can be used. It can be understood that the encryption algorithm used in session verification should be consistent with the encryption algorithm used in session protection.
[0170] S302, obtaining second integrity ciphertext of the target session message according to the consistency ciphertext of the selected n consecutive session messages before and / or after the target session message, n being a positive integer.
[0171] The embodiment of the present application obtains the consistency ciphertext of each selected target session message, and then obtains the integrity ciphertext of the next selected target session message according to the consistency ciphertext of the selected n consecutive session messages before and / or after the target session message.
[0172] The following will be described in conjunction with a specific example:
[0173] After Zhang San adds friend Li Si, the following conversation occurs:
[0174] Zhang San: The weather is good this week
[0175] Li Si: Yes, go shopping on the weekend?
[0176] Zhang San: Can, where do you want to go?
[0177] Li Si: Just go to the People's Square.
[0178] Zhang San: That's settled.
[0179] If Zhang chooses all the above session messages in the verification, the terminal can generate consistent ciphertext 1 corresponding to "It's a nice day this week" through a preset encryption algorithm, and since the session message has no previous session message, the session message does not need to set the integrity ciphertext; then according to "Yes, go shopping on the weekend?", a consistent ciphertext 2 can be further generated through a preset encryption algorithm, and the consistent ciphertext 1 of the selected previous session message "It's a nice day this week" is used as the integrity ciphertext of "Yes, go shopping on the weekend?". The generation of the ciphertext information of the subsequent session messages can be similarly generated, and the present application will not be repeated here.
[0180] S303, pack the message identifier of the target session message, the second consistent ciphertext and the second integrity ciphertext as the session verification information.
[0181] The terminal can send the second consistent ciphertext, the second integrity ciphertext and the message identifier of all the selected target session messages to the server in the form of a list; the server compares the first consistent ciphertext and the second consistent ciphertext recorded in the session verification information and the session protection information, and the first integrity ciphertext and the second integrity ciphertext recorded in the session verification information and the session protection information with the same message identifier, to obtain the verification result.
[0182] Please refer to Figure 9 which exemplarily shows a flowchart of a data processing method according to another embodiment of the present application, as shown in the figure, which includes:
[0183] S401, receive the session verification information sent by the terminal.
[0184] The session verification information according to the embodiments of the present application includes the message identifier of at least one selected target session message in the session event, and the second consistent ciphertext generated in response to the selection operation of the target session message for generating the message consistency verification result and the second integrity ciphertext for generating the message integrity verification result, that is, the terminal does not need to upload the original content of the target message to be verified when performing verification, which guarantees the privacy of the session message.
[0185] S402, determine the pre-stored session protection information including the message identifier of the target session message.
[0186] As can be seen from the above embodiments, the embodiments of the present application can also receive and store the session protection information generated by the terminal when a new session message appears in the session event, and the session protection information includes the first consistent ciphertext generated in response to the appearance of the target session message in the session event for generating the message consistency verification result and the first integrity ciphertext for generating the message integrity verification result.
[0187] S403, generating the message consistency verification result according to the first consistency ciphertext and the second consistency ciphertext; and generating the message integrity verification result according to the first integrity ciphertext and the second integrity ciphertext.
[0188] Since the session verification information and the session protection information are generated at different times, and the information in the session verification information is selected by the user, there may be a case that the message is changed. The message consistency verification result of the embodiment of the application is used to indicate whether the target session message is tampered with; and the message integrity verification result is used to indicate whether the context of the target session message is tampered with.
[0189] The embodiment of the application receives the session verification information sent by the terminal, the session verification information including the message identifier of at least one target session message, the second consistency ciphertext for generating the message consistency verification result and the second integrity ciphertext for generating the message integrity verification result generated in response to the selected operation of the target session message, and does not need the terminal to upload the original content of the session message when performing verification, thereby ensuring the privacy of the message. The target session message is verified according to the session verification information, and the message consistency verification result and the message integrity verification result of the target session message are returned, so that the effect of performing trust verification on the session message from two dimensions is achieved, and the representation of the verification result is more intuitive and refined, thereby avoiding the disadvantages of not considering privacy and no knowledge caused by reproducing the content of the chat record when performing verification in the prior art.
[0190] On the basis of each of the above embodiments, as an optional embodiment, the first consistency ciphertext is generated according to the message content of the target session message when the session event occurs; and the second consistency ciphertext is generated according to the message content of the target session message when selected.
[0191] Generating the message consistency verification result according to the first consistency ciphertext and the second consistency ciphertext, includes:
[0192] If the first consistency ciphertext and the second consistency ciphertext are consistent, it is determined that the target session message is not tampered with.
[0193] If the first consistency ciphertext and the second consistency ciphertext are inconsistent, it is determined that the target session message is tampered with.
[0194] On the basis of each of the above embodiments, as an optional embodiment, the first integrity ciphertext is obtained according to the consistency ciphertext of n continuous session messages before and / or after the target session information in the session event appears;
[0195] The second integrity cipher text is obtained according to the consistent cipher texts of the n selected session messages before and / or after the target session message.
[0196] The message integrity verification result is generated according to the first integrity cipher text and the second integrity cipher text, including:
[0197] If the first integrity cipher text and the second integrity cipher text are consistent, it is determined that the previous session message of the target session message is not tampered with.
[0198] If the first integrity cipher text and the second integrity cipher text are inconsistent, it is determined that the previous session message of the target session message is tampered with.
[0199] On the basis of the above embodiments, as an optional embodiment, the receiving terminal sends at least one session verification information, and before that, it further includes:
[0200] The session protection information sent by the receiving terminal is generated by the terminal in response to the occurrence of a new session message in a session event and the determination that the session protection function of the session event has been started.
[0201] Please refer to Figure 10 which exemplarily shows an interactive schematic diagram of server and terminal verification of session messages according to the embodiments of the present application, as shown in the figure, including:
[0202] The client selects n session messages in response to the selection;
[0203] The client calculates the second consistent cipher text for the kth session message, and then calculates the second consistent cipher text for the k+1th session message, and so on, until the calculation of the second consistent cipher text for all session messages is completed, and then takes the second consistent cipher text of the selected previous session message of each session message as the second integrity cipher text of the selected previous session message of each session message, wherein the second integrity cipher text of the selected first session message is empty, and the message identifier, the second consistent cipher text and the second integrity cipher text of the selected n session messages are sent to the server in the form of a list;
[0204] The server queries the first consistent cipher text and the first integrity cipher text according to the message identifier, compares the first consistent cipher text and the second consistent cipher text to generate a message consistency verification result, and compares the first integrity cipher text and the second integrity cipher text to generate a message integrity verification result;
[0205] The server returns the message consistency verification result and the message integrity verification result of each session message to the terminal.
[0206] The embodiments of the present application provide a terminal, such as Figure 11As shown, the terminal can include: a verification control display module 101 and a verification result display module 102, specifically:
[0207] The verification control display module 101 is configured to display a session verification control in response to selecting at least one target session message;
[0208] The verification result display module 102 is configured to display a message consistency verification result and / or a message integrity verification result of the target session message after session verification in response to triggering the session verification control;
[0209] The message consistency verification result is used to indicate whether the target session message is tampered with;
[0210] The message integrity verification result is used to indicate whether the context of the target session message is tampered with.
[0211] The terminal provided by the embodiment of the present application specifically performs the process of the above method embodiment, and details are specifically described in the content of the above data processing method on the terminal side, which will not be repeated here. The terminal provided by the embodiment of the present application provides a user with an intuitive and convenient triggering mode for verifying a session message by displaying a session verification control in response to selecting at least one target session message, performing session verification in response to triggering the session verification control, and displaying a message consistency verification result and a message integrity verification result of the target session message, wherein the message consistency verification result is used to indicate whether the target session message is tampered with; and the message integrity verification result is used to indicate whether the context of the target session message is tampered with. The target message is verified from two dimensions, the verification process does not require the user to provide an original content copy of the session, the privacy of the message is ensured, and the representation of the verification result is more intuitive and refined, avoiding the disadvantages of not considering privacy and no knowledge in the prior art when reproducing the content of the chat record during verification.
[0212] The embodiment of the present application provides a server, such as Figure 12 As shown, the server can include: a verification information receiving module 201, a search information module 202, and a verification result generation module 203, specifically:
[0213] The verification information receiving module 201 is configured to receive session verification information, wherein the session verification information includes a message identifier of at least one target session message selected in a session event, and a second consistency ciphertext used to generate the message consistency verification result and a second integrity ciphertext used to generate the message integrity verification result generated in response to the selection operation of the target session message;
[0214] The search information module 202 is configured to determine pre-stored session protection information including a message identifier of the target session message, wherein the session protection information includes first consistency ciphertext used to generate the message consistency verification result and first integrity ciphertext used to generate the message integrity verification result, which are generated in response to the target session message being generated in response to a session event;
[0215] The verification result generation module 203 is configured to generate the message consistency verification result according to the first consistency ciphertext and the second consistency ciphertext, and / or generate the message integrity verification result according to the first integrity ciphertext and the second integrity ciphertext.
[0216] The message consistency verification result is used to indicate whether the target session message is tampered with, and the message integrity verification result is used to indicate whether the context of the target session message is tampered with.
[0217] The server provided by the embodiments of the present application specifically performs the process of the above method embodiments, and details are specifically described in the content of the above data processing method on the server side, which will not be repeated here. The server provided by the embodiments of the present application receives the session verification information sent by the terminal, wherein the session verification information includes the message identifier of at least one target session message, the second consistency ciphertext used to generate the message consistency verification result, and the second integrity ciphertext used to generate the message integrity verification result, which are generated in response to the selection operation of the target session message. When performing verification, the terminal does not need to upload the original content of the session message, which guarantees the privacy of the message. According to the session verification information, the target session message is verified, and the message consistency verification result and the message integrity verification result of the target session message are returned. The effect of verifying the credibility of the session message from two dimensions is achieved, and the representation of the verification result is more intuitive and refined. The disadvantages of not considering privacy and no knowledge caused by reproducing the content of the chat record when performing verification in the prior art are avoided.
[0218] The electronic device provided in the embodiments of the present application comprises a memory and a processor, and at least one program stored in the memory and used for being executed by the processor to achieve the following compared with the prior art: by responding to selection of at least one target session message, a session verification control is displayed, thereby providing a user with an intuitive and convenient triggering mode for verifying a session message; in response to triggering of the session verification control, session verification is performed, and a message consistency verification result and a message integrity verification result of the target session message are displayed, the message consistency verification result is used to indicate whether the target session message is tampered with, and the message integrity verification result is used to indicate whether a context of the target session message is tampered with, thereby performing credibility verification on the target message from two dimensions, the verification process does not need the user to provide an original content copy of the session, privacy of the message is ensured, the verification result is more intuitive and refined, and the disadvantages of not considering privacy and no knowledge caused by reproduction of chat record content during verification in the prior art are avoided.
[0219] In an optional embodiment, an electronic device is provided, as shown in Figure 13 Figure 13 The electronic device 4000 shown in the figure comprises a processor 4001 and a memory 4003. The processor 4001 and the memory 4003 are connected, for example, through a bus 4002. Optionally, the electronic device 4000 can further comprise a transceiver 4004. It should be noted that in actual applications, the transceiver 4004 is not limited to one, and the structure of the electronic device 4000 does not constitute a limitation on the embodiments of the present application.
[0220] The processor 4001 can be a CPU (Central Processing Unit, central processor), a general-purpose processor, a DSP (Digital Signal Processor, digital signal processor), an ASIC (Application Specific Integrated Circuit, application specific integrated circuit), an FPGA (Field Programmable Gate Array, field programmable gate array) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It can implement or execute various exemplary logical blocks, modules and circuits described in combination with the disclosure of the present application. The processor 4001 can also be a combination of computing functions, such as one or more microprocessor combinations, combinations of DSP and microprocessor, etc.
[0221] The bus 4002 can include a path that transmits information between the above components. The bus 4002 can be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, or the like. The bus 4002 can be divided into an address bus, a data bus, a control bus, and the like. For convenience of representation, Figure 13 Only one thick line is used in the middle, but it does not mean that there is only one bus or one type of bus.
[0222] The memory 4003 can be a ROM (Read Only Memory) or other type of static storage device that can store static information and instructions, a RAM (Random Access Memory) or other type of dynamic storage device that can store information and instructions, an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, an optical disk storage (including a compact disk, a laser disk, an optical disk, a digital versatile disk, a Blu-ray disk, and the like), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited thereto.
[0223] The memory 4003 is used to store application program code for implementing the scheme of the present application, and is controlled by the processor 4001 to execute. The processor 4001 is used to execute the application program code stored in the memory 4003 to realize the content shown in the foregoing method embodiments.
[0224] The embodiment of the present application provides a computer readable storage medium, which stores a computer program, and when the computer program is run on a computer, the computer can execute the corresponding content in the foregoing method embodiment. Compared with the prior art, by responding to selection of at least one target session message, a session verification control is displayed, an intuitive and convenient triggering mode of verifying a session message is provided for a user, in response to triggering of the session verification control, session verification is performed, a message consistency verification result and a message integrity verification result of the target session message are displayed, the message consistency verification result is used for indicating whether the target session message is tampered with, and the message integrity verification result is used for indicating whether the context of the target session message is tampered with, the target message is verified in two dimensions, the verification process does not need the user to provide an original content copy of a session, the privacy of the message is ensured, the representation of the verification result is more intuitive and refined, and the disadvantages of not considering privacy and no knowledge caused by reproducing chat record content when verifying in the prior art are avoided.
[0225] The embodiment of the present application provides a computer program, which comprises computer instructions stored in a computer readable storage medium, when a processor of a computer device reads the computer instructions from the computer readable storage medium, the processor executes the computer instructions, and the computer device executes the content shown in the foregoing method embodiment. Compared with the prior art, by responding to selection of at least one target session message, a session verification control is displayed, an intuitive and convenient triggering mode of verifying a session message is provided for a user, in response to triggering of the session verification control, session verification is performed, a message consistency verification result and a message integrity verification result of the target session message are displayed, the message consistency verification result is used for indicating whether the target session message is tampered with, and the message integrity verification result is used for indicating whether the context of the target session message is tampered with, the target message is verified in two dimensions, the verification process does not need the user to provide an original content copy of a session, the privacy of the message is ensured, the representation of the verification result is more intuitive and refined, and the disadvantages of not considering privacy and no knowledge caused by reproducing chat record content when verifying in the prior art are avoided.
[0226] It should be understood that although the steps in the flowcharts of the drawings are shown in a sequential order following the arrows, the steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated otherwise herein, the execution of the steps is not strictly limited to the order indicated by the arrows, and can be executed in other orders. Moreover, at least some of the steps in the flowcharts of the drawings can include multiple sub-steps or multiple stages, which are not necessarily executed at the same time, but can be executed at different times, and the execution order of which is not necessarily sequential, but can be round-robin or alternately executed with at least part of other steps or sub-steps or stages of other steps.
[0227] The above is only some embodiments of the present application, and it should be pointed out that for those skilled in the art, without departing from the principles of the present application, a number of improvements and refinements can be made, which should also be considered as the protection scope of the present application.
Claims
1. A data processing method, characterized by, The method comprises: in response to a new session message appearing in a session event, if it is determined that a session protection function of the session event has been started, generating session protection information of the new session message, and synchronizing the session protection information to a server; in response to at least one target session message in the session event being selected, displaying a session verification control; in response to the session verification control being triggered, displaying a message consistency verification result and / or a message integrity verification result of the target session message after session verification; wherein the message consistency verification result is used to indicate whether the target session message is tampered with, and the message integrity verification result is used to indicate whether the context of the target session message is tampered with; the session protection information of the new session message comprises a first consistency ciphertext used to generate the message consistency verification result and a first integrity ciphertext used to generate the message integrity verification result; the first consistency ciphertext is generated by a preset encryption algorithm according to the message content of the new session message; the first integrity ciphertext is determined according to the consistency ciphertexts of n consecutive session messages appearing before and / or after the target session message in the session event, n being a positive integer; and the first integrity ciphertext is used to generate the message integrity verification result.
2. The data processing method of claim 1, wherein: the session protection information further comprises a message identifier of the new session message.
3. The data processing method according to claim 2, characterized in that, the generation of the session protection information of the new session message and the synchronization to the server comprises: packing the message identifier of the new session message, an event identifier of the session event, the first consistency ciphertext, and the first integrity ciphertext into the session protection information and sending the session protection information to the server for synchronization.
4. The data processing method according to claim 2, characterized in that, the display of the message consistency verification result and / or the message integrity verification result of the target session message after session verification further comprises: generating session verification information and sending the session verification information to the server; wherein the session verification information comprises a message identifier of the at least one selected target session message, a second consistency ciphertext used to generate the message consistency verification result, and a second integrity ciphertext used to generate the message integrity verification result.
5. The data processing method according to claim 4, characterized in that, The generation of session verification information comprises: generating the second consistency ciphertext of the target session message according to the message content of the target session message by a preset encryption algorithm; obtaining the second integrity ciphertext of the target session message according to the consistency ciphertexts of n consecutive selected session messages before and / or after the target session message, n being a positive integer; packing the message identifier of the target session message, the second consistency ciphertext, and the second integrity ciphertext into the session verification information.
6. The data processing method according to any one of claims 2 to 5, characterized in that, The method further comprises: displaying at least one of a local session protection selection interface and a global session protection selection interface; wherein the local session protection selection interface comprises at least one session object to be selected and a first session protection switch, and the global session protection selection interface comprises a second session protection switch. The first conversation protection switch is used to turn on or turn off the conversation protection function of the conversation event of the selected first conversation object; The second conversation protection switch is used to turn on the conversation protection function of the conversation event of all conversation objects or turn off the conversation protection function of the conversation event of all conversation objects except the marked conversation object; the marked conversation object is the conversation object whose first conversation protection switch is in the on state.
7. The data processing method according to claim 6, characterized in that, The display of at least one of the local conversation protection selection interface and the global conversation protection selection interface, and then at least one of the following is included: In response to selecting at least one conversation object and turning on the first conversation protection switch, the first conversation protection switch value corresponding to the conversation event of the selected at least one conversation object in the conversation protection statistics table is updated to a first preset value, and the first preset value indicates that the conversation protection function of the conversation event of the corresponding conversation object is turned on; In response to selecting at least one conversation object and turning off the first conversation protection switch, the first conversation protection switch value corresponding to the conversation event of the selected at least one conversation object in the conversation protection statistics table is updated to a second preset value, and the second preset value indicates that the conversation protection function of the conversation event of the corresponding conversation object is turned off; In response to turning on the second conversation protection switch, the second conversation protection switch value corresponding to the conversation event of all conversation objects in the conversation protection statistics table is updated to a third preset value, and the third preset value indicates that the conversation protection function of the conversation event of all conversation objects including the corresponding conversation object is turned on; In response to turning off the second conversation protection switch, the second conversation protection switch value corresponding to the conversation event of all conversation objects except the marked conversation object in the conversation protection statistics table is updated to the second preset value.
8. The data processing method according to claim 7, characterized in that, The determination that the conversation protection function of the conversation event has been turned on includes: Determining the four-tuple information of the conversation event from the conversation protection statistics table according to the event identifier of the conversation event; If it is determined that the first conversation protection switch value in the four-tuple information is the first preset value, it is determined that the conversation protection function of the conversation event has been turned on; or If it is determined that the second conversation protection switch value in the four-tuple information is the third preset value, it is determined that the conversation protection function of the conversation event has been turned on.
9. A data processing method, characterized by, It includes: Receiving conversation verification information, the conversation verification information including the message identifier of at least one selected target conversation message in a conversation event, and the second consistency ciphertext for generating a message consistency verification result and the second integrity ciphertext for generating a message integrity verification result generated in response to the selection operation of the target conversation message; Determining the pre-stored conversation protection information including the message identifier of the target conversation message, the conversation protection information including the first consistency ciphertext for generating the message consistency verification result and the first integrity ciphertext for generating the message integrity verification result generated in response to the appearance of the target conversation message in the conversation event; Generating the message consistency verification result according to the first consistency ciphertext and the second consistency ciphertext; and / or generating the message integrity verification result according to the first integrity cipher-text and the second integrity cipher-text; wherein the message consistency verification result is used to indicate whether the target session message is tampered with, and the message integrity verification result is used to indicate whether the context of the target session message is tampered with; the first integrity cipher-text is obtained according to the consistency cipher-text of n continuous session messages before and / or after the target session message in the session event; the second integrity cipher-text is obtained according to the consistency cipher-text of n continuous selected session messages before and / or after the target session message; wherein n is a positive integer.
10. The data processing method according to claim 9, characterized in that, the first consistency cipher-text is generated according to the message content of the target session message when the session event occurs; the second consistency cipher-text is generated according to the message content of the target session message when selected.
11. The data processing method according to claim 10, characterized in that, the generating the message consistency verification result according to the first consistency cipher-text and the second consistency cipher-text comprises: if the first consistency cipher-text and the second consistency cipher-text are consistent, it is determined that the target session message is not tampered with; if the first consistency cipher-text and the second consistency cipher-text are inconsistent, it is determined that the target session message is tampered with.
12. The data processing method of claim 9, wherein, the generating the message integrity verification result according to the first integrity cipher-text and the second integrity cipher-text comprises: if the first integrity cipher-text and the second integrity cipher-text are consistent, it is determined that the previous session message of the target session message is not tampered with; if the first integrity cipher-text and the second integrity cipher-text are inconsistent, it is determined that the previous session message of the target session message is tampered with.
13. The data processing method according to any one of claims 9 to 12, characterized in that, the determining the pre-stored session protection information comprising the message identifier of the target session message further comprises: receiving the session protection information sent by the terminal in response to the occurrence of a new session message in the session event and the determination that the session protection function of the session event has been started.
14. A terminal, characterized by comprises: a verification control display module, configured to display a session verification control in response to selecting at least one target session message in a session event; a verification result display module, configured to display the message consistency verification result and / or the message integrity verification result of the target session message after session verification in response to triggering the session verification control; wherein the message consistency verification result is used to indicate whether the target session message is tampered with, and the message integrity verification result is used to indicate whether the context of the target session message is tampered with; the terminal generates the session protection information of the new session message in response to the occurrence of a new session message in a session event, and synchronizes the session protection information to the server if it is determined that the session protection function of the session event has been started; the session protection information of the new session message comprises: a first consistency cipher-text used to generate the message consistency verification result and a first integrity cipher-text used to generate the message integrity verification result; The first consistency ciphertext is generated by a preset encryption algorithm according to message content of the new session message; the first integrity ciphertext is determined according to consistency ciphertexts of n continuous session messages before and / or after the target session message in the session event, n being a positive integer; and the first integrity ciphertext is used to generate the message integrity verification result.
15. A server, characterized by Comprise: A verification information receiving module, configured to receive session verification information, wherein the session verification information comprises message identification of at least one selected target session message in a session event, second consistency ciphertext for generating message consistency verification result and second integrity ciphertext for generating message integrity verification result generated in response to selection operation of the target session message; A search information module, configured to determine session protection information pre-stored and comprising message identification of the target session message, wherein the session protection information comprises first consistency ciphertext for generating the message consistency verification result and first integrity ciphertext for generating the message integrity verification result generated in response to occurrence of the target session message in a session event; A verification result generating module, configured to generate the message consistency verification result according to the first consistency ciphertext and the second consistency ciphertext; and / or generate the message integrity verification result according to the first integrity ciphertext and the second integrity ciphertext; Wherein, the message consistency verification result is used to indicate whether the target session message is tampered; and the message integrity verification result is used to indicate whether context of the target session message is tampered. The first integrity ciphertext is obtained according to consistency ciphertexts of n continuous session messages before and / or after the target session message in the session event; The second integrity ciphertext is obtained according to consistency ciphertexts of n selected session messages before and / or after the target session message; wherein n is a positive integer. The processor executes the computer program to realize steps of the data processing method in any one of claims 1 to 13.
16. An electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, The computer readable storage medium stores computer instructions, which make the computer execute steps of the data processing method in any one of claims 1 to 13.
17. A computer-readable storage medium, characterized in that,
Citation Information
Patent Citations
Identity authentication method, identity authentication device, and identity authentication system
CN106533685A