wallet-core/node_modules/pbkdf2/index.js

9 lines
248 B
JavaScript
Raw Normal View History

2017-05-03 15:35:00 +02:00
var crypto = require('crypto')
2017-05-24 15:10:37 +02:00
/* istanbul ignore next */
2017-05-03 15:35:00 +02:00
if (crypto.pbkdf2Sync.toString().indexOf('keylen, digest') === -1) {
throw new Error('Unsupported crypto version')
}
exports.pbkdf2Sync = crypto.pbkdf2Sync
exports.pbkdf2 = crypto.pbkdf2