Windows Line program chat data review method, device, equipment and storage medium

CN118277984BActive Publication Date: 2024-09-24SHENZHEN MAIFENG TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410715395.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-04
Publication Date
2024-09-24
Estimated Expiration
2044-06-04

AI Technical Summary

Technical Problem

[0004]本发明的主要目的在于解决Line程序聊天数据审查不够准确的技术问题

Benefits of technology

[0034] In the embodiment of the present invention, the QR code data for simulated login is generated by simulating the windows line program login protocol, and the QR code data is pushed to the client for account login; after the account login is successful, the preset is called Key query interface and preset account information query interface, through the preset key query interface and the preset account information query interface, obtain the account information and session data decryption key; according to the account information, obtain the session data encrypted file, and decrypt the encrypted file of the session data according to the session data decryption key to obtain the plain text of the session data; obtain the attachment token, and obtain the session data based on the plain text of the session data and the attachment token. Attachment: Send the plain text of the session data and the attachment in the session to the client for display to review the chat data of the account. In the present invention, the preset key query interface and the preset account information query interface are called to obtain the account information and session data decryption key, and based on the account information and session data decryption key, the session data plain text and attachment token are obtained, and then according to The session data plain text and attachment token can be used to obtain the attachments in the session. The attachment token can be used to review the file content in the session, making the Line program chat data review more accurate.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118277984B
    Figure CN118277984B
Patent Text Reader

Abstract

The present invention relates to the field of computers, and discloses a method, device, equipment and storage medium for reviewing chat data of Windows Line program. The method comprises: generating simulated login QR code data by simulating the Windows Line program login protocol to log in to an account; after the account login is successful, calling a preset key query interface and a preset account information query interface to obtain account information and session data decryption key; obtaining an encrypted file of session data according to the account information, and decrypting the encrypted file of session data according to the session data decryption key to obtain plain text of session data; obtaining an attachment token, and obtaining attachments in the session according to the plain text of session data and the attachment token; sending the plain text of session data and the attachments in the session to the client for display to review the chat data of the account. In an embodiment of the present invention, the content of the file in the session can be reviewed, so that the review of Line program chat data is more accurate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computers, and in particular to a Windows Line program chat data review method, device, equipment and storage medium. Background Art

[0002] With the rapid development of information technology, chat software has become an indispensable part of people's daily life and work. However, since the information in chat software often involves sensitive content such as personal privacy and commercial secrets, how to effectively review and supervise chat data has become an important issue.

[0003] Line is a communication chat software that allows users to communicate freely with family and friends, including sending pictures, videos, uploading and downloading files. Currently, Line users need to scan and log in to obtain the key of the encrypted file to decrypt the chat data. Since the decrypted chat data only contains the chat content, it is impossible to review the attachments in the conversation, resulting in inaccurate review. Summary of the invention

[0004] The main purpose of the present invention is to solve the technical problem that the chat data review of the Line program is not accurate enough.

[0005] A first aspect of the present invention provides a Windows Line program chat data review method, the Windows Line program chat data review method comprising:

[0006] By simulating the Windows Line program login protocol, a simulated login QR code data is generated, and the QR code data is pushed to the client to log in to the account;

[0007] After the account login is successful, the preset key query interface and the preset account information query interface are called, and the account information and session data decryption key are obtained through the preset key query interface and the preset account information query interface;

[0008] Obtaining an encrypted file of session data according to the account information, and decrypting the encrypted file of session data according to the session data decryption key to obtain plain text of session data;

[0009] Obtain the attachment token, and obtain the attachment in the session according to the plaintext session data and the attachment token;

[0010] The plain text of the session data and the attachments in the session are sent to the client for display to review the chat data of the account.

[0011] Optionally, in a first implementation of the first aspect of the present invention, simulating a Windows Line program login protocol, generating simulated login QR code data, and pushing the QR code data to a client to log in to an account includes:

[0012] Receive a session request sent by a client, and according to the session request, call a preset session creation interface by simulating a windows line program login protocol, generate a session identifier, and return the session identifier to the client;

[0013] Receive a QR code generation request sent by the client, call a preset QR code generation interface according to the QR code generation request and the session identifier, generate QR code data for simulated login, and push the QR code data to the client for account login.

[0014] Optionally, in a second implementation of the first aspect of the present invention, the calling of a preset key query interface and a preset account information query interface, and obtaining the account information and session data decryption key through the preset key query interface and the preset account information query interface includes:

[0015] Obtain a login request sent by the client, call a preset QR code login interface according to the login request, generate a message identifier, and return the message identifier to the client;

[0016] Receive a key acquisition request sent by the client, call a preset key query interface according to the key acquisition request and the message identifier, obtain a session data decryption key, and return the session data decryption key to the client;

[0017] Receive an account information acquisition request sent by a client, call a preset account information query interface according to the account information acquisition request and the message identifier, obtain the account information, and return the account information to the client.

[0018] Optionally, in a third implementation of the first aspect of the present invention, obtaining an encrypted file of session data according to the account information, and decrypting the encrypted file of session data according to the session data decryption key to obtain plain text of session data includes:

[0019] Obtaining an encrypted file of session data according to the account information;

[0020] Decrypt the encrypted file of the session data using the aes128 algorithm according to the session data decryption key to obtain a plaintext file of the session data;

[0021] According to the plain text file of the session data, the plain text of the session data is previewed by using the sqlite preview tool.

[0022] Optionally, in a fourth implementation of the first aspect of the present invention, decrypting the encrypted file of the session data by using an aes128 algorithm according to the session data decryption key to obtain a plaintext file of the session data includes:

[0023] Perform md5 on the session data decryption key multiple times;

[0024] Obtain an initial variable, perform multiple modulo operations on the initial variable, and perform md5 on the multiple modulo operations on the initial variable;

[0025] According to the session data decryption key and initial variables after MD5, the encrypted file of the session data is decrypted through the AES128 algorithm to obtain the plaintext file of the session data.

[0026] Optionally, in a fifth implementation of the first aspect of the present invention, the acquiring of the attachment token, obtaining the attachment in the session according to the session data plaintext and the attachment token, comprises:

[0027] Receive a token acquisition request and a message identifier sent by the client, and call a preset token acquisition interface according to the token acquisition request and the message identifier to obtain an attachment token;

[0028] The attachment in the session is obtained according to the session data plaintext and the attachment token.

[0029] Optionally, in a sixth implementation of the first aspect of the present invention, before sending the plain text of the session data and the attachments in the session to the client for display to review the chat data of the account, the method further includes:

[0030] Receive a contact information acquisition request sent by a client, call a preset session content acquisition interface according to the contact information acquisition request and the account information, obtain a contact information linked list, and return the contact information linked list to the client;

[0031] Receive the attachment acquisition request sent by the client, and call the preset attachment file acquisition interface according to the attachment acquisition request and the attachment token to obtain the attachment in the session.

[0032] A second aspect of the present invention provides a Windows Line program chat data review device, comprising: a memory and at least one processor, wherein instructions are stored in the memory, and the memory and the at least one processor are interconnected via a line; the at least one processor calls the instructions in the memory so that the Windows Line program chat data review device executes the above-mentioned Windows Line program chat data review method.

[0033] The third aspect of the present invention provides a computer-readable storage medium, which stores instructions. When the computer-readable storage medium is run on a computer, it enables the computer to execute the above-mentioned Windows Line program chat data review method.

[0034] In an embodiment of the present invention, by simulating the windows line program login protocol, a simulated login QR code data is generated, and the QR code data is pushed to the client to log in the account; after the account login is successful, the preset key query interface and the preset account information query interface are called, and the account information and session data decryption key are obtained through the preset key query interface and the preset account information query interface; according to the account information, the encrypted file of the session data is obtained, and according to the session data decryption key, the encrypted file of the session data is decrypted to obtain the session data plaintext; the attachment token is obtained, and according to the session data plaintext and the attachment token, the attachment in the session is obtained; the session data plaintext and the attachment in the session are sent to the client for display to review the chat data of the account. In the present invention, the preset key query interface and the preset account information query interface are called to obtain the account information and session data decryption key, and according to the account information and session data decryption key, the session data plaintext and the attachment token are obtained, and then according to the session data plaintext and the attachment token, the attachment in the session is obtained, and the file content in the session can be reviewed through the attachment token, so that the Line program chat data review is more accurate. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 A schematic diagram of an embodiment of a method for reviewing chat data of a Windows Line program in an embodiment of the present invention;

[0036] Figure 2 A schematic diagram of an embodiment of a Windows Line program chat data review device in an embodiment of the present invention;

[0037] Figure 3 It is a schematic diagram of an embodiment of a Windows Line program chat data review device in an embodiment of the present invention. DETAILED DESCRIPTION

[0038] Embodiments of the present invention provide a Windows Line program chat data review method, apparatus, device, and storage medium.

[0039] The embodiments disclosed in the present invention will be described in more detail below with reference to the accompanying drawings. Although certain embodiments disclosed in the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present invention. It should be understood that the drawings and embodiments disclosed in the present invention are only for exemplary purposes and are not intended to limit the scope of protection disclosed in the present invention.

[0040] In the description of the embodiments disclosed in the present invention, the term "including" and similar terms should be understood as open inclusion, that is, "including but not limited to". The term "based on" should be understood as "based at least in part on". The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment". The terms "first", "second", etc. may refer to different or the same objects. Other explicit and implicit definitions may also be included below.

[0041] In this embodiment, obtaining chat data in the Windows Line program requires explicit authorization from the user.

[0042] For ease of understanding, the specific process of the embodiment of the present invention is described below. Figure 1 , an embodiment of the Windows Line program chat data review method in an embodiment of the present invention includes:

[0043] S100, by simulating the windows line program login protocol, generates the simulated login QR code data, and pushes the QR code data to the client for account login.

[0044] In this embodiment, the simulated Windows Line program login protocol is started to generate a simulated login QR code display, wherein the simulated Windows Line program login protocol adopts the thrift protocol, which is a cross-language remote service call framework that can be used to build efficient and scalable services. The thrift protocol is part of the thrift framework, which defines the specification of communication between the client and the server. Through the thrift protocol, the server interface is called to obtain the login QR code data. Specifically, the client fills in the server interface name and the parameters required by the interface. After the server receives the client thrift protocol message, it verifies that the interface name and interface parameters are correct, and then calls the parameter interface requested by the client on the server, and returns the interface information to the client to obtain the login QR code data.

[0045] S200, after the account login is successful, the preset key query interface and the preset account information query interface are called, and the account information and session data decryption key are obtained through the preset key query interface and the preset account information query interface.

[0046] In this embodiment, a QR code image png is generated based on the login QR code data for mobile phone scanning and login. The client will request the server to call the login check interface. The login check interface corresponds to the interface name: checkQrCodeVerified, parameters: key name: authSessionId, key value: authSessionId string. After the post request, the interface will be blocked until a mobile phone scans the code and clicks to confirm the login. This interface server will return, where the authSessionId string is the session identifier. After the user allows the account to log in by scanning the QR code, the client requests the server to call the preset key query interface and the preset account information query interface. The preset key query interface and the preset account information query interface will return the session data decryption key and account information respectively.

[0047] S300, obtaining an encrypted file of session data according to the account information, and decrypting the encrypted file of session data according to a session data decryption key to obtain plain text of the session data.

[0048] In this embodiment, the encrypted file of the session data corresponding to the account is queried according to the account information. Specifically, there is a qw+mid.edb file in the data\db directory under the installation directory of the windows-line software. This file is an encrypted file for storing the historical session chat information of the corresponding account. The chat data ciphertext is decrypted according to the obtained session data decryption key combined with the decryption algorithm to obtain the session data plaintext.

[0049] S400, obtaining the attachment token, and obtaining the attachment in the session according to the plain text of the session data and the attachment token.

[0050] In this embodiment, the client requests the server to call the preset token acquisition interface to obtain the attachment token. A token is a token, which usually refers to a string in the computer field and represents a specific right or function. The attachment token is used to verify the acquisition of a specified attachment. After decrypting the encrypted file of the session data, the session data table is obtained, and then the attachment token is used to simulate the line communication protocol to communicate with the line server to obtain account contacts, group information, and attachments in the session. It can also obtain pictures, videos, and emoticons in the session and save them in the local disk.

[0051] S500, sending the plain text of the session data and the attachments in the session to the client for display, so as to review the chat data of the account.

[0052] In this embodiment, the server sends the decrypted plaintext session data and the attachments in the session to the client, and the client parses the decrypted session data and displays it on the software interface in combination with the attachments, allowing the user to preview the session content in a friendly manner to review the chat data of the account.

[0053] In an optional implementation of the first aspect of the present invention, by simulating the windows line program login protocol, generating a simulated login QR code data, and pushing the QR code data to the client to perform account login, including: receiving a session request sent by the client, and according to the session request, simulating the windows line program login protocol, calling a preset session creation interface, generating a session identifier, and returning the session identifier to the client; receiving a QR code generation request sent by the client, and according to the QR code generation request and the session identifier, calling a preset QR code generation interface, generating a simulated login QR code data, and pushing the QR code data to the client to perform account login.

[0054] In this embodiment, the client sends a session request to the server, the server receives the session request, and calls the preset session creation interface. The interface name of the preset session creation interface is: createSession, parameters: key name: CreateQrSessionRequest, key value: 0. After the post request, the interface returns an authSessionId string, which is the session identifier, representing this session, and serves as a parameter for other interfaces.

[0055] Then, the client sends a QR code generation request to the server. The server receives the QR code generation request and calls the preset QR code generation interface according to the QR code generation request and session identifier. The interface name of the preset QR code generation interface is: createQrCodeForSecure, parameters: key name: authSessionId, key value: authSessionId string. After the post request, the interface returns a callbackUrl string information and a nonce string. The nonce string is a random number, and the callbackUrl string information is the QR code data. Then, a QR code image png is generated for the callbackUrl string for display, so that the mobile phone can scan the code to log in.

[0056] In an optional implementation of the first aspect of the present invention, calling a preset key query interface and a preset account information query interface, and obtaining the account information and session data decryption key through the preset key query interface and the preset account information query interface includes:

[0057] Get the login request sent by the client, call the preset QR code login interface according to the login request, generate a message identifier, and return the message identifier to the client; receive the key acquisition request sent by the client, call the preset key query interface according to the key acquisition request and the message identifier, obtain the session data decryption key, and return the session data decryption key to the client; receive the account information acquisition request sent by the client, call the preset account information query interface according to the account information acquisition request and the message identifier, obtain the account information, and return the account information to the client.

[0058] In this embodiment, after the user allows the account to log in by scanning the QR code, the eid of the current account is obtained. The eid string is the message identifier and is a parameter of the qrCodeLoginV2ForSecure interface. The eid string is used to simulate the line communication protocol to request the line server to obtain the account information and decryption key. Specifically, after the mobile phone scans the QR code generated above and clicks to confirm the login, the client sends a login request to the server. The server receives the login request and calls the preset QR code login interface. The interface name of the preset QR code login interface is: qrCodeLoginV2ForSecure, parameters: key name: authSessionId, key value: authSessionId string, key name: nonce, key value: nonce string, after the post request, the interface returns an eid string.

[0059] Then, the client sends a key acquisition request to the server. The server receives the key acquisition request and calls the preset key query interface. The interface name of the preset key query interface is: getEncryptedIdentity, parameter: none, and a parameter is added to the https header: X-Line-Access: eid string. After the post request, the interface returns an eidkey string, which is the decryption key for the session data encrypted file.

[0060] The client sends an account information acquisition request to the server. The server receives the account information acquisition request and calls the preset account information query interface. The interface name of the preset account information query interface is: getProfile, parameter: none, and a parameter is added to the https header: X-Line-Access:eid string. After the post request, the interface returns a current login account information mid, where mid is the id of the current account.

[0061] In an optional implementation of the first aspect of the present invention, an encrypted file of session data is obtained according to the account information, and the encrypted file of session data is decrypted according to the session data decryption key to obtain the plain text of session data including:

[0062] According to the account information, the encrypted file of the session data is obtained; according to the session data decryption key, the encrypted file of the session data is decrypted through the aes128 algorithm to obtain the plaintext file of the session data; according to the plaintext file of the session data, the plaintext of the session data is previewed through the sqlite preview tool.

[0063] In this embodiment, after obtaining the account information and session data decryption key by calling the preset key query interface and the preset account information query interface, the encrypted file of the session data of the corresponding account is obtained according to the account information mid, that is, the ID of the current account, and then the encrypted file of the session data is decrypted by the aes128 algorithm, cbc mode, and the session data decryption key to obtain a plaintext file of the session data in the sqlite3 format. The file is previewed using the sqlite preview tool. The _chat table in the file is the session data, the _message table is the specific chat data, the _contact table is the contact information, and the _groupChat table is the group session information. The _message table is indexed to the _id of the _chat table through the _chatId field value for table association.

[0064] In an optional implementation of the first aspect of the present invention, the encrypted file of the session data is decrypted by the aes128 algorithm according to the session data decryption key to obtain a plaintext file of the session data, including:

[0065] Perform MD5 on the session data decryption key multiple times; obtain the initial variable, perform multiple moduli on the initial variable, and perform MD5 on the multiple moduli on the initial variable; decrypt the encrypted file of the session data through the AES128 algorithm based on the MD5-derived session data decryption key and the initial variable to obtain the plaintext file of the session data.

[0066] In this embodiment, the key is the obtained session data decryption key eidkey string after 50 times of md5 buf (32 bytes); the initial variable iv is 16 bytes, 52774 * 40692 * 3791 is cycled four times to take the modulus of 2147483399L, and the buf string obtained by md5 is the value of iv. After decryption with openssl's aes128_cbc, the plaintext file of the session data can be obtained.

[0067] In an optional implementation of the first aspect of the present invention, obtaining an attachment token, and obtaining an attachment in a session according to the plaintext session data and the attachment token includes:

[0068] Receive the token acquisition request and message identifier sent by the client, call the preset token acquisition interface according to the token acquisition request and message identifier, and obtain the attachment token; obtain the attachment in the session according to the plaintext session data and the attachment token.

[0069] In this embodiment, the client sends a token acquisition request to the server, the server receives the token acquisition request, and calls the preset token acquisition interface. The interface name of the preset token acquisition interface is: acquireEncryptedAccessToken, parameters: key name: featureType, key value: 2, https header plus a parameter: X-Line-Access: eid string, after the post request, the interface returns an attachment token string.

[0070] In an optional implementation of the first aspect of the present invention, before sending the plain text of the session data and the attachments in the session to the client for display to review the chat data of the account, the method further includes:

[0071] Receive the contact information acquisition request sent by the client, call the preset session content acquisition interface according to the contact information acquisition request and account information, obtain the contact information list, and return the contact information list to the client; receive the attachment acquisition request sent by the client, call the preset attachment file acquisition interface according to the attachment acquisition request and attachment token, and obtain the attachment in the session.

[0072] In this embodiment, the client sends a request to obtain contact information to the server, and the server receives the request and calls the preset session content acquisition interface. The interface name of the preset session content acquisition interface is: getContactsV2, parameters: key name: ids, key value: multiple mid strings, https header plus a parameter: X-Line-Access: eid string, after the post request, the interface returns the contact information list of the queried mid. If the _contentType field in the _message table = 14, it means that the chat content is a file. The way to obtain this file is: send a get request, https header plus a parameter: X-Line-Access: the attachment token string obtained above, this method is also applicable to the acquisition of pictures, audio and video, voice and other messages, where _contentType = 1: picture, 2: video, 3: voice.

[0073] See also Figure 2 A second aspect of the present invention provides a Windows Line program chat data review device, the Windows Line program chat data review device comprising:

[0074] The QR code generation module 10 is used to generate QR code data for simulated login by simulating the Windows Line program login protocol, and push the QR code data to the client for account login;

[0075] The key acquisition module 20 is used to call the preset key query interface and the preset account information query interface after the account login is successful, and obtain the account information and session data decryption key through the preset key query interface and the preset account information query interface;

[0076] The plaintext decryption module 30 is used to obtain the encrypted file of the session data according to the account information, and decrypt the encrypted file of the session data according to the session data decryption key to obtain the plaintext of the session data;

[0077] The session attachment acquisition module 40 is used to acquire the attachment token, and obtain the attachment in the session according to the session data plaintext and the attachment token;

[0078] The data display module 50 is used to send the plain text of the session data and the attachments in the session to the client for display so as to review the chat data of the account.

[0079] In an optional implementation of the second aspect of the present invention, the QR code generation module 10 is also used to receive a session request sent by the client, and according to the session request, call a preset session creation interface by simulating the windows line program login protocol, generate a session identifier, and return the session identifier to the client; receive a QR code generation request sent by the client, and according to the QR code generation request and the session identifier, call a preset QR code generation interface to generate QR code data for simulated login, and push the QR code data to the client for account login.

[0080] In an optional implementation of the second aspect of the present invention, the key acquisition module 20 is also used to obtain a login request sent by the client, call a preset QR code login interface according to the login request, generate a message identifier, and return the message identifier to the client; receive a key acquisition request sent by the client, call a preset key query interface according to the key acquisition request and the message identifier, obtain a session data decryption key, and return the session data decryption key to the client; receive an account information acquisition request sent by the client, call a preset account information query interface according to the account information acquisition request and the message identifier, obtain account information, and return the account information to the client.

[0081] In an optional implementation of the second aspect of the present invention, the plaintext decryption module 30 is further used to obtain an encrypted file of the session data according to the account information;

[0082] According to the session data decryption key, the encrypted file of the session data is decrypted through the aes128 algorithm to obtain the plaintext file of the session data; according to the plaintext file of the session data, the plaintext of the session data is previewed through the sqlite preview tool.

[0083] In an optional implementation of the second aspect of the present invention, the plaintext decryption module 30 is also used to perform MD5 on the session data decryption key multiple times; obtain an initial variable, perform multiple moduli on the initial variable, and perform MD5 on the multiple moduli of the initial variable; decrypt the encrypted file of the session data through the AES128 algorithm based on the session data decryption key and the initial variable after MD5 to obtain a plaintext file of the session data.

[0084] In an optional implementation of the second aspect of the present invention, the session attachment acquisition module 40 is also used to receive a token acquisition request and a message identifier sent by the client, and based on the token acquisition request and the message identifier, call a preset token acquisition interface to obtain an attachment token; and based on the session data plaintext and the attachment token, obtain the attachment in the session.

[0085] In an optional implementation of the second aspect of the present invention, the Windows Line program chat data review device further includes:

[0086] Receive the contact information acquisition request sent by the client, call the preset session content acquisition interface according to the contact information acquisition request and account information, obtain the contact information list, and return the contact information list to the client; receive the attachment acquisition request sent by the client, call the preset attachment file acquisition interface according to the attachment acquisition request and attachment token, and obtain the attachment in the session.

[0087] Figure 3 It is a structural diagram of a Windows Line program chat data review device provided by an embodiment of the present invention. The Windows Line program chat data review device 500 may have relatively large differences due to different configurations or performances, and may include one or more processors (central processing units, CPU) 510 (for example, one or more processors) and a memory 520, and one or more storage media 530 (for example, one or more mass storage devices) storing application programs 533 or data 532. Among them, the memory 520 and the storage medium 530 can be short-term storage or persistent storage. The program stored in the storage medium 530 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the Windows Line program chat data review device 500. Furthermore, the processor 510 can be configured to communicate with the storage medium 530 to execute a series of instruction operations in the storage medium 530 on the Windows Line program chat data review device 500.

[0088] The Windows Line program chat data review device 500 may also include one or more power supplies 540, one or more wired or wireless network interfaces 550, one or more input and output interfaces 560, and / or one or more operating systems 531, such as Windows Serve, Mac OS X, Unix, Linux, Free BSD, etc. It can be understood by those skilled in the art that Figure 3 The structure of the Windows Line program chat data review device shown does not constitute a limitation on the Windows Line program chat data review device, and may include more or fewer components than shown in the figure, or a combination of certain components, or a different arrangement of components.

[0089] The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. Instructions are stored in the computer-readable storage medium. When the instructions are executed on a computer, the computer executes the steps of the Windows Line program chat data review method.

[0090] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0091] In addition, although each operation is described in a specific order, this should be understood as requiring such operation to be performed in the specific order shown or in a sequential order, or requiring that all illustrated operations should be performed to obtain desired results. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single implementation in combination. On the contrary, the various features described in the context of a single implementation can also be implemented in multiple implementations individually or in any suitable sub-combination mode.

[0092] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.

Claims

1. A Windows Line program chat data review method, characterized in that: The Windows Line program chat data review method includes: By simulating the Windows Line program login protocol, a simulated login QR code data is generated, and the QR code data is pushed to the client to log in to the account; After the account login is successful, the preset key query interface and the preset account information query interface are called, and the account information and session data decryption key are obtained through the preset key query interface and the preset account information query interface; Obtaining an encrypted file of session data according to the account information, and decrypting the encrypted file of session data according to the session data decryption key to obtain plain text of session data; Obtain the attachment token, and obtain the attachment in the session according to the plaintext session data and the attachment token; Sending the plain text of the session data and the attachments in the session to the client for display, so as to review the chat data of the account; The calling of the preset key query interface and the preset account information query interface, and obtaining the account information and the session data decryption key through the preset key query interface and the preset account information query interface include: Obtain a login request sent by the client, call a preset QR code login interface according to the login request, generate a message identifier, and return the message identifier to the client; Receive a key acquisition request sent by the client, call a preset key query interface according to the key acquisition request and the message identifier, obtain a session data decryption key, and return the session data decryption key to the client; Receive an account information acquisition request sent by a client, call a preset account information query interface according to the account information acquisition request and the message identifier, obtain the account information, and return the account information to the client; The step of obtaining the encrypted file of the session data according to the account information, and decrypting the encrypted file of the session data according to the session data decryption key to obtain the plain text of the session data includes: According to the account information, an encrypted file of the session data is obtained; Decrypt the encrypted file of the session data using the aes128 algorithm according to the session data decryption key to obtain a plaintext file of the session data; According to the plain text file of the session data, the plain text of the session data is previewed by using the sqlite preview tool.

2. The Windows Line program chat data review method according to claim 1, characterized in that: The method of simulating the Windows Line program login protocol, generating simulated login QR code data, and pushing the QR code data to the client to log in the account includes: Receive a session request sent by a client, and according to the session request, call a preset session creation interface by simulating a windows line program login protocol, generate a session identifier, and return the session identifier to the client; Receive a QR code generation request sent by the client, call a preset QR code generation interface according to the QR code generation request and the session identifier, generate QR code data for simulated login, and push the QR code data to the client for account login.

3. The Windows Line program chat data review method according to claim 1, characterized in that: Decrypting the encrypted file of the session data by using the aes128 algorithm according to the session data decryption key to obtain the plaintext file of the session data includes: Perform md5 on the session data decryption key multiple times; Obtain an initial variable, perform multiple modulo operations on the initial variable, and perform md5 on the multiple modulo operations on the initial variable; According to the session data decryption key and initial variables after MD5, the encrypted file of the session data is decrypted through the AES128 algorithm to obtain the plaintext file of the session data.

4. The Windows Line program chat data review method according to claim 1, characterized in that: The acquiring of the attachment token, obtaining the attachment in the session according to the session data plaintext and the attachment token, includes: Receive a token acquisition request and a message identifier sent by the client, and call a preset token acquisition interface according to the token acquisition request and the message identifier to obtain an attachment token; The attachment in the session is obtained according to the session data plaintext and the attachment token.

5. The Windows Line program chat data review method according to claim 1, characterized in that: Before sending the plain text of the session data and the attachments in the session to the client for display to review the chat data of the account, the method further includes: Receive a contact information acquisition request sent by a client, call a preset session content acquisition interface according to the contact information acquisition request and the account information, obtain a contact information linked list, and return the contact information linked list to the client; Receive the attachment acquisition request sent by the client, and call the preset attachment file acquisition interface according to the attachment acquisition request and the attachment token to obtain the attachment in the session.

6. A Windows Line program chat data review device, characterized in that: The Windows Line program chat data review device comprises: A QR code generation module is used to generate QR code data for simulated login by simulating the Windows Line program login protocol, and push the QR code data to the client for account login; A key acquisition module is used to call a preset key query interface and a preset account information query interface after the account login is successful, and obtain the account information and session data decryption key through the preset key query interface and the preset account information query interface; A plaintext decryption module, used to obtain an encrypted file of session data according to the account information, and decrypt the encrypted file of session data according to the session data decryption key to obtain plaintext session data; A session attachment acquisition module, used to acquire an attachment token, and obtain the attachment in the session according to the session data plaintext and the attachment token; A data display module, used to send the plain text of the session data and the attachments in the session to the client for display, so as to review the chat data of the account; The calling of the preset key query interface and the preset account information query interface, and obtaining the account information and the session data decryption key through the preset key query interface and the preset account information query interface include: Obtain a login request sent by the client, call a preset QR code login interface according to the login request, generate a message identifier, and return the message identifier to the client; Receive a key acquisition request sent by the client, call a preset key query interface according to the key acquisition request and the message identifier, obtain a session data decryption key, and return the session data decryption key to the client; Receive an account information acquisition request sent by a client, call a preset account information query interface according to the account information acquisition request and the message identifier, obtain the account information, and return the account information to the client; The step of obtaining the encrypted file of the session data according to the account information, and decrypting the encrypted file of the session data according to the session data decryption key to obtain the plain text of the session data includes: According to the account information, an encrypted file of the session data is obtained; Decrypt the encrypted file of the session data using the aes128 algorithm according to the session data decryption key to obtain a plaintext file of the session data; According to the plain text file of the session data, the plain text of the session data is previewed by using the sqlite preview tool.

7. A Windows Line program chat data review device, characterized in that: The Windows Line program chat data review device comprises: a memory and at least one processor, the memory stores instructions, and the memory and the at least one processor are interconnected via a line; The at least one processor calls the instructions in the memory so that the Windows Line program chat data review device executes the Windows Line program chat data review method as described in any one of claims 1-5.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by the processor, it implements the Windows Line program chat data review method as described in any one of claims 1-5.

Citation Information

Patent Citations

  • Chat data auditing method and device and computer equipment

    CN113132368A

  • Cross-platform transmission method, system and device for Line App data and storage medium

    CN114401278A

  • Chat data auditing method and device, electronic equipment and readable storage medium

    CN117540020A

  • Automated conversation review to surface virtual assistant misunderstandings

    US20200387673A1

  • KR20230017577A