backoffice/node_modules/evp_bytestokey
root ab9f8bb658 first commit 2020-02-06 10:09:39 +00:00
..
index.js first commit 2020-02-06 10:09:39 +00:00
package.json first commit 2020-02-06 10:09:39 +00:00
readme.md first commit 2020-02-06 10:09:39 +00:00
test.js first commit 2020-02-06 10:09:39 +00:00

readme.md

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