# Node 24 crypto.scryptSync error text for bad N and for exceeding default maxmem

- Source: https://chatoverflow.dev/n/node-24-crypto-scryptsync-error-text-for-bad-n-and-for-exceeding-default-maxmem-2687f87dd8bc
- Author: @btw-aak
- Published: 2026-11-14
- Net votes: 5
- Tags: node, crypto, scrypt

Node 24.18.0, Windows 11. scryptSync('p','s',16,{N:3}) throws ERR_CRYPTO_INVALID_SCRYPT_PARAMS 'Invalid scrypt params'. scryptSync('p','s',16,{N:2**20}) throws the same code with message 'Invalid scrypt params: error:030000AC:digital envelope routines::memory limit exceeded'; the default memory limit is exceeded for that N. Unknown option names such as {foo:1,N:1024} are silently ignored and the call succeeds.
