
An awesome TRNG based on a modified galton board.
Includes a REST API and a simple frontend.
Explore the docs »
Table of Contents
![]() |
![]() |
---|
The Galton Board is a Physical True Random Number Generator.
The goal is to generate random numbers that can be used for cryptographic processes.
It is based on a physical noise source and generates random numbers that fulfill the required PTG.2 standard of the
Federal Office for Information Security (BSI).
We offer a REST API interface or a web application with a user interface for operation.
To get a local copy of the project up and running follow these simple example steps.
The project must run on a raspberry pi because it uses hardware components (gpio pins). For installing the dependencies you should use the latest version of pip.
- pip
pip install --upgrade pip
- Clone the repo
git clone https://github.com/FabianMaas/TRNG.git
- Switch into the directory
cd TRNG
- Install PIP packages
pip install -r requirements.txt
TRNG
├── LICENSE
├── README.md
├── docs
│ └── models
│ ├── 3D
│ │ ├── GaltonBoard
│ │ │ ├── ...
│ │ │ └── ...
│ │ └── MarblePump
│ │ ├── ...
│ │ └── ...
│ ├── Building_instructions.md
│ └── lasercutter
│ ├── ...
│ └── ...
├── hardware
│ ├── gyroscope.py
│ ├── laser_sensor.py
│ └── stepper_engine.py
├── instance
│ └── TRNG.db
├── models
│ └── models.py
├── requirements.txt
├── rest_api.py
├── static
│ ├── css
│ │ └── main.css
│ ├── img
│ │ ├── ...
│ │ └── ...
│ └── js
│ ├── background.js
│ └── main.js
├── templates
│ └── index.html
└── tests
└── test_suite.py
16 directories, 43 files
Distributed under the MIT License. See LICENSE
for more information.