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

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