All files / src defaults.js

100% Statements 8/8
100% Branches 0/0
100% Functions 0/0
100% Lines 8/8

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53                    1x       1x       1x       1x               1x                   1x         1x       1x      
/**
 * @file Safe MFKDF Defaults
 * @copyright Multifactor, Inc. 2022–2025
 *
 * @description
 * Secure default configuration for multi-factor key derivation function (MFKDF) and MFKDF factor constructions
 *
 * @author Vivek Nair (https://nair.me) <[email protected]>
 */
 
module.exports.password = {
  id: 'password'
}
 
module.exports.uuid = {
  id: 'uuid'
}
 
module.exports.question = {
  id: 'question'
}
 
module.exports.hotp = {
  id: 'hotp',
  hash: 'sha1', // required for Google Authenticator compatibility
  digits: 6, // most common choice
  issuer: 'MFKDF',
  label: 'mfkdf.com'
}
 
module.exports.totp = {
  id: 'totp',
  hash: 'sha1', // required for Google Authenticator compatibility
  digits: 6, // required for Google Authenticator compatibility
  step: 30, // required for Google Authenticator compatibility
  window: 87600, // max window between logins, 1 month by default
  issuer: 'MFKDF',
  label: 'mfkdf.com'
}
 
module.exports.ooba = {
  id: 'ooba',
  length: 6
}
 
module.exports.stack = {
  id: 'stack'
}
 
module.exports.hmacsha1 = {
  id: 'hmacsha1'
}