apikeypair
Tiny module to generate id and secret pairs. Output looks like this:
Usage##
Install with:
npm install --save apikeypair
Then require and use like following:
var apikeypair = ; //Generate syncconsole; //Generate asyncapikeypair; //Calculate syncconsole; //Calculate asyncapikeypair;
Methods###
gen(callback)
- generate random ID and Secret asynchronouslygenSync()
- generate random ID and Secret synchronouslycalc(data, callback)
- generate ID and Secret asynchronously using specific input (i.e. user id)calcSync(data)
- generate ID and Secret synchronously using specific input (i.e. user id)