Node 中 scrypt 包和加密模块的区别?

Difference between scrypt package and crypto module in Node?

内置crypto模块中的scrypt package on NPM and the scrypt functions有什么区别?

scrypt 包已弃用,而 scrypt function 是推荐的内置包

https://github.com/barrysteyn/node-scrypt

#WARNING!!! This module is deprecated. Instead, use https://nodejs.org/api/crypto.html#crypto_crypto_scrypt_password_salt_keylen_options_callback

node-scrypt is now available in the core Node.js crypto module. For the scrypt.kdf() / scrypt.verifyKdf() functions, scrypt-kdf 中的 'raw scrypt hash function' scrypt.hash() 是接近直接的替代品。