Request processing method and device, equipment and storage medium

CN121532745APending Publication Date: 2026-02-13DOUYIN VISION CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202480004287.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-13
Publication Date
2026-02-13

AI Technical Summary

Technical Problem

In existing technologies, the security of APIs is difficult to guarantee, leading to frequent serious security incidents such as data breaches.

Method used

By receiving access requests, the system obtains the target interface parameters and encrypted content, generates and compares the encrypted content to verify the legitimacy of the access request, and prevents risks caused by transmitting interface parameters in plaintext.

Benefits of technology

This improves the security of the target interface, avoids access risks caused by transmitting interface parameters in plaintext, and enhances API security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121532745A_ABST
    Figure CN121532745A_ABST
Patent Text Reader

Abstract

The embodiment of the invention relates to a request processing method and device, equipment and a storage medium. The method provided by the invention comprises the following steps: receiving an access request for a target interface; obtaining a target interface parameter and first encrypted content from the access request; generating a second encrypted content by encrypting a preset parameter and a target interface parameter associated with the target interface; and processing an access request for the target interface based on a comparison of the first encrypted content and the second encrypted content. In this way, according to the embodiment of the invention, the legality of the access request can be verified based on the comparison of the encrypted content, so that the security of the target interface is improved, and the access risk caused by the transmission of the interface parameters through the plaintext is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Method, device, apparatus and storage medium for request processing TECHNICAL FIELD

[0001] Example embodiments of the present disclosure generally relate to the field of computers, and in particular to a method, device, apparatus and computer readable storage medium for request processing. BACKGROUND

[0002] The development of computers and Internet technologies cannot be separated from the support of the underlying Application Programming Interface (API). Whether it is data or service, it needs to interact through API, which makes the application range of API very extensive. Therefore, the safe use of API has become the focus of people's attention.

[0003] SUMMARY

[0004] In a first aspect of the present disclosure, a method for request processing is provided. The method comprises: receiving an access request for a target interface; obtaining a target interface parameter and a first encrypted content from the access request; generating a second encrypted content by encrypting a preset parameter associated with the target interface and the target interface parameter; and processing the access request for the target interface based on a comparison of the first encrypted content and the second encrypted content.

[0005] In a second aspect of the present disclosure, a method for request processing is provided. The method comprises: obtaining a preset parameter associated with a target interface; generating a first encrypted content by encrypting the preset parameter and a target interface parameter; and generating an access request for the target interface, the access request comprising the first encrypted content and the target interface parameter.

[0006] In a third aspect of the present disclosure, an apparatus for request processing is provided. The apparatus comprises: a request receiving module configured to receive an access request for a target interface; a first obtaining module configured to obtain a target interface parameter and a first encrypted content from the access request; a first encryption module configured to generate a second encrypted content by encrypting a preset parameter associated with the target interface and the target interface parameter; and a request processing module configured to process the access request for the target interface based on a comparison of the first encrypted content and the second encrypted content.

[0007] In a fourth aspect of the present disclosure, an apparatus for request processing is provided. The apparatus comprises: a second obtaining module configured to obtain a preset parameter associated with a target interface; a second encryption module configured to generate a first encrypted content by encrypting the preset parameter and a target interface parameter; and a request generating module configured to generate an access request for the target interface, the access request comprising the first encrypted content and the target interface parameter.

[0008] In a fifth aspect of the disclosure, an electronic device is provided. The device includes at least one processing unit; and at least one memory coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit. The instructions, when executed by the at least one processing unit, cause the device to perform the method of the first aspect or the second aspect.

[0009] In a sixth aspect of the disclosure, a computer-readable storage medium is provided. The computer-readable storage medium has stored thereon a computer program, the computer program being executable by a processor to implement the method of the first aspect or the second aspect.

[0010] In a seventh aspect of the disclosure, a computer program product is provided. The computer program product includes computer executable instructions that, when executed by a processor, implement the method according to the first aspect or the second aspect of the disclosure.

[0011] It should be understood that the contents described in this section are not intended to limit the key features or important features of the embodiments of the disclosure, nor are they used to limit the scope of the disclosure. Other features of the disclosure will become apparent from the following description. BRIEF DESCRIPTION OF DRAWINGS

[0012] The above and other features, advantages, and aspects of embodiments of the present disclosure will become more apparent by describing in detail exemplary embodiments thereof with reference to the attached drawings in which:

[0013] FIG. 1 illustrates a schematic diagram of an example environment in which embodiments according to the present disclosure can be implemented;

[0014] FIG. 2 illustrates a flowchart of a process of example request processing according to some embodiments of the present disclosure;

[0015] FIG. 3A illustrates a schematic diagram of a process of example request processing according to some embodiments of the present disclosure;

[0016] FIG. 3B illustrates a schematic diagram of a process of example request processing according to some embodiments of the present disclosure;

[0017] FIG. 4 illustrates a flowchart of a process of example request processing according to some embodiments of the present disclosure;

[0018] FIG. 5A illustrates a schematic structural block diagram of an example request processing apparatus according to some embodiments of the present disclosure;

[0019] FIG. 5B illustrates a schematic structural block diagram of an example request processing apparatus according to some embodiments of the present disclosure; and

[0020] FIG. 6 illustrates a block diagram of an electronic device that can implement various embodiments of the present disclosure. DETAILED DESCRIPTION

[0021] Embodiments of the present disclosure will be described in detail with reference to the accompanying drawings. While certain embodiments of the present disclosure will be illustrated herein and described, it is to be understood that the present disclosure is not limited to the embodiments presented herein but is to be afforded the broader scope consistent with the principles of the present disclosure. It is to be further understood that the drawings and embodiments presented herein are by way of example only and are not to be construed as limiting the scope of the present disclosure.

[0022] It should be noted that the headings provided herein are not limitations of various embodiments of the present disclosure. Various embodiments are described throughout this document and can be included under any heading. Additionally, embodiments described in any heading can be combined with any other embodiment described in the same heading and / or a different heading in any manner.

[0023] In the description of embodiments of the present disclosure, the term "includes" and its derivatives are open-ended terms that specifically do not exclude additional members or steps. The term "based on" is intended to cover "based at least on" and / or "based at least in part on." The term "one embodiment" or "an embodiment" are herein used to refer to at least one embodiment. The term "some embodiments" are herein used to refer to at least one embodiment. Such terms are thus not specific to a single embodiment. The term "first," "second," and the like can refer to different or same objects. Such terms can be used in this document to develop one or more of a hierarchy or an order. Such terms can not necessarily be interpreted in accordance with their dictionary meaning.

[0024] Data of users, acquisition and / or use of data, etc. can be involved in embodiments of the present disclosure. These aspects are in compliance with corresponding laws and regulations and relevant provisions. In embodiments of the present disclosure, all data collection, acquisition, processing, processing, forwarding, use, etc. are performed on the premise that the user is aware of and confirms. Accordingly, in implementing embodiments of the present disclosure, the type of data or information that can be involved, the scope of use, the scenario of use, etc. should be informed to the user and authorized by the user in a proper manner according to relevant laws and regulations. The specific informing and / or authorization manner can vary according to the actual situation and application scenario, and the scope of the present disclosure is not limited in this aspect.

[0025] In the present specification and embodiments, if personal information processing is involved, it will be processed on the premise of legality (for example, obtaining the consent of the subject of personal information, or being necessary for the performance of a contract, etc.), and only within the prescribed or agreed range. Users refuse to process personal information other than the necessary information required for basic functions, which will not affect the user's use of basic functions.

[0026] The development of computers and Internet technologies cannot be separated from the support of the underlying API. Therefore, the application range of API is very wide. As a result, a large number of attack means for API have appeared, causing various serious security incidents, such as data leakage caused by various API attacks.

[0027] Embodiments of the present disclosure provide a request processing scheme. According to the scheme, an access request for a target interface can be received; a target interface parameter and a first encrypted content can be obtained from the access request; a second encrypted content can be generated by encrypting a preset parameter associated with the target interface and the target interface parameter; and the access request for the target interface can be processed based on a comparison of the first encrypted content and the second encrypted content.

[0028] In this way, embodiments of the present disclosure can verify the legitimacy of the access request based on the comparison of the encrypted contents, thereby improving the security of the target interface and avoiding the access risk caused by the transmission of interface parameters in plaintext.

[0029] Various example implementations of the scheme are described in detail below in further conjunction with the accompanying drawings.

[0030] Example Environment

[0031] FIG. 1 shows a diagram of an example environment 100 in which embodiments of the present disclosure can be implemented. As shown in FIG. 1, the example environment 100 can include an electronic device 110, a server 130.

[0032] In this example environment 100, the electronic device 110 can run an application 120 that supports interface interaction. The application 120 can be any suitable type of application for interface interaction, examples of which can include, but are not limited to, a browser application, a code editing type application, or other suitable application integrated with an integrated development environment (IDE). A user 140 can interact with the application 120 via the electronic device 110 and / or its attached devices.

[0033] In the environment 100 of FIG. 1, if the application 120 is in an active state, the electronic device 110 can present an interface 150 for supporting interface interaction through the application 120.

[0034] In some embodiments, the electronic device 110 communicates with the server 130 to enable provisioning of services for the application 120. The electronic device 110 can be any type of mobile terminal, fixed terminal, or portable terminal including a mobile handset, a desktop computer, a laptop computer, a notebook computer, a netbook computer, a tablet computer, a media player, a multimedia tablet, a personal communication system (PCS) device, a personal navigation device, a personal digital assistant (PDA), an audio / video player, a digital camera / camcorder, a positioning device, a television receiver, a radio broadcast receiver, an e-book device, a game device, or any combinations of these devices, including accessories and peripherals for these devices, or any combinations thereof. In some embodiments, the electronic device 110 can also support any type of interface to the user (such as “wearable” circuitry, etc.).

[0035] The server 130 can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content distribution networks, and basic cloud computing services such as big data and artificial intelligence platforms. The server 130 may, for example, include a computing system / server, such as a mainframe, an edge computing node, a computing device in a cloud environment, and the like. The server 130 can provide background services for the application 120 in the electronic device 110 that supports content presentation.

[0036] A communication connection can be established between the server 130 and the electronic device 110. The communication connection can be established by wired or wireless means. The communication connection can include, but is not limited to, a Bluetooth connection, a mobile network connection, a universal serial bus connection, a wireless fidelity connection, and the like, and embodiments of the present disclosure are not limited in this regard. In embodiments of the present disclosure, the server 130 and the electronic device 110 can implement signaling interaction through the communication connection therebetween.

[0037] It should be understood that the structure and function of the various elements in the environment 100 are described for illustrative purposes only, without implying any limitation on the scope of the present disclosure.

[0038] Example process

[0039] FIG. 2 shows a flowchart of an example request processing process 200, according to some embodiments of the present disclosure. The process 200 can be implemented at the server 130. The process 200 is described below with reference to FIG. 1.

[0040] As shown in FIG. 2, at block 210, the server 130 receives an access request for a target interface.

[0041] In some embodiments, the server 130 receives an access request for a target interface and parses the access request content to perform corresponding operations. It can be appreciated that the access request for the target interface received by the server 130 can be a legitimate access request or an illegitimate access request.

[0042] In some embodiments, the target interface can be associated with obtaining a target service. For example, such a target interface can be provided by a model, an agent, a bot to support calling corresponding processing capabilities.

[0043] At block 220, the server 130 obtains a target interface parameter and first encrypted content from the access request.

[0044] In some embodiments, the access request includes the target interface parameter and the first encrypted content. In some embodiments, the target interface parameter can be included in the access request in plaintext. As an example, the server 130 can extract the target interface parameter and the first encrypted content based on a preset format of the access request.

[0045] It can be appreciated that the target interface parameter can be one or more parameters in the access request for the target interface, and the present disclosure is not intended to limit the number of target interface parameters.

[0046] At block 230, the server 130 generates second encrypted content by encrypting a preset parameter associated with the target interface and the target interface parameter.

[0047] In some embodiments, the preset parameter includes a first string, such as a preset string. As an example, such a preset string can be associated with the target interface, for example, different interfaces can correspond to different strings.

[0048] In some embodiments, referring to FIG. 3A, the server 130 can perform an encryption process on the first string and the target interface parameter to generate a second string as the second encrypted content. As an example, the server encrypts the first string (e.g., a preset string) and the target interface parameter through an encryption algorithm (e.g., Message-Digest Algorithm 5 (MD5)) to generate an encrypted string (e.g., a second string) as the second encrypted content.

[0049] At block 240, the server 130 processes the access request for the target interface based on a comparison of the first encrypted content and the second encrypted content.

[0050] In some embodiments, in response to the first encrypted content matching the second encrypted content, the server 130 determines that the target interface is not stolen, the access request is a legitimate access request, and the target operation can be performed according to the access request. As described below, the first encrypted content included in the legitimate access request can be generated by encrypting the target interface parameter and the preset parameter.

[0051] In some embodiments, in response to the first encrypted content not matching the second encrypted content, the server 130 can reject the access request. When the first encrypted content does not match the second encrypted content, the server 130 can determine that the access request is an illegitimate access request.

[0052] In some embodiments, the illegitimate access request is constructed based on the first encrypted content and the stolen target interface parameter. It can be understood that since the target interface parameter is included in the target interface in plaintext, other users can steal the target interface and modify the target interface parameter to meet their own needs. As an example, a user modifies a parameter in the target interface parameter from "hello" to "how is the weather today". At this time, if other users construct an access request based on the modified target interface parameter, the access request received by the server 130 is an illegitimate request.

[0053] FIG. 4 shows a flowchart of an example request processing process 400 according to some embodiments of the present disclosure. The process 400 can be implemented at the electronic device 110. The process 400 is described below with reference to FIG. 1.

[0054] At block 410, the electronic device 110 obtains a preset parameter associated with the target interface.

[0055] In some embodiments, such a preset parameter can be a preset string, which is the same as the preset string mentioned above for the server 130 to perform the encryption task. As an example, the electronic device 110 can obtain the preset parameter corresponding to the target interface from the server 130.

[0056] At block 420, the electronic device 110 generates first encrypted content by encrypting the preset parameter and the target interface parameter.

[0057] In some embodiments, referring to FIG. 3B, the electronic device 110 obtains the preset parameter (e.g., a preset string) associated with the target interface and the target interface parameter. The electronic device 110 generates the first encrypted content by encrypting the preset parameter and the target interface parameter.

[0058] In some embodiments, such encryption operation can be performed based on an encryption algorithm, for example. As an example, the electronic device 110 encrypts the preset string and the target interface parameter based on MD5 to obtain an encrypted string (also referred to as first encrypted content).

[0059] At block 430, the electronic device 110 generates an access request for the target interface, the access request including the first encrypted content and the target interface parameter.

[0060] In some embodiments, such target interface parameter is included in the access request in plaintext.

[0061] In some embodiments, the electronic device 110 can construct the access request for the target interface based on the first encrypted content and the target interface parameter, so that the server 130 can obtain the target interface parameter and the first encrypted content from the access request.

[0062] Further, the electronic device 110 can send the access request to the server 130, for example, to access the service corresponding to the target interface.

[0063] In this way, embodiments of the present disclosure can verify the legality of the access request based on comparison of encrypted content, thereby improving the security of the target interface and avoiding access risks due to plaintext transmission of interface parameters.

[0064] Example apparatus and device

[0065] Embodiments of the present disclosure also provide a corresponding apparatus for implementing the above method or process. FIG. 5A shows a schematic structural block diagram of an example apparatus 500A for request processing according to certain embodiments of the present disclosure. The apparatus 500A can be implemented as or included in the server 130. Various modules / components in the apparatus 500A can be implemented by hardware, software, firmware, or any combination thereof.

[0066] As shown in FIG. 5A, the apparatus 500 includes a request receiving module 510 configured to receive an access request for a target interface; a first obtaining module 520 configured to obtain a target interface parameter and first encrypted content from the access request; a first encryption module 530 configured to generate second encrypted content by encrypting a preset parameter associated with the target interface and the target interface parameter; and a request processing module 540 configured to process the access request for the target interface based on comparison of the first encrypted content and the second encrypted content.

[0067] In some embodiments, the request processing module 540 is specifically configured to perform a target operation according to the access request in response to the first encrypted content matching the second encrypted content, or reject the access request in response to the first encrypted content not matching the second encrypted content.

[0068] In some embodiments, the target interface parameter is included in the access request in plaintext.

[0069] In some embodiments, the preset parameter comprises a first string, and the first encryption module 530 is specifically configured to obtain the first string associated with the target interface; and generate a second string by encrypting the first string and the target interface parameter, as the second encrypted content.

[0070] The modules included in the apparatus 500A can be implemented in various ways, including software, hardware, firmware, or any combination thereof. In some embodiments, one or more units can be implemented using software and / or firmware, e.g., machine executable instructions stored on a storage medium. In addition to or alternatively, some or all of the modules in the apparatus 500A can be implemented at least partially by one or more hardware logic components. As examples and not by way of limitation, exemplary types of hardware logic components that can be used include field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), system on a chip (SOCs), complex programmable logic devices (CPLDs), etc.

[0071] FIG. 5B shows a schematic structural block diagram of an example request processing apparatus 500B according to certain embodiments of the present disclosure. The apparatus 500B can be implemented as or included in the electronic device 110. The various modules / components in the apparatus 500B can be implemented by hardware, software, firmware, or any combination thereof.

[0072] As shown in FIG. 5B, the apparatus 500B includes a second obtaining module 550 configured to obtain a preset parameter associated with a target interface; a second encryption module 560 configured to generate first encrypted content by encrypting the preset parameter and a target interface parameter; and a request generating module 570 configured to generate an access request for the target interface, the access request including the first encrypted content and the target interface parameter.

[0073] In some embodiments, the target interface parameter is included in the access request in plaintext.

[0074] The modules included in the apparatus 500B can be implemented utilizing a variety of means, including software, hardware, firmware, or any combination thereof. In some embodiments, one or more of the units can be implemented using software and / or firmware, e.g., machine-executable instructions stored on a machine-readable medium. In addition or alternatively, some or all of the modules in the apparatus 500B can be implemented at least partially by one or more hardware logic components. As an example and not by way of limitation, example types of hardware logic components that can be used include field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), system-on-a-chip systems (SOCs), complex programmable logic devices (CPLDs), etc.

[0075] FIG. 6 illustrates a block diagram of an electronic device 600 in which one or more embodiments of the disclosure can be implemented. It should be understood that the electronic device 600 illustrated in FIG. 6 is merely exemplary and should not be construed as limiting the functionality and scope of the embodiments described herein. The electronic device 600 illustrated in FIG. 6 can be used to implement the electronic device 110 of FIG. 1.

[0076] As shown in FIG. 6, the electronic device 600 is in the form of a general electronic device. Components of the electronic device 600 can include, but are not limited to, one or more processors or processing units 610, a memory 620, a storage device 630, one or more communication units 640, one or more input devices 650, and one or more output devices 660. The processing unit 610 can be a real or virtual processor and capable of executing various processing according to programs stored in the memory 620. In a multi-processor system, multiple processing units execute computer-executable instructions in parallel to improve parallel processing capabilities of the electronic device 600.

[0077] The electronic device 600 typically includes a number of computer storage media. Such media can be any available media that is accessible by the electronic device 600 and includes both volatile and non-volatile media, removable and non-removable media. The memory 620 can be a volatile memory (e.g., registers, cache, random access memory (RAM)), a non-volatile memory (e.g., read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory), or some combination thereof. The storage device 630 can be a removable or non-removable medium and can include machine-readable media, such as a flash drive, a disk drive, or any other medium that can be used to store information and / or data and that can be accessed by the electronic device 600.

[0078] The electronic device 600 can further include additional detachable / non-detachable, volatile / non-volatile storage media. Although not shown in FIG. 6, a disk drive for reading from or writing to a detachable, non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a detachable, non-volatile optical disk (e.g., a CD-ROM) can be provided. In these cases, each drive can be connected to the bus (not shown) by one or more data media interfaces. The memory 620 can include a computer program product 625 having one or more program modules configured to carry out the various methods or acts of the various embodiments of the present disclosure.

[0079] The communication unit 640 enables communication with other electronic devices over communication media. Additionally, the functionality of the components of the electronic device 600 can be implemented in a single computing cluster or a plurality of computer machines capable of communicating over a communication connection. As such, the electronic device 600 can operate in a networked environment using logical connections to one or more other servers, network personal computers (PCs), or another network nodes in the networking environment.

[0080] The input device 650 can be one or more input devices, such as a mouse, a keyboard, a trackball, etc. The output device 660 can be one or more output devices, such as a display, a speaker, a printer, etc. The electronic device 600 can also communicate with one or more external devices (not shown) such as a storage device, a display device, etc., one or more devices that enable a user to interact with the electronic device 600, or any devices (e.g., a network card, a modem, etc.) that enable the electronic device 600 to communicate with one or more other electronic devices, as needed, through the communication unit 640. Such communication can be carried out via an input / output (I / O) interface (not shown).

[0081] According to an example implementation of the present disclosure, there is provided a computer-readable storage medium having computer-executable instructions stored thereon, where the computer-executable instructions are executed by a processor to implement the method described above. According to an example implementation of the present disclosure, there is also provided a computer program product tangibly stored on a non-transitory computer-readable medium and comprising computer-executable instructions, where the computer-executable instructions are executed by a processor to implement the method described above.

[0082] Various aspects of the disclosure are now described with reference to the drawings. In general, the drawings described below are diagrammatic and schematic representations of actual or conceptual structures and processes, and are not limiting of the scope of the present disclosure. In the drawings, the size and relative positioning of components can be exaggerated for clarity and / or descriptive purposes. Also, the drawings represent examples of the various aspects of the disclosure and, as such, the drawings should not be interpreted to limit the scope of the claims. The both can be implemented by a computer-readable program instructions.

[0083] These computer-readable program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to produce a machine such that, when executed by the processing unit of the computer or other programmable data processing apparatus, they create means for implementing the functions / actions specified in one or more blocks of the flowchart and / or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium that causes a computer, programmable data processing apparatus, and / or other device to operate in a particular manner. Thus, the computer-readable medium storing the instructions comprises an article of manufacture that includes instructions for implementing aspects of the functions / actions specified in one or more blocks of the flowchart and / or block diagram.

[0084] Computer-readable program instructions can be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions that execute on the computer, other programmable data processing apparatus, or other device to perform the functions / actions specified in one or more boxes of a flowchart and / or block diagram.

[0085] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of an instruction, which contains one or more executable instructions for implementing the specified logical function. In some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.

[0086] Various implementations of this disclosure have been described above. These descriptions are exemplary and not exhaustive, nor are they limited to the disclosed implementations. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described implementations. The terminology used herein is chosen to best explain the principles, practical applications, or improvements to technology in the market, or to enable others skilled in the art to understand the various implementations disclosed herein.

Claims

1. A method for request processing, comprising: receiving an access request for a target interface; obtaining a target interface parameter and a first encrypted content from the access request; generating a second encrypted content by encrypting a preset parameter associated with the target interface and the target interface parameter; and processing the access request for the target interface based on a comparison of the first encrypted content and the second encrypted content. 2.The method of claim 1, wherein processing the access request for the target interface based on the comparison of the first encrypted content and the second encrypted content comprises: performing a target operation according to the access request in response to the first encrypted content matching the second encrypted content; or rejecting the access request in response to the first encrypted content not matching the second encrypted content. 3.The method of claim 1, wherein the target interface parameter is included in the access request in plaintext. 4.The method of claim 1, wherein the preset parameter comprises a first string, and generating the second encrypted content by encrypting the preset parameter associated with the target interface and the target interface parameter comprises: obtaining the first string associated with the target interface; and generating a second string as the second encrypted content by encrypting the first string and the target interface parameter. 5.A method for request processing, comprising: obtaining a preset parameter associated with a target interface; generating a first encrypted content by encrypting the preset parameter and a target interface parameter; and generating an access request for the target interface, the access request including the first encrypted content and the target interface parameter. 6.The method of claim 5, wherein the target interface parameter is included in the access request in plaintext. 7.An apparatus for request processing, comprising: a request receiving module configured to receive an access request for a target interface; a first obtaining module configured to obtain a target interface parameter and a first encrypted content from the access request; a first encrypting module configured to generate a second encrypted content by encrypting a preset parameter associated with the target interface and the target interface parameter; and a request processing module configured to process the access request for the target interface based on a comparison of the first encrypted content and the second encrypted content. 8.An apparatus for request processing, comprising: a second obtaining module configured to obtain a preset parameter associated with a target interface; a second encrypting module configured to generate a first encrypted content by encrypting the preset parameter and a target interface parameter; and a request generating module configured to generate an access request for the target interface, the access request including the first encrypted content and the target interface parameter. 9.An electronic device, comprising: at least one processing unit; and ​ ​ ​ ​ ​ ​ ​ ​ at least one memory coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit, the instructions when executed by the at least one processing unit cause the electronic device to perform the method according to any one of claims 1-4 or 5-6.

10. A computer readable storage medium having stored thereon a computer program, the computer program being executable by a processor to implement the method according to any one of claims 1-4 or 5-6.

11. A computer program product comprising computer executable instructions, wherein the computer executable instructions implement the method according to any one of claims 1-4 or 5-6 when executed by a processor.