Method for establishing random number table of digits behind pi decimal point
A technology of random number table and establishment method, applied in random number generator, electric digital data processing, digital data processing components and other directions, can solve the problems of the rate decline, slow speed of retrieval statistics, and imperfect construction of π decimal point, etc. , to achieve the effect of strong randomness and increased difficulty in cracking
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0033] The random number table establishment method of the number of digits behind the π decimal point comprises the following steps:
[0034] Step 1: Establish the storage structure of the number of digits behind the π decimal point (0, 1, 2, 3, 4, 5, 6, 7, 8, 9), and establish the storage method of the number of digits after the π decimal point, respectively with 30,000 digits, The original value of π is stored in different ways of 100,000 bits and 300,000 bits, and different fields are established with 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9, and the storage structure of bit data type is used for storage. Store the original value of π in various forms, store the original value of π in segments, and quickly read data within 300,000 bits. The storage structure and data format are as follows: figure 1 Shown:
[0035] The decimals of π are marked and stored according to the occurrence positions of 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9, and the bit data type in the database is used. The sp...
Embodiment 2
[0048] Let's use an example to verify the algorithm:
[0049] To send the plain text "Good reading is not good for reading, good reading is not good for reading", you can get the following table according to the Chinese code query
[0050] it is good
read
Book
No
it is good
read
Book
1107
6236
2579
0008
1170
6236
2579
[0051] Set the code of each word as a four-dimensional vector Get the plaintext code vector group {x 1 ,x 2 ,...,x 7}.
[0052] Starting from the 20th digit of the decimal point of pi, take 16 consecutive digits to construct a fourth-order square matrix A 1 , in order to get the matrix A 2 ,A 3 ,...,A 7 . The result is as follows:
[0053]
[0054]
[0055] A can be obtained by calculation 1 ,A 2 ,A 3 ,...,A 7 are reversible, calculate
[0056] The encrypted ciphertext is as follows:
[0057]
[0058] The decryption process is as follows:
[0059] Find the encryption ...
Embodiment 3
[0061] program implementation
[0062]
[0063]
[0064]
[0065]
[0066]
[0067]
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com