index.js 426 B

1234567891011
  1. const { DEFAULT_COST, genSaltSync, genSalt, hashSync, hash, verifySync, verify } = require('./binding')
  2. module.exports.DEFAULT_COST = DEFAULT_COST
  3. module.exports.genSaltSync = genSaltSync
  4. module.exports.genSalt = genSalt
  5. module.exports.hashSync = hashSync
  6. module.exports.hash = hash
  7. module.exports.verifySync = verifySync
  8. module.exports.verify = verify
  9. module.exports.compareSync = verifySync
  10. module.exports.compare = verify