TRNGen: Truly Random Number Generator
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.
Content:
Features
- 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.
Requirements
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.
Installation
You can install TRNGen using pip:
pip install TRNGen
How to use
from trngen import TRNGen
generator = TRNGen()
-
Available parameters:
- Check here on TRNGen() parameters
-
Available functions:
-
trngen()- Main function that generates and returns the random integer hash value
-
hash(algorithm='sha3_256')- Returns random cryptographic hash
-
percentage(simple=False)- Returns random percentage in decimal form
-
integer(start, end)- Returns random integer in range from start to end
-
float(start, end)- Returns random float in range from start to end
-
alphanumeric(length=any)- Returns random alphanumeric value, default of letters, digits and symbols
-
choice(seq)- Randomly chooses a element from an iterable sequence
-
shuffle(seq, in_place=True)- Randomly shuffles an iterable
-
sample(seq, sample_size)- Randomly samples a specified number of elements from an iterable
-
License
This project is licensed under the MIT License - see the LICENSE file for details.
Support
If you encounter any issues or have questions, feel free to open an issue.
Metadata
Release files for TRNGen 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| TRNGen-0.0.2.tar.gz | 7.6 kB | Without provenance | Details for TRNGen-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| TRNGen-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for TRNGen-0.0.2-py3-none-any.whl |
Total release size: 17.3 kB
Release files / TRNGen-0.0.2.tar.gz
| Download URL | TRNGen-0.0.2.tar.gz |
|---|---|
| Size | 7.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cb4e0b21eae1878286b02fd18560c294158a4d5fd33ef8c4a5c0e5068848651a
|
|
BLAKE2b-256 checksum How to use checksums |
6e46c1343760d81652e58f15978cf7eba82aecb1ba7a18b54bc7c2321dfe3a66
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Release files / TRNGen-0.0.2-py3-none-any.whl
| Download URL | TRNGen-0.0.2-py3-none-any.whl |
|---|---|
| Size | 9.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b6e5aa8232c84fdf5a70964117f820a542e72bb62bc6d6cc35ea7e47e8535838
|
|
BLAKE2b-256 checksum How to use checksums |
9938bade8ea67ce54838bc4aff5d99a46487a0ecd81a3c8db2d9625445a04f65
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Security for TRNGen 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.