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 | 1x | /** * @file Multi-Factor Credential Hashing Function (MFCHF) * @copyright Multifactor 2023 * @license BSD-3-Clause-Clear * * @description * JavaScript implementation of a Multi-Factor Credential Hashing Function (MFCHF) * * @author Vivek Nair (https://nair.me) <[email protected]> */ /** * @typedef {Object} MFCHFSetup * @property {string} hash - The MFCHF hash, formatted as a string * @property {Buffer} secret - The underlying 2FA secret (HOTP, TOTP, etc.) */ /** * @typedef {Object} MFCHFVerify * @property {boolean} valid - Whether the MFCHF hash matches the factors * @property {string} [hash] - The updated MFCHF hash, formatted as a string */ module.exports = { ...require('./hotp6'), ...require('./totp6') } |