GithubHelp home page GithubHelp logo

jki757 / truerng Goto Github PK

View Code? Open in Web Editor NEW

This project forked from euler357/truerng

0.0 1.0 0.0 60 KB

Scripts, Drivers, and Utilities for the TrueRNG and TrueRNGpro Random Number Generators

Shell 0.16% Python 99.63% Batchfile 0.21%

truerng's Introduction

TrueRNG Utilities

Scrips and Utilities for the TrueRNG and TrueRNGpro Random Number Generators

Devices and information available at: https://ubld.it/products/

Tools (Windows and Linux)

  • truerng_find.py: Scans COM ports and identifies all connected TrueRNG devices
  • truerng_generate_password.py: Example of how to create random passwords from TrueRNG devices
  • truerng_generate_words.py: Example of how to create random word lists from TrueRNG devices
  • truerng_mode.py: Example of how to change modes on TrueRNGpro and TrueRNGproV2 devices
  • truerng_read_example.py: Example of how to read from a TrueRNG device
  • truerng_test.py: Finds and performs testing on connected TrueRNG devices

Tools (Linux Only)

  • truerng_fulltest.py: Reads a large block of data (14GB) and runs ent, rngtest, and dieharder (takes ~9 hours on the TrueRNGpro / TrueRNGproV2)
  • run_rngtest: Linux script to run rngtest since it doensn't like to be called directly from Python - this is a "helper" for truerng_fulltest.py and isn't meant to be used directly

Windows INSTRUCTIONS

  1. Install Python 64-bit for Windows from: https://www.python.org/ftp/python/3.8.3/python-3.8.3-amd64.exe

  2. Put all files in the same directory - recommend c:\users\YOUR_USERNAME\TrueRNGutils or similar that you can remember

  3. Open a command prompt (run the cmd command in Windows)

  4. Change to the directory you created above and run:

install_python_libs.bat

  1. Plug in a single TrueRNG V1, V2, V3, Pro, or ProV2

  2. Run the python TrueRNG test app

py truerng_test.py

OR

truerng_test.py (if .py is associated with python3)

This app should detect the device, run tests, and display results both in text and a graph of the performance.

Linux Instructions (Ubuntu / Debian-based)

  1. Install Python3

sudo apt install python3

  1. Put all of the TrueRNGutils files in one directory (recommend /home/USERNAME/TrueRNGutils)

  2. Install the required Python libraries

python3 -m pip install pyserial pyusb matplotlib numpy nltk

  1. Run the python TrueRNG test app

python3 truerng_test.py

OR

./truerng_test.py (if your file permissions will allow execution)

This app should detect the device, run tests, and display results both in text and a graph of the performance.

More Python Tools and info at: https://cockrum.net

What the Results of truerng_test.py should look like

TrueRNGv1/v2/v3

TrueRNGv3_Test TrueRNGv3_Test

TrueRNGpro (replaced by TrueRNGproV2)

TrueRNGproV1_Test TrueRNGproV1_Test

TrueRNGproV2 (Current Amazon sales of the TrueRNGpro are shipping this unit)

TrueRNGproV2_Test TrueRNGproV2_Graph

Output of truerng_generate_password.py and truerng_generate_words.py

truerng_generate_password.py Output truerng_generate_password.py Output

truerng's People

Contributors

euler357 avatar squintz avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.