Nifty Procrastination Machine
    Wondering what’s next for npm?Check out our public roadmap! »

    otp-key

    0.0.1 • Public • Published

    Generates a cryptographically strong pseudo-random key for two-factor authentication. The key is a base32 encoded string containing 16 characters (10 bytes decoded).

    The callback has the signature callback(err, key) where key is the random string if err is null.

    var genKey = require('otp-key');
    genKey(function (err, key) {
      // key = 'JBSWY3DPEHPK3PXP'
    });
    

    Keywords

    none

    Install

    npm i otp-key

    DownloadsWeekly Downloads

    5

    Version

    0.0.1

    License

    BSD-2-Clause

    Last publish

    Collaborators

    • avatar