Information processing method and device, electronic equipment and storage medium
During the information sharing process, the secret key is generated according to the time period when the target token information is received for decryption processing, the pressure problem caused by frequent call to the storage medium interface is solved and efficiency is improved.
Patent Information
- Application Number
- CN202411515242.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-28
- Publication Date
- 2025-02-14
AI Technical Summary
During the information sharing process, during the decryption and verification of encrypted token information, the interface of the storage medium is frequently called, resulting in an increase in the pressure of the storage medium component and affecting efficiency.
By determining the time period for receiving the target token information, a corresponding key is generated for decryption processing, avoiding frequent call to the interface of the storage medium during the decryption process.
Reduces calls to storage media interfaces, reduces pressure on storage media components, and improves the efficiency of decryption and verification processes.
Smart Images

Figure CN119449292A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of token information processing, and in particular to an information processing method, device, electronic device and storage medium. Background Art
[0002] In related technologies, when information sharing is required, a token is usually generated for sharing. For information security, the token needs to be encrypted with a secret key to prevent information leakage.
[0003] The secret key is generally stored in a storage medium such as a cache architecture or a database. When the encrypted token information needs to be verified, the storage medium interface needs to be called to obtain the secret key used for encryption, and then proceed to the next step. The storage medium interface can also be used to call specific shared information after successful verification. In this case, the storage medium interface needs to serve the decryption process and the information call process at the same time, which increases the pressure on the storage medium component. When the amount of encrypted token information increases, the storage medium interface performance will gradually decrease, affecting the efficiency of the decryption process and the information call process. Summary of the invention
[0004] The main purpose of the embodiments of the present application is to propose an information processing method, device, electronic device and storage medium, aiming to reduce the impact of calling a secret key on the interface performance of the storage medium during the decryption process of encrypted token information.
[0005] To achieve the above object, a first aspect of an embodiment of the present application proposes an information processing method, comprising the following steps: Determine a first time period in which a first receiving time of receiving the target token information is located, wherein the first time period is a time period relative to a preset time point; Perform key generation processing according to the first time period to obtain a first key for the first time period; Decrypting the target token information by using the first secret key, and if the decryption fails, determining that the verification of the target token information fails; The target token information is generated in the following manner: Determine a second time period in which a second receiving time of a request for sharing target information is received, wherein the second time period is the time period relative to the preset time point; Perform key generation processing according to the second time period to obtain a second key for the second time period; Token information based on the second secret key is generated according to the target information to obtain the target token information.
[0006] In some embodiments, after the step of determining the second time period, the process of generating the target token information further includes: Determine a second time offset of the second receiving time in the second time period, wherein the target token information carries the second time offset during the process of generating the token information based on the second secret key; After the target token information is decrypted by the first secret key, the method further includes: In the case of successful decryption, if the preset duration of the unified validity period of the current token information is shorter than the duration of the time period, extracting the second time offset from the target token information; According to the first receiving time and the second time offset, the target token information is verified for validity based on the current unified validity period of the token information to obtain a verification result of the target token information.
[0007] In some embodiments, after the target token information is successfully decrypted by the first secret key, the method further includes: If the current unified validity period of the token information is updated before the first receiving time, extracting the second time offset from the target token information, and determining the second receiving time according to the first time period and the second time offset; If the current unified validity period of the token information is the unified validity period of the token information updated after the second receiving time, determining the last unified validity period of the token information; If the last unified validity period of the token information is shorter than the time period, the target token information is verified for validity based on the last unified validity period of the token information according to the first receiving time and the second receiving time to obtain a verification result of the target token information.
[0008] In some embodiments, after the target token information fails to be decrypted by the first secret key, the method further includes: If the duration of the time period is updated before the first receiving time, determine the third time period in which the first receiving time is before the duration of the time period is last updated; perform key generation processing according to the third time period to obtain a third key for the third time period; The target token information is decrypted using the third secret key. If the decryption fails, it is determined that the verification of the target token information has failed.
[0009] In some embodiments, generating token information based on the second secret key according to the target information to obtain the target token information includes: Generate token information based on the second secret key according to the target information to obtain initial token information; If the information length of the initial token information is not less than a preset information length threshold, information compression processing is performed on the initial token information to obtain the target token information.
[0010] After the target token information fails to be decrypted by the first secret key, the method further includes: Decompressing the target token information to obtain decompressed token information; The decompressed token information is decrypted according to the first secret key, and if the decryption fails, it is determined that the verification of the target token information has failed.
[0011] In some embodiments, after the target token information fails to be decrypted by the first secret key, the method further includes: Determine a fourth time period between the first receiving time and a target time of the current unified validity period of the token information, wherein the target time is earlier than the first receiving time; Performing a key generation process according to the fourth time period to obtain a fourth key for the fourth time period; The target token information is decrypted using the fourth secret key. If the decryption fails, it is determined that the verification of the target token information has failed.
[0012] In some embodiments, after the target token information is decrypted by the fourth secret key, the method further includes: In the case of successful decryption, if the current unified validity period of the token information is updated before the first receiving time, extracting the second time offset from the target token information, and determining the second receiving time according to the fourth time period and the second time offset; If the current unified validity period of the token information is the unified validity period of the token information updated after the second receiving time, determine the last unified validity period of the token information, and verify the validity of the target token information based on the last unified validity period of the token information according to the first receiving time and the second receiving time to obtain the verification result of the target token information.
[0013] To achieve the above-mentioned purpose, a second aspect of an embodiment of the present application provides an information processing device, including: A time period determination module, used to determine a first time period in which a first receiving time of receiving target token information is located, wherein the first time period is a time period relative to a preset time point; A key generation module, configured to perform key generation processing according to the first time period to obtain a first key for the first time period; A target token information decryption module, used to decrypt the target token information using the first secret key, and if the decryption fails, determine that the target token information verification fails; Wherein, in the process of generating the target token information, the information processing device: The time period determination module is further used to determine a second time period in which a second receiving time of receiving a request for sharing target information falls, wherein the second time period is the time period relative to the preset time point; The key generation module is further used to perform key generation processing according to the second time period to obtain a second key for the second time period; The information processing device further includes: A target token information generation module is used to generate token information based on the second secret key according to the target information to obtain the target token information.
[0014] To achieve the above objectives, a third aspect of an embodiment of the present application proposes an electronic device, which includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the method described in the first aspect is implemented.
[0015] To achieve the above-mentioned purpose, the fourth aspect of an embodiment of the present application proposes a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described in the first aspect is implemented.
[0016] The present application proposes an information processing method, device, electronic device and storage medium, the method comprising: determining a first time period in which a first receiving time of receiving target token information is located, wherein the first time period is a time period relative to a preset time point; performing key generation processing according to the first time period to obtain a first key for the first time period; decrypting the target token information by using the first key, and if the decryption fails, determining that the verification of the target token information fails; wherein the target token information is generated in the following manner: determining a second time period in which a second receiving time of receiving a request to share target information is located, the second time period being the time period relative to the preset time point; performing key generation processing according to the second time period to obtain a second key for the second time period; generating token information based on the second key according to the target information to obtain the target token information. By generating a key according to the time period of the receiving time, the key can be directly generated when the target token information is generated. Correspondingly, during the verification process, the key can also be generated according to the time period of the receiving time, and the target token information can be decrypted. In this way, the key can be generated as needed when the target token information is generated or decrypted and verified, without the need to store or cache the key used when the target token information is generated, or to read the key used when the target token information is generated from the storage medium when the target token information is decrypted and verified. This reduces the call to the storage medium interface during decryption and verification, effectively reduces the pressure on the storage medium component, and can better reduce storage costs and improve the performance of the storage medium interface. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 is a flow chart of an information processing method provided by an embodiment of the present application; Figure 2 is a flow chart of an information processing method provided by another embodiment of the present application; Figure 3 is a flow chart of an information processing method provided by another embodiment of the present application; Figure 4 is a flow chart of an information processing method provided by another embodiment of the present application; Figure 5 is a flow chart of an information processing method provided by another embodiment of the present application; Figure 6 is a flow chart of an information processing method provided by another embodiment of the present application; Figure 7 is a flow chart of an information processing method provided by another embodiment of the present application; Figure 8 is a schematic diagram of the structure of an information processing device provided in an embodiment of the present application; Fig. 9 It is a schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION
[0018] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application 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 application and are not used to limit the present application.
[0019] It should be noted that, although the functional modules are divided in the device schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart. The terms "first", "second", etc. in the specification, claims and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0020] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0021] In the related art, when information sharing is required, a token information for sharing usually needs to be generated. For the security of the information, the token information needs to be encrypted with a secret key to prevent information leakage.
[0022] The secret key is generally stored in a storage medium such as a cache architecture or a database. When the encrypted token information needs to be verified, the storage medium interface needs to be called to obtain the secret key used for encryption, and then proceed to the next step. The storage medium interface can also be used to call specific shared information after successful verification. In this case, the storage medium interface needs to serve the decryption process and the information call process at the same time, which increases the pressure on the storage medium component. When the amount of encrypted token information increases, the storage medium interface performance will gradually decrease, affecting the efficiency of the decryption process and the information call process.
[0023] In order to reduce the impact of calling a secret key on the interface performance of a storage medium during the decryption process of encrypted token information, an embodiment of the present application provides an information processing method, an information processing device, an electronic device and a computer-readable storage medium. The method can first determine a first time period in which a first receiving time of receiving the target token information is located, wherein the first time period is a time period relative to a preset time point, and then, a secret key generation process is performed according to the first time period to obtain a first secret key for the first time period, and then, the target token information is decrypted using the first secret key. If the decryption fails, it is determined that the verification of the target token information has failed; wherein the target token information is generated in the following manner: first, a second time period in which a second receiving time of receiving a request to share the target information is located is determined, and the second time period is a time period relative to the preset time point, and then, a secret key generation process is performed according to the second time period to obtain a second secret key for the second time period, and then, token information is generated based on the second secret key according to the target information to obtain the target token information. By generating a key according to the time period of the receiving time, the key can be directly generated when the target token information is generated. Correspondingly, during the verification process, the key can also be generated according to the time period of the receiving time, and the target token information can be decrypted. In this way, the key can be generated as needed when the target token information is generated or decrypted and verified, without the need to store or cache the key used when the target token information is generated, or to read the key used when the target token information is generated from the storage medium when the target token information is decrypted and verified. This reduces the call to the storage medium interface during decryption and verification, effectively reduces the pressure on the storage medium component, and can better reduce storage costs and improve the performance of the storage medium interface.
[0024] An information processing method, device, electronic device and storage medium provided in the embodiments of the present application are specifically described through the following embodiments. First, the information processing method in the embodiments of the present application is described.
[0025] The information processing method provided in the embodiment of the present application relates to the field of financial technology. The information processing method provided in the embodiment of the present application can be applied to a terminal, can be applied to a server side, or can be software running in a terminal or a server side. In some embodiments, the terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, etc.; the server side can be configured as an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms; the software can be an application that implements the information processing method, etc., but is not limited to the above forms.
[0026] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.
[0027] It should be noted that in each specific implementation of the present application, when it comes to the need to perform relevant processing based on data related to user identity or characteristics such as user information, user behavior data, user historical data, and user location information, the user's permission or consent will be obtained first, and the collection, use, and processing of these data will comply with relevant laws, regulations, and standards. In addition, when the embodiment of the present application needs to obtain the user's sensitive personal information, the user's separate permission or consent will be obtained through a pop-up window or by jumping to a confirmation page. After clearly obtaining the user's separate permission or consent, the necessary user-related data for the normal operation of the embodiment of the present application will be obtained.
[0028] See also Figure 1 , Figure 1 The flowchart of an information processing method provided by an embodiment of the present application is shown. In the embodiment of the present application, the information processing method may include steps 110 to 130.
[0029] Step 110: determining a first time period in which a first receiving time of receiving the target token information is located, wherein the first time period is a time period relative to a preset time point; Step 120: performing a key generation process according to the first time period to obtain a first key for the first time period; Step 130: Decrypt the target token information using the first secret key. If the decryption fails, it is determined that the verification of the target token information has failed.
[0030] In one embodiment, the target token information can be generated in the following manner: first determine the second time period in which the second receiving time of the request to share the target information is received, the second time period being a time period relative to a preset time point, then perform a key generation process according to the second time period to obtain a second key for the second time period, then perform token information generation based on the second key according to the target information to obtain the target token information. The target token information refers to the token information carried in the sharing link formed when sharing the target information.
[0031] In one embodiment, a time period refers to a time calculation unit used to indicate a specific length of time. For example, assuming that 1S is a time period, then a time period has passed from 12:00:00 to 12:00:01.
[0032] In one embodiment, the preset time point refers to the calculation reference point used when the time period is used to express time. For example, assuming that the length of a time period is 1S, the time period between 12:00:01 is the first time period, and the time period between 12:00:02 is the second time period, then 12:00:00 is the preset time point of these time periods. The preset time point can be the time when the device is started, or a specific time set by the technician according to the needs, etc., which is not specifically limited here. In one embodiment, in the process of determining the first time period in which the first receiving time of receiving the target token information is located, the first receiving time and the preset time point can be firstly subtracted to obtain the first time difference, and then the first time difference and the length of the time period can be divided to obtain the first time period.
[0033] In one embodiment, performing key generation processing according to the first time period to obtain the first key for the first time period means generating a first key associated with the first period based on the first time period. The first key can be generated directly through the first time period or the information corresponding to the first time period after transformation (such as using the hash value of the first period, or through a certain category such as the corresponding specific information obtained by comparing a preset table, etc.), or can be generated together with the first time period and other categories such as the identification of the target object to be shared, the identification of the target information to be shared, etc., which are not specifically limited here.
[0034] In one embodiment, performing key generation processing according to the second time period to obtain a second key for the second time period means generating a second key associated with the second period based on the second time period. The second key can be generated directly through the second time period or the information corresponding to the second time period after transformation (such as using the hash value of the second period, or through a certain category such as the corresponding specific information obtained by comparing a preset table, etc.), or can be generated together with the second time period and other categories such as the target object identifier for sharing, the business identifier of the target information for sharing, etc., which are not specifically limited here.
[0035] In one embodiment, for different time points in the same cycle, since a specific key is for a specific specific cycle, when different time points belong to the same cycle, the keys corresponding to these time points are the same key. For example, assuming that the first receiving time and the second receiving time are in the same cycle (that is, the first time cycle and the second time cycle are the same period), then the first key and the second key are the same key.
[0036] In one embodiment, decrypting the target token information by using the first secret key refers to the operation of decrypting the target token information by using the first secret key based on the decryption algorithm corresponding to the encryption algorithm of the target token information. Among them, each token information encryption algorithm can be the same algorithm, and the token information including the target token information is decrypted using the decryption algorithm corresponding to the same encryption algorithm; each token information is encrypted using a different encryption algorithm, and the target token information is decrypted using a specific decryption algorithm. Exemplarily, the request carrying the target token information can also carry an encryption algorithm identifier indicating the target token information. In the decryption process, the corresponding encryption algorithm can be determined according to the encryption algorithm identifier of the target token information, and then, the decryption based on the first secret key is performed according to the decryption algorithm corresponding to the encryption algorithm, and so on, which is not limited here. In addition, the confidentiality algorithm can be one of the algorithms such as 3DES algorithm, TDEA algorithm, Blowfish algorithm, RC5 algorithm, etc., which is not specifically limited here.
[0037] In one embodiment, generating token information based on the second secret key according to the target information, and obtaining the target token information refers to generating an original token information based on the business data corresponding to the target information, and then encrypting the original token information based on the second secret key based on a specific encryption algorithm to obtain the target token information. Among them, business data refers to data that can indicate the sharing object of the target information (such as the sharer, the shared person, etc.), and the sharing business identifier of the shared target information. Among them, the business data can be combined with the original token information by splicing, using flag bits, etc., which is not specifically limited here. In addition, the specific encryption algorithm can be that the token information including the target token information uses the encryption algorithm, or it can be an algorithm different from the token information, which is not specifically limited here.
[0038] See also Figure 2 , Figure 2 The flow of an information processing method provided by another embodiment of the present application is shown. In one embodiment, after determining the second time period, the process of generating target token information may also include determining a second time offset of the second receiving time in the second time period, wherein the target token information carries the second time offset during the process of generating token information based on the second secret key.
[0039] In one embodiment, after the target token information is decrypted using the first secret key, the information processing method may further include the following steps.
[0040] Step 210: When the decryption is successful, if the preset duration of the unified validity period of the current token information is shorter than the duration of the time period, extracting a second time offset from the target token information; Step 220: According to the first receiving time and the second time offset, the target token information is verified for validity based on the unified validity period of the current token information to obtain a verification result of the target token information.
[0041] In one embodiment, the time offset refers to the position of a time point in its cycle relative to the start time of the cycle. For example, assuming that the length of a time cycle is 10S and 12:00:00 is the preset time point, then in the first cycle, the time offset of the specific time point 12:00:01 in the first cycle is 1S, and the time offset of the specific time point 12:00:045 in the first cycle is 4.5S.
[0042] In one embodiment, during the process of generating token information based on the second secret key, the target token information can carry the second time offset in the following manner: first, the second time offset is concatenated with the business data, and then, the original token information is generated based on the concatenated data, and then, the original token information is encrypted based on the second secret key based on a specific encryption algorithm to obtain the target token information.
[0043] In one embodiment, during the process of generating token information based on the second secret key, the target token information can carry the second time offset in the following manner: first, an original token information is generated based on the business data corresponding to the target information, then, the second time offset is concatenated with the original token information, and then, based on a specific encryption algorithm, the concatenated token information is encrypted based on the second secret key to obtain the target token information.
[0044] In one embodiment, the unified validity period of token information refers to the validity period used uniformly by all token information. Since the unified validity period of token information is used, the validity periods of all token information (including target token information) can be the same. Therefore, the unified validity period of token information does not need to be cached separately in the system architecture or stored in the database as the validity period information of the specific shared business, but can be directly used as part of the system architecture to reduce the system's calls to the interface. Among them, the unified validity period of token information can be longer than or equal to the time period, or shorter than the time period, which is not specifically limited here. In addition, the unified validity period of token information can be changed according to actual security needs.
[0045] In one embodiment, when the target token information carries the second time offset by means of data splicing, in the process of extracting business data from the target token information, the target token information can be firstly separated to obtain the spliced data, and then the spliced data can be segmented to obtain the second time offset.
[0046] In one embodiment, when the target token information carries the second time offset by information splicing, in the process of extracting business data from the target token information, the target token information can be segmented to obtain the second time offset.
[0047] In one embodiment, performing validity verification on the target token information based on the unified validity period of the current token information refers to an operation of verifying whether the duration of the target token information exceeds the unified validity period of the current token information.
[0048] In one embodiment, in the process of verifying the validity of the target token information based on the unified validity period of the current token information according to the first receiving time and the second time offset to obtain the verification result of the target token information, specifically, the first time offset of the first receiving time in the first time period can be determined first, and then the first time offset and the second time offset are calculated to obtain the second time difference. If the second time difference is not longer than the unified validity period of the current token information, the verification is determined to be successful; if the second time difference is longer than the unified validity period of the current token information, the verification is determined to be a failure.
[0049] In one embodiment, in the process of verifying the validity of the target token information based on the unified validity period of the current token information according to the first receiving time and the second time offset to obtain the verification result of the target token information, the time point can be calculated back according to the first time period and the second time offset to obtain the second receiving time, and then the first receiving time and the second receiving time are calculated to obtain the third time difference. If the third time difference is not longer than the unified validity period of the current token information, the verification is determined to be successful; if the third time difference is longer than the unified validity period of the current token information, the verification is determined to be a failure. Specifically, since the token information generated at each time point in the same period uses the same secret key, when the target token information can be successfully decrypted by the first secret key for the first time period, it can be proved that the generation and verification of the target token information are in the same time period. Therefore, the second receiving time can be calculated by the second time offset and the first time period, and the validity of the target token information can be verified more accurately by means of the time difference.
[0050] In one embodiment, if the preset unified validity period of the current token information is not shorter than the time period, it is determined that the verification of the target token information is successful. Since the secret key is generated based on a specific time period, therefore, if the decryption is successful, the unified validity period of the current token information is not shorter than the time period, and the previous decryption process has actually verified the validity of the target token information (the first receiving time and the second receiving time are in the same period, and the unified validity period of the current token information is not shorter than the time period, then the time point from the second receiving time to the next time period of the first time period is the effective survival time of the target token information). In this way, on the basis of not needing to store the secret key, there is no need to store the validity period information for the target token information, so that the call to the storage medium interface can be further reduced during the decryption verification, effectively reducing the pressure on the storage medium component, and further reducing the storage cost and improving the performance of the storage medium interface.
[0051] See also Figure 3 , Figure 3The flow of an information processing method provided by another embodiment of the present application is shown. In one embodiment, after the target token information is successfully decrypted by the first secret key, the information processing method may further include the following steps.
[0052] Step 310: if the current token information unified validity period is updated before the first receiving time, extract the second time offset from the target token information, and determine the second receiving time according to the first time period and the second time offset; Step 320: If the current unified validity period of the token information is the unified validity period of the token information updated after the second receiving time, determine the last unified validity period of the token information; Step 330: If the duration of the last unified validity period of the token information is shorter than the duration of the time period, the target token information is verified based on the validity of the last unified validity period of the token information according to the first receiving time and the second receiving time to obtain a verification result of the target token information.
[0053] In one embodiment, the unified validity period of the token information is updated before the first receiving time, which means that the updated unified validity period of the token information is used as the validity period of the newly generated token information between the time point of the most recent update of the unified validity period of the token information and the time point of the next update before the first receiving time. The update of the unified validity period of the token information can be a scheduled update or a manual update, etc., which is not specifically limited here. In addition, the updated unified validity period of the token information can be shorter than the unified validity period of the token information before the update, or longer than the unified validity period of the token information before the update, which is not specifically limited here.
[0054] In one embodiment, the validity verification of the target token information based on the last unified validity period of the token information refers to the operation of verifying whether the survival time of the target token information exceeds the last unified validity period of the token information. Specifically, if the current unified validity period of the token information is the unified validity period of the token information updated after the second receiving time, then the last unified validity period of the token information targeted by the target token information generated at the second receiving time, therefore, it is necessary to verify whether the survival time of the target token information exceeds the unified validity period of the token information originally targeted by the target token information (that is, the last unified validity period of the token information).
[0055] In one embodiment, in the process of verifying the validity of the target token information based on the previous unified validity period of the token information according to the first receiving time and the second receiving time to obtain the verification result of the target token information, the first receiving time and the second receiving time can be firstly calculated to obtain a fourth time difference. If the fourth time difference is not longer than the current unified validity period of the token information, the verification is determined to be successful; if the fourth time difference is longer than the current unified validity period of the token information, the verification is determined to be a failure.
[0056] In one embodiment, if the current unified validity period of the token information is the unified validity period of the token information updated before the second receiving time, the relationship between the duration of the current unified validity period of the token information and the time period is determined, and based on the judgment result, it is determined to enter step 210 or directly determine that the target token information verification is successful. The specific process can be found in the above embodiment and will not be repeated here. Since the current unified validity period of the token information is the unified validity period of the token information updated before the second receiving time, the unified validity period of the token information targeted by the generated token information from the second receiving time to the first receiving time is the current unified validity period of the token information, that is, the last operation of updating the unified validity period of the token information will not affect the current verification operation, so the validity period of the target token information can be accurately verified through the current unified validity period of the token information.
[0057] In one embodiment, if the unified validity period of the current token information has not been updated before the first receiving time, the relationship between the length of the unified validity period of the current token information and the time period is determined, and based on the judgment result, it is determined to enter step 210 or directly determine that the target token information verification is successful. The specific process can be referred to the above embodiment, and will not be repeated here. If the unified validity period of the current token information has not been updated before the first receiving time, it means that the validity period of the target token information is the unified validity period of the current token information. Therefore, the use of the unified validity period of the current token information can accurately determine whether the target token information is valid.
[0058] In one embodiment, if the duration of the last unified validity period of the token information is not shorter than the duration of the time period, it is determined that the target token information is successfully verified. Since the first receiving time and the second receiving time are in the same time period (i.e., the first time period), when the last unified validity period of the token information is not shorter than the duration of the time period, at this time, the effective survival expiration time of the target token information is a specific time point in the next time period of the first time period, so that the target token information can be directly determined to be valid within the first time period.
[0059] The validity period targeted by the token information is the unified validity period of the token information used at the current moment when the token information was generated. When the unified validity period of the token information is updated after the second receiving time, the current unified validity period of the token information is not the validity period targeted by the target token information. Therefore, by using the previous unified validity period of the token information to verify the target token information, it is possible to avoid the situation where the target token information expires before the first receiving time, but the target token information is verified through the current unified validity period of the token information, thereby improving the security of the target token information.
[0060] See also Figure 4 , Figure 4 The flow of an information processing method provided by another embodiment of the present application is shown. In one embodiment, after decryption fails, the information processing method may further include the following steps.
[0061] Step 410: If the duration of the time period has been updated before the first receiving time, determine the third time period in which the first receiving time is before the duration of the time period was last updated; Step 420: performing key generation processing according to the third time period to obtain a third key for the third time period; Step 430: Decrypt the target token information using the third secret key. If the decryption fails, it is determined that the verification of the target token information has failed.
[0062] In one embodiment, the duration of the time period is updated before the first receiving time, which means that before the first receiving time, between the time point of the duration of the time period of the most recently updated time period and the time point of the next update, the duration of the updated time period is used as the new time calculation unit. Among them, the duration update of the time period can be a scheduled update, or it can be a manual update, etc., which is not specifically limited here. In addition, the duration of the updated time period can be shorter than the duration of the time period before the update, or it can be longer than the duration of the time period before the update, which is not specifically limited here. For example, assuming that the length of 10S is a time period, 12:00:00 is a preset time point, then 12:00:05 is in the first time period, when the duration of the time period is updated to 1S, then 12:00:05 will be in the fifth period, assuming that the first receiving time is 12:00:05, then before the time period duration is updated, the first time period is the third time period where the first receiving time is located, and after the time period duration is updated, the fifth period is the first period where the first receiving time is located.
[0063] In one embodiment, performing key generation processing according to the third time period to obtain the third key for the third time period means generating a third key associated with the third time period based on the third time period. The third key can be generated directly through the third time period or the information corresponding to the third time period after transformation (such as using the hash value of the third time period, or through a certain category such as the corresponding specific information obtained by comparing with a preset table, etc.), or can be generated together with the third time period and other categories such as the target object identifier for sharing, the business identifier of the target information for sharing, etc., which are not specifically limited here.
[0064] In one embodiment, for different time points in the same cycle, since a specific key is for a specific specific cycle, when different time points belong to the same cycle, the keys corresponding to these time points are the same key. For example, assuming that the first receiving time and the third receiving time are in the same cycle (that is, the first time cycle and the third time cycle are the same period), then the first key and the third key are the same key.
[0065] In one embodiment, the specific process of decrypting the target token information using the third key is the same as the specific process of decrypting the target token information using the first key, and will not be repeated here.
[0066] By taking the duration of the previous time period as the calculation unit, the third time period in which the first receiving time is located relative to the duration of the previous time period is calculated. In this way, a secret key can be generated through the third time period to re-verify the target token information, thereby reducing the situation in which, before the duration of the previous time period is updated, the first receiving time and the second receiving time are both located in the third time period relative to the duration of the previous time period, but after the duration of the previous time period is updated, the first receiving time and the second receiving time are located in different time periods. This can reduce the situation in which false verification failures occur, and is conducive to more accurate verification of the target token information.
[0067] See also Figure 5 , Figure 5 The flow of an information processing method provided by another embodiment of the present application is shown. In one embodiment, in the process of generating token information based on the second secret key according to the target information to obtain the target token information, the token information based on the second secret key can be first generated according to the target information to obtain the initial token information. If the information length of the initial token information is not less than a preset information length threshold, the initial token information is compressed to obtain the target token information.
[0068] After the target token information fails to be decrypted using the first secret key, the information processing method may further include the following steps.
[0069] Step 510: decompress the target token information to obtain decompressed token information; Step 520: Decrypt the decompressed token information according to the first secret key. If the decryption fails, it is determined that the verification of the target token information has failed.
[0070] In one embodiment, the initial token information refers to the token information obtained by generating original token information according to the target information and then encrypting the original token information according to the token information of the second secret key.
[0071] In one embodiment, if the information length of the initial token information is less than a preset information length threshold, the initial token information is determined as the target token information.
[0072] In one embodiment, performing information compression processing on the initial token information refers to compressing the length of the initial token information to an information length threshold, and using the compressed information to represent the initial token information. The information compression processing can be performed by algorithms such as Huffman coding compression and Deflate algorithm, which are not limited here.
[0073] In one embodiment, decompressing the target token information to obtain the decompressed token information refers to using a decompression algorithm corresponding to the compression algorithm used when compressing the initial token information to perform a decompression process on the target token information to obtain the decompressed token information.
[0074] In one embodiment, in the process of performing information compression processing on the initial token information to obtain the target token information, the initial token information can be compressed by a specific compression algorithm first, and then the algorithm identifier corresponding to the compression algorithm used in the information compression processing is concatenated with the information obtained by the information compression to obtain the target token information. In the process of performing decompression processing on the target token information to obtain the decompressed token information, the target token information can be split first to obtain the algorithm identifier corresponding to the compression algorithm and the information obtained by the information compression, and then the information obtained by the information compression is decompressed by the decompression algorithm corresponding to the specific compression algorithm corresponding to the algorithm identifier to obtain the decompressed token information. By introducing the algorithm identifier corresponding to the compression algorithm, different compression algorithms can be used for compression processing when generating different target token information, thereby improving the security of the target token information.
[0075] By compressing the longer target token information, the target token information can reduce the consumption of bandwidth and improve the concurrency capability of the system, thereby improving the system efficiency and user experience.
[0076] See also Figure 6 , Figure 6 The flow of an information processing method provided by another embodiment of the present application is shown. In one embodiment, after the target token information fails to be decrypted by the first secret key, the information processing method further includes the following steps.
[0077] Step 610: Determine a fourth time period in which a target time of the unified validity period of the current token information is located from the first receiving time, wherein the target time is earlier than the first receiving time; Step 620: performing key generation processing according to the fourth time period to obtain a fourth key for the fourth time period; Step 630: Decrypt the target token information using the fourth secret key. If the decryption fails, it is determined that the verification of the target token information has failed.
[0078] In one embodiment, the target time refers to a time point before the first receiving time, which is different from the first receiving time by the unified validity period of the current token information. For example, assuming that the preset time point is 12:00:00, the first receiving time is 12:00:10, and the unified validity period of the current token information is 7S, the target time is 12:00:03. The target time can be one cycle, half a cycle, etc., which is not specifically limited here.
[0079] In one embodiment, performing key generation processing according to the fourth time period to obtain the fourth key for the fourth time period means generating a fourth key associated with the fourth period based on the fourth time period. The fourth key may be generated directly through the fourth time period or the information corresponding to the fourth time period after transformation (such as using the hash value of the fourth period, or through a certain category such as obtaining the corresponding specific information by comparing with a preset table, etc.), or may be generated together with the fourth time period and other categories such as the identification of the target object to be shared, the identification of the target information to be shared, etc., which are not specifically limited here.
[0080] In one embodiment, the specific process of decrypting the target token information using the fourth secret key is the same as the specific process of decrypting the target token information using the first secret key, and will not be repeated here.
[0081] By determining the fourth time period within which the target time is located apart from the unified validity period of the current token information after decryption using the first secret key fails, and generating a fourth secret key for the fourth time period, the target token information can be re-verified using the fourth secret key for the fourth time period, thereby enabling targeted verification of token information that was not generated within the first time period but whose validity period covers or just reaches the first receiving time, thereby avoiding the situation where the target token information whose survival time has not yet arrived or just reaches the unified validity period of the current token information cannot be decrypted by the first secret key, resulting in a false verification failure, which is beneficial to improving the reliability of the target token information.
[0082] See also Figure 7 , Figure 7 A process of an information processing method is provided for another embodiment of the present application. In one embodiment, after decryption by the fourth secret key, the information processing method may further include the following steps.
[0083] Step 710: if the decryption is successful, if the current token information unified validity period is updated before the first receiving time, extract the second time offset from the target token information, and determine the second receiving time according to the fourth time period and the second time offset; Step 720: If the current unified validity period of the token information is the unified validity period of the token information updated after the second receiving time, determine the previous unified validity period of the token information, and verify the validity of the target token information based on the previous unified validity period of the token information according to the first receiving time and the second receiving time to obtain the verification result of the target token information.
[0084] In one embodiment, the step of verifying the validity of the target token information based on the previous unified validity period of the token information according to the first receiving time and the second receiving time after successful decryption with the fourth secret key to obtain the verification result of the target token information has the same principle as the step of verifying the validity of the target token information based on the previous unified validity period of the token information according to the first receiving time and the second receiving time after successful decryption with the first secret key to obtain the verification result of the target token information, and will not be repeated here.
[0085] In one embodiment, after successful decryption by the fourth secret key, if the current unified validity period of the token information is the unified validity period of the token information updated before the second receiving time, or the current unified validity period of the token information has not been updated before the first receiving time, the target token information is verified for validity based on the current unified validity period of the token information according to the first receiving time and the second receiving time, and the verification result of the target token information is obtained. The specific process can be found in the above embodiment and will not be repeated here. Since the fourth time period is not the same as the first time period, no matter whether the current unified validity period of the token information is the unified validity period of the token information updated before the second receiving time, or has not been updated before the first receiving time, it is impossible to determine whether the survival time of the current unified validity period of the token information is the first receiving time or after the first receiving time. For this reason, the verification of the token information for the validity period spanning the time period by the first receiving time and the second receiving time can improve the verification reliability of the validity of the target token information.
[0086] When the target token information is successfully decrypted by the fourth secret key, it proves that the target token information is generated in the fourth time period, and the validity period targeted by the token information is the unified validity period of the token information used at the current moment when it was generated. When the unified validity period of the token information is updated after the second receiving time, the current unified validity period of the token information is not the validity period targeted by the target token information. Therefore, by using the last unified validity period of the token information to verify the target token information, it is possible to avoid the situation where the target token information expires before the first receiving time, but the target token information is verified through the current unified validity period of the token information, thereby improving the security of the use of the target token information.
[0087] The following is an embodiment of sharing property insurance products specifically applied in the financial industry: when a request for obtaining property insurance product sharing information is received, the request carries the token information of the property insurance product sharing information, then, first determine the first time period in which the first receiving time of the token information of the property insurance product sharing information is received, wherein the first time period is a time period relative to a preset time point, then perform key generation processing according to the first time period to obtain a first key for the first time period, then decrypt the token information of the property insurance product sharing information by using the first key, if the decryption fails, it is determined that the verification of the token information of the property insurance product sharing information has failed; wherein the token information of the property insurance product sharing information is generated in the following manner: first determine the second time period in which the second receiving time of the request for sharing the property insurance product sharing information is received, wherein the second time period is a time period relative to a preset time point, then perform key generation processing according to the second time period to obtain a second key for the second time period, then generate token information based on the second key according to the property insurance product sharing information to obtain the token information of the property insurance product sharing information.
[0088] The following is an embodiment of sharing a medical service page to quickly display the page, which is specifically applied in the medical industry: when a request for obtaining a medical service page is received, the request carries the token information of the medical service page, then, first determine the first time period in which the first receiving time of the token information of the medical service page is received, wherein the first time period is a time period relative to a preset time point, then perform key generation processing according to the first time period to obtain a first key for the first time period, then decrypt the token information of the medical service page using the first key, if the decryption fails, it is determined that the verification of the token information of the medical service page has failed; wherein the token information of the medical service page is generated in the following manner: first determine the second time period in which the second receiving time of the request to share the medical service page is received, wherein the second time period is a time period relative to the preset time point, then perform key generation processing according to the second time period to obtain a second key for the second time period, then generate token information based on the second key according to the medical service page to obtain the token information of the medical service page.
[0089] See also Figure 8 The embodiment of the present application further provides an information processing device, which can implement the information processing method of the first aspect above. The information processing device 800 includes: The time period determination module 810 may be used to determine a first time period in which a first receiving time of receiving target token information is located, wherein the first time period is a time period relative to a preset time point; The key generation module 820 may be configured to perform key generation processing according to the first time period to obtain a first key for the first time period; The target token information decryption module 830 may be used to decrypt the target token information using the first secret key, and if the decryption fails, it is determined that the verification of the target token information fails; In the process of generating the target token information, the information processing device: The time period determination module 810 may also be used to determine a second time period in which a second receiving time of receiving a request for sharing target information is located, where the second time period is a time period relative to a preset time point; The key generation module 820 may also be used to perform key generation processing according to the second time period to obtain a second key for the second time period; The information processing device 800 may further include a target token information generation module 840, which may be used to generate token information based on the second secret key according to the target information to obtain the target token information.
[0090] The specific implementation of the information processing device is basically the same as the specific implementation of the above-mentioned information processing method, and will not be repeated here.
[0091] The embodiment of the present application also provides an electronic device, the electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the above information processing method when executing the computer program. The electronic device can be any intelligent terminal including a tablet computer, a car computer, etc.
[0092] See also Fig. 9 , Fig. 9 The hardware structure of an electronic device of another embodiment is illustrated. The electronic device 900 includes: The processor 901 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application; The memory 902 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 902 can store an operating system and other application programs. When the technical solution provided in the embodiments of this specification is implemented by software or firmware, the relevant program code is stored in the memory 902, and the processor 901 calls and executes the information processing method of the embodiments of this application; Input / output interface 903, used to implement information input and output; Communication interface 904, used to realize communication interaction between the device and other devices, which can be realized through wired mode (such as USB, network cable, etc.) or wireless mode (such as mobile network, WIFI, Bluetooth, etc.); A bus 905 that transmits information between various components of the device (e.g., the processor 901, the memory 902, the input / output interface 903, and the communication interface 904); The processor 901 , the memory 902 , the input / output interface 903 and the communication interface 904 are connected to each other in communication within the device via a bus 905 .
[0093] An embodiment of the present application further provides a computer-readable storage medium, which stores a computer program, and the computer program implements the above-mentioned information processing method when executed by a processor.
[0094] The memory, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs and non-transitory computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transitory memory, such as at least one disk storage device, a flash memory device, or other non-transitory solid-state storage device. In some embodiments, the memory may include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0095] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0096] Those skilled in the art will appreciate that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.
[0097] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0098] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.
[0099] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application 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 interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising 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 devices.
[0100] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0101] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0102] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0103] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0104] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.
[0105] The preferred embodiments of the present invention are described above with reference to the accompanying drawings, but the scope of the rights of the present invention is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present invention should be within the scope of the rights of the present invention.
Claims
1. An information processing method, characterized in that: The following steps are involved: Determine a first time period in which a first receiving time of receiving target token information occurs, wherein the first time period is a time period relative to a preset time point; Perform key generation processing according to the first time period to obtain a first key for the first time period; Decrypting the target token information by using the first secret key, and if the decryption fails, determining that the verification of the target token information fails; The target token information is generated in the following manner: Determine a second time period in which a second receiving time of a request for sharing target information is received, wherein the second time period is the time period relative to the preset time point; Perform key generation processing according to the second time period to obtain a second key for the second time period; Token information based on the second secret key is generated according to the target information to obtain the target token information.
2. The method according to claim 1, characterized in that After the step of determining the second time period, the process of generating the target token information further includes: Determine a second time offset of the second receiving time in the second time period, wherein the target token information carries the second time offset during the process of generating the token information based on the second secret key; After the target token information is decrypted by the first secret key, the method further includes: In the case of successful decryption, if the preset duration of the unified validity period of the current token information is shorter than the duration of the time period, extracting the second time offset from the target token information; According to the first receiving time and the second time offset, the target token information is verified for validity based on the current unified validity period of the token information to obtain a verification result of the target token information.
3. The method according to claim 2, characterized in that After the target token information is successfully decrypted by the first secret key, the method further includes: If the current unified validity period of the token information is updated before the first receiving time, extracting the second time offset from the target token information, and determining the second receiving time according to the first time period and the second time offset; If the current unified validity period of the token information is the unified validity period of the token information updated after the second receiving time, determining the last unified validity period of the token information; If the last unified validity period of the token information is shorter than the time period, the target token information is verified for validity based on the last unified validity period of the token information according to the first receiving time and the second receiving time to obtain a verification result of the target token information.
4. The method according to claim 1, characterized in that: After the target token information fails to be decrypted by the first secret key, the method further includes: If the duration of the time period is updated before the first receiving time, determine the third time period in which the first receiving time is located before the duration of the time period is last updated; Performing a key generation process according to the third time period to obtain a third key for the third time period; The target token information is decrypted using the third secret key. If the decryption fails, it is determined that the verification of the target token information has failed.
5. The method according to claim 1, characterized in that: The generating of token information based on the second secret key according to the target information to obtain the target token information includes: Generating token information based on the second secret key according to the target information to obtain initial token information; If the information length of the initial token information is not less than a preset information length threshold, performing information compression processing on the initial token information to obtain the target token information; After the target token information fails to be decrypted by the first secret key, the method further includes: Decompressing the target token information to obtain decompressed token information; The decompressed token information is decrypted according to the first secret key, and if the decryption fails, it is determined that the verification of the target token information has failed.
6. The method according to claim 2, characterized in that After the target token information fails to be decrypted by the first secret key, the method further includes: Determine a fourth time period between the first receiving time and a target time of the current unified validity period of the token information, wherein the target time is earlier than the first receiving time; Performing a key generation process according to the fourth time period to obtain a fourth key for the fourth time period; The target token information is decrypted using the fourth secret key. If the decryption fails, it is determined that the verification of the target token information has failed.
7. The method according to claim 6, characterized in that After the target token information is decrypted by the fourth secret key, the method further includes: In the case of successful decryption, if the current unified validity period of the token information is updated before the first receiving time, extracting the second time offset from the target token information, and determining the second receiving time according to the fourth time period and the second time offset; If the current unified validity period of the token information is the unified validity period of the token information updated after the second receiving time, determine the last unified validity period of the token information, and verify the validity of the target token information based on the last unified validity period of the token information according to the first receiving time and the second receiving time to obtain the verification result of the target token information.
8. An information processing device, characterized in that: include: A time period determination module, used to determine a first time period in which a first receiving time of receiving target token information is located, wherein the first time period is a time period relative to a preset time point; A key generation module, configured to perform key generation processing according to the first time period to obtain a first key for the first time period; A target token information decryption module, used to decrypt the target token information using the first secret key, and if the decryption fails, determine that the target token information verification fails; Wherein, in the process of generating the target token information, the information processing device: The time period determination module is further used to determine a second time period in which a second receiving time of receiving a request for sharing target information falls, wherein the second time period is the time period relative to the preset time point; The key generation module is further used to perform key generation processing according to the second time period to obtain a second key for the second time period; The information processing device further includes: A target token information generation module is used to generate token information based on the second secret key according to the target information to obtain the target token information.
9. An electronic device, characterized in that: The electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the information processing method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the information processing method according to any one of claims 1 to 7 is implemented.