Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

README.md

NIST Randomness Beacon

This is a python module to simplify using the NIST randomness beacon, a public source of truly random numbers.

From the project description:

The Beacon will broadcast full-entropy bit-strings in blocks of 512 bits every 60 seconds. Each such value is time-stamped and signed, and includes the hash of the previous value to chain the sequence of values together.

Using the python wrapper is easy. To generate a random number:

b = Beacon()
print b.last_record()['outputValue']

The Beacon object will cache the timestamp of the last call and use that for the basis of next() and previous() calls.

There's also a generator for convenience:

for num in random_nums(3):
    print num['outputValue']

(Note, as the documentation says, WARNING: DO NOT USE BEACON GENERATED VALUES AS SECRET CRYPTOGRAPHIC KEYS.)

About

A python module for using the NIST randomness beacon, generating 512-bits of randomness every 60 seconds

Resources

License

Releases

No releases published

Languages

You can’t perform that action at this time.