Skip to content

Latest commit

 

History

History
50 lines (38 loc) · 1.74 KB

README.md

File metadata and controls

50 lines (38 loc) · 1.74 KB

A didactic and minimal implementation of the Fortuna cryptographically secure pseudorandom number generator.

$ pip install .
$ python example.py
(fortuna)
(fortuna) help

Documented commands (type help <topic>):
========================================
add_entropy  help  random

Undocumented commands:
======================
EOF  print_pools  print_seed_file  update_seed_file

(fortuna) random

In your terminal, colored traces will be displayed:

screenshot

The example has only been tested on Linux, but it should work on macOS as well.

If you are only interested in the cryptography, the business logic is implemented in fortuna/__init__.py and fortuna/generator.py. The rest is for pretty logging purposes.

Specification

Other implementations