HF RL Explorer

Task: Implement Secure String Comparison in Node.js

Task: Implement Secure String Comparison in Node.js: a task in Terminal-Lego-15k (Harbor dataset). When comparing sensitive values like webhook signatures, API tokens, or hashes, using a plain == or === operator can expose your application to timing attacks. A timing attack exploits the fact that…

The task

When comparing sensitive values like webhook signatures, API tokens, or hashes, using a plain `==` or `===` operator can expose your application to timing attacks. A timing attack exploits the fact that standard string comparison exits early on the first mismatched character, meaning the time taken to compare two…

Part of PrimeIntellect/Terminal-Lego-15k.