node
Crypto: Invalid key length
crypto.*ERR_CRYPTO_INVALID_KEY_LENGTH
Fixes
- 1.Use correct key length (32 bytes for AES-256)
- 2.Derive key with scrypt/pbkdf2 to correct length
- 3.Check key encoding (hex vs utf8 vs base64)
cryptoencryptionkey
Related Errors
node3 fixes
EADDRINUSE: Port already in use
Error: listen EADDRINUSE.*port
- •Kill process using the port: lsof -i :PORT
- •Use different port
node3 fixes
ECONNREFUSED: Connection refused
Error: connect ECONNREFUSED
- •Check target server is running
- •Verify host and port are correct
node3 fixes
ENOENT: No such file or directory
ENOENT.*no such file or directory
- •Check file path is correct
- •Use path.resolve for absolute paths