Movatterモバイル変換


[0]ホーム

URL:


CN117667016B - Random number generation method, device, computer equipment and storage medium - Google Patents

Random number generation method, device, computer equipment and storage medium
Download PDF

Info

Publication number
CN117667016B
CN117667016BCN202311747193.2ACN202311747193ACN117667016BCN 117667016 BCN117667016 BCN 117667016BCN 202311747193 ACN202311747193 ACN 202311747193ACN 117667016 BCN117667016 BCN 117667016B
Authority
CN
China
Prior art keywords
data
preset
response
encryptor
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202311747193.2A
Other languages
Chinese (zh)
Other versions
CN117667016A (en
Inventor
荆涛
吉达勇
李倩
贺仕俊
任晓贤
刘玢
路向宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Life Insurance Co ltd
Original Assignee
China Life Insurance Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Life Insurance Co ltdfiledCriticalChina Life Insurance Co ltd
Priority to CN202311747193.2ApriorityCriticalpatent/CN117667016B/en
Publication of CN117667016ApublicationCriticalpatent/CN117667016A/en
Application grantedgrantedCritical
Publication of CN117667016BpublicationCriticalpatent/CN117667016B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

The application relates to a random number generation method, a random number generation device, computer equipment and a storage medium. The method comprises the steps of determining target coding data according to relevant data of items to be processed and response data of an encryptor, performing data conversion on the coding data according to a preset password hashing algorithm to obtain a coding feature sequence, and performing multiple operation processing according to preset extraction indexes, the coding feature sequence and preset character data to obtain a target multi-bit random number. The method can generate random numbers with randomness, non-speculativity and non-repeatability according to different project requirements, can select a random number generation mode with higher efficiency based on response data of the encryptor, and avoids occupation of a front-end application thread pool caused by special conditions of slow response of the hardware encryptor and the like, thereby ensuring high service availability.

Description

Random number generation method, device, computer equipment and storage medium
Technical Field
The present application relates to the field of information security technologies, and in particular, to a method and apparatus for generating a random number, a computer device, and a storage medium.
Background
With the rapid development of the internet, dynamic password authentication systems have been developed to meet the increasing demands of enterprises such as operators, financial institutions and the like in terms of identity security authentication. These demands are focused on the fields of online banking identity authentication, online game identity authentication, mobile payment identity authentication, enterprise internal login authentication, telecom self-service identity authentication, etc. The dynamic password authentication system improves the guarantee of user identity security, helps enterprises effectively prevent risks of identity theft and information leakage, and promotes the safety and reliability of Internet application.
In the conventional art, a random number generation algorithm is mostly used to generate a data sequence that appears to be random. The generated data sequence is then used to generate an encryption key or authentication password, etc., to protect the security of the data.
However, in conventional techniques, pseudo-random number generation algorithms are typically based on deterministic mathematical calculations or fixed seeds, which make the output of the algorithm somewhat predictable. When an attacker obtains a portion of the information of the random number sequence, it is possible to infer the next random number, thereby exacerbating the security risk.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a random number generation method, apparatus, computer device, computer readable storage medium, and computer program product that can improve data randomness and data security.
In a first aspect, the present application provides a method for generating a random number, including:
Determining target coding data according to the related data of the item to be processed and the response data of the encryptor;
performing data conversion on the coded data according to a preset password hash algorithm to obtain a coded characteristic sequence;
And performing multiple operation processing according to the preset extraction index, the coding feature sequence and the preset character data to obtain the target multi-bit random number.
In one embodiment, determining target encoded data from item-related data to be processed and encryptor response data includes:
When receiving a project response request, sending an encryptor response request and recording the encryptor response time length, wherein the project response request comprises data related to a project to be processed;
Comparing the response time length of the encryptor with a preset response threshold value of the encryptor to obtain a response comparison result;
And determining target coding data based on the response comparison result and the item related data to be processed.
In one embodiment, determining target coded data based on the response comparison and item-related data to be processed includes:
when the response comparison result is that response feedback data is obtained within a preset response threshold value of the encryptor, ending the record of the response duration of the encryptor;
Carrying out data preprocessing on the item related data to be processed and response feedback data to obtain first target coding data, wherein the item related data to be processed comprises the item data to be processed and corresponding timestamp data thereof, and the response feedback data comprises random data;
when the response comparison result is that the response time length of the encryptor exceeds the preset response threshold value of the encryptor, carrying out data preprocessing on the related data of the item to be processed, and obtaining second target coded data.
In one embodiment, performing data conversion on target encoded data according to a preset cryptographic hash algorithm to obtain an encoded feature sequence, including:
Performing data preprocessing on the target coded data according to the preset password hash algorithm to obtain preprocessed coded data;
And carrying out data extraction on the preprocessed encoded data based on a preset random function to obtain an encoding characteristic sequence.
In one embodiment, performing multiple operation processes according to a preset extraction index, a coding feature sequence and preset character data to obtain a target multi-bit random number, including:
Performing operation execution judgment according to the operated times and a preset operation processing threshold value to obtain an execution judgment result;
when the execution judgment result is that the calculated times do not exceed a preset operation processing threshold value, determining the sequence extraction position of the current operation based on a preset random number generating function;
Performing multiple operation processing according to the sequence extraction position, the preset extraction index, the coding feature sequence and the preset character data of the current operation to obtain a target random character of the current operation and updating the operated times;
And sequencing the plurality of target random characters based on the acquisition sequence until the updated calculated times are equal to a preset calculation processing threshold value, so as to obtain the target multi-bit random number.
In one embodiment, performing multiple operation processes according to the sequence extraction position of the current operation, the coding feature sequence and the preset character data to obtain the target random character of the current operation and update the operated times, including:
carrying out data extraction on the coding feature sequence according to the sequence extraction position and the preset extraction length of the current operation to obtain a target part sequence of the current operation;
Performing operation processing on the target part sequence of the current operation based on a preset data processing algorithm to obtain target index data;
and determining target random characters according to the target index data, the preset mapping relation and the preset dictionary table, and updating the current calculated times.
In a second aspect, the present application also provides a random number generating device, including:
the code selection module is used for determining target code data according to the related data of the item to be processed and the response data of the encryptor;
the data processing module is used for carrying out data conversion on the coded data according to a preset password hash algorithm to obtain a coded characteristic sequence;
and the character generation module is used for carrying out operation processing for a plurality of times according to the preset extraction index, the coding feature sequence and the preset character data to obtain the target multi-bit random number.
In a third aspect, the present application also provides a computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
Determining target coding data according to the related data of the item to be processed and the response data of the encryptor;
performing data conversion on the coded data according to a preset password hash algorithm to obtain a coded characteristic sequence;
And carrying out operation processing for a plurality of times according to the preset extraction index, the coding feature sequence and the preset dictionary table to obtain the target multi-bit random number.
In a fourth aspect, the present application also provides a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
Determining target coding data according to the related data of the item to be processed and the response data of the encryptor;
performing data conversion on the coded data according to a preset password hash algorithm to obtain a coded characteristic sequence;
And performing multiple operation processing according to the preset extraction index, the coding feature sequence and the preset character data to obtain the target multi-bit random number.
In a fifth aspect, the application also provides a computer program product comprising a computer program which, when executed by a processor, performs the steps of:
Determining target coding data according to the related data of the item to be processed and the response data of the encryptor;
performing data conversion on the coded data according to a preset password hash algorithm to obtain a coded characteristic sequence;
And performing multiple operation processing according to the preset extraction index, the coding feature sequence and the preset character data to obtain the target multi-bit random number.
According to the random number generation method, the device, the computer equipment, the storage medium and the computer program product, when the project response request is received, the related data of the project to be processed is extracted from the project response request, then the data processing is carried out by combining the response data of the encryptor to obtain the coding feature sequence for generating the random number corresponding to the project to be processed, a part sequence with a certain length is randomly obtained from the coding feature sequence, the obtained part sequence is converted into an integer, the integer operation processing is carried out after conversion to obtain the query index, the corresponding character is searched in the preset dictionary table, after a plurality of circulating operations, the random number with a certain length is obtained, the random number with randomness, non-speculation and non-repeatability can be generated according to different project requirements, in addition, the random number generation mode with higher efficiency can be selected based on the response data of the encryptor, the occupation of a front-end application thread pool caused by the special conditions of slow response of the hardware encryptor is avoided, and the high service availability is guaranteed.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the related art, the drawings that are required to be used in the embodiments or the related technical descriptions will be briefly described, and it is apparent that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to the drawings without inventive effort for those skilled in the art.
FIG. 1 is a flow chart of a method of generating random numbers in one embodiment;
FIG. 2 is a flow diagram of a process for generating an acquisition random number in one embodiment;
FIG. 3 is a block diagram of a random number generating device in one embodiment;
fig. 4 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
In one embodiment, as shown in fig. 1, a method for generating a random number is provided, where this embodiment is applied to a terminal for illustration, it is understood that the method may also be applied to a server, and may also be applied to a system including a terminal and a server, and implemented through interaction between the terminal and the server. In this embodiment, the method includes the steps of:
And 102, determining target coding data according to the item related data to be processed and the encryptor response data.
Wherein the encryptor response data includes response feedback data.
Illustratively, after the item response request is acquired, the item-related data to be processed is extracted from the item response request, wherein the item-related data to be processed includes the item data to be processed and the corresponding timestamp data thereof. And sends a response request to the encryptor and determines whether the encryptor is responding.
And when the encryptor responds, receiving encryptor response data comprising response feedback data, and processing by combining the related data of the item to be processed to obtain target coding data.
Or when the encryptor does not respond, processing the related data of the item to be processed to obtain target coded data.
And 104, performing data conversion on the coded data according to a preset password hash algorithm to obtain a coded characteristic sequence.
Illustratively, after the target encoded data is obtained, the feature value corresponding to the encoded data is converted into a feature sequence, i.e., an encoded feature sequence.
And 106, performing multiple operation processing according to the preset extraction index, the coding feature sequence and the preset character data to obtain the target multi-bit random number.
The preset extraction index comprises a preset extraction length, and the preset character data comprises a preset mapping relation and a preset dictionary table.
Illustratively, multiple arithmetic processes are required for the coded feature sequence.
And intercepting a partial sequence from the coding feature sequence based on a preset extraction index during each operation processing, performing one-time operation processing on the intercepted partial sequence to obtain a character index, and searching character data corresponding to the character index in preset character data.
After the completion of the multiple arithmetic processing, the obtained plurality of character data are sequentially combined into the target multi-bit random number.
According to the random number generation method, when the project response request is received, the related data of the project to be processed is extracted from the project response request, then the data processing is carried out by combining the response data of the encryptor to obtain the coding feature sequence for generating the random number corresponding to the project to be processed, a partial sequence with a certain length is randomly obtained from the coding feature sequence, the obtained partial sequence is converted into an integer, the integer operation is carried out after conversion to obtain the query index, the corresponding character is searched in the preset dictionary table, after a plurality of times of cyclic operations, the random number with a certain length is obtained, random numbers with randomness, irrelevance and irrelevance can be generated according to different project requirements, and the random number generation mode with higher efficiency can be selected based on the response data of the encryptor, so that front-end application thread pool occupation caused by special conditions such as slow response of the hardware encryptor is avoided, and the service high availability is guaranteed.
In one exemplary embodiment, determining target encoded data from item-related data to be processed and encryptor response data includes:
when receiving a project response request, sending an encryptor response request and recording the encryptor response time length, wherein the project response request comprises data related to the project to be processed, comparing the encryptor response time length with a preset encryptor response threshold value to obtain a response comparison result, and determining target coding data based on the response comparison result and the data related to the project to be processed.
Illustratively, after receiving the project response request, the data related to the project to be processed is extracted from the project response request, while the response request is sent to the encryptor and the recording of the response time period is started. And judging whether the response time length exceeds a preset encryptor response threshold while recording the response time length.
If the encryptor response data sent by the encryptor is received within the preset encryption response threshold, the encryptor response data is combined with the related data of the item to be processed to perform data processing, and target coding data is obtained.
If the response feedback of the encryptor is not received within the preset encryption response threshold, carrying out data processing on the related data of the item to be processed to obtain target coded data.
In this embodiment, a random number generation mode with higher efficiency is selected based on response data of the encryptor, so that occupation of a front-end application thread pool is avoided.
In one exemplary embodiment, determining target coded data based on the response comparison and item-related data to be processed includes:
When the response comparison result is that the response time length of the encryptor exceeds the preset encryptor response threshold value, the data preprocessing is performed on the related data of the item to be processed to obtain the first target coded data, and when the response comparison result is that the response time length of the encryptor exceeds the preset encryptor response threshold value, the data preprocessing is performed on the related data of the item to be processed to obtain the second target coded data.
The data related to the item to be processed comprises the data of the item to be processed and the corresponding time stamp data, and the response feedback data comprises random data.
Illustratively, when the response feedback data is obtained within a preset encryptor response threshold, the response feedback data is encryptor-generated random data, i.e., true random numbers. And splicing the related data to be processed, the time stamp data and the random data to obtain the data to be processed for generating the multi-bit random number, namely the first target coding data.
When the response time length of the encryptor exceeds a preset encryptor response threshold, the related data to be processed and the timestamp data are spliced to obtain the data to be processed for generating the multi-bit random number, namely second target coded data.
In this embodiment, by comparing and judging the preset encryptor response threshold value and the recorded response duration, whether to receive the encryptor response data is determined, and then a random number generation mode with higher efficiency is selected, so that occupation of a front-end application thread pool is avoided.
In an exemplary embodiment, performing data conversion on target encoded data according to a preset cryptographic hash algorithm to obtain a coded feature sequence, including:
And carrying out data extraction on the pre-processed encoded data based on a preset random function to obtain an encoding characteristic sequence.
After the target encoded data is obtained, a hash calculation is performed on the target encoded data by using a preset password hash algorithm, so that characteristics of the target encoded data are obtained and converted into characteristic sequences, namely the target encoded data are preprocessed. And then generating a random number by using a preset random function, and extracting a sequence with a certain length at a position corresponding to the random number of the characteristic sequence, namely the coding characteristic sequence. For example, a sequence of 32 bits in length needs to be extracted, a random number pos (pos < = 256-32) is calculated by using ThreadLocalRandom functions, and a 32-bit code sequence is extracted from the random number pos.
In the embodiment, the integrity of the data can be rapidly and accurately verified, and the data is ensured not to be tampered or damaged in the transmission or storage process.
In an exemplary embodiment, as shown in fig. 2, the target multi-bit random number is obtained by performing a plurality of arithmetic processes according to the preset extraction index, the coding feature sequence and the preset character data, including the following steps 202 to 208. Wherein:
step 202, performing operation execution judgment according to the operated times and a preset operation processing threshold value to obtain an execution judgment result.
Illustratively, after the encoded signature sequence is obtained, the number of arithmetic processing times is determined based on the number of bits of the random number that needs to be transmitted.
Before each operation processing, comparing the operated times with a preset operation processing threshold value, namely, the preset operation times, if the operated times do not exceed the preset operation processing threshold value, carrying out one operation processing on the coding feature sequence, and if the operated times exceed the preset operation processing threshold value, stopping the operation processing.
Step 204, when the execution judgment result is that the number of times of operation does not exceed the preset operation processing threshold, determining the sequence extraction position of the current operation based on the preset random number generating function.
Illustratively, when the preset operation processing threshold is not exceeded, the extractable position of the current operation, that is, the sequence extraction position is obtained using a random number generation function.
And 206, performing multiple operation processes according to the sequence extraction position, the preset extraction index, the coding feature sequence and the preset character data of the current operation to obtain the target random character of the current operation and update the operated times.
The preset extraction index comprises a preset extraction length.
Illustratively, after determining the extractable position of the encoded feature sequence, a partial sequence is extracted from the currently operated extractable position of the encoded feature sequence based on a preset extraction index, for example, a 32-bit partial sequence is acquired from the extractable position of the encoded feature sequence of 256 bits. And then carrying out operation processing on the partial sequence to obtain the target random character of the current operation. Thereafter, the number of times of the operation is increased once.
Step 208, sorting the plurality of target random characters based on the acquisition sequence until the updated calculated times are equal to the preset calculation processing threshold value, and obtaining the target multi-bit random number.
Illustratively, after the multiple operation processes are completed, the multiple target random characters obtained by the multiple operation operations are spliced according to the acquisition sequence to obtain the target multi-bit random number.
In this embodiment, a partial sequence with a certain length is randomly acquired from the coding feature sequence, the acquired partial sequence is converted into an integer, the converted integer is operated to obtain a query index, corresponding characters are searched in a preset dictionary table, and after a plurality of cyclic operations, a random number with a certain length is obtained, so that random numbers with randomness, non-speculation and non-repeatability can be generated according to different project requirements.
In an exemplary embodiment, performing a plurality of operation processes according to a sequence extraction position of a current operation, a code feature sequence, and preset character data, obtaining a target random character of the current operation and updating the number of operated times, including:
The method comprises the steps of carrying out data extraction on a coding feature sequence according to a sequence extraction position and a preset extraction length of current operation to obtain a target part sequence of the current operation, carrying out operation processing on the target part sequence of the current operation based on a preset data processing algorithm to obtain target index data, determining target random characters according to the target index data, a preset mapping relation and a preset dictionary table, and updating the current operated times.
The preset extraction index comprises a preset extraction length, and the preset character data comprises a preset mapping relation and a preset dictionary table.
The method includes extracting a partial sequence of a certain length from a coding feature sequence based on a sequence extraction position, converting the partial sequence into an integer, performing operations on the converted integer to obtain target index data by using modulo operation, remainder operation and the like, searching a target random character corresponding to the target index data in a preset dictionary table through a preset mapping relation, and increasing the number of times of operation once after searching is completed.
In this embodiment, a partial sequence with a certain length is randomly acquired from the coding feature sequence, the acquired partial sequence is converted into an integer, the converted integer is operated to obtain a query index, and corresponding characters are searched in a preset dictionary table, so that random numbers with different combinations can be obtained according to actual requirements, and the randomness of the generated data is improved.
In one exemplary embodiment, a method of generating a random number is provided, the method comprising the steps of:
And when receiving the project response request, sending an encryptor response request and recording the encryptor response time, wherein the project response request comprises the related data of the project to be processed.
And comparing the response time length of the encryptor with a preset response threshold value of the encryptor to obtain a response comparison result.
And when the response comparison result is that the response feedback data is obtained within the preset response threshold value of the encryptor, ending the record of the response duration of the encryptor.
And carrying out data preprocessing on the related data of the item to be processed and the response feedback data to obtain first target coding data. The data related to the item to be processed comprises the data of the item to be processed and the corresponding time stamp data, and the response feedback data comprises random data.
When the response comparison result is that the response time length of the encryptor exceeds the preset response threshold value of the encryptor, carrying out data preprocessing on the related data of the item to be processed, and obtaining second target coded data.
And carrying out data preprocessing on the target coded data to obtain preprocessed coded data.
And carrying out data division on the preprocessed encoded data to obtain a plurality of encoded data blocks.
And carrying out compression function processing on each coded data block to obtain a function processing result.
A coding feature sequence is determined based on the plurality of function processing results.
And after each target random character is obtained, carrying out operation execution judgment according to the operated times and a preset operation processing threshold value, and obtaining an execution judgment result.
And when the execution judgment result is that the calculated times do not exceed the preset operation processing threshold value, determining the sequence extraction position of the current operation based on the preset random number generation function.
And carrying out data extraction on the coding feature sequence according to the sequence extraction position and the preset extraction length of the current operation to obtain a target part sequence of the current operation.
And carrying out operation processing on the target part sequence of the current operation based on a preset data processing algorithm to obtain target index data.
And determining target random characters according to the target index data, the preset mapping relation and the preset dictionary table, and updating the current calculated times.
And sequencing the plurality of target random characters based on the acquisition sequence until the updated calculated times are equal to a preset calculation processing threshold value, so as to obtain the target multi-bit random number.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides a random number generation device for realizing the random number generation method. The implementation of the solution provided by the device is similar to the implementation described in the above method, so the specific limitation in the embodiment of one or more random number generating devices provided below may be referred to the limitation of the random number generating method hereinabove, and will not be repeated here.
In one exemplary embodiment, as shown in FIG. 3, a random number generation apparatus is provided, comprising a code selection module 302, a data processing module 304, and a character generation module 306, wherein:
the code selection module 302 is configured to determine target code data according to the item related data to be processed and the encryptor response data.
The data processing module 304 is configured to perform data conversion on the encoded data according to a preset cryptographic hash algorithm, so as to obtain a coding feature sequence.
The character generating module 306 is configured to perform multiple operations according to a preset extraction index, a coding feature sequence, and a preset dictionary table, so as to obtain a target multi-bit random number.
In an exemplary embodiment, the code selection module 302 is further configured to send a response request of the encryptor and record a response time of the encryptor when receiving the response request of the item, compare the response time of the encryptor with a preset response threshold of the encryptor to obtain a response comparison result, and determine target code data based on the response comparison result and the related data of the item to be processed.
In an exemplary embodiment, the code selection module 302 is further configured to end recording of the response duration of the encryptor when the response comparison result is that the response feedback data is obtained within a preset encryptor response threshold;
And when the response comparison result is that the response time length of the encryptor exceeds a preset encryptor response threshold value, carrying out data preprocessing on the related data of the item to be processed to obtain second target coded data.
In an exemplary embodiment, the data processing module 304 is further configured to perform data preprocessing on the target encoded data to obtain preprocessed encoded data; carrying out data division on the preprocessed coded data to obtain a plurality of coded data blocks, carrying out compression function processing on each coded data block to obtain a function processing result;
a coding feature sequence is determined based on the plurality of function processing results.
In an exemplary embodiment, the character generating module 306 is further configured to perform operation execution judgment according to the number of times operated and a preset operation processing threshold after each target random character is obtained, obtain an execution judgment result, determine a sequence extraction position of the current operation based on a preset random number generating function when the execution judgment result is that the number of times operated does not exceed the preset operation processing threshold, perform multiple operation processing according to the sequence extraction position of the current operation, a preset extraction index, a coding feature sequence and preset character data, obtain the target random character of the current operation and update the number of times operated until the updated number of times operated is equal to the preset operation processing threshold, and sort the plurality of target random characters based on the acquisition order, so as to obtain the target multi-bit random number.
In an exemplary embodiment, the character generating module 306 is further configured to perform data extraction on the code feature sequence according to the sequence extraction position and the preset extraction length of the current operation to obtain a target part sequence of the current operation, perform operation processing on the target part sequence of the current operation based on a preset data processing algorithm to obtain target index data, determine a target random character according to the target index data, the preset mapping relationship and the preset dictionary table, and update the number of times of the current operation.
Each of the modules in the random number generating device described above may be implemented in whole or in part by software, hardware, or a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one exemplary embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 4. The computer device includes a processor, a memory, an Input/Output interface (I/O) and a communication interface. The processor, the memory and the input/output interface are connected through a system bus, and the communication interface is connected to the system bus through the input/output interface. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is used for storing the data of the items to be processed and the response data of the encryptor. The input/output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method of random number generation.
It will be appreciated by persons skilled in the art that the architecture shown in fig. 4 is merely a block diagram of some of the architecture relevant to the present inventive arrangements and is not limiting as to the computer device to which the present inventive arrangements are applicable, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In an exemplary embodiment, a computer device is provided, comprising a memory and a processor, the memory having stored therein a computer program, the processor performing the steps of the method embodiments described above when the computer program is executed.
In one exemplary embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method embodiments described above.
In an exemplary embodiment, a computer program product is provided, comprising a computer program which, when executed by a processor, implements the steps of the method embodiments described above.
It should be noted that, the user information (including but not limited to user equipment information, user personal information, etc.) and the data (including but not limited to data for analysis, stored data, presented data, etc.) related to the present application are both information and data authorized by the user or sufficiently authorized by each party, and the collection, use and processing of the related data are required to meet the related regulations.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magneto-resistive random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (PHASE CHANGE Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in various forms such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), etc. The databases referred to in the embodiments provided herein may include at least one of a relational database and a non-relational database. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processor referred to in the embodiments provided in the present application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, or the like, but is not limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples illustrate only a few embodiments of the application and are described in detail herein without thereby limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of the application should be assessed as that of the appended claims.

Claims (8)

the encoding selection module is used for determining target encoding data according to the item-related data to be processed and the encryptor response data, wherein the encryptor response data comprises response feedback data, is used for sending an encryptor response request and recording the encryptor response time length when receiving the item response request, wherein the item response request comprises the item-related data to be processed, comparing the encryptor response time length with a preset encryptor response threshold value to obtain a response comparison result, determining the target encoding data based on the response comparison result and the item-related data to be processed, ending the recording of the encryptor response time length when the response comparison result is the response feedback data obtained within the preset encryptor response threshold value, carrying out data preprocessing on the item-related data to be processed and the response feedback data to obtain first target encoding data, wherein the item-related data to be processed comprises the item-related data to be processed and corresponding timestamp data thereof, the response feedback data comprises random data, and carrying out data preprocessing on the item-related data to be processed when the response comparison result is that the encryptor response time length exceeds the preset encryptor response threshold value to obtain second target encoding data;
CN202311747193.2A2023-12-192023-12-19 Random number generation method, device, computer equipment and storage mediumActiveCN117667016B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202311747193.2ACN117667016B (en)2023-12-192023-12-19 Random number generation method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202311747193.2ACN117667016B (en)2023-12-192023-12-19 Random number generation method, device, computer equipment and storage medium

Publications (2)

Publication NumberPublication Date
CN117667016A CN117667016A (en)2024-03-08
CN117667016Btrue CN117667016B (en)2024-12-13

Family

ID=90076975

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202311747193.2AActiveCN117667016B (en)2023-12-192023-12-19 Random number generation method, device, computer equipment and storage medium

Country Status (1)

CountryLink
CN (1)CN117667016B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
WO2016014120A1 (en)*2014-07-242016-01-28Hewlett-Packard Development Company, L.P.Device authentication agent
CN116662975A (en)*2023-05-262023-08-29济南浪潮数据技术有限公司 A password generation method, device, electronic equipment and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
EP3238367B1 (en)*2014-12-232019-05-22Telefonaktiebolaget LM Ericsson (publ)Technique for generating a password
US11356283B2 (en)*2019-05-082022-06-07Seagate Technology LlcData storage using an encryption key with a time expiration associated therewith
WO2021247766A1 (en)*2020-06-052021-12-09William David SchwadererShapeshift data encryption methods and systems
CN113726512B (en)*2021-08-312024-10-18蔡利锋Key generation and distribution method, key generation device, and key management system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
WO2016014120A1 (en)*2014-07-242016-01-28Hewlett-Packard Development Company, L.P.Device authentication agent
CN116662975A (en)*2023-05-262023-08-29济南浪潮数据技术有限公司 A password generation method, device, electronic equipment and storage medium

Also Published As

Publication numberPublication date
CN117667016A (en)2024-03-08

Similar Documents

PublicationPublication DateTitle
US11669637B2 (en)Decentralized token table generation
US20220004621A1 (en)Data recovery through reversal of hash values using probabilistic data structures
US10083194B2 (en)Process for obtaining candidate data from a remote storage server for comparison to a data to be identified
CN110489466B (en)Method and device for generating invitation code, terminal equipment and storage medium
CN111723360A (en)Voucher code processing method and device and storage medium
CN112073444A (en)Data set processing method and device and server
US12120129B1 (en)Detection of abnormal application programming interface (API) sessions including a sequence of API requests
Gao et al.Similarity-based secure deduplication for IIoT cloud management system
CN113282543B (en)Verifiable searchable encryption method, device and equipment with forward security
CN117667016B (en) Random number generation method, device, computer equipment and storage medium
CN112580114A (en)Information processing method, device, equipment and storage medium
CN114493850A (en) Artificial intelligence-based online notarization method, system and storage medium
CN114091063A (en) Key storage, recovery, payment processing method, apparatus, device and storage medium
CN115935429B (en)Data processing method, device, medium and electronic equipment
CN117499052B (en) Digital signature method, device, equipment and computer-readable storage medium
US9805205B2 (en)Adaptive system profile
CN117714099A (en)Anticreeper method, anticreeper device, computer equipment and storage medium
CN117118594A (en)Authentication method, authentication device, authentication equipment, authentication storage medium and authentication product for business processing procedure
CN117118593A (en)Authentication method, authentication device, authentication equipment, authentication storage medium and authentication product for business processing procedure
CN119109592A (en) Password protection method, password verification method, device and terminal
CN117910056A (en)Chip hidden data transmission method, device, computer equipment and storage medium
CN120811681A (en)Data encryption method, device, equipment and storage medium
CN118646578A (en) Active safety monitoring method, device, equipment, storage medium and program product
CN115378607A (en)Password verification method and device
CN117910055A (en)Encryption transmission method and device for chip data, chip and storage medium

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp