Instruction for our API documentation, this Flask API provides cryptographically secure pseudorandom number generation (CSPRNG) through a simple HTTP interface. The API generates random numbers using OS-specific CSPRNG mechanisms and can be easily extended or integrated into various applications. The project can also be run in Java with either RSA\GUI.java
or CSPRNG\RNGUI.java
.
- Python 3.7+
- pip (Python package installer)
- (Optional) Docker if you prefer containerization
-
Clone the repository:
git clone REPO cd csprng-flask-api
-
Create a virtual environment:
python3 -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install the dependencies:
pip install -r requirements.txt
To start the Flask API, simply run:
python CSPRNG\\API_connection.py.py