aboutsummaryrefslogtreecommitdiff
path: root/node_modules/pbkdf2/index.js
blob: c3e4f5cb33d0ad092ea4f951f8069044e505d7b0 (plain)
1
2
3
4
5
6
7
8
var crypto = require('crypto')
/* istanbul ignore next */
if (crypto.pbkdf2Sync.toString().indexOf('keylen, digest') === -1) {
  throw new Error('Unsupported crypto version')
}

exports.pbkdf2Sync = crypto.pbkdf2Sync
exports.pbkdf2 = crypto.pbkdf2