Task: Fix Invalid Key Length Error in Node.js Crypto Module
Task: Fix Invalid Key Length Error in Node.js Crypto Module: a task in Terminal-Lego-15k (Harbor dataset). You are working with Node.js cryptography and need to encrypt data using AES-256-CTR. A developer has written code that generates a base64-encoded key (for storage in a cloud service that…
The task
You are working with Node.js cryptography and need to encrypt data using AES-256-CTR. A developer has written code that generates a base64-encoded key (for storage in a cloud service that only accepts base64 strings) and then attempts to use this key for encryption. However, the code throws an "Invalid key length"…
Part of PrimeIntellect/Terminal-Lego-15k.