WeChat picture attachment decryption method and device, equipment and storage medium

By editing and decrypting the WeChat picture attachments, combined with the preset image format information, the problem of not being able to view WeChat pictures without logging in to WeChat is solved, and the function of direct decryption and viewing is realized.

CN118945133APending Publication Date: 2024-11-12SUZHOU LONGXIN INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410970832.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-19
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

It is difficult to view WeChat picture attachments directly without logging in to WeChat, and they need to be decrypted before opening.

Method used

By editing the WeChat picture attachment file, obtaining the attachment content and header information, and determining the target decryption code and image format based on the preset image format information, and then decrypting the WeChat picture data.

Benefits of technology

It realizes the direct decryption and viewing of WeChat picture attachments without logging in to WeChat, simplifying the viewing process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118945133A_ABST
    Figure CN118945133A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of data decryption, in particular to a WeChat picture attachment decryption method, device and equipment and a storage medium, and the method comprises the steps: carrying out file editing on a WeChat picture attachment to obtain attachment content, and obtaining attachment header information based on the attachment content; determining a target decryption code and a target picture format based on the attachment head information and preset picture format information; processing the attachment content based on the target decryption password to obtain WeChat picture data; and obtaining attachment decryption data based on the target picture format and the WeChat picture data. According to the invention, the WeChat picture can be directly viewed without logging in the WeChat.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data decryption technology, and in particular to a WeChat picture attachment decryption method, device, equipment and storage medium. Background Art

[0002] In Windows system, WeChat image data is stored in the Windows system in an encrypted form (WeChat image attachment). WeChat image attachments are generally .dat format files, such as Figure 1 The file name shown ends with the .dat suffix. The WeChat picture attachment cannot be opened directly to view the corresponding WeChat picture. If you need to view the WeChat picture, you must first decrypt the corresponding WeChat picture attachment.

[0003] For example, in a civilian scenario, users cannot directly open WeChat picture attachments in the system, but need to decrypt the WeChat picture attachments before they can view the corresponding WeChat pictures. In a police scenario, in order to collect evidence, police officers need to view WeChat pictures under WeChat on a Windows computer involved in the case that has not logged into the WeChat account. Since WeChat pictures in chat content can only be viewed when WeChat is logged in, when WeChat is not logged in, police officers can only view the corresponding WeChat pictures by decrypting the WeChat picture attachments.

[0004] However, currently, WeChat pictures can only be viewed from the chat content by logging into WeChat. If it is difficult to obtain the WeChat login account, it is difficult to view the corresponding WeChat pictures. It can be seen that it is difficult to directly view WeChat pictures without logging into WeChat through existing technology. Summary of the invention

[0005] In order to facilitate direct viewing of WeChat pictures without logging into WeChat, the embodiments of the present application provide a WeChat picture attachment decryption method, device, equipment and storage medium.

[0006] In a first aspect, an embodiment of the present application provides a WeChat picture attachment decryption method, comprising:

[0007] Edit the WeChat picture attachment to obtain the attachment content, and obtain the attachment header information based on the attachment content;

[0008] Determining a target decryption code and a target image format based on the attachment header information and preset image format information;

[0009] Process the attachment content based on the target decryption code to obtain WeChat picture data;

[0010] The attachment decryption data is obtained based on the target image format and the WeChat image data.

[0011] In a second aspect, an embodiment of the present application provides a WeChat picture attachment decryption device, comprising:

[0012] A header information generation module is used to edit the WeChat picture attachment to obtain the attachment content, and obtain the attachment header information based on the attachment content;

[0013] An information determination module, used to determine a target decryption code and a target image format based on the attachment header information and preset image format information;

[0014] A picture data generation module, used to process the attachment content based on the target decryption code to obtain WeChat picture data;

[0015] A decryption data generation module is used to obtain attachment decryption data based on the target image format and the WeChat image data.

[0016] In a third aspect, an embodiment of the present application provides a computer device, the computer device comprising a memory and a processor, the memory storing a computer program, and the processor implementing the steps in the above method when executing the computer program.

[0017] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which implements the steps in the above-mentioned method when executed by a processor.

[0018] In a fifth aspect, the embodiments of the present application further provide a computer program product, wherein the computer program product includes a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.

[0019] The embodiments of the above-mentioned WeChat picture attachment decryption method, device, equipment and storage medium obtain the attachment content by editing the WeChat picture attachment file, and obtain the attachment header information based on the attachment content; determine the target decryption code and target picture format based on the attachment header information and preset picture format information; process the attachment content based on the target decryption code to obtain WeChat picture data; obtain the attachment decrypted data based on the target picture format and the WeChat picture data; through the implementation of the above-mentioned embodiments, the target decryption code and target picture format for decrypting the attachment content can be calculated, and then the attachment decrypted data can be calculated according to the target decryption code and the target picture format, and the corresponding WeChat picture can be directly viewed by opening the attachment decrypted data, so that it is convenient to directly view the WeChat picture without logging into WeChat.

[0020] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present application, nor is it intended to limit the scope of the present application. Other features of the present application will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.

[0022] Figure 1 This is a schematic diagram of a .dat format file stored in a Windows system in an embodiment of the present application;

[0023] Figure 2 This is an application environment diagram of the WeChat picture attachment decryption method in one embodiment of the present application;

[0024] Figure 3 This is a flow chart of a WeChat picture attachment decryption method provided in Example 1 of this application;

[0025] Figure 4 A schematic diagram of the contents of an attachment provided in Example 1 of the present application;

[0026] Figure 5 This is a schematic diagram of picture format information provided in Example 1 of the present application;

[0027] Figure 6 This is a flow chart of a WeChat picture attachment decryption method provided in Example 2 of this application;

[0028] Figure 7 This is a flow chart of a WeChat picture attachment decryption method provided in Example 3 of this application;

[0029] Figure 8 This is a flow chart of a WeChat picture attachment decryption method provided in Example 4 of this application;

[0030] Fig. 9 This is a flow chart of a WeChat picture attachment decryption method provided in Example 5 of this application;

[0031] Fig.10 This is a flow chart of a WeChat picture attachment decryption method provided in Example 6 of this application;

[0032] Fig.11 This is a structural diagram of a WeChat picture attachment decryption device provided in Example 7 of the present application;

[0033] Fig.12 A schematic diagram of the structure of a computer device provided in one embodiment of the present application;

[0034] Fig.13An internal structure diagram of a computer-readable storage medium provided in one embodiment of the present application. DETAILED DESCRIPTION

[0035] In order to make the purpose, technical solution and advantages of the present disclosure more clear, the present disclosure is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present disclosure and are not used to limit the present disclosure.

[0036] It should be noted that the terms "first", "second", etc. in the specification and claims of this article and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of this article described here can be implemented in an order other than those illustrated or described here. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, device, product or equipment that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or equipment.

[0037] In this article, the term "and / or" is only a description of the association relationship between related objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the related objects before and after are in an "or" relationship.

[0038] To solve the above problems, the present disclosure provides a method for decrypting WeChat picture attachments, which can be applied to Figure 2 In the application environment shown. Among them, the terminal 102 communicates with the server 104 through the network. The data storage system can store the data that the server 104 needs to process. The data storage system can be integrated on the server 104, or it can be placed on the cloud or other network servers. Among them, the terminal 102 can be but is not limited to various personal computers, laptops, smart phones, tablets, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The server 104 can be implemented with an independent server or a server cluster consisting of multiple servers.

[0039] Embodiment 1

[0040] Figure 3 A flowchart of a WeChat picture attachment decryption method provided in Example 1 of this application, refer to Figure 3The method may be performed by a device for performing the method, and the device may be implemented by software and / or hardware. The method includes:

[0041] S110. Edit the WeChat picture attachment to obtain attachment content, and obtain attachment header information based on the attachment content.

[0042] It should be noted that the WeChat picture attachment decryption method provided in this embodiment is applicable to the Windows system, and is used to decrypt WeChat picture attachments when WeChat is not logged in under the Windows system.

[0043] Among them, refer to Figure 1 , pictures generated in WeChat, such as WeChat chat pictures, are generally stored as .dat format files in Windows systems. The .dat format files corresponding to WeChat pictures are also WeChat picture attachments; it should be noted that WeChat picture attachments cannot be directly opened as corresponding WeChat pictures; file editing is the process of processing WeChat picture attachments. For example, this embodiment specifically uses the HxD tool to edit WeChat picture attachments. The HxD tool is a hexadecimal editor that can process .dat format files; the result of the HxD tool editing the WeChat picture attachment is the attachment content, and the attachment content is a group of hexadecimal data, such as Figure 4 The "381F 3827C7..." shown in the figure; among them, 38, 1F, 38, 27, C7, ... are each one byte of data; the attachment header information is multiple bytes of data in the header of the attachment content, and the attachment header information is used to subsequently determine the image format corresponding to the corresponding WeChat image attachment. For example, the image format includes jpg format, bmp format, png format and gif format, etc.

[0044] Specifically, taking a WeChat picture attachment as an example, the WeChat picture attachment is input into the HxD tool for file editing. After the HxD tool completes the file editing, it outputs the attachment content; further, multiple bytes of data in the attachment content header are obtained to obtain the attachment header information.

[0045] S120. Determine a target decryption code and a target image format based on the attachment header information and preset image format information.

[0046] The picture format information is preset information. For example, the picture format information is as follows: Figure 5As shown, the picture format information includes multiple picture formats and the first two bytes of header information corresponding to each picture format; the target decryption code and the target picture format are obtained by performing certain processing on the attachment header information and the picture format information of the target decryption code, and the target decryption code is used to decrypt the attachment content. Exemplarily, in this embodiment, the target decryption code is a hexadecimal byte data; the target picture format is used to determine the picture format of the WeChat picture corresponding to the WeChat picture attachment.

[0047] Specifically, the acquired attachment header information and the preset picture format information are processed to obtain a target decryption code and a target picture format.

[0048] It should be noted that by calculating the target decryption code, the corresponding attachment content can be decrypted, and the target image format and the decrypted attachment content can be combined into WeChat image data that can be directly opened, making it convenient to directly open and view WeChat images when WeChat is not logged in.

[0049] S130. Process the attachment content based on the target decryption code to obtain WeChat picture data.

[0050] Among them, WeChat picture data is the data obtained by decrypting the attachment content through the target decryption code.

[0051] Specifically, each byte of data in the attachment content is decrypted using the target decryption code to obtain the WeChat image data.

[0052] S140. Obtain attachment decryption data based on the target image format and the WeChat image data.

[0053] Among them, the attachment decrypted data is a combination of the target image format and WeChat image data. The attachment decrypted data can be directly opened as the corresponding WeChat image.

[0054] Specifically, the attachment decrypted data is obtained by combining the target image format with the WeChat image data.

[0055] It should be noted that this embodiment obtains the attachment content by editing the file of the WeChat picture attachment, and obtains the attachment header information based on the attachment content; determines the target decryption code and the target picture format based on the attachment header information and preset picture format information; processes the attachment content based on the target decryption code to obtain WeChat picture data; obtains the attachment decrypted data based on the target picture format and the WeChat picture data; through the implementation of the above embodiments, the target decryption code and the target picture format for decrypting the attachment content can be calculated, and then the attachment decrypted data can be calculated according to the target decryption code and the target picture format, and the corresponding WeChat picture can be directly viewed by opening the attachment decrypted data. In this way, it is convenient to directly view WeChat pictures without logging into WeChat.

[0056] Embodiment 2

[0057] Figure 6 A flowchart of a WeChat picture attachment decryption method provided in Example 2 of this application, refer to Figure 6 The method optimizes the "determining the target decryption code and the target image format based on the attachment header information and the preset image format information" in the first embodiment; it should be noted that, for the part not described in detail in this embodiment, please refer to the description of other embodiments, and the method includes:

[0058] It should also be noted that the attachment header information includes a first attachment byte and a second attachment byte, and the image format information includes a plurality of WeChat image formats, and a first bitmap byte and a second bitmap byte corresponding to each of the WeChat image formats.

[0059] The attachment content consists of a group of hexadecimal byte data, and the group of hexadecimal byte data includes multiple byte data; the attachment header information includes a first attachment byte and a second attachment byte, the first attachment byte is the data corresponding to the first byte in the group of hexadecimal byte data, and the second attachment byte is the data corresponding to the second byte in the group of hexadecimal byte data; for example, refer to Figure 5 The WeChat picture formats in the picture format information specifically include jpg format, bmp format, png format and gif format. The WeChat pictures corresponding to each WeChat picture format are stored in the form of bitmap files in the Windows system. The bitmap file is also composed of a group of hexadecimal byte data. The first bitmap byte is the data corresponding to the first byte in the group of hexadecimal byte data corresponding to the bitmap file, and the second bitmap byte is the data corresponding to the second byte in the group of hexadecimal byte data corresponding to the bitmap file.

[0060] S210. Edit the WeChat picture attachment to obtain attachment content, and obtain attachment header information based on the attachment content.

[0061] S221. Determine a target decryption code based on the first attachment byte, the second attachment byte, the first bitmap byte, and the second bitmap byte.

[0062] Among them, the target decryption code for decrypting the attachment content can be calculated based on the first attachment byte and the second attachment byte corresponding to the attachment content of a WeChat picture attachment, and the first bitmap byte and the second bitmap byte corresponding to multiple WeChat picture formats in the picture format information.

[0063] Specifically, taking a WeChat picture attachment as an example, the first attachment byte and the second attachment byte corresponding to the attachment content of the WeChat picture attachment are obtained, and the first bitmap byte and the second bitmap byte corresponding to multiple WeChat picture formats in the picture format information are also obtained; further, the decryption code used to decrypt the attachment content of the WeChat picture attachment is calculated according to the first attachment byte and the second attachment byte corresponding to the attachment content of the WeChat picture attachment and the first bitmap byte and the second bitmap byte corresponding to multiple WeChat picture formats in the picture format information, to obtain the target decryption code.

[0064] S222. Determine the WeChat picture format corresponding to the target decryption code to obtain the target picture format.

[0065] Among them, the WeChat picture format corresponding to the target decryption code is the WeChat picture format corresponding to the first bitmap byte and the second bitmap byte used by the target decryption code, and the target picture format is the WeChat picture format corresponding to the target decryption code.

[0066] Specifically, determine the WeChat image format corresponding to the first bitmap byte and the second bitmap byte used to calculate the target decryption code, and record it as the target image format.

[0067] S230. Process the attachment content based on the target decryption code to obtain WeChat picture data.

[0068] S240. Obtain attachment decryption data based on the target image format and the WeChat image data.

[0069] Embodiment 3

[0070] Figure 7 A flowchart of a WeChat picture attachment decryption method provided in Example 3 of this application, refer to Figure 7 The method optimizes the "determining the target decryption code based on the first attachment byte, the second attachment byte, the first bitmap byte and the second bitmap byte" in the second embodiment; it should be noted that, for the part not described in detail in this embodiment, reference can be made to the description of other embodiments, and the method includes:

[0071] S310, editing the WeChat picture attachment to obtain attachment content, and obtaining attachment header information based on the attachment content.

[0072] S321A. Perform an XOR operation on the first attachment byte and the first bitmap byte to obtain a decryption code to be selected.

[0073] in, Figure 5Each WeChat image format in the picture format information shown has a corresponding first image byte, for example, the first image byte corresponding to the jpg format is "ff" in "0xff"; the result of the XOR operation of the first attachment byte corresponding to a WeChat image attachment and the first image byte corresponding to any WeChat image format in the picture format information is the code to be selected.

[0074] Specifically, taking a WeChat picture attachment as an example, the first attachment byte a corresponding to the WeChat picture attachment is obtained through the above steps. 1 , and the four WeChat image formats in the image format information all have corresponding first image bytes, and the first image byte corresponding to the jpg format is recorded as b 11 The first image byte corresponding to the bmp format is denoted by b 12 , the first image byte corresponding to the png format is denoted by b 13 The first byte of the image corresponding to the gif format is denoted as b 14 ; Then, for the first bitmap byte a 1 With the first bitmap byte b 11 Perform XOR operation to obtain the candidate decryption code c corresponding to the jpg format 11 , for the first image byte a 1 With the first bitmap byte b 12 Perform XOR operation to obtain the candidate decryption code c corresponding to the bmp format 12 , for the first image byte a 1 With the first bitmap byte b 13 Perform XOR operation to obtain the candidate decryption code c corresponding to the png format 13 , for the first image byte a 1 With the first bitmap byte b 14 Perform XOR operation to obtain the candidate decryption code c corresponding to the gif format 14 .

[0075] S321B, performing an XOR operation on the to-be-selected decryption code and the second attachment byte to obtain a check code.

[0076] Among them, the verification code is the result of an XOR operation between the selected decryption code corresponding to any WeChat picture format in the picture format information and the second attachment byte corresponding to a WeChat picture attachment.

[0077] Specifically, taking a WeChat picture attachment as an example, the candidate decryption code c corresponding to the jpg format 11 The second attachment byte a corresponding to the WeChat picture attachment 2 Perform XOR operation to obtain the check code d corresponding to the jpg format 11 , for the candidate decryption code c corresponding to the bmp format 12The second attachment byte a corresponding to the WeChat picture attachment 2 Perform XOR operation to obtain the check code d corresponding to the bmp format 12 , for the candidate decryption code c corresponding to the png format 13 The second attachment byte a corresponding to the WeChat picture attachment 2 Perform XOR operation to obtain the check code d corresponding to the png format 13 , for the candidate decryption code c corresponding to the gif format 14 The second attachment byte a corresponding to the WeChat picture attachment 2 Perform XOR operation to obtain the check code d corresponding to the gif format 14 .

[0078] S321C. Verify the second bitmap bytes based on the verification code to obtain a verification result.

[0079] Among them, each WeChat image format in the image format information corresponds to a second bitmap byte. For example, the second bitmap byte corresponding to the jpg format is "d8" in "0xd8"; the verification is to determine whether the verification code is consistent with the second bitmap byte. The verification result includes two situations: first, the verification code is consistent with the second bitmap byte, and the verification passes; second, the verification code is inconsistent with the second bitmap byte, and the verification fails.

[0080] Specifically, determine the second bitmap byte b corresponding to the jpg format 21 Verification code d corresponding to jpg format 11 Whether they are consistent, get the verification result corresponding to the jpg format; determine the second bitmap byte b corresponding to the bmp format 22 Check code d corresponding to bmp format 12 Whether they are consistent, get the verification result corresponding to the bmp format; determine the second bitmap byte b corresponding to the png format 23 Verification code d corresponding to png format 13 Whether they are consistent, get the verification result corresponding to the png format; determine the second bitmap byte b corresponding to the gif format 24 Verification code d corresponding to the gif format 14 Check whether they are consistent and get the verification result corresponding to the gif format.

[0081] S321D. Determine a target decryption code from a variety of WeChat image formats based on the verification result.

[0082] Among them, since the WeChat picture corresponding to a WeChat picture is at most one of the multiple WeChat picture formats in the picture format information, the verification results corresponding to at most one WeChat picture format among the above four WeChat picture formats are "the verification code is consistent with the second bitmap bytes, and the verification passes"; the target decryption code is the selected decryption code corresponding to the verification code that makes the verification result "the verification code is consistent with the second bitmap bytes, and the verification passes".

[0083] Specifically, determine from the multiple verification results generated in step S321C that the verification result is "the verification code is consistent with the second bitmap byte, and the verification passes", and record it as the target verification result, then determine and calculate the verification code of the target verification result, and record it as the target verification code, and then determine and calculate the selected decryption code of the target verification code, and record it as the target decryption code.

[0084] S322, determining the WeChat picture format corresponding to the target decryption code to obtain the target picture format.

[0085] S330, processing the attachment content based on the target decryption code to obtain WeChat picture data.

[0086] S340. Obtain attachment decryption data based on the target image format and the WeChat image data.

[0087] Embodiment 4

[0088] Figure 8 A flowchart of a WeChat picture attachment decryption method provided in Example 4 of this application, refer to Figure 8 , this method optimizes the "determining the target decryption code from multiple WeChat picture formats based on the verification result" in Example 3; it should be noted that, for the parts not described in detail in this embodiment, please refer to the description of other embodiments, and the method includes:

[0089] S410, editing the WeChat picture attachment to obtain attachment content, and obtaining attachment header information based on the attachment content.

[0090] S421A. Perform an XOR operation on the first attachment byte and the first bitmap byte to obtain a decryption code to be selected.

[0091] S421B, performing an XOR operation on the to-be-selected decryption code and the second attachment byte to obtain a check code.

[0092] S421C. Verify the second bitmap bytes based on the verification code to obtain a verification result.

[0093] S421D1. Determine whether the verification result is passed.

[0094] Among them, the verification passed means that the verification result is "the verification code is consistent with the second bitmap byte, and the verification passed".

[0095] Specifically, determine whether the verification result corresponding to each WeChat image format in the image format information is "the verification code is consistent with the second bitmap byte, and the verification passes."

[0096] S421D2. If yes, use the candidate decryption code corresponding to the verification result as the target decryption code.

[0097] Specifically, if it is determined that the verification result corresponding to a WeChat image format is "the verification code is consistent with the second bitmap byte, and the verification passes", the candidate decryption code that generates the verification result will be used as the target decryption code.

[0098] S422, determining the WeChat picture format corresponding to the target decryption code to obtain the target picture format.

[0099] S430, processing the attachment content based on the target decryption code to obtain WeChat picture data.

[0100] S440. Obtain attachment decryption data based on the target image format and the WeChat image data.

[0101] Embodiment 5

[0102] Fig. 9 A flowchart of a WeChat picture attachment decryption method provided in Example 5 of this application, refer to Fig. 9 , this method optimizes the "processing the attachment content based on the target decryption code to obtain WeChat picture data" in Example 1; it should be noted that, for the parts not described in detail in this embodiment, please refer to the description of other embodiments, and the method includes:

[0103] S510, editing the WeChat picture attachment to obtain attachment content, and obtaining attachment header information based on the attachment content.

[0104] S520: Determine a target decryption code and a target image format based on the attachment header information and preset image format information.

[0105] S530, performing an XOR operation on the target decryption code and the attachment content to obtain WeChat picture data.

[0106] Among them, the attachment content is a group of hexadecimal data, including multiple byte data; the target decryption code is used to perform an XOR operation with each byte data in the attachment content, and the WeChat picture data is the result of the XOR operation between the target decryption code and each byte data in the attachment content.

[0107] Specifically, an XOR operation is performed on the target decryption code and each byte data in the attachment content to obtain an operation result corresponding to each byte data, and the operation results corresponding to each byte data are combined to obtain WeChat picture data.

[0108] S540. Obtain attachment decryption data based on the target image format and the WeChat image data.

[0109] Embodiment 6

[0110] Fig.10 A flowchart of a WeChat picture attachment decryption method provided in Example 6 of this application, refer to Fig.10 , this method optimizes the "processing the attachment content based on the target decryption code to obtain WeChat picture data" in Example 1; it should be noted that, for the parts not described in detail in this embodiment, please refer to the description of other embodiments, and the method includes:

[0111] S610: Edit the WeChat picture attachment to obtain attachment content, and obtain attachment header information based on the attachment content.

[0112] S620: Determine a target decryption code and a target image format based on the attachment header information and preset image format information.

[0113] S630: Process the attachment content based on the target decryption code to obtain WeChat picture data.

[0114] S640, adding the target image format suffix to the WeChat image data to obtain attachment decrypted data.

[0115] Among them, the combined data, namely the WeChat picture data, is obtained by adding the target picture format suffix to the WeChat picture data, and the WeChat picture data can be directly opened as the corresponding WeChat picture.

[0116] Specifically, taking a WeChat picture attachment as an example, the target picture format is suffixed to the WeChat picture data corresponding to the WeChat picture attachment to obtain the attachment decrypted data.

[0117] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0118] Embodiment 7

[0119] Based on the same inventive concept, the seventh embodiment of the present disclosure also provides a WeChat picture attachment decryption device for implementing the WeChat picture attachment decryption method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more WeChat picture attachment decryption device embodiments provided below can refer to the limitations of the WeChat picture attachment decryption method above, and will not be repeated here.

[0120] In this embodiment, Fig.11 As shown, a WeChat picture attachment decryption device is provided, comprising:

[0121] A header information generation module is used to edit the WeChat picture attachment to obtain the attachment content, and obtain the attachment header information based on the attachment content;

[0122] An information determination module, used to determine a target decryption code and a target image format based on the attachment header information and preset image format information;

[0123] A picture data generation module, used to process the attachment content based on the target decryption code to obtain WeChat picture data;

[0124] A decryption data generation module is used to obtain attachment decryption data based on the target image format and the WeChat image data.

[0125] Each module in the above-mentioned WeChat picture attachment decryption device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0126] It should be noted that this embodiment obtains the attachment content by editing the file of the WeChat picture attachment, and obtains the attachment header information based on the attachment content; determines the target decryption code and the target picture format based on the attachment header information and preset picture format information; processes the attachment content based on the target decryption code to obtain WeChat picture data; obtains the attachment decrypted data based on the target picture format and the WeChat picture data; through the implementation of the above embodiments, the target decryption code and the target picture format for decrypting the attachment content can be calculated, and then the attachment decrypted data can be calculated according to the target decryption code and the target picture format, and the corresponding WeChat picture can be directly viewed by opening the attachment decrypted data. In this way, it is convenient to directly view WeChat pictures without logging into WeChat.

[0127] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Fig.12 As shown. The computer device includes a processor, a memory and a network interface connected via a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a method for decrypting WeChat picture attachments is implemented.

[0128] Those skilled in the art will understand that Fig.12 The structure shown in the figure is only a block diagram of a part of the structure related to the scheme of the present disclosure, and does not constitute a limitation on the computer device to which the scheme of the present disclosure is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0129] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.

[0130] In one embodiment, a computer readable storage medium is provided. Fig.13 As shown, a computer program is stored thereon, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0131] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0132] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties.

[0133] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided by the present disclosure can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided by the present disclosure may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited thereto. The processor involved in each embodiment provided by the present disclosure may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited thereto.

[0134] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0135] The above-described embodiments only express several implementation methods of the present disclosure, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present invention. It should be pointed out that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present disclosure, and these all belong to the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure shall be subject to the attached claims.

Claims

1. A method for decrypting WeChat picture attachments, characterized in that: include: Edit the WeChat picture attachment to obtain the attachment content, and obtain the attachment header information based on the attachment content; Determining a target decryption code and a target image format based on the attachment header information and preset image format information; Process the attachment content based on the target decryption code to obtain WeChat picture data; The attachment decryption data is obtained based on the target image format and the WeChat image data.

2. The method according to claim 1, characterized in that The attachment header information includes a first attachment byte and a second attachment byte, and the picture format information includes a plurality of WeChat picture formats, and a first bitmap byte and a second bitmap byte corresponding to each WeChat picture format; The determining a target decryption code and a target image format based on the attachment header information and the preset image format information includes: determining a target decryption code based on the first attachment byte, the second attachment byte, the first bitmap byte, and the second bitmap byte; Determine the WeChat picture format corresponding to the target decryption code to obtain the target picture format.

3. The method according to claim 2, characterized in that The determining a target decryption code based on the first attachment byte, the second attachment byte, the first bitmap byte, and the second bitmap byte comprises: Performing an XOR operation on the first attachment byte and the first bitmap byte to obtain a decryption code to be selected; Performing an XOR operation on the to-be-selected decryption code and the second attachment byte to obtain a check code; Verify the second bitmap byte based on the verification code to obtain a verification result; Based on the verification result, the target decryption code is determined from a variety of WeChat image formats.

4. The method according to claim 3, characterized in that Determining a target decryption code from a plurality of WeChat picture formats based on the verification result includes: Determine whether the verification result is passed; If so, the candidate decryption code corresponding to the verification result is used as the target decryption code.

5. The method according to claim 1, characterized in that The step of processing the attachment content based on the target decryption code to obtain WeChat picture data includes: The target decryption code and the attachment content are XORed to obtain the WeChat picture data.

6. The method according to claim 1, characterized in that The obtaining of attachment decrypted data based on the target image format and the WeChat image data includes: Add the target image format suffix to the WeChat image data to obtain the attachment decrypted data.

7. A WeChat picture attachment decryption device, characterized in that: The device comprises: A header information generation module is used to edit the WeChat picture attachment to obtain the attachment content, and obtain the attachment header information based on the attachment content; An information determination module, used to determine a target decryption code and a target image format based on the attachment header information and preset image format information; A picture data generation module, used to process the attachment content based on the target decryption code to obtain WeChat picture data; A decryption data generation module is used to obtain attachment decryption data based on the target image format and the WeChat image data.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.