Image processing method and device

By using public key encryption and hash verification between the image server and the client, the security and stability issues of image network requests are solved, ensuring the security of image transmission and simplifying the processing complexity.

CN114205484BActive Publication Date: 2024-09-27HUNAN HAPPLY SUNSHINE INTERACTIVE ENTERTAINMENT MEDIA CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111535773.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-15
Publication Date
2024-09-27
Estimated Expiration
2041-12-15

AI Technical Summary

Technical Problem

The security and stability of existing image network requests are low, and they are easily threatened by tampering and intrusion by criminals. They are also highly complex and difficult to maintain stability.

Method used

The image server uses the pre-generated public key to encrypt the original image, and encapsulates the private key in the HTTP request. The client extracts the private key to decrypt the image, and verifies the legitimacy of the image through the hash string to ensure image transmission. security and stability.

Benefits of technology

Through public key protocol-level transmission, it ensures that pictures are not tampered with, improves the security of network transmission, simplifies the complexity of picture processing, and improves the stability of network transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114205484B
    Figure CN114205484B
Patent Text Reader

Abstract

The present application discloses a method and device for image processing. The image server encrypts the original image through the public key to obtain an encrypted file. The image server hashes the private key and the size parameters of the original image to obtain a first hash string. The client extracts the private key from the received HTTP request and decrypts the encrypted file to obtain the target image. The client hashes the private key and the size parameters of the target image to obtain a second hash string. The client determines whether the target image meets the preset conditions through the first hash string and the second hash string. If so, the client displays the target image. Based on the above, the network image is transmitted at the public key protocol level. Due to the file attribute verification of the public key, the network transmitted image is guaranteed to be not tampered with to the greatest extent, thereby improving the security of the network transmitted image. At the same time, the complexity of image processing is simplified, and the stability of the network transmitted image is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of image tamper prevention and image network transmission, and more specifically, to an image processing method and device. Background Art

[0002] On the Internet, a large number of images are transmitted to user devices through the network and displayed to users. During the display process, users may not receive the correct images due to human error, illegal intrusion into the image server, request hijacking, etc.

[0003] In general, clients will trust images transmitted over the network and display them directly without verification, which will bring security risks. If multiple image network requests are required through third-party verification, more image network requests will also make image processing more complicated and more difficult to maintain stability.

[0004] Therefore, existing image network requests have low security and low stability. Summary of the invention

[0005] In view of this, the present application discloses an image processing method and device, aiming to improve the security and stability of image transmission over a network.

[0006] In order to achieve the above purpose, the disclosed technical solution is as follows:

[0007] In a first aspect, the present application discloses a method for processing an image. The method is applied to an image processing device, the device including a client and an image server, and the method includes:

[0008] The image server encrypts the acquired original image using a pre-generated public key to obtain an encrypted file;

[0009] The image server performs hash processing on the pre-generated private key and the size parameter of the original image to obtain a first hash character string;

[0010] When the image server receives the HTTP request initiated by the client, the image server encapsulates the private key in the HTTP request;

[0011] The client extracts the private key from the HTTP request, and decrypts the encrypted file using the private key to obtain the target image;

[0012] The client performs hash processing on the private key and the size parameter of the target image to obtain a second hash character string;

[0013] The client determines whether the target image meets a preset condition through the first hash string and the second hash string; the preset condition is a condition for verifying the legality of the target image;

[0014] If the target image meets the preset condition, the client displays the target image.

[0015] Preferably, the image server performs hash processing on the pre-generated private key and the size parameter of the original image to obtain a first hash string, including:

[0016] The image server generates a private key through a preset encryption algorithm;

[0017] The image server performs hash processing on the private key and the size parameter of the original image by using a preset message digest algorithm to obtain a first hash character string.

[0018] Preferably, when the image server receives the HTTP request initiated by the client, the image server encapsulates the private key in the HTTP request, including:

[0019] When the image server receives the HTTP request initiated by the client, the image server encapsulates the private key in the HTTP header information of the HTTP request.

[0020] Preferably, the client extracts the private key from the HTTP request, comprising:

[0021] The client extracts the private key from HTTP header information of the HTTP request.

[0022] Preferably, the client performs hash processing on the private key and the size parameter of the target image to obtain a second hash string, including:

[0023] The client performs hash processing on the private key and the size parameter of the target image through a preset message digest algorithm to obtain a second hash character string.

[0024] Preferably, the client determines whether the target image meets a preset condition by using the first hash string and the second hash string, including:

[0025] The client determines whether the first hash string and the second hash string are consistent;

[0026] If the first hash string is consistent with the second hash string, it is determined that the target image meets the preset condition;

[0027] If the first hash string and the second hash string are inconsistent, it is determined that the target image does not meet the preset condition.

[0028] Preferably, it also includes:

[0029] If the client detects that the legality check of the target image fails, the target image will not be displayed.

[0030] Preferably, after the image server performs hash processing on the pre-generated private key and the size parameter of the original image to obtain a first hash string, the method further includes:

[0031] The image server performs a renaming operation on the encrypted file using the first hash character string.

[0032] A second aspect of the present application discloses a picture processing device, the device comprising:

[0033] The image server is used to encrypt the acquired original image using a pre-generated public key to obtain an encrypted file; perform hash processing on the pre-generated private key and the size parameter of the original image to obtain a first hash string; and when receiving an HTTP request initiated by a client, encapsulate the private key in the HTTP request;

[0034] The client is used to extract the private key from the HTTP request and decrypt the encrypted file to obtain a target image; perform hash processing on the private key and the size parameters of the target image to obtain a second hash string; determine whether the target image meets a preset condition through the first hash string and the second hash string; the preset condition is a condition for verifying the legality of the target image; if the target image meets the preset condition, display the target image.

[0035] Preferably, the image server is specifically used for:

[0036] A private key is generated by a preset encryption algorithm; and a hash process is performed on the private key and a size parameter of the original image by a preset message digest algorithm to obtain a first hash character string.

[0037] Through the above technical solution, it can be known that the present application discloses a method and device for image processing, the method is applied to an image processing device, the image processing device includes a client and an image server, the image server encrypts the acquired original image through a pre-generated public key to obtain an encrypted file, the image server hashes the pre-generated private key and the size parameter of the original image to obtain a first hash string, when the image server receives an HTTP request initiated by the client, the image server encapsulates the private key in the HTTP request, the client extracts the private key from the HTTP request, and decrypts the encrypted file to obtain a target image, the client hashes the private key and the size parameter of the target image to obtain a second hash string, the client determines whether the target image meets the preset conditions through the first hash string and the second hash string, the preset conditions are the conditions for verifying the legality of the target image, if the target image meets the preset conditions, the target image is displayed through the client. Based on the above scheme, the network image is transmitted through the public key protocol level, and the file attribute verification of the public key maximizes the protection of the network transmitted image from being tampered with, improves the security of the network transmitted image, simplifies the complexity of image processing, and improves the stability of the network transmitted image. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0039] Figure 1 A schematic diagram of a process of an image processing method disclosed in an embodiment of the present application;

[0040] Figure 2 A schematic diagram of a process for obtaining a first hash string disclosed in an embodiment of the present application;

[0041] Figure 3 A schematic diagram of a process of determining whether a target image meets a preset condition through a first hash string and a second hash string disclosed in an embodiment of the present application;

[0042] Figure 4 A schematic diagram of the structure of an image processing device disclosed in an embodiment of the present application;

[0043] Figure 5 A schematic diagram of the structure of an electronic device disclosed in an embodiment of the present application. DETAILED DESCRIPTION

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

[0045] In this application, the terms "comprises", "comprising" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element.

[0046] As can be seen from the background technology, the existing image network requests have low security and low stability.

[0047] In order to solve the above problems, the embodiment of the present application discloses a method and device for processing images, which transmit network images at the public key protocol level. The file attribute verification of the public key ensures that the network-transmitted images are not tampered with to the greatest extent, thereby improving the security of network-transmitted images, simplifying the complexity of image processing, and improving the stability of network-transmitted images. The specific implementation method is described in the following embodiment.

[0048] refer to Figure 1 FIG. 1 is a flow chart of a picture processing method disclosed in an embodiment of the present application. The picture processing method is mainly applied to a picture processing device, which includes a client and a picture server. The picture processing method mainly includes the following steps:

[0049] S101: The image server encrypts the acquired original image using a pre-generated public key to obtain an encrypted file.

[0050] In S101, the original image is an image transmitted over the network without encryption, and is obtained from the original data uploaded by the uploader.

[0051] The image server generates a public key using a preset encryption algorithm.

[0052] The preset encryption algorithm may be an RSA encryption algorithm or other encryption algorithms. The preset encryption algorithm is determined by technicians according to actual conditions and is not specifically limited in this application. The preset encryption algorithm of this application is preferably an RSA encryption algorithm.

[0053] S102: The image server performs hash processing on the pre-generated private key and the size parameter of the original image to obtain a first hash string.

[0054] Specifically, the image server performs hash processing on the pre-generated private key and the size parameters of the original image to obtain the first hash string as follows:

[0055] First, the image server generates a private key using a preset encryption algorithm, and then performs a hash process on the private key and the size parameters of the original image (such as the image size) using a preset message digest algorithm to obtain a first hash string (HashA string).

[0056] The preset message digest algorithm may be an MD5 message digest algorithm (MD5 Message-DigestAlgorithm), or other algorithms, and the specific preset message digest algorithm is not specifically limited in this application. The preset message digest algorithm of this application is preferably an MD5 algorithm.

[0057] Optionally, after the image server performs hash processing on the pre-generated private key and the size parameter of the original image to obtain a first hash string, the image server performs a renaming operation on the encrypted file using the first hash string.

[0058] The image server renames the encrypted file to a first hash string, and stores the first hash string, the public key, and the private key in a local cache.

[0059] S103: When the image server receives a Hyper Text Transfer Protocol (HTTP) request initiated by the client, the image server encapsulates the private key in the HTTP request.

[0060] In S103, when the image server receives the HTTP request initiated by the client, the image server encapsulates the private key in the HTTP header information of the HTTP request.

[0061] The client sends an HTTP request to the image server to facilitate communication between the client and the image server.

[0062] The preset segment of the image request address of the HTTP request initiated by the client is the first hash string. The preset segment is the last segment of the request address of the HTTP request, that is, the last segment of the request address of the HTTP request is the first hash string.

[0063] To facilitate understanding, the last segment of the request address of an HTTP request is the first hash string. Here is an example to illustrate:

[0064] For example, the image address is: domain name / img / a33ea00f7ac83ba9ba0eece079057a13, where the last segment is: a33ea00f7ac83ba9ba0eece079057a13, that is, this string is the first hash string.

[0065] S104: The client extracts the private key from the HTTP request, and decrypts the encrypted file using the private key to obtain the target image.

[0066] In S104, the client extracts the private key from the HTTP header information of the HTTP request.

[0067] S105: The client performs hash processing on the private key and the size parameters of the target image to obtain a second hash string.

[0068] In S105 , the client performs hash processing on the private key and the size parameters of the target image (image size parameters, etc.) using a preset message digest algorithm to obtain a second hash string (HashB string).

[0069] The preset message digest algorithm may be an MD5 algorithm or other algorithms, and the specific preset message digest algorithm is not specifically limited in this application. The preset message digest algorithm of this application is preferably an MD5 algorithm.

[0070] S106: The client determines whether the target image meets the preset conditions through the first hash string and the second hash string; the preset conditions are conditions for verifying the legality of the target image. If yes, execute S107, if not, execute S108.

[0071] The specific process of the client determining whether the target image meets the preset conditions by using the first hash string and the second hash string is shown in A1-A3.

[0072] A1: The client determines whether the first hash string and the second hash string are consistent.

[0073] The client determines whether the legality check of the target image passes through the first hash string and the second hash string.

[0074] A2: If the first hash string and the second hash string are consistent, it is determined that the target image meets the preset condition.

[0075] Herein, it is determined that the target image meets the preset conditions, that is, it is determined that the legality check of the target image has passed.

[0076] A3: If the first hash string and the second hash string are inconsistent, it is determined that the target image does not meet the preset condition.

[0077] Herein, it is determined that the target image does not meet the preset conditions, that is, it is determined that the legality check of the target image fails.

[0078] S107: The client displays the target image.

[0079] In S107, if the target image meets the preset conditions, the client determines that the legality check of the target image has passed, and displays the target image.

[0080] S108: Do not display the target image.

[0081] If the target image does not meet the preset conditions, the client determines that the legality check of the target image has failed and does not display the target image.

[0082] During the entire image request process, the client only initiates one network request, which is consistent with the number of network requests initiated when requesting a non-encrypted image. This method does not increase the number of network requests. At the same time, this method verifies the private key itself, and the image address in the request address of the HTTP request is an unforgeable point, so the reliability of the verification method itself is guaranteed. Therefore, this method can effectively prevent network image requests from being tampered with.

[0083] To facilitate the understanding of the image processing process, here is an example:

[0084] For example, take the client requesting a large splash screen ad image as an example:

[0085] Deploy the image service in the central computer room, start the service, upload the large image of the splash screen advertisement, encrypt it, and provide HTTP service.

[0086] The encryption process of the image server is as follows:

[0087] First, the uploaded splash screen ad image is collected and stored; second, the public key and private key are generated and stored through the RSA algorithm; then, the original image is encrypted and stored through the public key; finally, MD5 hash processing is performed using the private key and the original image size and the encrypted file name is modified.

[0088] The process of injecting HTTP header information from the image server is as follows:

[0089] First, obtain the encrypted private key corresponding to the request image of the large image request for the splash screen ad; second, write the private key information into the HTTP header information; then return the HTTP header information containing the private key information to the client; finally, verify the large image request for the splash screen ad through the client.

[0090] The client verification process is as follows:

[0091] First, the client initiates an image request for the large image of the splash screen advertisement; second, the client intercepts the private key in the HTTP header information; third, the client decrypts the encrypted file using the private key to obtain the decrypted image; then, the client calculates the size of the original image and performs an MD5 hash calculation with the private key; finally, the client compares the calculation result of the previous step with the file name to determine whether to return the decrypted image.

[0092] In the embodiment of the present application, network images are transmitted through the public key protocol level. The file attribute verification of the public key ensures to the greatest extent that the images transmitted over the network are not tampered with, thereby improving the security of images transmitted over the network. At the same time, it simplifies the complexity of image processing and improves the stability of images transmitted over the network.

[0093] refer to Figure 2 As shown, the process in which the image server involved in the above S102 performs hash processing on the pre-generated private key and the size parameter of the original image to obtain the first hash string mainly includes the following steps:

[0094] S201: The image server generates a private key using a preset encryption algorithm.

[0095] S202: The image server performs hash processing on the private key and the size parameters of the original image using a preset message digest algorithm to obtain a first hash string.

[0096] The execution process and execution principle of S201-S202 are consistent with the execution process and execution principle of the above-mentioned S102, which can be used as a reference and will not be repeated here.

[0097] In the embodiment of the present application, the image server generates a private key through a preset encryption algorithm, and performs hash processing on the private key and the size parameters of the original image through a preset message digest algorithm to achieve the purpose of obtaining the first hash string.

[0098] refer to Figure 3 As shown, the process involved in the above S106, in which the client determines whether the target image meets the preset conditions through the first hash string and the second hash string, mainly includes the following steps:

[0099] S301: The client determines whether the first hash string and the second hash string are consistent. If so, execute S302; if not, execute S303.

[0100] S302: The client determines that the target image meets a preset condition.

[0101] S303: The client determines that the target image does not meet the preset condition.

[0102] The execution process and execution principle of S301-S303 are consistent with the execution process and execution principle of the above-mentioned S106, which can be used as a reference and will not be repeated here.

[0103] In the embodiment of the present application, the client determines whether the target image meets the preset conditions by judging whether the first hash string and the second hash string are consistent, so as to achieve the purpose of determining whether the legality of the target image has passed the verification.

[0104] Based on the above embodiments Figure 1 A method for processing an image is disclosed, and an embodiment of the present application also discloses a corresponding image processing device, such as Figure 4 As shown, the image processing device includes an image server 401 and a client 402 .

[0105] The image server 401 is used to encrypt the acquired original image using a pre-generated public key to obtain an encrypted file; perform hash processing on the pre-generated private key and the size parameters of the original image to obtain a first hash string; and when receiving an HTTP request initiated by a client, encapsulate the private key in the HTTP request.

[0106] Among them, the image server 401 provides image asymmetric encryption function, image verification information calculation function, HTTP header information addition function, etc.

[0107] The picture server 401 encrypts the acquired original picture using a pre-generated public key to obtain an encrypted file (encrypted picture file).

[0108] The original image is an image transmitted over the network without encryption, and is obtained from the original data uploaded by the uploader.

[0109] The image server 401 generates a public key and a private key through a preset encryption algorithm.

[0110] The preset encryption algorithm may be an RSA encryption algorithm or other encryption algorithms. The preset encryption algorithm is determined by technicians according to actual conditions and is not specifically limited in this application. The preset encryption algorithm of this application is preferably an RSA encryption algorithm.

[0111] The image server 401 renames the encrypted file to a first hash string, and stores the first hash string, the public key, and the private key in a local cache.

[0112] The preset segment of the image request address of the HTTP request initiated by the client 402 is the first hash string. The preset segment is the request address of the HTTP request, and the last segment is the first hash string. For example, the image address: domain name / img / a33ea00f7ac83ba9ba0eece079057a13, where the last segment is: a33ea00f7ac83ba9ba0eece079057a13, that is, the string is the first hash string.

[0113] Client 402 is used to extract a private key from an HTTP request, and decrypt the encrypted file using the private key to obtain a target image; perform hash processing on the private key and the size parameters of the target image to obtain a second hash string; determine whether the target image meets a preset condition using the first hash string and the second hash string; the preset condition is a condition for verifying the legality of the target image.

[0114] Among them, the client 402 provides HTTP header information extraction function, verification information decoding function, verification information checking function, asymmetric decryption function, etc.

[0115] The client 402 extracts the private key from the HTTP request, and decrypts the encrypted file using the private key to obtain the target image.

[0116] The client 402 determines whether the target image meets a preset condition through the first hash string and the second hash string; the preset condition is a condition for verifying the legality of the target image.

[0117] If it is determined that the target image meets the preset condition, the target image is displayed through the client 402.

[0118] Furthermore, the picture server 401 is specifically configured to generate a private key using a preset encryption algorithm; and perform hash processing on the private key and the size parameter of the original picture using a preset message digest algorithm to obtain a first hash string.

[0119] The image server 401 performs a hash process on the private key and the size parameters of the original image (image size parameters, etc.) using a preset message digest algorithm to obtain a first hash string (HashA string).

[0120] The preset message digest algorithm may be the MD5 algorithm or other algorithms, and the specific preset message digest algorithm is not specifically limited in this application. The preset message digest algorithm of this application is preferably the MD5 algorithm.

[0121] Furthermore, the image server 401 is specifically configured to encapsulate the private key in the HTTP header information of the HTTP request when receiving the HTTP request initiated by the client 402 .

[0122] When the image server 401 receives the HTTP request initiated by the client 402 , the HTTP response module of the image server 401 encapsulates the private key in the HTTP header information of the HTTP request and sends the encrypted file to the client 402 .

[0123] The client 402 sends an HTTP request to the image server 401 to facilitate communication between the client 402 and the image server 401 .

[0124] Furthermore, the client 402 is specifically configured to extract the private key from the HTTP header information of the HTTP request.

[0125] Furthermore, the client 402 is specifically configured to perform hash processing on the private key and the size parameter of the target image by using a preset message digest algorithm to obtain a second hash string.

[0126] Furthermore, the client 402 is specifically configured to determine whether the first hash string and the second hash string are consistent. If the first hash string and the second hash string are consistent, it is determined that the target image meets the preset condition; if the first hash string and the second hash string are inconsistent, it is determined that the target image does not meet the preset condition.

[0127] Furthermore, the client 402 is specifically configured not to display the target image if it is detected that the legality check of the target image fails.

[0128] Furthermore, the picture server 401 is specifically configured to perform a renaming operation on the encrypted file using the first hash character string.

[0129] In the embodiment of the present application, network images are transmitted through the public key protocol level. The file attribute verification of the public key ensures to the greatest extent that the images transmitted over the network are not tampered with, thereby improving the security of images transmitted over the network. At the same time, it simplifies the complexity of image processing and improves the stability of images transmitted over the network.

[0130] An embodiment of the present application further provides a storage medium, which includes stored instructions, wherein when the instructions are executed, a device where the storage medium is located is controlled to execute the above-mentioned image processing method.

[0131] The present application also provides an electronic device, whose structural diagram is as follows: Figure 5 As shown, it specifically includes a memory 501 and one or more instructions 502, wherein the one or more instructions 502 are stored in the memory 501 and are configured to be executed by one or more processors 503 to execute the one or more instructions 502 to perform the above-mentioned image processing method.

[0132] For the aforementioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the order of the actions described, because according to the present application, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0133] It should be noted that each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the embodiments can be referred to each other. For system embodiments, since they are basically similar to method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0134] The steps in the methods of the embodiments of the present application can be adjusted in order, combined, and deleted according to actual needs.

[0135] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are merely used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations.

[0136] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

[0137] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A method for processing an image, characterized in that: The method is applied to a picture processing device, the device includes a client and a picture server, and the method includes: The image server encrypts the acquired original image using a pre-generated public key to obtain an encrypted file; The image server performs hash processing on the pre-generated private key and the size parameter of the original image to obtain a first hash character string; When the image server receives the HTTP request initiated by the client, the image server encapsulates the private key in the HTTP header information of the HTTP request; The client extracts the private key from the HTTP request, and decrypts the encrypted file using the private key to obtain the target image; The client performs hash processing on the private key and the size parameter of the target image to obtain a second hash character string; The client determines whether the target image meets a preset condition through the first hash string and the second hash string; the preset condition is a condition for verifying the legality of the target image; If the target image meets the preset condition, the client displays the target image.

2. The method according to claim 1, characterized in that The image server performs hash processing on the pre-generated private key and the size parameter of the original image to obtain a first hash string, including: The image server generates a private key through a preset encryption algorithm; The image server performs hash processing on the private key and the size parameter of the original image by using a preset message digest algorithm to obtain a first hash character string.

3. The method according to claim 1, characterized in that The client extracts the private key from the HTTP request, including: The client extracts the private key from HTTP header information of the HTTP request.

4. The method according to claim 1, characterized in that: The client performs hash processing on the private key and the size parameter of the target image to obtain a second hash string, including: The client performs hash processing on the private key and the size parameter of the target image through a preset message digest algorithm to obtain a second hash character string.

5. The method according to claim 1, characterized in that The client determines whether the target image meets a preset condition by using the first hash string and the second hash string, including: The client determines whether the first hash string and the second hash string are consistent; If the first hash string is consistent with the second hash string, it is determined that the target image meets the preset condition; If the first hash string and the second hash string are inconsistent, it is determined that the target image does not meet the preset condition.

6. The method according to claim 5, characterized in that Also includes: If the client detects that the legality check of the target image fails, the target image will not be displayed.

7. The method according to claim 1, characterized in that After the image server performs hash processing on the pre-generated private key and the size parameter of the original image to obtain a first hash string, the method further includes: The image server performs a renaming operation on the encrypted file using the first hash character string.

8. A picture processing device, characterized in that: The device comprises: The image server is configured to encrypt the acquired original image using a pre-generated public key to obtain an encrypted file; perform hash processing on the pre-generated private key and a size parameter of the original image to obtain a first hash string; and when receiving an HTTP request initiated by a client, encapsulate the private key in HTTP header information of the HTTP request; The client is used to extract the private key from the HTTP request and decrypt the encrypted file to obtain a target image; perform hash processing on the private key and the size parameters of the target image to obtain a second hash string; determine whether the target image meets a preset condition through the first hash string and the second hash string; the preset condition is a condition for verifying the legality of the target image; if the target image meets the preset condition, display the target image.

9. The device according to claim 8, characterized in that The image server is specifically used for: A private key is generated by a preset encryption algorithm; and a hash process is performed on the private key and a size parameter of the original image by a preset message digest algorithm to obtain a first hash character string.