TRNGen is a Python package that provides a secure and unpredictable random number generator by incorporating external entropy factors such as audio, disk and network I/O readings, events, display, mouse coordinates, and timer. These factors are combined using XOR, hashing algorithms, and linearity deviation to produce truly random values that avoid algorithmic prediction.
- External Factors: Utilizes various external entropy factors to enable true randomness.
Audio: Captures audio data.DiskI/O Readings: Includes disk I/O readings.NetworkI/O Readings: Incorporates network I/O readings for added entropy.Display: Utilizes random display information for increased unpredictability.Mouse Coordinates: Captures mouse coordinates.Timer: Includes timer values in the randomization process.
- Secure: Employs cryptographic techniques on top of above values to ensure unpredictability.
XORfunctionHashingalgorithmsLinearity Deviationmethod
- Easy Integration: Simple Python package use for easy integration into your projects.
Python >= 3.7- Download the installer, run it and follow the steps.
- Make sure to check the box that says
Add Python to PATHduring installation. - Reboot computer.
You can install TRNGen using pip:
pip install TRNGenfrom trngen import TRNGengenerator = TRNGen()-
- Check here on TRNGen() parameters
-
-
- Main function that generates and returns the random integer hash value
-
- Returns random cryptographic hash
-
- Returns random percentage in decimal form
-
- Returns random integer in range from start to end
-
- Returns random float in range from start to end
-
- Returns random alphanumeric value, default of letters, digits and symbols
-
- Randomly chooses a element from an iterable sequence
-
- Randomly shuffles an iterable
-
- Randomly samples a specified number of elements from an iterable
-
This project is licensed under the MIT License - see the LICENSE file for details.
If you encounter any issues or have questions, feel free to open an issue.