9 lines
248 B
JavaScript
9 lines
248 B
JavaScript
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
|