|
8 سال پیش | |
---|---|---|
.. | ||
index.js | 8 سال پیش | |
package.json | 8 سال پیش | |
readme.md | 8 سال پیش | |
test.js | 8 سال پیش |
The super secure key derivation algorithm from openssl (spoiler alert not actually secure, only every use it for compatibility reasons).
var result = EVP_BytesToKey('password', 'salt', keyLen, ivLen);
Buffer.isBuffer(result.password); // true
Buffer.isBuffer(result.iv); // true