nist-beacon

0.1.4 • Public • Published

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)
})

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.4
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.4
    1
  • 0.1.3
    0
  • 0.1.2
    0
  • 0.1.1
    0
  • 0.1.0
    0

Package Sidebar

Install

npm i nist-beacon

Weekly Downloads

1

Version

0.1.4

License

MIT

Last publish

Collaborators

  • charlescharles