wallet-core/node_modules/pbkdf2/index.js
2017-05-03 15:35:00 +02:00

8 lines
221 B
JavaScript

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