Online car-hailing information security management method and system based on hash function
Through dynamic time series collection and analysis of the operating data of the pseudo-random number generator, the randomness fusion control coefficient and the holographic complexity index are calculated, which solves the problem of insufficient management of the pseudo-random number generator and improves the security and performance of hash value generation. , improving the overall security of online ride-hailing information.
Patent Information
- Application Number
- CN202410591512.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-11
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2044-05-11
AI Technical Summary
In the existing technology, insufficient management of pseudo-random number generators may lead to reduced security of hash value generation, increasing vulnerabilities and attack risks in online ride-hailing information security management.
Through dynamic timing collection of the operating data of the pseudo-random number generator, the randomness fusion control coefficient and holographic complexity index are calculated, combined with threshold judgment, to provide more accurate risk analysis and ensure the security and performance of hash function generation.
It improves the overall security of hash value generation, reduces potential security risks, improves the security and performance of online ride-hailing information, and is suitable for high-demand application scenarios.
Smart Images

Figure CN118536804A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data information processing, and more specifically, to a method and system for managing online car-hailing information security based on a hash function. Background Art
[0002] Online ride-hailing information security management is a comprehensive measure involving the protection of user personal information, transaction data and overall system security. In this area, the focus includes, but is not limited to, the reasonable use and protection of user privacy, the application of cryptographic technology, the security of data transmission and storage, access control to sensitive information, and prevention of various types of network attacks. This management covers the entire life cycle of the online ride-hailing platform, from user registration, data transmission, transaction processing to data storage and analysis, and is committed to establishing a sound security system to protect user information from illegal acquisition and abuse, while maintaining the stability and reliability of the entire system.
[0003] In recent years, with the development of technology, hash functions have begun to play a role in the information security management of online ride-hailing. Hash functions are widely used in the field of cryptography, especially for the secure storage and verification of user passwords, effectively preventing the risk of password leakage and cracking. By hashing the user's sensitive information, the online ride-hailing platform can effectively protect the user's privacy. Even if information leakage occurs during the data storage process, it is difficult for attackers to restore the original data. In addition, the strong anti-collision and irreversibility of the hash function provide a reliable foundation for key links such as user identity authentication and data integrity verification, and strengthen the security of the entire online ride-hailing system. Therefore, the hash function has become an indispensable key technology in the information security management of online ride-hailing, providing strong security protection for users and platforms.
[0004] However, although pseudo-random number generators play an important role in hash value generation, inadequate management of pseudo-random number generators may lead to some vulnerabilities in the information security of online ride-hailing services based on hash functions. Insecure or insufficiently random pseudo-random number generators may make the generated hash values more vulnerable to attacks, such as through predictive analysis or collision attacks. In addition, if the seed of the pseudo-random number generator is not properly managed or there is a lack of sufficient entropy source, it may lead to increased predictability of the hash value, thereby reducing the security of the entire system. Therefore, for the information security management of online ride-hailing services, it is necessary to pay attention to the quality of the pseudo-random number generator, the security of the seed, and the maintenance of randomness to prevent potential vulnerabilities and attacks and ensure that hash functions can provide reliable security protection in practical applications.
[0005] In order to solve the above problems, a technical solution is now provided. Summary of the invention
[0006] In order to overcome the above-mentioned defects of the prior art, an embodiment of the present invention provides a method of obtaining the corresponding randomness fusion control coefficient and holographic complexity index by comprehensively considering the state of the pseudo-random number generator and the adequacy of the seed, and combining the randomness fusion control coefficient and the holographic complexity index with the corresponding threshold judgment result for analysis, thereby providing a more accurate and comprehensive risk analysis for the use of hash functions. It is convenient to determine the applicability of the generator in a specific application scenario, especially in the information security management of online ride-hailing. Providing high-quality analysis by randomly generating states and seeds not only improves the grasp of the overall security of hash value generation, but also provides useful guidance for improvement and optimization, so as to reduce potential security risks and comprehensively improve the security and performance of online ride-hailing related information, so as to solve the problems raised in the above-mentioned background technology.
[0007] To achieve the above object, the present invention provides the following technical solutions:
[0008] Step S1: Based on the usage intensity of calling the pseudo-random number generator, dynamically collect its operation data in time series and store it;
[0009] Step S2: calling the stored data, extracting the cycle length and start-up time characteristics therefrom, building a model based on these abstract characteristics to judge the operation risk of the pseudo-random number generator, and assigning a corresponding judgment signal;
[0010] Step S3: Determine the predictability of the entropy source of the seed source and accurately clarify the adequacy of its entropy;
[0011] Step S4: presenting a qualified signal generated by the hash function based on a comprehensive consideration of the operating characteristics of the pseudo-random number generator and the predictability of the seed source;
[0012] Step S5: After obtaining the qualified signal, collect the usage data of online car-hailing users, transform it using the hash function, assign it a corresponding hash value, and attach it to the data.
[0013] In a preferred embodiment, step S1 includes the following contents:
[0014] Capture the operating parameters of the pseudo-random number generator according to the set acquisition frequency;
[0015] Use timestamps to record the parameter status at each acquisition to form a time series data sequence;
[0016] The collected parameters and their corresponding timestamps are stored in a database in a data structure;
[0017] This is achieved through the following calculation formula:
[0018] Among them, ti is the timestamp of the i-th acquisition, t i-1 is the timestamp of the last acquisition, f 采集 Indicates the acquisition frequency;
[0019] Based on the calling time of the pseudo-random number generator;
[0020] Assume that U(T) represents the usage intensity at time T, that is, the usage frequency within the rated time. The first-order derivative calculation regularity of the usage intensity can be calculated by the following formula:
[0021] in, It indicates the rate of change of usage intensity, that is, the speed at which usage intensity changes over time, and is used to reflect the regularity of usage;
[0022] When the rate of change of the usage intensity is greater than the threshold interval, a signal for increasing the acquisition frequency is generated;
[0023] When the rate of change of the usage intensity is less than the threshold interval, a signal for reducing the acquisition frequency is generated;
[0024] When the rate of change of the usage intensity is within the threshold range, no signal is generated.
[0025] In a preferred embodiment, step S2 includes the following contents:
[0026] The stored data is called to extract cycle length and start-up time features, wherein the cycle length includes the spatiotemporal nested rhythmic index, the cycle length includes the spatiotemporal nested rhythmic index, and the start-up time includes the start-up time entropy.
[0027] In a preferred embodiment, the process of obtaining the spatiotemporal nested rhythmic index is as follows:
[0028] S2-1. Perform Fourier transform on the sequence generated by the pseudo-random number generator to obtain the spectrum. The calculation formula is: X(f) = FFT(PRNG Sequence );
[0029] Among them, PRNG Sequence It is a sequence generated by a pseudo-random number generator, that is, a series of pseudo-random numbers arranged in the order of generation;
[0030] FFT represents the Fourier transform operation, which converts the pseudo-random number generator sequence in the time domain into a representation in the frequency domain;
[0031] X(f) is the frequency spectrum, which represents the distribution of the pseudo-random number generator sequence in the frequency domain, where f represents the frequency;
[0032] S2-2. Normalize the spectrum so that its peak is at a relatively large value:
[0033] Determine the location of the peak by finding the peak point in the spectrum that is greater than the values on both sides;
[0034] S2-3. Split the sequence into several subsequences, each subsequence has a length that is an integer multiple of the main periodic component;
[0035] Calculate the fractal dimension of each subsequence and find the stable stage through the changing trend of the fractal dimension;
[0036]
[0037] Among them, δ represents the box size of the subsequence;
[0038] N(δ) represents the minimum number of boxes required to cover the entire sequence with boxes of size δ;
[0039] What is calculated is the ratio of the size and the logarithm of the number of boxes required to cover it;
[0040] S2-4. Based on the results of fractal analysis, the stable stage of the main periodic components is obtained, and the spatiotemporal nested rhythmic index is the sequence length of this stage.
[0041] In a preferred embodiment, the process of obtaining the startup time entropy is:
[0042] S2-11. Generate a shorter sequence using a pseudo-random number generator, including the steps that the pseudo-random number generator goes through from an initial state to a normal generation state;
[0043] S2-12. Consider the startup sequence as a probability distribution and calculate its information entropy:
[0044]
[0045] Among them, H startup Start information entropy;
[0046] P o is the probability of the oth state in the start sequence;
[0047] S2-13. In order to make the metric more universal, the startup time entropy is normalized to the interval [0,1];
[0048]
[0049] Where n is the length of the start sequence and HN represents the initial time compression index.
[0050] In a preferred embodiment, the spatiotemporal nested rhythmic index and the start-up time entropy are comprehensively processed to obtain a random fusion regulation coefficient; the random fusion regulation coefficient is compared with the operation classification threshold, and if the random fusion regulation coefficient is greater than or equal to the operation classification threshold, a first low-risk signal is generated; conversely, if the random fusion regulation coefficient is less than the operation classification threshold, a first high-risk signal is generated.
[0051] In a preferred embodiment, step S3 includes the following contents:
[0052] S3-1. Divide the seed into substrings consisting of several bits and analyze the correlation between adjacent bits;
[0053] S3-2. For each substring of adjacent bits, calculate its bit correlation entropy, which can be calculated by the following formula:
[0054] Among them, H b (X) is the bit correlation entropy of adjacent bit substrings, P(x u,u+1 ) is the probability of the adjacent bit substring, and R represents the length of the adjacent bit substring;
[0055] S3-3. Average the bit correlation entropy of all adjacent bit substrings to obtain the overall entropy, i.e., the holographic complexity index;
[0056]
[0057] Where HT is the holographic complexity index, M is the number of substrings;
[0058] S3-4. Compare the holographic complexity index and the complex division threshold. If the holographic complexity index is greater than or equal to the complex division threshold, a second low-risk signal is generated; otherwise, if the holographic complexity index is less than the complex division threshold, a second high-risk signal is generated.
[0059] In a preferred embodiment, step S4 includes the following contents:
[0060] If the first low-risk signal and the second low-risk signal are obtained at the same time, a qualified signal is generated; conversely, if the first low-risk signal and the second low-risk signal are not obtained at the same time, a failed signal is generated.
[0061] The online car-hailing information security management system based on hash function includes a dynamic time series acquisition module, a feature model building module, a seed entropy source identification module, a comprehensive evaluation module and an information hash processing module;
[0062] The dynamic time series acquisition module dynamically acquires and stores the running data of the pseudo-random number generator based on the usage intensity of the pseudo-random number generator, and allocates the stored data calling right to the feature model construction module;
[0063] The feature model building module calls the stored data, extracts the cycle length and start-up time features, builds a model based on these abstract features to judge the operation risk of the pseudo-random number generator, and assigns a corresponding judgment signal, and sends the judgment signal to the seed entropy source discrimination module;
[0064] The seed entropy source identification module identifies the predictability of the entropy source of the seed, accurately clarifies the adequacy of its entropy, and sends the accurate and clear results to the overall comprehensive evaluation module;
[0065] The comprehensive evaluation module comprehensively evaluates the operation characteristics of the pseudo-random number generator and the predictability of the seed source, presents a qualified signal generated by the hash function, and sends the signal to the information hash processing module;
[0066] After obtaining the qualified signal, the information hash processing module collects the usage data of online car-hailing users, transforms it using the hash function, assigns it the corresponding hash value, and attaches it to the data.
[0067] The technical effects and advantages of the online car-hailing information security management method and system based on hash function of the present invention are as follows:
[0068] 1. The present invention captures the operating parameters of the pseudo-random number generator fully and coherently by setting the acquisition frequency, and uses timestamps to record the parameter status to form a time series data sequence, and efficiently stores it in a database, so as to obtain key operating information. It is convenient to fully understand the behavior of the pseudo-random number generator. The time series recording method can track the performance of the pseudo-random number generator at different time points, which is convenient for subsequent analysis and tuning. At the same time, through the use intensity analysis based on the call time, the actual use rules of the pseudo-random number generator can be understood in more detail. By calculating the rate of change of the use intensity, the load changes and request frequency of the system can be monitored in real time, and then the corresponding acquisition frequency signal can be generated. It helps to adapt to changes in the operating state of the system, making the acquisition process more intelligent and efficient.
[0069] 2. The present invention extracts features from the operating data of the pseudo-random number generator performance to obtain two key features: the spatiotemporal nested rhythmic index and the startup time entropy. The spatiotemporal nested rhythmic index is obtained through Fourier transform and fractal analysis, and the periodic characteristics of the generated pseudo-random number sequence are carefully analyzed, thereby quantifying its period length. At the same time, the startup time entropy measures the uncertainty of the system from the initial state to the normal generation state by considering the startup phase of the pseudo-random number generator, reflecting the performance of the startup time. The spatiotemporal nested rhythmic index and the startup time entropy are comprehensively processed to obtain the randomness fusion control coefficient. By comparing the coefficient with the operation classification threshold, a corresponding risk signal is generated, which provides a comprehensive comprehensive evaluation of the generator's performance, especially in application scenarios such as generating hash values that have high requirements for randomness and performance, to ensure the quality of the security processing of online car-hailing information.
[0070] 3. The present invention comprehensively considers the state of the pseudo-random number generator and the adequacy of the seed, and provides a more accurate and comprehensive risk analysis through a comprehensive and multi-dimensional evaluation. It is convenient to determine the applicability of the generator in specific application scenarios, especially in the information security management of online ride-hailing. Providing high-quality analysis by randomly generating states and seeds not only improves the grasp of the overall security of hash value generation, but also provides useful guidance for improvement and optimization to reduce potential security risks and comprehensively improve the security and performance of the system. BRIEF DESCRIPTION OF THE DRAWINGS
[0071] Figure 1 It is a flow chart of the method and system for managing online car-hailing information security based on hash functions of the present invention;
[0072] Figure 2 This is a structural diagram of the online car-hailing information security management method and system based on hash function of the present invention. DETAILED DESCRIPTION
[0073] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0074] Example 1
[0075] Figure 1 The present invention provides a method for managing online car-hailing information security based on a hash function, which includes the following contents:
[0076] Step S1: Based on the usage intensity of calling the pseudo-random number generator, dynamically collect its operation data in time series and store it;
[0077] Step S2: calling the stored data, extracting the cycle length and start-up time characteristics therefrom, building a model based on these abstract characteristics to judge the operation risk of the pseudo-random number generator, and assigning a corresponding judgment signal;
[0078] Step S3: Determine the predictability of the entropy source of the seed source and accurately clarify the adequacy of its entropy;
[0079] Step S4: presenting a qualified signal generated by the hash function based on a comprehensive consideration of the operating characteristics of the pseudo-random number generator and the predictability of the seed source;
[0080] Step S5: After obtaining the qualified signal, collect the usage data of online car-hailing users, transform it using the hash function, assign it a corresponding hash value, and attach it to the data.
[0081] In practical applications, the operation of the pseudo-random number generator may be affected by many factors, such as external load, system request frequency, randomness requirements, etc. Static collection frequency is difficult to adapt to these changes, but by dynamically generating the collection frequency, the system can automatically adjust according to the real-time usage intensity changes, ensuring that key data can be captured more frequently under high load or request surges, and reducing the collection frequency when the load is low or relatively stable, thereby reducing system overhead.
[0082] This mechanism of dynamically adjusting the acquisition frequency not only helps to more fully understand the operating status of the pseudo-random number generator, but also improves the system's sensitivity to abnormal situations and can detect potential problems in a timely manner. Therefore, dynamically generating the acquisition frequency based on the behavior of the pseudo-random number generator becomes an important measure to ensure system performance and security, so that the system can maintain stable and efficient operation under different workloads and usage scenarios.
[0083] Step S1 includes the following contents:
[0084] The operating parameters of the pseudo-random number generator are fully and consistently captured according to the set acquisition frequency.
[0085] The timestamp is used to record the parameter status at each acquisition to form a time series data sequence.
[0086] The collected parameters and their corresponding timestamps are stored in a database in an efficient data structure (such as a hash table) for subsequent analysis.
[0087] This can be achieved through the following calculation formula:
[0088] Among them, t i is the timestamp of the i-th acquisition, t i-1is the timestamp of the last acquisition, f 采集 Indicates the acquisition frequency.
[0089] The above formula ensures that the operating parameters are recorded in time at a given acquisition frequency.
[0090] Based on the calling time of the pseudo-random number generator as the basic data, analyze its usage regularity.
[0091] Assume that U(T) represents the usage intensity at time T, that is, the usage frequency within the rated time. The first-order derivative calculation regularity of the usage intensity can be calculated by the following formula:
[0092] in, It indicates the rate of change of usage intensity, that is, the speed at which usage intensity changes over time, and is used to reflect the regularity of usage;
[0093] When the rate of change of usage intensity is greater than the threshold interval, it means that the usage intensity is increasing, which may indicate that the system load is increasing or there are more requests, and a signal to increase the acquisition frequency is generated;
[0094] When the rate of change of usage intensity is less than the threshold interval, it means that the usage intensity is decreasing, which may indicate that the system load is decreasing or the requests are decreasing, and a signal to reduce the acquisition frequency is generated;
[0095] When the rate of change of usage intensity is within the threshold range, it indicates that the usage intensity changes relatively steadily, and the system may be in a stable state and does not generate any signal.
[0096] The present invention can fully and coherently capture the operating parameters of the pseudo-random number generator by setting the acquisition frequency, and use timestamps to record the parameter status to form a time series data sequence, and efficiently store it in a database, so as to obtain key operating information. It is convenient to fully understand the behavior of the pseudo-random number generator. The method of time series recording can track the performance of the pseudo-random number generator at different time points, which is convenient for subsequent analysis and tuning. At the same time, through the use intensity analysis based on the call time, the actual use rules of the pseudo-random number generator can be understood in more detail. By calculating the rate of change of the use intensity, the load changes and request frequency of the system can be monitored in real time, and then the corresponding acquisition frequency signal can be generated. It helps to adapt to changes in the operating state of the system, making the acquisition process more intelligent and efficient.
[0097] Step S2 includes the following contents:
[0098] The stored data is called to extract cycle length and start-up time features, wherein the cycle length includes the spatiotemporal nested rhythmic index, the cycle length includes the spatiotemporal nested rhythmic index, and the start-up time includes the start-up time entropy.
[0099] The process of obtaining the spatiotemporal nested rhythmic index is as follows:
[0100] S2-1. Perform Fourier transform on the sequence generated by the pseudo-random number generator to obtain the spectrum. The calculation formula is: X(f) = FFT(PRNG Sequence );
[0101] Among them, PRNG Sequence It is a sequence generated by a pseudo-random number generator, that is, a series of pseudo-random numbers arranged in the order of generation;
[0102] FFT represents the Fourier transform operation, which converts the pseudo-random number generator sequence in the time domain into a representation in the frequency domain;
[0103] X(f) is the frequency spectrum, which represents the distribution of the pseudorandom number generator sequence in the frequency domain, where f represents frequency.
[0104] S2-2. Normalize the spectrum so that its peak is at a relatively large value, which helps to improve the sensitivity of peak detection:
[0105] By finding the peak point in the spectrum that is greater than the values on both sides, the position of the peak is determined, and the frequency corresponding to the largest peak in the spectrum is selected as the frequency of the main periodic component.
[0106] S2-3. Split the sequence into several subsequences, each subsequence has a length that is an integer multiple of the main periodic component;
[0107] The fractal dimension of each subsequence is calculated, and the stable stage is found through the changing trend of the fractal dimension.
[0108]
[0109] Among them, δ represents the box size of the subsequence;
[0110] N(δ) represents the minimum number of boxes required to cover the entire sequence with boxes of size δ;
[0111] The ratio of the size and the logarithm of the number of boxes required to cover it is calculated.
[0112] The fractal dimension DB describes the fractal characteristics of a sequence. Specifically, when the sequence is measured at different sizes (δ), the fractal dimension obtained will change with the size. In the formula, the box dimension is obtained by calculating the logarithmic ratio of the size and the number of boxes required for coverage. For the periodic analysis of the pseudo-random number generator, calculating the fractal dimension can provide a deeper understanding of the self-similar characteristics of the generated sequence.
[0113] S2-4. Based on the results of fractal analysis, the stable stage of the main periodic components is obtained, and the spatiotemporal nested rhythmic index is the sequence length of this stage.
[0114] The spatiotemporal nested rhythm index is used to indicate the period length of the pseudo-random number sequence generated by the pseudo-random number generator, reflecting the degree of nesting in the time and space domains of the sequence. The larger the index, the longer the period length of the sequence, which means that the sequence goes through more steps before it does not repeat, providing unpredictability for a longer period of time, which is a better property. On the contrary, the smaller the index, the shorter the period length, reducing the unpredictability of the sequence. Therefore, the spatiotemporal nested rhythm index is a measure of the periodic characteristics of the pseudo-random number generator, which is of great significance for improving the quality and security of the generated sequence.
[0115] The process of obtaining the startup time entropy is:
[0116] S2-11. Use a pseudo-random number generator to generate a shorter sequence (startup sequence), including the steps that the pseudo-random number generator goes through from the initial state to the normal generation state;
[0117] S2-12. Consider the startup sequence as a probability distribution and calculate its information entropy. The startup time entropy represents the uncertainty of the system from the initial state to the normal generation state.
[0118]
[0119] Among them, H startup Start information entropy;
[0120] P o is the probability of the oth state in the start sequence;
[0121] S2-13. In order to make the metric more universal, the startup time entropy is normalized to the interval [0,1];
[0122]
[0123] Where n is the length of the start sequence and HN represents the initial time compression index.
[0124] The initial time compression index is used to indicate the time performance required for the pseudo-random number generator to go from the initial state to the normal generation state. The larger the value, the shorter the time the pseudo-random number generator takes in the startup phase, that is, the process from the initial state to the normal generation state is faster. Conversely, the smaller the index, the longer the pseudo-random number generator takes in the startup phase.
[0125] Specifically reflects the efficiency and speed of the pseudo-random number generator during the startup process. A larger initial time compression exponent is generally regarded as better performance, because it means that the pseudo-random number generator requires fewer steps before it starts generating high-quality random numbers, providing a faster startup time. A smaller exponent may indicate that the pseudo-random number generator requires more steps at startup, possibly resulting in longer waiting times.
[0126] The temporal and spatial nested rhythm index and the start-up time entropy are processed comprehensively to obtain the random fusion control coefficient, which can be calculated by the following formula, for example:
[0127] Among them, SFMI represents the random fusion regulation coefficient, DB and HN represent the spatiotemporal nested rhythmic index and the start-up time entropy respectively, α and β represent the preset proportional coefficients of the spatiotemporal nested rhythmic index and the start-up time entropy respectively, and both are greater than zero.
[0128] The randomness fusion control coefficient is used to comprehensively evaluate the performance of the pseudo-random number generator, combining the information of the spatiotemporal nested rhythm index and the startup time entropy. A larger coefficient indicates that the generator has higher randomness and faster startup performance in spatiotemporal distribution, reflecting its superiority in generating high-quality random numbers. On the contrary, a smaller coefficient may indicate that the generator has certain regularity in spatiotemporal distribution and poor startup performance.
[0129] The connection with generating hash values is that hash algorithms need to have good randomness and distribution to ensure that the generated hash values are evenly distributed in space and difficult to predict. Therefore, a larger randomness fusion control coefficient may imply that the generator is more suitable for hash algorithms because it tends to be more random in time and space distribution, which helps to generate more secure hash values. On the contrary, a smaller coefficient may indicate that the output of the generator is regular to a certain extent, which may lead to an uneven distribution of hash values and reduce security. Therefore, the randomness fusion control coefficient can be used as a comprehensive indicator to evaluate the applicability of the generator, which is especially important in scenarios with high security requirements such as hash algorithms.
[0130] Compare the randomness fusion control coefficient with the operation classification threshold. If the randomness fusion control coefficient is greater than or equal to the operation classification threshold, it means that the operation state of the generator is classified as having good randomness and performance. In this case, the output of the generator is more random in terms of temporal and spatial distribution, and its startup performance is good, which is suitable for application scenarios that require high-quality random numbers, generating the first low-risk signal;
[0131] On the contrary, if the randomness fusion control coefficient is less than the operation classification threshold, it means that the operation state of the generator is classified as having low randomness or performance, indicating that the generator has certain regularity in output or poor startup performance, and is not suitable for some application scenarios with high requirements for randomness and performance. In this case, it is necessary to consider optimizing or replacing the generator to meet specific randomness and performance requirements and generate the first high-risk signal.
[0132] The present invention extracts features from the operating data of the pseudo-random number generator performance to obtain two key features: the spatiotemporal nested rhythmic index and the startup time entropy. The spatiotemporal nested rhythmic index is obtained through Fourier transform and fractal analysis, and the periodic characteristics of the generated pseudo-random number sequence are carefully analyzed, thereby quantifying its period length. At the same time, the startup time entropy measures the uncertainty of the system from the initial state to the normal generation state by considering the startup phase of the pseudo-random number generator, reflecting the performance of the startup time. The spatiotemporal nested rhythmic index and the startup time entropy are comprehensively processed to obtain the randomness fusion control coefficient. By comparing the coefficient with the operation classification threshold, a corresponding risk signal is generated, which provides a comprehensive comprehensive evaluation of the generator's performance, especially in application scenarios such as generating hash values that have high requirements for randomness and performance, to ensure the quality of the security processing of online car-hailing information.
[0133] Analyzing the predictability of seed entropy has important security significance, especially in the information security management of online ride-hailing. The predictability of seed entropy reflects whether there is regularity in the process of generating seeds and the degree of correlation between adjacent bits. In security assessment, high predictability of seed entropy may mean that the generated seeds have certain patterns or regularities, which are easily predicted and analyzed by attackers, thus reducing the security of the system.
[0134] For online car-hailing information security management, the seed is the basis for generating hash values, and the security of hash values is crucial to the protection of user data. If the seed is highly predictable, attackers may be able to more easily infer the generated hash value, thereby undermining the security of the hash algorithm. On the contrary, if the seed has sufficient entropy, that is, low predictability, the generated hash value will be more difficult to crack, improving the security of information.
[0135] Therefore, by analyzing the predictability of seed entropy, we can provide an important reference for the information security management of online ride-hailing. Ensuring that the seed has sufficient entropy helps improve the anti-attack capability of the hash algorithm, strengthen the security of user data, and prevent potential threats.
[0136] Step S3 includes the following contents:
[0137] S3-1. Divide the seed into substrings consisting of several bits and analyze the correlation between adjacent bits. A good seed should show low adjacent bit correlation, that is, the value of each bit is not affected by the previous and next bits.
[0138] S3-2. For each substring of adjacent bits, calculate its bit correlation entropy, which can be calculated by the following formula:
[0139] Among them, H b (X) is the bit correlation entropy of adjacent bit substrings, P(x u,u+1 ) is the probability of the adjacent bit substring, and R represents the length of the adjacent bit substring.
[0140] S3-3. Average the bit correlation entropies of all adjacent bit substrings to obtain the overall entropy, i.e., the holographic complexity index, which represents the overall correlation of the seed.
[0141]
[0142] Where HT is the holographic complexity index and M is the number of substrings.
[0143] The overall entropy is used to indicate the overall correlation of the seed, that is, the degree of correlation between adjacent bits. A larger overall entropy indicates that the correlation between adjacent bit substrings is smaller, and the value of each bit is relatively independent, and the seed exhibits higher irrelevance and randomness. On the contrary, a smaller overall entropy indicates that there is a greater correlation between adjacent bits, which may cause the generated random number sequence to lack sufficient irrelevance.
[0144] From a security perspective, a larger overall entropy is generally considered better, because it means that the generated random number sequence is more difficult to predict and speculate, and has higher security. On the contrary, a smaller overall entropy may make the generated random number sequence more vulnerable to statistical analysis or attacks, reducing security.
[0145] Therefore, by comparing the overall entropy with the set threshold, it is possible to assess whether the entropy of the seed is sufficient, and thus judge its quality and security in applications such as generating hash values.
[0146] S3-4. Compare the holographic complexity index and the complex partition threshold. If the holographic complexity index is greater than or equal to the complex partition threshold, it means that the complexity and holography of the seed are high, which is suitable for application scenarios that require a high degree of randomness, and generates the second lowest risk signal.
[0147] On the contrary, if the holographic complexity index is less than the complexity division threshold, it means that the seed supply complexity is low, there is a certain regularity or it is affected by statistical analysis, which is not suitable for application scenarios with high requirements for randomness, and generates the second highest risk signal.
[0148] The present invention comprehensively evaluates the overall correlation of the seed through the holographic complexity index. By calculating the correlation entropy and comparing the overall entropy, the adequacy of the seed entropy is effectively determined, and the quality provided by the seed is inferred. This is beneficial to accurately clarify the degree of seed entropy and provide a key reference for generating high-quality random numbers. It is conducive to making a comprehensive judgment on the applicability of the generator in different application scenarios.
[0149] First, the state of the pseudo-random number generator directly affects the quality and security of the generated random number sequence. Through a comprehensive analysis of the state, the generator's performance in terms of temporal and spatial distribution, startup performance, and overall correlation can be evaluated to determine whether it is suitable for application scenarios that require a high degree of randomness, such as online car-hailing information security management.
[0150] Secondly, the adequacy of the seed is one of the key factors to ensure that the random numbers output by the generator have good performance. Sufficient seed entropy can improve the unpredictability and anti-attack ability of the generator, which is particularly important for security management scenarios. By comprehensively analyzing the state of the pseudo-random number generator and the adequacy of the seed, we can fully understand the operating characteristics of the generator, and thus more accurately judge its applicability in security management scenarios.
[0151] The significance of combined analysis is that it provides a comprehensive evaluation framework to ensure that the generator meets the needs of security management in multiple aspects. This approach not only considers the intrinsic state of the generator, but also focuses on the quality of its input seed, thereby comprehensively evaluating the output quality and security of the generator. This helps to ensure that the pseudo-random number generator used in the security management scenario of online car-hailing information can provide highly random output and enhance the security and reliability of the system.
[0152] Step S4 includes the following contents:
[0153] If both the first low-risk signal and the second low-risk signal are obtained at the same time, it means that the generator performs well in terms of spatiotemporal distribution, startup performance, and overall correlation, and is suitable for various application scenarios. It is highly random and holographic, and is in a low-risk state. This shows that the output of the generator is relatively reliable in terms of quality and security, and is suitable for generating hash values and other scenarios that require a high degree of randomness. It is suitable for online car-hailing information security scenarios and generates qualified signals.
[0154] On the contrary, if the first low-risk signal and the second low-risk signal are not obtained at the same time, it may mean that the generator has some deficiencies or unstable factors in terms of spatiotemporal distribution, startup performance, overall correlation, etc., and is not suitable for application scenarios with high requirements for randomness. It is in a high-risk state and is not suitable for online car-hailing information security scenarios, and generates unqualified signals.
[0155] The present invention comprehensively considers the state of the pseudo-random number generator and the adequacy of the seed, and provides a more accurate and comprehensive risk analysis through a comprehensive and multi-dimensional evaluation. It is convenient to determine the applicability of the generator in specific application scenarios, especially in the information security management of online ride-hailing. Through the analysis of the bundled state and seed, it not only improves the grasp of the overall security of the system, but also provides useful guidance for improvement and optimization to reduce potential security risks and comprehensively improve the security and performance of the system.
[0156] Step S5 includes the following contents:
[0157] After obtaining the qualified signal, the user usage data of online ride-hailing is first collected. Then, the data is transformed by applying a hash function so that each piece of data is assigned a unique hash value. This hash value is attached to the corresponding data record to form a hashed data set with a unique identifier. This processing step helps protect user privacy while ensuring the uniqueness and integrity of the data.
[0158] Example 2
[0159] Figure 2 The present invention provides an online car-hailing information security management system based on hash function, including a dynamic time series acquisition module, a feature model construction module, a seed entropy source discrimination module, a comprehensive evaluation module and an information hash processing module;
[0160] The dynamic time series acquisition module dynamically acquires and stores the running data of the pseudo-random number generator based on the usage intensity of the pseudo-random number generator, and allocates the stored data calling right to the feature model construction module;
[0161] The feature model building module calls the stored data, extracts the cycle length and start-up time features, builds a model based on these abstract features to judge the operation risk of the pseudo-random number generator, and assigns a corresponding judgment signal, and sends the judgment signal to the seed entropy source discrimination module;
[0162] The seed entropy source identification module identifies the predictability of the entropy source of the seed, accurately clarifies the adequacy of its entropy, and sends the accurate and clear results to the overall comprehensive evaluation module;
[0163] The comprehensive evaluation module comprehensively evaluates the operation characteristics of the pseudo-random number generator and the predictability of the seed source, presents a qualified signal generated by the hash function, and sends the signal to the information hash processing module;
[0164] After obtaining the qualified signal, the information hash processing module collects the usage data of online car-hailing users, transforms it using the hash function, assigns it the corresponding hash value, and attaches it to the data.
[0165] The above formulas are all dimensionless and numerical calculations. The formula is a formula for the most recent real situation obtained by collecting a large amount of data and performing software simulation. The preset parameters and thresholds in the formula are set by technicians in this field according to actual conditions.
[0166] The above embodiments can be implemented in whole or in part by software, hardware, firmware or any other combination. When implemented using software, the above embodiments can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that contains one or more available media sets. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium. The semiconductor medium can be a solid-state hard disk.
[0167] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0168] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0169] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0170] 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 of this embodiment.
[0171] 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.
[0172] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories (ROM), random access memories (RAM), magnetic disks or optical disks.
[0173] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0174] Finally: The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for managing online car-hailing information security based on a hash function, characterized in that: The steps include: Step S1: Based on the usage intensity of calling the pseudo-random number generator, dynamically collect its operation data in time series and store it; Step S2: calling the stored data, extracting the cycle length and start-up time characteristics therefrom, building a model based on these abstract characteristics to judge the operation risk of the pseudo-random number generator, and assigning a corresponding judgment signal; Step S3: Determine the predictability of the entropy source of the seed source and accurately clarify the adequacy of its entropy; Step S4: presenting a qualified signal generated by the hash function based on a comprehensive consideration of the operating characteristics of the pseudo-random number generator and the predictability of the seed source; Step S5: After obtaining the qualified signal, collect the usage data of online car-hailing users, transform it using the hash function, assign it a corresponding hash value, and attach it to the data.
2. The method for managing online car-hailing information security based on a hash function according to claim 1, characterized in that: Step S1 includes the following contents: Capture the operating parameters of the pseudo-random number generator according to the set acquisition frequency; Use timestamps to record the parameter status at each acquisition to form a time series data sequence; The collected parameters and their corresponding timestamps are stored in a database in a data structure; This is achieved through the following calculation formula: Among them, t i is the timestamp of the i-th acquisition, t i-1 is the timestamp of the last acquisition, f 采集 Indicates the acquisition frequency; Based on the calling time of the pseudo-random number generator; Let U(T) represent the usage intensity at time T, that is, the usage frequency within the rated time. The first-order derivative of the usage intensity can be calculated by the following formula: in, It indicates the rate of change of usage intensity, that is, the speed at which usage intensity changes over time, and is used to reflect the regularity of usage; When the rate of change of the usage intensity is greater than the threshold interval, a signal for increasing the acquisition frequency is generated; When the rate of change of the usage intensity is less than the threshold interval, a signal for reducing the acquisition frequency is generated; When the rate of change of the usage intensity is within the threshold range, no signal is generated.
3. The method for managing online car-hailing information security based on hash functions according to claim 2 is characterized in that: Step S2 includes the following contents: The stored data is called to extract cycle length and start-up time features, wherein the cycle length includes the spatiotemporal nested rhythmic index, the cycle length includes the spatiotemporal nested rhythmic index, and the start-up time includes the start-up time entropy.
4. The method for managing online car-hailing information security based on hash functions according to claim 3 is characterized in that: The process of obtaining the spatiotemporal nested rhythmic index is as follows: S2-1. Perform Fourier transform on the sequence generated by the pseudo-random number generator to obtain the spectrum. The calculation formula is: X(f) = FFT(PRNG Sequence ); Among them, PRNG Sequence It is a sequence generated by a pseudo-random number generator, that is, a series of pseudo-random numbers arranged in the order of generation; FFT represents the Fourier transform operation, which converts the pseudo-random number generator sequence in the time domain into a representation in the frequency domain; X(f) is the frequency spectrum, which represents the distribution of the pseudo-random number generator sequence in the frequency domain, where f represents the frequency; S2-2. Normalize the spectrum so that its peak is at a relatively large value: Determine the location of the peak by finding the peak point in the spectrum that is greater than the values on both sides; S2-3. Split the sequence into several subsequences, each subsequence has a length that is an integer multiple of the main periodic component; Calculate the fractal dimension of each subsequence and find the stable stage through the changing trend of the fractal dimension; Among them, δ represents the box size of the subsequence; N(δ) represents the minimum number of boxes required to cover the entire sequence with boxes of size δ; What is calculated is the ratio of the size and the logarithm of the number of boxes required to cover it; S2-4. Based on the results of fractal analysis, the stable stage of the main periodic components is obtained, and the spatiotemporal nested rhythmic index is the sequence length of this stage.
5. The method for managing online car-hailing information security based on hash functions according to claim 4 is characterized in that: The process of obtaining the startup time entropy is: S2-11. Generate a shorter sequence using a pseudo-random number generator, including the steps that the pseudo-random number generator goes through from an initial state to a normal generation state; S2-12. Consider the startup sequence as a probability distribution and calculate its information entropy: Among them, H startup Start information entropy; P o is the probability of the oth state in the start sequence; S2-13. In order to make the metric more universal, the startup time entropy is normalized to the interval [0,1]; Where n is the length of the start sequence and HN represents the initial time compression index.
6. The method for managing online car-hailing information security based on hash functions according to claim 5 is characterized in that: The spatiotemporal nested rhythm index and the start-up time entropy are processed comprehensively to obtain the random fusion control coefficient; Comparing the random fusion control coefficient with the operation classification threshold, if the random fusion control coefficient is greater than or equal to the operation classification threshold, generating a first low risk signal; On the contrary, if the random fusion control coefficient is less than the running classification threshold, the first high-risk signal is generated.
7. The method for managing online car-hailing information security based on hash functions according to claim 6 is characterized in that: Step S3 includes the following contents: S3-1. Divide the seed into substrings consisting of several bits and analyze the correlation between adjacent bits; S3-2. For each substring of adjacent bits, calculate its bit correlation entropy, which can be calculated by the following formula: Among them, H b (X) is the bit correlation entropy of adjacent bit substrings, P(x u,u+1 ) is the probability of the adjacent bit substring, and R represents the length of the adjacent bit substring; S3-3. Average the bit correlation entropy of all adjacent bit substrings to obtain the overall entropy, i.e., the holographic complexity index; Where HT is the holographic complexity index, M is the number of substrings; S3-4. Compare the holographic complexity index and the complex division threshold. If the holographic complexity index is greater than or equal to the complex division threshold, a second low-risk signal is generated; otherwise, if the holographic complexity index is less than the complex division threshold, a second high-risk signal is generated.
8. The method for managing online car-hailing information security based on hash functions according to claim 7 is characterized in that: Step S4 includes the following contents: If the first low-risk signal and the second low-risk signal are obtained at the same time, a qualified signal is generated; conversely, if the first low-risk signal and the second low-risk signal are not obtained at the same time, a failed signal is generated.
9. An online car-hailing information security management system based on a hash function, used to implement the management method described in any one of claims 1 to 8, comprising a dynamic time series acquisition module, a feature model building module, a seed entropy source identification module, a comprehensive evaluation module and an information hash processing module; The dynamic time series acquisition module dynamically acquires and stores the running data of the pseudo-random number generator based on the usage intensity of the pseudo-random number generator, and allocates the stored data calling right to the feature model construction module; The feature model building module calls the stored data, extracts the cycle length and start-up time features, builds a model based on these abstract features to judge the operation risk of the pseudo-random number generator, and assigns a corresponding judgment signal, and sends the judgment signal to the seed entropy source discrimination module; The seed entropy source identification module identifies the predictability of the entropy source of the seed, accurately clarifies the adequacy of its entropy, and sends the accurate and clear results to the overall comprehensive evaluation module; The comprehensive evaluation module comprehensively evaluates the operation characteristics of the pseudo-random number generator and the predictability of the seed source, presents a qualified signal generated by the hash function, and sends the signal to the information hash processing module; After obtaining the qualified signal, the information hash processing module collects the usage data of online car-hailing users, transforms it using the hash function, assigns it the corresponding hash value, and attaches it to the data.
Citation Information
Patent Citations
Cryptographically secure pseudo-random number generator
CN101292464A
Adaptive generation of a pseudo random number generator seed
US20100002877A1
Assessing cryptographic entropy
WO2013078556A1
