⇒ node
Welcome to Node.js v12.8.0.
Type ".help" for more information.
> crypto.scryptSync('pw', crypto.randomBytes(32), 32, { N: 262144, r: 1, p: 8, maxmem: 64 * 1024 * 1024 })
Thrown:
Error: error:060B50AC:digital envelope routines:EVP_PBE_scrypt:memory limit exceeded
at Object.scryptSync (internal/crypto/scrypt.js:55:15)
>
>
> crypto.scryptSync('pw', crypto.randomBytes(32), 32, { N: 262144, r: 1, p: 8, maxmem: 128 * 1024 * 1024 })
Thrown:
Error: error:060B50AC:digital envelope routines:EVP_PBE_scrypt:memory limit exceeded
at Object.scryptSync (internal/crypto/scrypt.js:55:15)
>
>
>
> crypto.scryptSync('pw', crypto.randomBytes(32), 32, { N: 262144, r: 1, p: 8, maxmem: 256 * 1024 * 1024 })
Thrown:
Error: error:060B50AC:digital envelope routines:EVP_PBE_scrypt:memory limit exceeded
at Object.scryptSync (internal/crypto/scrypt.js:55:15)
With N = 262144 (logN = 18),
crypto.scryptthrow a memory limit exceeded error, even I have increased themaxmem