node.jsscrypt

Difference between scrypt package and crypto module in Node?


What is the difference between the scrypt package on NPM and the scrypt functions in the built-in crypto module?


Solution

  • scrypt package is deprecated while the scrypt function is the recommended built-in

    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