Security information code generation method and device, and electronic device

CN115329352BActive Publication Date: 2026-10-09CHINA TELECOM CORP LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210891006.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-27
Publication Date
2026-10-09
Estimated Expiration
2042-07-27

AI Technical Summary

Technical Problem

[0004]本申请实施例提供一种安全信息码生成方法及装置,用于解决现有技术中生成的安全信息码具有可预测性的缺陷

Benefits of technology

[0049]The security information code generation method disclosed in this application obtains the wave information of at least two crustal motion waves detected at the same time. The wave information includes: the position of the wave center point of the crustal motion wave; the position coordinates of the first meeting point of two adjacent crustal motion waves during propagation; and the security information code is generated based on the calculation result obtained by performing a preset calculation on the position coordinates, thereby improving the unpredictability of the security information code.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115329352B_ABST
    Figure CN115329352B_ABST
Patent Text Reader

Abstract

The application discloses a kind of security information code generation method and device, belong to computer technical field.The method comprises: obtaining the wave information of at least two crustal movement waves detected at the same time respectively, wherein the wave information includes: the fluctuation center point position of crustal movement wave;The position coordinates of the first meeting point of two of the adjacent fluctuation center point position of the crustal movement wave in propagation process are obtained;According to the operation result obtained by performing predetermined operation on the position coordinates, generate security information code.This method generates security information code based on the wave information of crustal movement wave, combines the randomness and unpredictability of crustal movement wave, effectively improves the unpredictability of security information code generated based on the wave information of crustal movement wave.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to methods and apparatus for generating security information codes, as well as electronic devices and computer-readable storage media. Background Technology

[0002] Data and information security has wide applications in network data transmission, data storage, and login verification. The security of security information codes, such as encryption keys used for data encryption, digital tokens used for signing, and login passwords used for login verification, is the core of data security technology. Current technologies can generate security information codes (such as encryption keys or login passwords) by generating random numbers. However, modern computer programs and algorithms cannot generate truly random numbers, leading to predictable security information codes and thus posing security vulnerabilities in scenarios using these codes.

[0003] It is evident that existing methods for generating security information codes based on random numbers still require improvement. Summary of the Invention

[0004] This application provides a method and apparatus for generating security information codes, which addresses the defect of predictability in security information codes generated in the prior art.

[0005] In a first aspect, embodiments of this application provide a method for generating a security information code, including:

[0006] Acquire the wave information of at least two crustal motion waves detected at the same time, wherein the wave information includes: the position of the wave center point of the crustal motion wave;

[0007] Obtain the coordinates of the first meeting point of two adjacent crustal motion waves during their propagation;

[0008] A security information code is generated based on the calculation result obtained by performing a preset calculation on the location coordinates.

[0009] Optionally, the location coordinates are represented by longitude and latitude values, and the step of generating a security information code based on the calculation result obtained by performing a preset calculation on the location coordinates includes:

[0010] The longitude and latitude values ​​of the location coordinates are fused to obtain a first value;

[0011] Based on the values ​​of each digit of the first numerical value, the first sequence is obtained;

[0012] The first sequence is encrypted using a secure hash algorithm to obtain the second sequence;

[0013] A preset number of items are randomly selected from the second sequence to generate a security information code.

[0014] Optionally, the step of performing a fusion operation on the location coordinates using longitude and latitude values ​​to obtain a first value includes:

[0015] A first transformation is performed on the first coordinate value of each of the location coordinates to obtain the weight corresponding to the location coordinate, wherein the first coordinate value is: the longitude value or the latitude value;

[0016] Multiply the second coordinate value of each of the said position coordinates by the weight corresponding to the corresponding position coordinate to obtain the second value corresponding to the corresponding position coordinate, wherein the second coordinate value is the coordinate value of the position coordinate other than the first coordinate value;

[0017] The second values ​​corresponding to each of the aforementioned position coordinates are summed to obtain the first value.

[0018] Optionally, the wave information further includes: propagation speed, and the step of obtaining the position coordinates of the first meeting point of two adjacent crustal motion waves during propagation includes:

[0019] By taking two crustal motion waves whose center points are adjacent to each other as a group of crustal motion waves, at least one group of crustal motion waves can be obtained;

[0020] Based on the position of the wave center point of each crustal movement wave in each group, calculate the wave center spacing corresponding to each group of crustal movement waves.

[0021] For each group of crustal motion waves, calculate the propagation time when the sum of the propagation distances of the crustal motion waves in that group, after they start propagating simultaneously from the corresponding wave center point at the corresponding propagation speed, is equal to the distance between the wave centers. This time is taken as the first encounter propagation time of the crustal motion waves in that group.

[0022] Based on the propagation time of the first encounter of each group of crustal movement waves, the position coordinates reached by the first crustal movement wave in the group after it begins to propagate along the target direction for the first encounter propagation time are determined, and these coordinates are used as the position coordinates of the first encounter of the group of crustal movement waves. The target direction is the direction from the wave center point of the first crustal movement wave to the wave center point of the second crustal movement wave in the group of crustal movement waves.

[0023] Optionally, acquiring the wave information of at least two crustal motion waves detected at the same time includes:

[0024] A specified number of the crustal movement detection devices are randomly selected from among multiple crustal movement detection devices set up in different geographical regions;

[0025] Obtain the fluctuation information of at least two crustal motion waves detected at the same time by the specified number of crustal motion detection devices.

[0026] Secondly, embodiments of this application provide a security information code generation apparatus, comprising:

[0027] The wave information acquisition module is used to acquire the wave information of at least two crustal movement waves detected at the same time, wherein the wave information includes: the position of the wave center point of the crustal movement wave;

[0028] The wave encounter location coordinate acquisition module is used to acquire the location coordinates of the first encounter point of two adjacent crustal motion waves during their propagation.

[0029] The security information code generation module is used to generate a security information code based on the calculation result obtained by performing a preset calculation on the location coordinates.

[0030] Optionally, the location coordinates are represented by longitude and latitude values, and the security information code generation module is further used for:

[0031] The longitude and latitude values ​​of the location coordinates are fused to obtain a first value;

[0032] Based on the values ​​of each digit of the first numerical value, the first sequence is obtained;

[0033] The first sequence is encrypted using a secure hash algorithm to obtain the second sequence;

[0034] A preset number of items are randomly selected from the second sequence to generate a security information code.

[0035] Optionally, the step of performing a fusion operation on the location coordinates using longitude and latitude values ​​to obtain a first value includes:

[0036] A first transformation is performed on the first coordinate value of each of the location coordinates to obtain the weight corresponding to the location coordinate, wherein the first coordinate value is: the longitude value or the latitude value;

[0037] Multiply the second coordinate value of each of the said position coordinates by the weight corresponding to the corresponding position coordinate to obtain the second value corresponding to the corresponding position coordinate, wherein the second coordinate value is the coordinate value of the position coordinate other than the first coordinate value;

[0038] The second values ​​corresponding to each of the aforementioned position coordinates are summed to obtain the first value.

[0039] Optionally, the wave information further includes: propagation speed; the wave encounter location coordinate acquisition module is further used for:

[0040] By taking two crustal motion waves whose center points are adjacent to each other as a group of crustal motion waves, at least one group of crustal motion waves can be obtained;

[0041] Based on the position of the wave center point of each crustal movement wave in each group, calculate the wave center spacing corresponding to each group of crustal movement waves.

[0042] For each group of crustal motion waves, calculate the propagation time when the sum of the propagation distances of the crustal motion waves in that group, after they start propagating simultaneously from the corresponding wave center point at the corresponding propagation speed, is equal to the distance between the wave centers. This time is taken as the first encounter propagation time of the crustal motion waves in that group.

[0043] Based on the propagation time of the first encounter of each group of crustal movement waves, the position coordinates reached by the first crustal movement wave in the group after it begins to propagate along the target direction for the first encounter propagation time are determined, and these coordinates are used as the position coordinates of the first encounter of the group of crustal movement waves. The target direction is the direction from the wave center point of the first crustal movement wave to the wave center point of the second crustal movement wave in the group of crustal movement waves.

[0044] Optionally, the fluctuation information acquisition module is further configured to:

[0045] A specified number of the crustal movement detection devices are randomly selected from among multiple crustal movement detection devices set up in different geographical regions;

[0046] Obtain the fluctuation information of at least two crustal motion waves detected at the same time by the specified number of crustal motion detection devices.

[0047] Thirdly, embodiments of this application also disclose an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the security information code generation method described in embodiments of this application.

[0048] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, performs the steps of the security information code generation method disclosed in embodiments of this application.

[0049] The security information code generation method disclosed in this application obtains the wave information of at least two crustal motion waves detected at the same time. The wave information includes: the position of the wave center point of the crustal motion wave; the position coordinates of the first meeting point of two adjacent crustal motion waves during propagation; and the security information code is generated based on the calculation result obtained by performing a preset calculation on the position coordinates, thereby improving the unpredictability of the security information code.

[0050] The above description is only an overview of the technical solution of this application. In order to better understand the technical means of this application and to implement it in accordance with the contents of the specification, and to make the above and other objects, features and advantages of this application more obvious and understandable, the following are specific embodiments of this application. Attached Figure Description

[0051] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0052] Figure 1 This is a flowchart of the security information code generation method in the embodiments of this application;

[0053] Figure 2 This is a schematic diagram of the method for determining the first meeting point of crustal movement waves in an embodiment of this application;

[0054] Figure 3 This is a schematic diagram of the security information code generation device in the embodiments of this application;

[0055] Figure 4 A block diagram schematically illustrates an electronic device for performing the method according to this application; and

[0056] Figure 5 A storage unit for holding or carrying program code implementing the method according to this application is illustrated schematically. Detailed Implementation

[0057] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0058] Crustal movement is unpredictable and occurs constantly. The security information code generation method disclosed in the embodiments of this application, by combining the randomness of crustal movement with random algorithms in a computer system, generates security information codes, thereby increasing the unpredictability of the security information codes, effectively increasing the difficulty of cracking them, and improving the application scenarios and data security of the security information codes.

[0059] like Figure 1 As shown in the embodiment of this application, a method for generating a security information code includes steps 110 to 130.

[0060] Step 110: Obtain the fluctuation information of at least two crustal movement waves detected at the same time, wherein the fluctuation information includes the position of the fluctuation center point of the crustal movement wave.

[0061] In the embodiments of this application, crustal movement detection devices are pre-installed in different geographical regions. These devices then detect crustal movement in the corresponding geographical regions and collect information on the fluctuations of crustal movement waves within those regions. These different geographical regions can be different administrative regions or different cities.

[0062] In some embodiments of this application, the crustal movement detection device can be an earthquake monitoring instrument, a seismic wave detector, or similar equipment. Earthquake detection refers to the process of measuring and analyzing seismic waves. Seismic waves refer not only to the motion generated by earthquakes, but also to any force applied to the ground, even a force as small as a person walking on the ground, which can cause disturbances sufficient to generate seismic waves. Earthquake monitoring applications are interested in a very large range of ground motion. Therefore, the crustal movement detection device can detect vibrations from the Earth's surface and various strata below the surface and deep within the crust.

[0063] In existing technologies, some crustal motion detection devices can directly output the location of the wave center, the propagation velocity, and the intensity of crustal motion waves, among other attribute information. Some devices can output peak ground displacement (PGD), peak ground velocity (PGV), and peak ground acceleration (PGA) of the detected waves. Then, using a preset wave equation, the location of the wave center, propagation velocity, and the intensity of crustal motion waves, among other attribute information, can be calculated. Therefore, in this embodiment, existing technologies can be used to obtain the wave information of crustal motion waves detected by each detection device. This wave information includes the location of the wave center and the wave velocity.

[0064] Seismic signals are only related to a specific measurement location and time. Therefore, in the prior art, data from each seismic instrument used for earthquake monitoring has a timestamp and a known global location, which is standard practice. Each record from each seismic instrument must be able to be appended with its location, either through manual user input or through a GPS device or service. Modern seismographs also have built-in real-time clocks or can be synchronized with a precise reference time via online network time protocol servers, etc. In some other embodiments of this application, the fluctuation information of crustal motion waves detected by crustal motion detection devices deployed in different geographical areas can be acquired in real time. The device identifier of the crustal motion detection device, the acquisition timestamp of the crustal motion wave, and the fluctuation information of the crustal motion wave detected by the device at that timestamp are bound and stored in the cloud for use by an application that generates a security information code.

[0065] In some embodiments of this application, obtaining the fluctuation information of at least two crustal movement waves detected at the same time includes: randomly determining a specified number of crustal movement detection devices among multiple crustal movement detection devices set up in different geographical areas; and obtaining the fluctuation information of at least two crustal movement waves detected at the same time by the specified number of crustal movement detection devices. To ensure the random diversity of the data, in some embodiments of this application, each time a security information code is generated, the detection results of a specified number of crustal movement detection devices are randomly selected from the detection results of the multiple deployed crustal movement detection devices to calculate a random number sequence to generate the security information code. For example, N crustal movement detection devices can be randomly selected from M deployed crustal movement detection devices, and then a security information code can be generated based on the fluctuation information of the crustal movement waves detected by these N crustal movement detection devices. Here, M and N are natural numbers greater than 0, and M > N.

[0066] By detecting crustal movements in multiple geographical regions and randomly acquiring the detected crustal movement waves, the security of data acquisition can be improved.

[0067] In reality, crustal movement detection devices set up in different geographical areas may detect one or more center points of crustal movement waves. In this embodiment, a crustal movement wave corresponding to the same center point is defined as a single crustal movement wave. By filtering the crustal movement waves detected by the aforementioned N crustal movement detection devices, at least two of the crustal movement waves are selected for subsequent generation of security information codes.

[0068] Step 120: Obtain the position coordinates of the first meeting point of the two adjacent crustal motion waves during their propagation.

[0069] The propagation speed of seismic waves is related to the actual propagation medium, and the direction of propagation also changes during the propagation process due to the complexity of the Earth's crust. In the embodiments of this application, based on the characteristic that seismic waves spread outward from the epicenter, the propagation process of crustal motion waves is simulated. It is assumed that the propagation speed and direction of crustal motion waves remain constant when they propagate from the wave center outward, thereby analyzing the propagation and encounter of two crustal motion waves.

[0070] As previously stated, the wave information includes the location of the wave center point and the propagation speed. In some embodiments of this application, obtaining the coordinates of the first meeting point of two adjacent crustal motion waves during propagation includes sub-steps 1201 to 1204.

[0071] The following examples illustrate the specific implementation of each sub-step for obtaining the position coordinates of the first meeting point of two adjacent crustal motion waves during their propagation.

[0072] Sub-step 1201: Take two crustal motion waves whose center points are adjacent as a group of crustal motion waves to obtain at least one group of crustal motion waves.

[0073] As mentioned earlier, crustal movement detection equipment can detect minute vibrations. Therefore, in the embodiments of this application, the center points of crustal movement waves detected by crustal movement detection equipment located in adjacent geographical areas are usually also adjacent. Figure 2 Taking the deployment location relationship of the crustal movement detection equipment as an example, the geographical area 210 where crustal movement detection equipment A is deployed is adjacent to the geographical areas 220, 230 and 240 where crustal movement detection equipment B, C and D are deployed. Therefore, during the crustal movement wave detection process, the wave center point a of the crustal movement wave detected by crustal movement detection equipment A is also adjacent to the wave center points b, c and d of the crustal movement waves detected by crustal movement detection equipment B, C and D respectively.

[0074] To obtain more random data based on crustal movement waves, in the embodiments of this application, the crustal movement waves selected in the aforementioned steps are first combined in pairs according to the principle of adjacent wave center points to obtain one or more sets of crustal movement waves. Figure 2Taking the wave center points a, b, c, and d as examples, since the wave center points a, b, c, and d are all adjacent to each other, after taking the two crustal movement waves with adjacent positions as a group of crustal movement waves, we can obtain 6 groups of crustal movement waves, which are: the combination of crustal movement waves corresponding to wave center points a and b respectively, the combination of crustal movement waves corresponding to wave center points a and c respectively, the combination of crustal movement waves corresponding to wave center points a and d respectively, the combination of crustal movement waves corresponding to wave center points b and c respectively, the combination of crustal movement waves corresponding to wave center points b and d respectively, and the combination of crustal movement waves corresponding to wave center points b and d respectively.

[0075] Sub-step 1202: Based on the position of the wave center point of each crustal movement wave in each group of crustal movement waves, calculate the wave center spacing corresponding to each group of crustal movement waves.

[0076] In embodiments of this application, the wave center spacing is used to indicate the distance between the wave center points of two crustal motion waves. The wave center spacing can be a minimum spherical distance or a straight-line distance.

[0077] Furthermore, given the coordinates of the two wave centers in a set of crustal motion waves, existing methods can be used to calculate the distance between the two wave centers, which can be taken as the wave center spacing for that set of crustal motion waves. For example, the law of cosines can be used to calculate the wave center spacing for that set of crustal motion waves based on the coordinates of the respective wave centers of the two waves in each set.

[0078] In specific implementation, other methods can also be used to calculate the wave center spacing corresponding to each crustal movement wave based on the position of the wave center point of each crustal movement wave in each group. This application does not limit the specific implementation method of calculating the wave center spacing corresponding to each group of crustal movement waves based on the position of the wave center point of each crustal movement wave in each group.

[0079] Sub-step 1203: For each group of crustal motion waves, calculate the propagation time when the sum of the propagation distances of the crustal motion waves in the group, which starts propagating simultaneously from the corresponding wave center point at the corresponding propagation speed, is equal to the distance between the wave centers. This time is taken as the first encounter propagation time of the crustal motion waves in the group.

[0080] During the process of each crustal movement wave propagating simultaneously from its own wave center point in all directions, it will meet other crustal movement waves at a certain location. In the embodiments of this application, the propagation time from the start of a certain crustal movement wave to the first encounter with another crustal movement wave is taken as the first encounter propagation time of the two crustal movement waves.

[0081] by Figure 2 Taking the set of crustal motion waves corresponding to the wave center points a and b shown in the figure as an example, the crustal motion wave corresponding to the wave center point a moves at a velocity v a When the wave propagates outwards for a duration of t, it reaches a point where v is the distance from the Earth's crust. a The location of the 250° circumference with radius ×t and center a. Similarly, the crustal motion wave corresponding to the wave center point b moves at a velocity v. b When the wave propagates outwards for a duration of t, it reaches a point where v is the distance from the Earth's crust. b The location of the circumference 260 with radius ×t and center b.

[0082] like Figure 2 As shown, during the propagation of these two waves, there must exist a propagation time t such that circumference 250 and circumference 260 are tangent, and the point of tangency between circumference 250 and circumference 260 is (e.g.) Figure 2 The midpoint (e) is the location where the two crustal movement waves first meet, and the propagation time t is the propagation time of the first meeting between the two crustal movement waves.

[0083] In the embodiments of this application, taking the assumption that the crustal movement wave propagates along a straight line as an example, the point of tangency between circumferences 250 and 260 lies on the straight line connecting the wave center point a and the wave center point b. That is, the distance v that the crustal movement wave corresponding to the wave center point a travels in time t. a ×t, the distance v of the crustal motion wave corresponding to the wave center point b within time t. b The sum of ×t equals the straight-line distance between them.

[0084] In other embodiments of this application, taking the assumption that crustal motion waves propagate along a curved surface of the Earth as an example, the point of tangency between circumferences 250 and 260 lies on a curve connecting the wave center points a and b. That is, the distance v of the crustal motion wave corresponding to wave center point a propagated in time t. a ×t, the distance v of the crustal motion wave corresponding to the wave center point b within time t. b The sum of ×t equals the corresponding curve distance between them.

[0085] That is, in some embodiments of this application, the propagation time of the first encounter of each group of crustal motion waves can be calculated by the formula v1×t+v2×t=L, where v1 and v2 are the propagation velocities of two crustal motion waves in a group of crustal motion waves, and L is the distance between the wave centers of the two crustal motion waves in the group of crustal motion waves.

[0086] Using this method, the propagation time of the first encounter can be calculated for each group of crustal motion waves.

[0087] Sub-step 1204: Based on the propagation duration of the first encounter of each group of crustal movement waves, determine the position coordinates of the first crustal movement wave in the group when it reaches the first encounter propagation duration along the target direction after it begins to propagate, and use these coordinates as the position coordinates of the first encounter of the group of crustal movement waves.

[0088] The target direction is defined as the direction from the center point of the first crustal movement wave to the center point of the second crustal movement wave in the group of crustal movement waves.

[0089] After calculating the propagation time of the first encounter of each group of crustal motion waves, the location coordinates of the first encounter of each group of crustal motion waves are further calculated.

[0090] In the embodiments of this application, when a group of crustal movement waves first meet after a propagation time t, the meeting point is on the straight line connecting the two wave centers of the group of crustal movement waves, or on the shortest curve of the minimum spherical distance (i.e., the wave center spacing) between the two corresponding wave centers. The propagation direction of each group of crustal movement waves is from the wave center of one of the crustal movement waves (e.g., denoted as "first crustal movement wave") to the wave center of another crustal movement wave (e.g., denoted as "second crustal movement wave") within the group, and along the straight line or the shortest curve connecting the two wave centers.

[0091] Based on the above description, in the embodiments of this application, for each group of crustal movement waves, the geographical location reached by any one of the crustal movement waves during its propagation from the wave center point to another crustal movement wave along the target direction (such as a straight line pointing to the wave center point of another crustal movement wave, or the shortest curve pointing to the wave center point of another crustal movement wave) for a time t can be taken as the geographical location where the group of crustal movement waves first meet.

[0092] That is, for each group of crustal movement waves, based on the coordinates of the wave center point (i.e., the starting point of propagation), the propagation speed v, the propagation time t, and the propagation direction (i.e., the target direction) of any one of the waves, the geographical coordinates of the location reached by that wave after time t can be determined. These coordinates can then be used as the coordinates of the first meeting point of that group of crustal movement waves. For example, a Cartesian coordinate system can be established with latitude as the ordinate and longitude as the abscissa. Then, the wave center point can be mapped onto this Cartesian coordinate system, and the latitude and longitude coordinates of the point reached after propagating from a certain wave center point at a specified speed along a specified direction for a specified time can be calculated in a two-dimensional plane.

[0093] Step 130: Generate a security information code based on the calculation result obtained by performing a preset calculation on the position coordinates.

[0094] After the aforementioned steps, at least one set of location coordinates for the first encounter of crustal movement waves can be obtained. Taking N sets of crustal movements obtained through the aforementioned steps as an example, N sets of location coordinates can be obtained. Next, a safety information code is generated based on one or more sets of location coordinates for the first encounter of crustal movement waves obtained through the aforementioned steps.

[0095] In some embodiments of this application, the location coordinates are represented by longitude and latitude values, and the step of generating a security information code based on the calculation result obtained by performing a preset calculation on the location coordinates further includes:

[0096] Sub-step 1301: Perform a fusion calculation on the longitude and latitude values ​​of the location coordinates to obtain a first value;

[0097] Sub-step 1302: Based on the values ​​of each digit of the first value, obtain the first sequence;

[0098] Sub-step 1303: Encrypt the first sequence using a secure hash algorithm to obtain the second sequence;

[0099] Sub-step 1304: Randomly select a preset number of items from the second sequence to generate a security information code.

[0100] The specific implementation methods for each step of generating a security information code based on the calculation results obtained by performing preset calculations on the position coordinates are described below.

[0101] The purpose of fusing longitude and latitude values ​​of the location coordinates is to further enhance the unpredictability of the generated security information code. In some embodiments of this application, a static algorithm or a dynamic algorithm can be used to fuse the longitude and latitude values ​​of the location coordinates. For example, a preset calculation model can be used to fuse the longitude and latitude values ​​of the location coordinates. Alternatively, a calculation model can be selected based on the timestamp of the generated security information code, and the selected calculation model can be used to fuse the longitude and latitude values ​​of the location coordinates.

[0102] In some embodiments of this application, the step of performing a longitude and latitude fusion operation on the location coordinates to obtain a first value includes: performing a first transformation on the first coordinate value of each location coordinate to obtain a weight corresponding to the location coordinate, wherein the first coordinate value is either the longitude value or the latitude value; multiplying the second coordinate value of each location coordinate by the weight corresponding to the location coordinate to obtain a second value corresponding to the location coordinate, wherein the second coordinate value is a coordinate value of the location coordinate other than the first coordinate value; and summing the second values ​​corresponding to each location coordinate to obtain the first value.

[0103] For example, this can be achieved by considering each position coordinate (e.g., the i-th position coordinate P). i (x i ,y i The first coordinate value (e.g., longitude value y) i By taking the cosine of each value, the weights corresponding to the given position coordinates are obtained (e.g., cos(y)). i Then, for each position coordinate (e.g., the i-th position coordinate P) i ), the second coordinate value of the location (e.g., latitude value x) i The weights corresponding to the position coordinates (e.g., cos(y)) i Multiply by , and you get the coordinates of that position (e.g., position coordinates P). i The second value corresponding to ).

[0104] In some embodiments of this application, the first coordinate value can be either a longitude value or a latitude value. When the first coordinate value is a longitude value, the corresponding second coordinate value is a latitude value; when the first coordinate value is a latitude value, the corresponding second coordinate value is a longitude value.

[0105] Using the coordinate transformation method described above, each position coordinate can be transformed to obtain a corresponding second value. Summing up the second values ​​corresponding to each position coordinate yields a first value.

[0106] In the process of obtaining the first sequence based on the values ​​of each digit of the first value, each digit of the first value can be taken as an item of the first sequence, and the corresponding items can be arranged from front to back according to the corresponding digit order to obtain the first sequence. Taking the first value as "123.45678" as an example, the obtained first sequence is "1, 2, 3, 4, 5, 6, 7, 8".

[0107] When encrypting the first sequence of numbers using a secure hash algorithm, the algorithm used can be a secure hash algorithm from the SHA (Secure Hash Algorithm) family, such as SHA-1. After encrypting the first sequence of numbers using a secure hash algorithm, a string of fixed length, i.e., the second sequence of numbers, can be obtained.

[0108] When generating a security information code by randomly selecting a preset number of items from the second sequence, a preset number of random positions can be generated sequentially using existing random number generation methods. Then, the items corresponding to each random position in the second sequence are taken as items in the third sequence, and the resulting third sequence is used as the security information code to be generated. Here, the preset number refers to the number of characters included in the security information code to be generated.

[0109] In this embodiment of the application, the method of randomly selecting a preset number of items from the second sequence is not limited.

[0110] This application discloses a method for generating a security information code. This method acquires the wave information of at least two crustal motion waves detected at the same time. The wave information includes: the position of the wave center point of the crustal motion wave; the position coordinates of the first meeting point of two adjacent crustal motion waves during propagation; and a security information code is generated based on the calculation result obtained by performing a preset calculation on the position coordinates. This improves the unpredictability of the security information code.

[0111] This application discloses a method for generating security information codes based on the wave information of crustal movement waves. By combining the randomness and unpredictability of crustal movement waves, the method effectively enhances the unpredictability of the generated security information codes, thereby increasing the difficulty of cracking them and significantly improving the security of security information code applications. Furthermore, the method allows for dynamic generation of security information codes, effectively reducing their maintenance costs.

[0112] Furthermore, the security information code generation method disclosed in this application, when generating a security information code based on the wave information of crustal movement waves, fuses the coordinates of the meeting positions of the crustal movement waves, performs serialization based on the fused values, and performs secondary encryption and random value selection on the serialization. Finally, a security information code is generated, which further enhances the unpredictability of the generated security information code.

[0113] Furthermore, when fusing the coordinates of the meeting points of crustal movement waves, the coordinate values ​​are transformed to disrupt the correlation of the position coordinates of the first value, which helps to further improve the unpredictability of the generated security information code.

[0114] This application also discloses a security information code generation device, such as... Figure 3 As shown, the device includes:

[0115] The wave information acquisition module 310 is used to acquire the wave information of at least two crustal movement waves detected at the same time, wherein the wave information includes: the position of the wave center point of the crustal movement wave;

[0116] The wave encounter location coordinate acquisition module 320 is used to acquire the location coordinates of the first encounter point of two adjacent crustal motion waves during their propagation.

[0117] The security information code generation module 330 is used to generate a security information code based on the calculation result obtained by performing a preset calculation on the position coordinates.

[0118] In some embodiments of this application, the location coordinates are represented by longitude and latitude values, and the security information code generation module 330 is further used for:

[0119] The longitude and latitude values ​​of the location coordinates are fused to obtain a first value;

[0120] Based on the values ​​of each digit of the first numerical value, the first sequence is obtained;

[0121] The first sequence is encrypted using a secure hash algorithm to obtain the second sequence;

[0122] A preset number of items are randomly selected from the second sequence to generate a security information code.

[0123] In some embodiments of this application, the step of performing a longitude and latitude fusion operation on the location coordinates to obtain a first value includes:

[0124] A first transformation is performed on the first coordinate value of each of the location coordinates to obtain the weight corresponding to the location coordinate, wherein the first coordinate value is: the longitude value or the latitude value;

[0125] Multiply the second coordinate value of each of the said position coordinates by the weight corresponding to the corresponding position coordinate to obtain the second value corresponding to the corresponding position coordinate, wherein the second coordinate value is the coordinate value of the position coordinate other than the first coordinate value;

[0126] The second values ​​corresponding to each of the aforementioned position coordinates are summed to obtain the first value.

[0127] In some embodiments of this application, the wave information further includes: propagation speed, and the wave encounter position coordinate acquisition module 320 is further used for:

[0128] By taking two crustal motion waves whose center points are adjacent to each other as a group of crustal motion waves, at least one group of crustal motion waves can be obtained;

[0129] Based on the position of the wave center point of each crustal movement wave in each group, calculate the wave center spacing corresponding to each group of crustal movement waves.

[0130] For each group of crustal motion waves, calculate the propagation time when the sum of the propagation distances of the crustal motion waves in that group, after they start propagating simultaneously from the corresponding wave center point at the corresponding propagation speed, is equal to the distance between the wave centers. This time is taken as the first encounter propagation time of the crustal motion waves in that group.

[0131] Based on the propagation time of the first encounter of each group of crustal movement waves, the position coordinates reached by the first crustal movement wave in the group after it begins to propagate along the target direction for the first encounter propagation time are determined, and these coordinates are used as the position coordinates of the first encounter of the group of crustal movement waves. The target direction is the direction from the wave center point of the first crustal movement wave to the wave center point of the second crustal movement wave in the group of crustal movement waves.

[0132] In some embodiments of this application, the fluctuation information acquisition module 310 is further configured to:

[0133] A specified number of the crustal movement detection devices are randomly selected from among multiple crustal movement detection devices set up in different geographical regions;

[0134] Obtain the fluctuation information of at least two crustal motion waves detected at the same time by the specified number of crustal motion detection devices.

[0135] The security information code generation apparatus disclosed in this application is used to implement the security information code generation method described in this application. The specific implementation methods of each module of the apparatus will not be repeated here, but can be found in the specific implementation methods of the corresponding steps in the method embodiments.

[0136] The security information code generation device disclosed in this application acquires the wave information of at least two crustal motion waves detected at the same time. The wave information includes: the position of the wave center point of the crustal motion wave; the position coordinates of the first meeting point of two adjacent crustal motion waves during propagation; and the security information code is generated based on the calculation result obtained by performing a preset calculation on the position coordinates, thereby improving the unpredictability of the security information code.

[0137] This application discloses a security information code generation device that generates security information codes based on the wave information of crustal movement waves. By combining the randomness and unpredictability of crustal movement waves, the device effectively enhances the unpredictability of security information codes generated based on the wave information of crustal movement waves, thereby increasing the difficulty of cracking them.

[0138] Furthermore, the safety information code generation device disclosed in this application generates a safety information code based on the wave information of crustal movement waves. By fusing the coordinates of the meeting positions of the crustal movement waves, digitizing the fused values, and then encrypting and randomly selecting values ​​from the digits, a safety information code is generated, thereby further improving the unpredictability of the generated safety information code.

[0139] Furthermore, when fusing the coordinates of the meeting points of crustal movement waves, the coordinate values ​​are transformed to disrupt the correlation of the position coordinates of the first value, which helps to further improve the unpredictability of the generated security information code.

[0140] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus embodiments, since they are fundamentally similar to the method embodiments, the description is relatively simple; relevant parts can be referred to the descriptions in the method embodiments.

[0141] The above provides a detailed description of a security information code generation method and apparatus provided in this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The description of the above embodiments is only for the purpose of helping to understand the method of this application and its core idea. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the idea of ​​this application. Therefore, the content of this specification should not be construed as a limitation of this application.

[0142] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.

[0143] The various component embodiments of this application can be implemented in hardware, or as software modules running on one or more processors, or a combination thereof. Those skilled in the art will understand that microprocessors or digital signal processors (DSPs) can be used in practice to implement some or all of the functions of some or all of the components in the electronic device according to the embodiments of this application. This application can also be implemented as a device or apparatus program (e.g., a computer program and computer program product) for performing part or all of the methods described herein. Such a program implementing this application can be stored on a computer-readable medium, or can be in the form of one or more signals. Such signals can be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.

[0144] For example, Figure 4 An electronic device is shown that can implement the methods according to this application. The electronic device may be a PC, mobile terminal, personal digital assistant, tablet computer, etc. The electronic device conventionally includes a processor 410 and a memory 420, and program code 430 stored on the memory 420 and executable on the processor 410, which, when executing the program code 430, implements the methods described in the above embodiments. The memory 420 may be a computer program product or a computer-readable medium. The memory 420 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read-Only Memory), EPROM, hard disk, or ROM. The memory 420 has a storage space 4201 for the program code 430 of a computer program for performing any of the method steps described above. For example, the storage space 4201 for the program code 430 may include various computer programs for implementing the various steps in the above methods. The program code 430 is computer-readable code. These computer programs can be read from or written to one or more computer program products. These computer program products include program code carriers such as hard disks, CDs, memory cards, or floppy disks. The computer program includes computer-readable code that, when executed on an electronic device, causes the electronic device to perform the method according to the above embodiments.

[0145] This application also discloses a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the steps of the security information code generation method as described in Embodiment 1 of this application.

[0146] Such a computer program product can be a computer-readable storage medium, which can have the same characteristics as... Figure 4The memory 420 in the illustrated electronic device is similarly arranged with storage segments, storage spaces, etc. Program code can be stored, for example, in a compressed form on the computer-readable storage medium. The computer-readable storage medium is typically as shown in the reference... Figure 5 The portable or fixed storage unit is described above. Typically, the storage unit includes computer-readable code 430', which is code read by a processor and, when executed by the processor, implements the various steps in the method described above.

[0147] The terms "an embodiment," "embodiment," or "one or more embodiments" as used herein mean that a particular feature, structure, or characteristic described in connection with an embodiment is included in at least one embodiment of this application. Furthermore, please note that the examples of the phrase "in one embodiment" do not necessarily all refer to the same embodiment.

[0148] Numerous specific details are set forth in the specification provided herein. However, it will be understood that embodiments of this application may be practiced without these specific details. In some instances, well-known methods, structures, and techniques have not been shown in detail so as not to obscure the understanding of this specification.

[0149] In the claims, any reference signs placed between parentheses should not be construed as limiting the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. This application can be implemented by means of hardware comprising several different elements and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means may be embodied by the same item of hardware. The use of the words first, second, and third, etc., does not indicate any order. These words can be interpreted as names.

[0150] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.

Claims

1. A method for generating a security information code, characterized in that, include: Acquire the wave information of at least two crustal motion waves detected at the same time, wherein the wave information includes: the position of the wave center point of the crustal motion wave; Obtain the coordinates of the first meeting point of two adjacent crustal motion waves during their propagation; A security information code is generated based on the calculation result obtained by performing a preset calculation on the position coordinates; The location coordinates are represented by longitude and latitude values. The step of generating a security information code based on the calculation result obtained by performing a preset calculation on the location coordinates includes: The longitude and latitude values ​​of the location coordinates are fused to obtain a first value; Based on the values ​​of each digit of the first numerical value, the first sequence is obtained; The first sequence is encrypted using a secure hash algorithm to obtain the second sequence; A predetermined number of items are randomly selected from the second sequence to generate a security information code; The step of performing a fusion operation on the location coordinates using longitude and latitude values ​​to obtain a first value includes: A first transformation is performed on the first coordinate value of each of the location coordinates to obtain the weight corresponding to the location coordinate, wherein the first coordinate value is: the longitude value or the latitude value; Multiply the second coordinate value of each of the said position coordinates by the weight corresponding to the corresponding position coordinate to obtain the second value corresponding to the corresponding position coordinate, wherein the second coordinate value is the coordinate value of the position coordinate other than the first coordinate value; The second values ​​corresponding to each of the aforementioned position coordinates are summed to obtain the first value; The wave information also includes: propagation speed; obtaining the coordinates of the first meeting point of two adjacent crustal motion waves during propagation includes: By taking two crustal motion waves whose center points are adjacent to each other as a group of crustal motion waves, at least one group of crustal motion waves can be obtained; Based on the position of the wave center point of each crustal movement wave in each group, calculate the wave center spacing corresponding to each group of crustal movement waves. For each group of crustal motion waves, calculate the propagation time when the sum of the propagation distances of the crustal motion waves in that group, after they start propagating simultaneously from the corresponding wave center point at the corresponding propagation speed, is equal to the distance between the wave centers. This time is taken as the first encounter propagation time of the crustal motion waves in that group. Based on the propagation time of the first encounter of each group of crustal movement waves, the position coordinates reached by the first crustal movement wave in the group after it begins to propagate along the target direction for the first encounter propagation time are determined, and these coordinates are used as the position coordinates of the first encounter of the group of crustal movement waves. The target direction is the direction from the wave center point of the first crustal movement wave to the wave center point of the second crustal movement wave in the group of crustal movement waves.

2. The method according to claim 1, characterized in that, The acquisition of wave information of at least two crustal motion waves detected at the same time includes: A specified number of the crustal movement detection devices are randomly selected from among multiple crustal movement detection devices set up in different geographical regions; Obtain the fluctuation information of at least two crustal motion waves detected at the same time by the specified number of crustal motion detection devices.

3. A security information code generation device, characterized in that, include: The wave information acquisition module is used to acquire the wave information of at least two crustal movement waves detected at the same time, wherein the wave information includes: the position of the wave center point of the crustal movement wave; The wave encounter location coordinate acquisition module is used to acquire the location coordinates of the first encounter point of two adjacent crustal motion waves during their propagation. The security information code generation module is used to generate a security information code based on the calculation result obtained by performing a preset calculation on the location coordinates; The location coordinates are represented by longitude and latitude values, and the security information code generation module is further used for: The longitude and latitude values ​​of the location coordinates are fused to obtain a first value; Based on the values ​​of each digit of the first numerical value, the first sequence is obtained; The first sequence is encrypted using a secure hash algorithm to obtain the second sequence; A predetermined number of items are randomly selected from the second sequence to generate a security information code; The step of performing a fusion operation on the location coordinates using longitude and latitude values ​​to obtain a first value includes: A first transformation is performed on the first coordinate value of each of the location coordinates to obtain the weight corresponding to the location coordinate, wherein the first coordinate value is: the longitude value or the latitude value; Multiply the second coordinate value of each of the said position coordinates by the weight corresponding to the corresponding position coordinate to obtain the second value corresponding to the corresponding position coordinate, wherein the second coordinate value is the coordinate value of the position coordinate other than the first coordinate value; The second values ​​corresponding to each of the aforementioned position coordinates are summed to obtain the first value; The wave information also includes: propagation speed; the wave encounter location coordinate acquisition module is further used for: By taking two crustal motion waves whose center points are adjacent to each other as a group of crustal motion waves, at least one group of crustal motion waves can be obtained; Based on the position of the wave center point of each crustal movement wave in each group, calculate the wave center spacing corresponding to each group of crustal movement waves. For each group of crustal motion waves, calculate the propagation time when the sum of the propagation distances of the crustal motion waves in that group, after they start propagating simultaneously from the corresponding wave center point at the corresponding propagation speed, is equal to the distance between the wave centers. This time is taken as the first encounter propagation time of the crustal motion waves in that group. Based on the propagation time of the first encounter of each group of crustal movement waves, the position coordinates reached by the first crustal movement wave in the group after it begins to propagate along the target direction for the first encounter propagation time are determined, and these coordinates are used as the position coordinates of the first encounter of the group of crustal movement waves. The target direction is the direction from the wave center point of the first crustal movement wave to the wave center point of the second crustal movement wave in the group of crustal movement waves.

4. An electronic device, comprising a memory, a processor, and program code stored in the memory and executable on the processor, characterized in that, When the processor executes the program code, it implements the security information code generation method according to any one of claims 1 to 2.

5. A computer-readable storage medium having program code stored thereon, characterized in that, When the program code is executed by the processor, it implements the steps of the security information code generation method according to any one of claims 1 to 2.

Citation Information

Patent Citations

  • Cipher key pre-distributing method for sensor network

    CN101383699A

  • Real-time accurate monitoring method for earth crust millimeter-level displacement

    CN101430384A