0.1.4 • Published 10 years ago

nist-beacon v0.1.4

Weekly downloads
5
License
MIT
Repository
github
Last release
10 years ago

nist-beacon

This is a simple wrapper for the NIST Beacon API. The NIST Beacon publishes 512 bits of randomness every 60 seconds.

Installation

npm install nist-beacon

Usage

var beacon = require('nist-beacon')
var epochTime = 1412480000

beacon.currentRecord(epochTime, function (err, res) {
  // prints the beacon value closest to epochTime in 128 hex characters
  console.log(res)
})

beacon.lastRecord(function (err, res) {
  // prints the last-published beacon value
  console.log(res)
})
0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago