1.1.4 • Published 6 years ago

node-timednonce v1.1.4

Weekly downloads
138
License
-
Repository
github
Last release
6 years ago

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
1.1.4

6 years ago

1.1.3

8 years ago

1.1.2

8 years ago

1.1.1

8 years ago