FA.generateKey()

Generates a crypto secure hex key with 32 characters.

Usage

Hover over inputs/exits for more info.

var FA = require('machinepack-2fa');


// Generates a crypto secure hex key with 32 characters.

FA.generateKey({

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// OK.

success: function (result) {

 

},

});

Inputs

Exits

error

An unexpected error occurred.

success

OK.

'44xtha1v228542u5q6ddxzdoukji1m74'