wallet-core/node_modules/evp_bytestokey
2017-05-03 15:35:00 +02:00
..
index.js node_modules 2017-05-03 15:35:00 +02:00
package.json node_modules 2017-05-03 15:35:00 +02:00
readme.md node_modules 2017-05-03 15:35:00 +02:00
test.js node_modules 2017-05-03 15:35:00 +02:00

EVP_BytesToKey

The super secure key derivation algorithm from openssl (spoiler alert not actually secure, only every use it for compatibility reasons).

Api:

var result = EVP_BytesToKey('password', 'salt', keyLen, ivLen);
Buffer.isBuffer(result.password); // true
Buffer.isBuffer(result.iv); // true