1.1.0 • Published 6 years ago

apikeygen v1.1.0

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

API Key

Nodejs module for generating base62 API keys.

Install

$ npm install apikeygen
 

Usage

var apikey = require("apikeygen").apikey;
var key = apikey();  // generates 40 char base64 encoded key

Key Length

The default key length is 40 chars. To change this, call apikey with the new key length

var key = apikey(30); 

Dependencies

Internally, apikey uses crypto.randomBytes().

Tests

npm test
1.1.0

6 years ago

0.2.0

8 years ago

0.1.0

9 years ago