Request message processing method and device, storage medium and electronic device

By simulating the motion trajectory of an object under multiple actions, and periodically update it, the problem of low key security in the prior art is solved, and the reliability and security of service execution are improved.

CN114285561BActive Publication Date: 2025-02-28CHINA TELECOM CORP LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202111617133.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-27
Publication Date
2025-02-28
Estimated Expiration
2041-12-27

AI Technical Summary

Technical Problem

The prior art method of processing request messages has poor service execution effect due to the low security of the key.

Method used

By starting a target object model including the first object and at least two second objects, the running trajectory of the first object under the action of the second object is simulated, the key is generated based on the position information of each second object, and the key is updated periodically.

Benefits of technology

It improves the security and unpredictability of keys, enhances the reliability and security of business execution, and solves the problem of poor business execution results caused by low key security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
Patent Text Reader

Abstract

The present application discloses a method and device for processing a request message, a storage medium and an electronic device, wherein the method comprises: starting a target object model, wherein the target object model comprises a first object and at least two second objects, and the target object model is used to simulate the running trajectory of the first object under the action of the force of each of the at least two second objects during the rotation of the first object around the at least two second objects; obtaining a first request message, wherein the first request message is used to request that a key corresponding to the first business be assigned to a first business; generating a first key according to first position information of each second object, wherein the first position information of each second object is used to indicate the relative position of each second object to the first object at a first moment; and assigning the first key to the first business.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of message processing, and in particular, to a method and device for processing a request message, a storage medium, and an electronic device. Background Art

[0002] In the fields of the Internet such as database development, communication, data encryption, e-commerce, game design, lottery design, etc., for example, in the actual development, the primary key generation of the database, the generation of the signature of the transferred file in the project, and the data transmission process, the data is easily stolen. At present, when data is transmitted, the data is encrypted with a key to ensure the security of the data during the transmission process.

[0003] However, the keys in the related technologies are all fixed keys, which are very likely to be leaked and cracked, resulting in low security of data during transmission, and further resulting in unsatisfactory business execution results.

[0004] It can be seen that the request message processing method in the related art has the problem of poor service execution effect due to the low security of the key. Summary of the invention

[0005] The embodiments of the present application provide a method and device for processing a request message, a storage medium, and an electronic device, so as to at least solve the problem of poor service execution effect caused by low security of keys in the method for processing request messages in the related art.

[0006] According to one aspect of an embodiment of the present application, a method for processing a request message is provided, comprising: starting a target object model, wherein the target object model includes a first object and at least two second objects, and the target object model is used to simulate the running trajectory of the first object under the action of the force of each of the at least two second objects during the rotation of the first object around the at least two second objects; obtaining a first request message, wherein the first request message is used to request that a key corresponding to the first business be assigned to a first business; generating a first key based on first position information of each second object, wherein the first position information of each second object is used to indicate the relative position of each second object to the first object at a first moment; and assigning the first key to the first business.

[0007] In an exemplary embodiment, before starting the target object model, the method further includes: constructing the first object and the at least two second objects; assigning object parameters to the first object and each second object respectively to obtain the object parameters of the first object and the object parameters of each second object; and constructing the target object model according to the object parameters of the first object and the object parameters of each second object.

[0008] In an exemplary embodiment, the object parameters are assigned to the first object and each of the second objects respectively to obtain the object parameters of the first object and the object parameters of each of the second objects, including: determining the initial position of the first object and the object position of each of the second objects, wherein the object position of each of the second objects does not change during the operation of the target object model; determining the initial operating parameters of the first object, wherein the initial operating parameters include an initial operating direction, and the initial operating direction is different from the direction of the resultant force of the forces acting on the first object from each of the second objects; wherein the object parameters of the first object include the initial position and the initial operating parameters of the first object, and the object parameters of each of the second objects include the object position of each of the second objects.

[0009] In an exemplary embodiment, the first position information of each second object is the position coordinates of each second object in a three-dimensional coordinate system with the first object as the origin at the first moment; generating the first key based on the first position information of each second object includes: determining the connecting line between each second object and the first object based on the position coordinates of each second object to obtain at least two connecting lines, wherein the at least two connecting lines correspond one-to-one to the at least two second objects; determining the angle between each two connecting lines of the at least two connecting lines to obtain at least one angle; generating the first key based on the length of each connecting line of the at least two connecting lines and the angle of each angle of the at least one angle.

[0010] In an exemplary embodiment, the at least two second objects are three second objects; the at least two connecting lines are three connecting lines, and the at least one angle is three angles; generating the first key according to the length of each of the at least two connecting lines and the angle of each of the at least one angle includes: determining the angle corresponding to each of the three angles, wherein the three angles correspond one-to-one to the three connecting lines; performing target operation on the length of each connecting line and the angle corresponding to each connecting line to obtain three reference values, wherein each of the three reference values ​​is an integer; and concatenating the three reference values ​​to obtain the first key.

[0011] In an exemplary embodiment, after generating the first key according to the first position information of each second object, the method further includes: acquiring a timestamp of a second moment to obtain a target timestamp; and concatenating the target timestamp with the first key to obtain an updated first key.

[0012] In an exemplary embodiment, after assigning the first key to the first service, the method further includes: periodically acquiring second position information of each second object, wherein the second position information of each second object is used to indicate the relative position of each second object to the first object at a third moment in each period; updating the first key according to the second position information of each second object to obtain an updated first key; and assigning the updated first key to the first service.

[0013] In an exemplary embodiment, after assigning the first key to the first service, the method further includes: obtaining a second request message, wherein the second request message is used to request assignment of a key corresponding to the second service to the second service; generating a second key based on third position information of each second object, wherein the third position information of each second object is used to indicate the relative position of each second object to the first object at a fourth moment; and assigning the second key to the second service.

[0014] According to another aspect of an embodiment of the present application, a request message processing device is also provided, including: a starting unit, used to start a target object model, wherein the target object model includes a first object and at least two second objects, and the target object model is used to simulate the running trajectory of the first object under the action of the force of each of the at least two second objects in the process of the first object rotating around the at least two second objects; a first acquisition unit, used to obtain a first request message, wherein the first request message is used to request that a key corresponding to the first business be assigned to a first business; a first generation unit, used to generate a first key according to the first position information of each second object, wherein the first position information of each second object is used to indicate the relative position of each second object and the first object at a first moment; a first allocation unit, used to allocate the first key to the first business.

[0015] In an exemplary embodiment, the device also includes: a first construction unit, used to construct the first object and the at least two second objects before starting the target object model; a second allocation unit, used to allocate object parameters to the first object and each second object respectively, to obtain the object parameters of the first object and the object parameters of each second object; a second construction unit, used to construct the target object model based on the object parameters of the first object and the object parameters of each second object.

[0016] In an exemplary embodiment, the second allocation unit includes: a first determination module, used to determine the initial position of the first object, and the object position of each second object, wherein the object position of each second object does not change during the operation of the target object model; a second determination module, used to determine the initial operation parameters of the first object, wherein the initial operation parameters include an initial operation direction, and the initial operation direction is different from the direction of the resultant force of each second object acting on the first object; wherein the object parameters of the first object include the initial position of the first object and the initial operation parameters, and the object parameters of each second object include the object position of each second object.

[0017] In an exemplary embodiment, the first position information of each second object is the position coordinates of each second object in a three-dimensional coordinate system with the first object as the origin at the first moment; the first generation unit includes: a third determination module, used to determine the connecting line between each second object and the first object according to the position coordinates of each second object, and obtain at least two connecting lines, wherein the at least two connecting lines correspond one-to-one to the at least two second objects; a fourth determination module, used to determine the angle between each two connecting lines of the at least two connecting lines, and obtain at least one angle; a generation module, used to generate the first key according to the length of each connecting line of the at least two connecting lines and the angle of each angle of the at least one angle.

[0018] In an exemplary embodiment, the at least two second objects are three second objects; the at least two connecting lines are three connecting lines, and the at least one angle is three angles; the generation module includes: a determination submodule, used to determine the angle of the three angles corresponding to each of the connecting lines, wherein the three angles correspond one-to-one to the three connecting lines; an execution submodule, used to perform a target operation on the length of each connecting line and the angle corresponding to each connecting line to obtain three reference values, wherein each of the three reference values ​​is an integer; a splicing submodule, used to splice the three reference values ​​to obtain the first key.

[0019] In an exemplary embodiment, the device also includes: a second acquisition unit, used to obtain a timestamp of a second moment after generating the first key based on the first position information of each second object, to obtain a target timestamp; a splicing unit, used to splice the target timestamp with the first key to obtain an updated first key.

[0020] In an exemplary embodiment, the device also includes: a third acquisition unit, used to periodically acquire the second position information of each second object after assigning the first key to the first service, wherein the second position information of each second object is used to indicate the relative position of each second object and the first object at a third moment in each period; an update unit, used to update the first key according to the second position information of each second object to obtain the updated first key; and a third allocation unit, used to assign the updated first key to the first service.

[0021] In an exemplary embodiment, the device also includes: a fourth acquisition unit, used to obtain a second request message after assigning the first key to the first service, wherein the second request message is used to request assignment of a key corresponding to the second service to the second service; a second generation unit, used to generate a second key based on third position information of each second object, wherein the third position information of each second object is used to indicate the relative position of each second object to the first object at a fourth moment; and a fourth allocation unit, used to assign the second key to the second service.

[0022] According to another aspect of the embodiments of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned request message processing method when running.

[0023] According to another aspect of an embodiment of the present application, an electronic device is also provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the request message processing method through the computer program.

[0024] In an embodiment of the present application, a physical model is used to simulate an object performing disordered motion under the influence of at least two other objects, and a key is generated for a service according to the position information of the object at a certain moment, by starting a target object model, wherein the target object model includes a first object and at least two second objects, and the target object model is used to simulate the running trajectory of the first object under the influence of the force of each of the at least two second objects in the process of the first object rotating around the at least two second objects; a first request message is obtained, wherein the first request message is used to request that a key corresponding to the first service be allocated to the first service; and a first key is generated according to the first position information of each second object. A key, wherein the first position information of each second object is used to indicate the relative position of each second object to the first object at a first moment; the first key is assigned to the first business. Since the trajectory of the first object simulated by the physical model rotating under the action of at least two objects is disordered, the positional relationship between the objects at a certain moment is unpredictable. Therefore, the key generated based on the relative relationship between the objects at a certain moment is also unpredictable, which can achieve the purpose of improving the security of the key and achieve the technical effect of improving the business execution effect, thereby solving the problem of poor business execution effect caused by low key security in the request message processing method in the related technology. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0026] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0027] Figure 1 is a schematic diagram of a hardware environment of an optional request message processing method according to an embodiment of the present application;

[0028] Figure 2 It is a flowchart of an optional method for processing a request message according to an embodiment of the present application;

[0029] Figure 3 is a flowchart of another optional request message processing method according to an embodiment of the present application;

[0030] Figure 4 It is a three-body model schematic diagram of an optional request message processing method according to an embodiment of the present application;

[0031] Figure 5 It is a three-body model force analysis diagram of an optional request message processing method according to an embodiment of the present application;

[0032] Figure 6 is a structural block diagram of an optional request message processing device according to an embodiment of the present application;

[0033] Figure 7 It is a structural block diagram of an optional electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0034] In order to enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this application.

[0035] It should be noted that the terms "first", "second", etc. in the specification and claims 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.

[0036] According to one aspect of an embodiment of the present application, a method for processing a request message is provided. Optionally, in this embodiment, the method for processing the request message can be applied to Figure 1 In the hardware environment composed of the terminal 102 and the server 104 shown in FIG. Figure 1 As shown, the server 104 is connected to the terminal 102 via a network, and can be used to provide services (such as application services, etc.) for the terminal or a client installed on the terminal. A database can be set on the server or independently of the server to provide data storage services for the server 104.

[0037] The network may include but is not limited to at least one of the following: a wired network, a wireless network. The wired network may include but is not limited to at least one of the following: a wide area network, a metropolitan area network, a local area network, and the wireless network may include but is not limited to at least one of the following: WIFI (Wireless Fidelity), Bluetooth. The terminal 102 may not be limited to a PC, a mobile phone, a tablet computer, etc.

[0038] The request message processing method of the embodiment of the present application may be executed by the server 104, or by the terminal 102, or by both the server 104 and the terminal 102. The terminal 102 may execute the request message processing method of the embodiment of the present application by a client installed thereon.

[0039] Taking the method for processing the request message in this embodiment executed by the server 104 as an example, Figure 2 is a flowchart of an optional method for processing a request message according to an embodiment of the present application, such as Figure 2 As shown, the process of the method may include the following steps:

[0040] Step S202, start the target object model, wherein the target object model includes a first object and at least two second objects, and the target object model is used to simulate the running trajectory of the first object under the action of the force of each of the at least two second objects during the process of the first object rotating around the at least two second objects.

[0041] The request message processing method in this embodiment can be applied to the scenario of allocating keys to services so as to use the allocated keys to perform business processing. For example, it can be applied to the process of generating keys for system file transfer, the process of generating offsets for encryption processes, etc. This is not limited in this embodiment.

[0042] In the related art, a key generator can be used to generate a key, but the key generated by the above method has low security, which leads to poor processing effect of using the above key to process services. For example, when using the above key to encrypt data, the encrypted data can be easily cracked, thereby affecting the reliability of the encrypted data. In addition, if a fixed key is used, there is a great risk of leakage and cracking.

[0043] In this embodiment, the target server (an example of the above-mentioned server 104) can first start a target object model before assigning a key to the business. The above-mentioned target object model includes a first object and at least two second objects. The target object model is used to simulate the running trajectory of the first object under the action of the force of each of the at least two second objects during the process of the first object rotating around the at least two second objects.

[0044] Optionally, the target object model can be a physical celestial body model, that is, by calculating and simulating the movement of celestial bodies. For example, the first object can be a planetary object (hereinafter referred to as a planet), the second object can be a star object (hereinafter referred to as a star), or the first object can be an electronic object (hereinafter referred to as an electron), and the second object can be a nucleus object (hereinafter referred to as a nucleus). In the process of simulating the movement of a planet (or an electron) around a plurality of stars (or a plurality of nuclei), due to the influence of forces in multiple directions, the movement of the planet (or the electron) is in a disordered state, that is, the trajectory of the planet (or the electron) is unpredictable at every moment, so that the key generated according to the target object model is not easy to be cracked. In this embodiment, the first object is a planet and the second object is a star as an example for explanation.

[0045] The above process of starting the target object model can apply an initial force to the first object, and there is a certain angle between the direction of the above force and the combined force of at least two second objects acting on the first object, so that the first object in the target object model starts to move disorderly, thereby starting the above target object model.

[0046] It should be noted that when the types of the selected first object and the second object are different, the above-mentioned force is also different. For example, when the first object is a planet and the second object is a star, the above-mentioned force can be the universal gravitation between the planet and the star. When the first object is an electron and the second object is an atomic nucleus, the above-mentioned force can be the electromagnetic force between the atomic nucleus and the electron. This is not limited in this embodiment.

[0047] Step S204: Obtain a first request message, where the first request message is used to request allocation of a key corresponding to the first service to the first service.

[0048] In this embodiment, when there is a first service to be executed, a first request message can be sent to the target server through the terminal device (i.e., the aforementioned terminal), and the target server can obtain the first request message sent by the terminal device. The first request message is used to request that a key corresponding to the first service be allocated to the first service.

[0049] Optionally, the first request message may be a request instruction or a piece of code in a program, and the type of the first request message is not limited in this embodiment. The first service may be a service related to data transmission, for example, system file transmission, data encryption, etc., and this is not limited in this embodiment.

[0050] For example, when there is a need for file transfer, if the file contains private data or other data that needs to be encrypted, the file needs to be encrypted. If the security of the key is not high enough, the file may be leaked, which in turn causes huge losses to the user. The file transfer demand here can be determined when it is determined that the ability to perform such a service is available, or when there is a file to be transferred. In this embodiment, there is no limitation on the timing of sending the first request message.

[0051] Step S206: Generate a first key according to the first position information of each second object, wherein the first position information of each second object is used to indicate the relative position of each second object and the first object at the first moment.

[0052] In this embodiment, after obtaining the first request message, the target server may respond to the first request message, for example, by using the target object model to generate a key. Optionally, the first key may be generated based on the first position information of each second object. The first position information of each second object is used to indicate the relative position of each second object to the first object at the first moment.

[0053] The first position information is not a specific position information, each second object corresponds to a first position information, that is, in this embodiment, there are multiple first position information. In addition, since the first object and the second object in the target object model are in different motions, the force on the first object is complex and the track is disordered, therefore, at different times, the first position information of each second object is different and unpredictable.

[0054] Optionally, when the first position information is the relative coordinate position of each second object to the first object, the process of generating the first key according to the first position information of each second object may be to directly concatenate the values ​​in the relative coordinate position to obtain the first key, or to process the relative coordinate position before generating the first key. For example, according to the relative coordinate position, the distance between each second object and the first object and the angle between the lines connecting two adjacent second objects and the first object are calculated, and then the first key is generated according to the distance and angle.

[0055] It should be noted that the relative position of each second object to the first object may be the coordinate position of each second object in a three-dimensional rectangular coordinate system established with the first object as the origin, or may be the coordinate position of each second object in a spherical coordinate system established with the first object as the origin. This is not limited in the present embodiment.

[0056] For example, a simulated physical celestial model - the three-body model can be used. For example, the earth revolves around three stars (the sun). Due to the complex forces, the orbit becomes disordered, and the three-body problem is mathematically unsolvable and almost impossible to crack within the algorithm.

[0057] Step S208: Allocate the first key to the first service.

[0058] In this embodiment, after determining the first key, the target server can assign the first key to the first service, and the above-mentioned assignment process can be to return a response message to the terminal device that sent the first request message, and the response message carries the first key so that the terminal device uses the first key to process the first service. Optionally, if it is a processing flow within the same device, that is, the first request message is transmitted between different modules inside the device, the first service and the first key can also be associated inside the device. The first key can be used to encrypt the business data of the first service, or the first key can be used to generate the first service. For example, a digital signature can be generated based on the first key to prevent forgery by others. This is not limited in this embodiment.

[0059] In this embodiment, when the first service requires multiple keys, multiple applications may be made to allocate the first key, wherein the key allocated in each application may be a different key, and the keys allocated in different applications may correspond to different times and have different values.

[0060] Through the above steps, a target object model is started, wherein the target object model includes a first object and at least two second objects, and the target object model is used to simulate the running trajectory of the first object under the action of the force of each of the at least two second objects in the process of the first object rotating around the at least two second objects; a first request message is obtained, wherein the first request message is used to request that a key corresponding to the first business be assigned to the first business; a first key is generated according to the first position information of each second object, wherein the first position information of each second object is used to indicate the relative position of each second object to the first object at a first moment; and the first key is assigned to the first business, thereby solving the problem of poor business execution effect caused by low security of the key in the request message processing method in the related art, and improving the reliability of business execution.

[0061] In an exemplary embodiment, before starting the target object model, the method further includes:

[0062] S11, constructing a first object and at least two second objects;

[0063] S12, assigning object parameters to the first object and each second object respectively, to obtain the object parameter of the first object and the object parameter of each second object;

[0064] S13, constructing a target object model according to the object parameters of the first object and the object parameters of each second object.

[0065] In this embodiment, before starting the target object model, the target server may first construct the target object model. Optionally, the process of constructing the target object model may be to first construct a first object and at least two second objects, and then construct the target object model based on the first object and the at least two second objects. The above-mentioned target object model may include a first object and at least two second objects, but the number of the second objects is not limited. The number of the second objects in the target object model may be two, three, etc., but is not limited thereto, and is not limited to this in this embodiment.

[0066] Optionally, the shape, volume and mass of the first object and the second object may affect the constructed target object model. Therefore, when constructing the first object and at least two second objects, object parameters may be assigned to the first object and each second object respectively to obtain the object parameters of the first object and each second object. The above object parameters include parameters such as volume and mass. The object parameters may be set according to business requirements. That is, when business requirements are different, the object parameters will also be different, so that the constructed target object model is suitable for business requirements.

[0067] Optionally, after obtaining the object parameters of the first object and the object parameters of each second object, the target server can construct a target object model based on the object parameters of the first object and the object parameters of each second object. The above process of constructing the target object model can be to configure the positional relationship between the first object and the second object based on the object parameters of the first object and the object parameters of each second object, and calculate the force relationship between the first object and the second object, so as to construct the target object model.

[0068] It should be noted that when the constructed target object model includes only one first object and one second object, the second object and the first object are predictable at every moment. In this case, the first key constructed by the target server is easy to be cracked, and the security of using the key for data transmission is low. In order to improve the security of data transmission, in this embodiment, the number of second objects included in the target object model is set to at least two.

[0069] For example, a three-body physics model (an example of the target physics model) is constructed, including a planet (planet D, an example of the first object) and three stars (three stars A, B, C, an example of the second object) to simulate a planet orbiting around three stars. This model is equivalent to the Earth orbiting around three suns. At this time, the Earth's orbit is not only a circular orbit due to the complex forces, but also a disordered and completely unpredictable motion trajectory. It is very difficult to predict and is an unsolvable problem in numbers. In other words, the key generated based on the instantaneous parameters of the model cannot be copied and has high security.

[0070] Through this embodiment, by assigning object parameters to objects included in the object model and constructing the object model according to the assigned object parameters, the rationality of model generation can be improved.

[0071] In an exemplary embodiment, assigning object parameters to the first object and each second object respectively to obtain the object parameters of the first object and each second object includes:

[0072] S21, determining an initial position of the first object and an object position of each second object, wherein the object position of each second object does not change during the operation of the target object model;

[0073] S22, determining initial operating parameters of the first object, wherein the initial operating parameters include an initial operating direction, and the initial operating direction is different from a direction of a resultant force of each second object acting on the first object.

[0074] In the process of building the model, the initial position of the object directly affects the force relationship between the objects, and further affects the unpredictability of the object's trajectory. In this embodiment, the initial position of the first object and the object position of each second object can be determined, and then the target object model is generated based on the initial position and the object position.

[0075] In the process of constructing the target object model, if both the first object and the second object are set to a moving state, the complexity of the model will be greatly increased, thereby consuming a large amount of resources. In this embodiment, the second object in the target object model can be set to a fixed state, that is, the object position of each second object does not change during the operation of the target object model, so as to simplify the target object model and reduce the resources consumed in the process of constructing the target object model.

[0076] Optionally, since the first object moves under the combined force of at least two objects, its movement trajectory will also be affected by initial operation parameters (e.g., initial operation direction). For example, when the force applied to the first object at the initial moment is in the same direction as the combined force of each second object applied to the first object, the first object will move regularly around the second object. In this embodiment, after determining the initial position of the first object and the object position of each second object, the initial operation parameters of the first object can be determined, the initial operation parameters including the initial operation direction, and the initial operation direction is different from the combined force direction of each second object applied to the first object.

[0077] It should be noted that after the target object model is started, the first object is in motion, while the second object is in a stationary state. Therefore, the object parameters of the first object have one more operating parameter than the object parameters of the second object, that is, the object parameters of the first object include the initial position and initial operating parameters of the first object, and the object parameters of each second object include the object position of each second object. In addition to the initial operating direction, the initial operating parameters may also include the initial operating speed of the first object, and may also include other parameters that affect the operation of the first object (for example, acceleration during operation), which are not limited in this embodiment. In addition, the object parameters of the first object and the object parameters of the second object may also include object mass, object volume, etc., which are not limited in this embodiment.

[0078] For example, in the process of constructing the target object model, the initial position of the planet and the initial running speed of the planet (an example of initial running parameters) can be determined as the object parameters of the planet and the initial position of the star can be used as the object parameters of the star.

[0079] Through this embodiment, by setting the object position and motion parameters of the moving object in the object model and setting the object position of the fixed object, the unpredictability of the constructed object model can be improved, thereby improving the security of the generated key, and can also simplify the physical model and reduce the consumption of system resources for model operation.

[0080] In an exemplary embodiment, the first position information of each second object is the position coordinates of each second object in a three-dimensional coordinate system with the first object as the origin at a first moment. For example, according to the universal gravitation formula, the three-body motion can be calculated and simulated, and at a certain moment, a three-dimensional coordinate system is constructed with the planet as the origin, and the coordinates of the three stars at this time are recorded as A(x1, y1, z1), B(x2, y2, z2), and C(x3, y3, z3).

[0081] Correspondingly, generating a first key according to the first position information of each second object includes:

[0082] S31, determining a connection line between each second object and the first object according to the position coordinates of each second object, to obtain at least two connection lines, wherein the at least two connection lines correspond one-to-one to the at least two second objects;

[0083] S32, determining the angle between each two connecting lines of at least two connecting lines to obtain at least one angle;

[0084] S33: Generate a first key according to the length of each of the at least two connecting lines and the angle of each of the at least one angle.

[0085] In this embodiment, the connecting line between each second object and the first object can be determined based on the position coordinates of each second object to obtain at least two connecting lines, and the at least two connecting lines correspond one-to-one to the at least two second objects. That is, the number of connecting lines in this embodiment is equal to the number of second objects in the target object model.

[0086] The purpose of the above-mentioned connecting lines is to better calculate the distance between each second object and the first object in the target object model and the angle formed with other second objects. In this embodiment, the color and thickness of the connecting lines are not limited, and the above-mentioned connecting lines may not exist in the actual calculation, that is, the above-mentioned connecting lines may be virtual connecting lines.

[0087] Optionally, after obtaining at least two lines, the target server may determine the angle between each two lines of the at least two lines to obtain at least one angle, and the process of determining the angle may be calculated based on the position coordinates of each second object at the first moment. The calculation method may be to solve an equation in a three-dimensional coordinate system, which is not described in detail in this embodiment.

[0088] In this embodiment, after determining the length of each connection line and the angle of each angle, the target server can generate a first key based on the length of each connection line and the angle of each angle. Optionally, the first key can be generated based on the length of each connection line, or based on the angle of each angle. The first key is generated based on the length of each connection line and / or the angle of each angle, for example, by summing, weighted summing, etc., and the method for generating the first key is not limited in this embodiment.

[0089] For example, the server can establish a three-dimensional rectangular coordinate system with the planet as the coordinate origin, and determine the coordinate position of the star in the above coordinate system, and then determine the length of the line connecting the planet and the star and the angle between the lines in the above coordinate system, and generate a key based on the above length and angle.

[0090] Through this embodiment, a key is generated according to the position coordinates of the object in a three-dimensional coordinate system with one of the objects as the origin, which can improve the convenience of key generation.

[0091] In an exemplary embodiment, the at least two second objects are three second objects, for example, three stars; the at least two connecting lines are three connecting lines, and the at least one angle is three angles, that is, the number of second objects, connecting lines, and angles is three. Correspondingly, generating the first key according to the length of each connecting line in the at least two connecting lines and the angle of each angle in the at least one angle includes:

[0092] S41, determining an angle corresponding to each connecting line among the three angles, wherein the three angles correspond to the three connecting lines one by one;

[0093] S42, performing a target operation on the length of each connecting line and the angle corresponding to each connecting line to obtain three reference values, wherein each of the three reference values ​​is an integer;

[0094] S43, concatenate the three reference values ​​to obtain a first key.

[0095] In this embodiment, when the number of the second object, the lines, and the angles are all three, the target server may first make a one-to-one correspondence between the three angles and the three lines. The above correspondence may be a random selection of the corresponding angles and lines, or may be determined based on the adjacent relationship between the angles and the lines, which is not limited in this embodiment. Optionally, after determining the three lines and the angles corresponding to each line, the target server may perform a target operation on the length of each line and the angle corresponding to each line to obtain three reference values.

[0096] The above-mentioned target calculation operation can be multiplying the length of each connecting line by the sine value of the angle corresponding to the connecting line, or multiplying the length of each connecting line by the cosine value of the angle corresponding to the connecting line, or multiplying the length of each connecting line by the radian value corresponding to the angle corresponding to the connecting line, or other calculation operations, which are not limited in this embodiment.

[0097] Since when there are decimals in the three reference values, when the first key is generated according to the reference values, the amount of calculation will increase compared to when the reference values ​​are integers, thereby reducing the speed of generating the first key. Optionally, each of the three reference values ​​can be taken as an integer, for example, the three generated reference values ​​can be rounded and then concatenated. The rounding method can be rounded to the nearest integer, rounded up, or rounded down, which is not limited in this embodiment.

[0098] In addition, the process of splicing three reference values ​​to obtain the first key may be to arbitrarily splice the above reference values ​​at the target position, and the above target position may be the end position of the reference value or the beginning position of the above reference value. For example, when the above reference values ​​are 11, 22, and 33 respectively, 112233 may be used as the first key, or 113322 may be used as the first key.

[0099] Through this embodiment, the target operation is performed on the length of each connecting line and the angle corresponding to each connecting line to generate three reference values, and then the above reference values ​​are spliced ​​to generate the first key, which can simplify the process of generating the first key and improve the efficiency of generating the first key.

[0100] In an exemplary embodiment, after generating the first key according to the first position information of each second object, the method further includes:

[0101] S51, obtaining a timestamp of a second moment to obtain a target timestamp;

[0102] S52, concatenate the target timestamp with the first key to obtain an updated first key.

[0103] Since the length of the key will also affect the security of the key, when the length of the key increases, the security of the key will also increase accordingly. In this embodiment, after generating the first key according to the first position information of each second object, the timestamp of the second moment can be obtained to obtain the target timestamp. The timestamp can be a millisecond time, that is, the format of the target timestamp can be "day, minute, second, millisecond". The first moment and the second moment can be the same moment or different moments, which is not limited in this embodiment.

[0104] After obtaining the target timestamp, the target server can use the target timestamp to update the generated first key, and the target server can allocate the first service with the updated first key. Optionally, the target timestamp and the first key can be concatenated to obtain the updated first key. The process of concatenating the target timestamp and the first key to obtain the updated first key is similar to the process of concatenating the three reference values ​​to obtain the first key, which will not be described in detail in this embodiment.

[0105] For example, after obtaining the first key of 112233, the server can obtain the current time and generate a timestamp based on the obtained time. If the time obtained by the server is 21 days, 34 minutes, 56 seconds and 48 milliseconds, the generated timestamp can be 21345648. After concatenating the above timestamp with the generated key, the updated key is 11223321345648.

[0106] Through this embodiment, the timestamp and the key are concatenated to obtain an updated key, and the updated key is then allocated to the service, which can further improve the security of the generated key.

[0107] In an exemplary embodiment, after allocating the first key to the first service, the method further includes:

[0108] S61, periodically acquiring second position information of each second object, wherein the second position information of each second object is used to indicate a relative position of each second object and the first object at a third moment in each period;

[0109] S62, updating the first key according to the second position information of each second object to obtain an updated first key;

[0110] S63: Allocate the updated first key to the first service.

[0111] In this embodiment, the first key allocated to the first service may be used for a long time. For example, in the process of encrypting a file, the first key may be used for a long time. If the first key used is a fixed key, the security of the first service will be reduced.

[0112] Optionally, the target server may periodically update the first key. For example, the target server may obtain the second location information of each second object, and generate a key based on the second location information of the second object, thereby updating the first key, and assigning the updated first key to the first service. The manner in which the target server obtains the second location information, generates a key based on the second location information, and assigns the updated first key to the first service is similar to that in the aforementioned embodiment, and is not described in detail in this embodiment.

[0113] Here, the second position information of each second object is used to indicate the relative position of each second object to the first object at the third moment in each cycle. The third moment may be a moment after the first moment, which may be the starting moment of each cycle or other moments, which is not limited in this embodiment.

[0114] Through this embodiment, the security of data transmission can be improved by periodically generating and updating the keys allocated to the services.

[0115] In an exemplary embodiment, after allocating the first key to the first service, the method further includes:

[0116] S71, obtaining a second request message, where the second request message is used to request allocation of a key corresponding to the second service to the second service;

[0117] S72, generating a second key according to the third position information of each second object, wherein the third position information of each second object is used to indicate the relative position of each second object and the first object at the fourth moment;

[0118] S73: Allocate the second key to the second service.

[0119] In this embodiment, the target server may also obtain a second request message, and the second request message is used to request that a key corresponding to the second business be assigned to the second business. After obtaining the second request message, the target server may generate a second key based on the third position information of each second object, and assign the generated key to the second business. The method of generating the second key based on the third position information of each second object and assigning the generated key to the second business is similar to the method of generating the first key based on the first position information of each second object and assigning the generated first key to the first business in the aforementioned embodiment, and will not be described in detail in this embodiment. The third position information of each second object is used to indicate the relative position of each second object and the first object at the fourth moment.

[0120] It should be noted that the second service and the first service may be of the same type, for example, both are data encryption services; or the second service and the first service may be of different types, for example, the first service is a data encryption service and the second service is a digital signature service. This is not limited in this embodiment.

[0121] Through this embodiment, different keys are allocated to different services, which can improve the security during the service execution process.

[0122] The following is an explanation of the method for processing the request message in the embodiment of the present application in conjunction with an optional example. In this optional example, the first object is a planet, the second object is a star, the number of the second objects is three, and the target object model is a three-body physical model including a planet and three stars.

[0123] This optional example provides a periodic key maintenance strategy based on the three-body physics model, which can be applied to the key generation of system file transfer and the generation of encryption process offsets. It uses a simulated physical celestial model - the three-body model, assuming that the planet revolves around three stars (the sun). According to the universal gravitation formula, the three-body motion can be calculated and simulated. At a certain moment, a three-dimensional coordinate system is constructed with the planet as the origin, connecting the three stars respectively. The three-dimensional coordinates at this moment, as well as the angle and distance formed by the connection, are counted and encrypted to obtain the final key.

[0124] Periodic key generation can reduce the risk of project attacks and key leakage. It greatly improves the security of project data transmission. Since the three-body problem is also an unsolvable problem in mathematics, using an unsolvable problem in mathematics can greatly improve the security in the encryption process and model establishment, while also further avoiding the risk of being cracked. By constructing a corresponding physical three-body model that is constantly in orbit, the movement of the planet cannot be replicated due to the combined effect of several forces pulling each other, which greatly improves the security of the generated key.

[0125] In addition, periodic key updates can prevent the risk of human leakage and fixed key leakage, which plays a big role when the project has high security requirements. Finally, the reference of the model and the unique encryption algorithm are very new concepts. Constructing mathematical models and physical models for feasibility analysis can ensure that the generated keys have a high degree of security.

[0126] This optional example has the following advantages over the related art:

[0127] 1) Combined with the physical model - three-body motion encryption, it is almost impossible to imitate, and data security is greatly improved. That is, the physical model is used in the algorithm to increase the difficulty of decryption;

[0128] 2) Combined with the encryption of planets and planetary coordinates, the calculation method makes the key generation unique, that is, the key generation process cannot be copied, further improving the security of the generated key.

[0129] 3) The key is updated regularly, security is further improved, and it can be maintained periodically, which is very effective for projects that require periodic key maintenance;

[0130] 4) References to currently unsolvable mathematical problems are very suitable for cross-industry applications. Because the problems have no solutions, there is no risk of them being cracked.

[0131] Combination Figure 3 and Figure 4 As shown, the process of the method for processing the request message in this optional example may include the following steps:

[0132] Step S302, construct four types of stars and give them parameters of mass and volume.

[0133] Step S304, construct a three-body model and start it.

[0134] like Figure 4 As shown, a planet (planet is D) revolves around three stars (the three stars are A, B, and C). At this time, the orbit is very difficult to predict because of the complex forces.

[0135] Step S306, analyzing the forces and simulating the planetary revolution.

[0136] The forces acting on each planet are analyzed. Each planet is affected by three forces at the same time, namely, the gravitational forces of the other three planets. The relevant forces can be calculated using the universal gravitation formula, namely, formula (1).

[0137]

[0138] The force diagram in the three-body model is as follows Figure 5 As shown, the force exerted on planet D by star A is F2, the force exerted on planet D by star B is F1, and the force exerted on planet D by star C is F2.

[0139] Step S308: construct a coordinate system with the planet as the center of the three-dimensional coordinate system.

[0140] Construct a three-dimensional rectangular coordinate system with the planet as the origin, count and record the coordinates of three stars and one planet, and record the coordinates of the three stars as A(x1,y1,z1), B(x2,y2,z2), C(x3,y3,z3), and D(0,0,0) respectively.

[0141] Step S310, obtaining three angles formed by the lines connecting the planet and three stars.

[0142] The three stars are connected to the planets respectively, obtaining three lines and the angles between the three lines (the three angles are recorded as ∠A, ∠B, and ∠C).

[0143] Step S312, calculate the distances of the three stars from the planet

[0144] According to the distance formula between two points in a three-dimensional coordinate system, that is, formula (2), the distances from A, B, and C to the planet are calculated to be d1, d2, and d3, respectively.

[0145]

[0146] Step S314, generating an initial key according to the distance and angle.

[0147] Mixed operations can be performed on the distance between each two points and the three different angles. With the help of formula (3), three variables R1, R2, and R3 are obtained to participate in the final operation.

[0148]

[0149] The three values ​​do not retain decimal places. After removing the decimals, the three variables are spliced ​​at random positions to obtain a preliminary periodic key.

[0150] Step S312, obtaining a timestamp, and generating a final key according to the timestamp and the initial key.

[0151] Get the millisecond timestamp in the program. The timestamp format is 'day, minute, second, millisecond'. After the timestamp is obtained, it is spliced ​​into the final result to get the final key result.

[0152] Through this optional example, a highly random physical model is constructed to calculate the instantaneous coordinates and the angle formed, and the calculation results are spliced ​​with a millisecond-level timestamp to generate the final key. Both the algorithm security and non-repeatability have high practical value and can be widely used in multiple application scenarios.

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

[0154] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the relevant technology, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM (Read-Only Memory, read-only memory) / RAM (Random Access Memory, random access memory), a disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0155] According to another aspect of an embodiment of the present application, a request message processing device for implementing the above-mentioned request message processing method is also provided. Figure 6 is a structural block diagram of an optional request message processing device according to an embodiment of the present application, such as Figure 6 As shown, the device may include:

[0156] A starting unit 602 is used to start a target object model, wherein the target object model includes a first object and at least two second objects, and the target object model is used to simulate a running trajectory of the first object under the action of the force of each of the at least two second objects in a process in which the first object rotates around the at least two second objects;

[0157] A first obtaining unit 604, connected to the starting unit 602, is used to obtain a first request message, wherein the first request message is used to request allocation of a key corresponding to the first service for the first service;

[0158] A first generating unit 606, connected to the first acquiring unit 604, is used to select a target venous region from a plurality of venous regions according to a predetermined initial random number, and randomly select at least one reference position from the target venous region;

[0159] The first allocating unit 608 is connected to the first generating unit 606 and is used to allocate the first key to the first service.

[0160] It should be noted that the starting unit 602 in this embodiment can be used to execute the above step S202, the first acquisition unit 604 in this embodiment can be used to execute the above step S204, the first generation unit 606 in this embodiment can be used to execute the above step S206, and the first allocation unit 608 in this embodiment can be used to execute the above step S208.

[0161] Through the above module, a target object model is started, wherein the target object model includes a first object and at least two second objects, and the target object model is used to simulate the running trajectory of the first object under the action of the force of each of the at least two second objects in the process of the first object rotating around the at least two second objects; a first request message is obtained, wherein the first request message is used to request that a key corresponding to the first business be assigned to the first business; a first key is generated according to the first position information of each second object, wherein the first position information of each second object is used to indicate the relative position of each second object to the first object at a first moment; the first key is assigned to the first business, thereby solving the problem of poor business execution effect caused by low security of the key in the request message processing method in the related art, and improving the reliability of business execution.

[0162] In an exemplary embodiment, the above device further comprises:

[0163] A first construction unit, used for constructing a first object and at least two second objects before starting the target object model;

[0164] A second allocating unit is used to allocate object parameters to the first object and each second object respectively, so as to obtain the object parameters of the first object and the object parameters of each second object;

[0165] The second construction unit is used to construct a target object model according to the object parameters of the first object and the object parameters of each second object.

[0166] In an exemplary embodiment, the second allocation unit comprises:

[0167] A first determination module, configured to determine an initial position of the first object and an object position of each second object, wherein the object position of each second object does not change during the operation of the target object model;

[0168] A second determination module is used to determine initial operating parameters of the first object, wherein the initial operating parameters include an initial operating direction, and the initial operating direction is different from the direction of the resultant force of each second object acting on the first object;

[0169] The object parameters of the first object include an initial position and initial operating parameters of the first object, and the object parameters of each second object include an object position of each second object.

[0170] In an exemplary embodiment, the first position information of each second object is the position coordinates of each second object in a three-dimensional coordinate system with the first object as the origin at a first moment; the first generating unit includes:

[0171] A third determining module is used to determine a line between each second object and the first object according to the position coordinates of each second object to obtain at least two lines, wherein the at least two lines correspond to the at least two second objects in a one-to-one manner;

[0172] A fourth determination module is used to determine the angle between each two connecting lines of at least two connecting lines to obtain at least one angle;

[0173] A generating module is used to generate a first key according to the length of each of the at least two connecting lines and the angle of each of the at least one included angle.

[0174] In an exemplary embodiment, the at least two second objects are three second objects; the at least two connecting lines are three connecting lines; and the at least one angle is three angles; and the generating module includes:

[0175] A determination submodule is used to determine the angle corresponding to each connecting line among the three angles, wherein the three angles correspond to the three connecting lines one by one;

[0176] An execution submodule is used to perform a target operation on the length of each connection line and the angle of the angle corresponding to each connection line to obtain three reference values, wherein each of the three reference values ​​is an integer;

[0177] The splicing submodule is used to splice the three reference values ​​to obtain a first key.

[0178] In an exemplary embodiment, the above device further comprises:

[0179] A second acquisition unit is used to acquire a timestamp at a second moment after generating a first key according to the first position information of each second object to obtain a target timestamp;

[0180] The concatenation unit is used to concatenate the target timestamp with the first key to obtain an updated first key.

[0181] In an exemplary embodiment, the above device further comprises:

[0182] A third acquisition unit is used to periodically acquire second position information of each second object after allocating the first key to the first service, wherein the second position information of each second object is used to indicate a relative position of each second object to the first object at a third moment in each period;

[0183] An updating unit, configured to update the first key according to the second position information of each second object to obtain an updated first key;

[0184] The third allocation unit is configured to allocate the updated first key to the first service.

[0185] In an exemplary embodiment, the above device further comprises:

[0186] A fourth acquisition unit, configured to acquire a second request message after allocating the first key to the first service, wherein the second request message is used to request allocation of a key corresponding to the second service to the second service;

[0187] A second generating unit, configured to generate a second key according to third position information of each second object, wherein the third position information of each second object is used to indicate a relative position of each second object to the first object at a fourth moment;

[0188] The fourth allocating unit is configured to allocate the second key to the second service.

[0189] It should be noted that the examples and application scenarios implemented by the above modules and corresponding steps are the same, but are not limited to the contents disclosed in the above embodiments. It should be noted that the above modules as part of the device can be run in Figure 1 In the hardware environment shown, it can be implemented by software or by hardware, wherein the hardware environment includes a network environment.

[0190] According to another aspect of the embodiments of the present application, a storage medium is further provided. Optionally, in this embodiment, the storage medium can be used to execute the program code of any of the request message processing methods in the embodiments of the present application.

[0191] Optionally, in this embodiment, the storage medium may be located on at least one network device among a plurality of network devices in the network shown in the above embodiment.

[0192] Optionally, in this embodiment, the storage medium is configured to store program codes for executing the following steps:

[0193] S1, start a target object model, wherein the target object model includes a first object and at least two second objects, and the target object model is used to simulate a running trajectory of the first object under the action of the force of each of the at least two second objects in a process in which the first object rotates around the at least two second objects;

[0194] S2, obtaining a first request message, where the first request message is used to request allocation of a key corresponding to the first service to the first service;

[0195] S3, generating a first key according to the first position information of each second object, wherein the first position information of each second object is used to indicate the relative position of each second object with respect to the first object at the first moment;

[0196] S4, allocating the first key to the first service.

[0197] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, which will not be described in detail in this embodiment.

[0198] Optionally, in this embodiment, the storage medium may include, but is not limited to, various media that can store program codes, such as a USB flash drive, a ROM, a RAM, a mobile hard disk, a magnetic disk, or an optical disk.

[0199] According to another aspect of an embodiment of the present application, an electronic device for implementing the above-mentioned request message processing method is also provided. The electronic device may be a server, a terminal, or a combination thereof.

[0200] Figure 7 is a structural block diagram of an optional electronic device according to an embodiment of the present application, such as Figure 7 As shown, it includes a processor 702, a communication interface 704, a memory 706 and a communication bus 708, wherein the processor 702, the communication interface 704 and the memory 706 communicate with each other through the communication bus 708, wherein,

[0201] Memory 706, used to store computer programs;

[0202] The processor 702 is used to implement the following steps when executing the computer program stored in the memory 706:

[0203] S1, start a target object model, wherein the target object model includes a first object and at least two second objects, and the target object model is used to simulate a running trajectory of the first object under the action of the force of each of the at least two second objects in a process in which the first object rotates around the at least two second objects;

[0204] S2, obtaining a first request message, where the first request message is used to request allocation of a key corresponding to the first service to the first service;

[0205] S3, generating a first key according to the first position information of each second object, wherein the first position information of each second object is used to indicate the relative position of each second object with respect to the first object at the first moment;

[0206] S4, allocating the first key to the first service.

[0207] Optionally, in this embodiment, the communication bus may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 7 The communication interface is used for communication between the electronic device and other devices.

[0208] The memory may include RAM, or may include non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0209] As an example, the memory 706 may include, but is not limited to, the start unit 602, the first acquisition unit 604, the first generation unit 606, and the first allocation unit 608 in the request message processing device. In addition, other module units in the request message processing device may also be included but are not limited to, which will not be repeated in this example.

[0210] The above-mentioned processor can be a general-purpose processor, which can include but not be limited to: CPU (Central Processing Unit), NP (Network Processor), etc.; it can also be DSP (Digital Signal Processing), ASIC (Application Specific Integrated Circuit), FPGA (Field-Programmable Gate Array) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.

[0211] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, and this embodiment will not be described in detail here.

[0212] It can be understood by those skilled in the art that Figure 7 The structure shown is for illustration only. The device for implementing the above request message processing method may be a terminal device, which may be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a PDA, a mobile Internet device (Mobile Internet Devices, MID), a PAD, and other terminal devices. Figure 7 The structure of the electronic device is not limited. Figure 7 More or fewer components (such as network interfaces, display devices, etc.) shown in, or having Figure 7 Different configurations shown.

[0213] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the hardware related to the terminal device through a program, and the program can be stored in a computer-readable storage medium, which can include: a flash drive, ROM, RAM, a magnetic disk or an optical disk, etc.

[0214] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0215] If the integrated units in the above embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in the above computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the relevant technology, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling one or more computer devices (which can be personal computers, servers or network devices, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application.

[0216] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0217] In the several embodiments provided in the present application, it should be understood that the disclosed client can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, 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 units or modules, which can be electrical or other forms.

[0218] The units described 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 provided in this embodiment.

[0219] 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.

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

Claims

1. A method for processing a request message, characterized in that: include: Starting a target object model, wherein the target object model includes a first object and at least two second objects, and the target object model is used to simulate a running trajectory of the first object under the action of the force of each of the at least two second objects during the process of the first object rotating around the at least two second objects; Obtaining a first request message, wherein the first request message is used to request allocation of a key corresponding to the first service to a first service; Generate a first key according to the first position information of each second object, wherein the first position information of each second object is used to represent the relative position of each second object and the first object at a first moment; assigning the first key to the first service; Among them, the first position information of each second object is the position coordinates of each second object in the three-dimensional coordinate system with the first object as the origin at the first moment; generating the first key according to the first position information of each second object includes: determining the connecting line between each second object and the first object according to the position coordinates of each second object, and obtaining at least two connecting lines, wherein the at least two connecting lines correspond one-to-one to the at least two second objects; determining the angle between each two connecting lines of the at least two connecting lines, and obtaining at least one angle; generating the first key according to the length of each connecting line of the at least two connecting lines and the angle of each angle of the at least one angle.

2. The method according to claim 1, characterized in that Before starting the target object model, the method further includes: constructing the first object and the at least two second objects; Assigning object parameters to the first object and each of the second objects respectively, to obtain the object parameters of the first object and the object parameters of each of the second objects; The target object model is constructed according to the object parameters of the first object and the object parameters of each of the second objects.

3. The method according to claim 2, characterized in that The step of respectively assigning object parameters to the first object and each of the second objects to obtain the object parameters of the first object and the object parameters of each of the second objects includes: Determining an initial position of the first object and an object position of each of the second objects, wherein the object position of each of the second objects does not change during the operation of the target object model; Determining initial operating parameters of the first object, wherein the initial operating parameters include an initial operating direction, and the initial operating direction is different from a direction of a resultant force of each of the second objects acting on the first object; The object parameters of the first object include the initial position of the first object and the initial operating parameters, and the object parameters of each second object include the object position of each second object.

4. The method according to claim 1, characterized in that: The at least two second objects are three second objects; the at least two connecting lines are three connecting lines, and the at least one angle is three angles; generating the first key according to the length of each connecting line of the at least two connecting lines and the angle of each angle of the at least one angle comprises: Determine an angle among the three angles corresponding to each of the connecting lines, wherein the three angles correspond to the three connecting lines one by one; Performing a target operation on the length of each connecting line and the angle corresponding to each connecting line to obtain three reference values, wherein each of the three reference values ​​is an integer; The three reference values ​​are concatenated to obtain the first key.

5. The method according to claim 1, characterized in that After generating the first key according to the first position information of each second object, the method further includes: Get the timestamp of the second moment and get the target timestamp; The target timestamp is concatenated with the first key to obtain an updated first key.

6. The method according to claim 1, characterized in that After allocating the first key to the first service, the method further includes: periodically acquiring second position information of each second object, wherein the second position information of each second object is used to indicate a relative position of each second object and the first object at a third moment in each period; updating the first key according to the second position information of each second object to obtain an updated first key; The updated first key is allocated to the first service.

7. The method according to any one of claims 1 to 6, characterized in that After allocating the first key to the first service, the method further includes: Obtaining a second request message, wherein the second request message is used to request allocation of a key corresponding to the second service to the second service; Generate a second key according to the third position information of each second object, wherein the third position information of each second object is used to indicate the relative position of each second object and the first object at a fourth moment; The second key is assigned to the second service.

8. A request message processing device, characterized in that: include: a start unit, configured to start a target object model, wherein the target object model includes a first object and at least two second objects, and the target object model is configured to simulate a running trajectory of the first object under the action of the force of each of the at least two second objects during the process in which the first object rotates around the at least two second objects; a first acquisition unit, configured to acquire a first request message, wherein the first request message is configured to request that a key corresponding to the first service be allocated to a first service; a first generating unit, configured to generate a first key according to first position information of each second object, wherein the first position information of each second object is used to represent a relative position of each second object and the first object at a first moment; A first allocating unit, configured to allocate the first key to the first service; Among them, the first position information of each second object is the position coordinates of each second object in the three-dimensional coordinate system with the first object as the origin at the first moment; the first generation unit includes: a third determination module, used to determine the connecting line between each second object and the first object according to the position coordinates of each second object, and obtain at least two connecting lines, wherein the at least two connecting lines correspond one-to-one to the at least two second objects; a fourth determination module, used to determine the angle between each two connecting lines of the at least two connecting lines, and obtain at least one angle; a generation module, used to generate the first key according to the length of each connecting line of the at least two connecting lines and the angle of each angle of the at least one angle.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program executes the method according to any one of claims 1 to 7 when executed.

10. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 7 through the computer program.

Citation Information

Patent Citations

  • Autonomous navigation simulation test system based on earth-sun-moon integrated sensor

    CN102175259A

  • Cryptographic operation, method for creating working key, cryptographic service platform and device

    CN109067528A

  • Method and device for generation of secret key

    US20130202108A1