node-timednonce

1.1.4 • Public • Published

Timed Nonce

npm version npm downloads license

A small library for generating and verifying time based nonces using secrets.

Installation

npm install node-timednonce --save

Usage

var nonceHandler = require(node-timednonce);
 
 
var nonce = nonceHandler.create("secret", 100); //Returns the nonce ready to send
var valid = nonceHandler.verify("secret", nonce); //Will return true otherwise return object with status and message

Tests

$ npm test

Readme

Keywords

none

Package Sidebar

Install

npm i node-timednonce

Weekly Downloads

0

Version

1.1.4

License

none

Last publish

Collaborators

  • geekbroadway