freewil

freewil/scmp

Safe, constant-time comparison of Buffers

JavaScript
50
9
BSD 3-Clause "New" or "Revised" License

The **scmp** library provides a safe, constant-time comparison function for Node.js Buffers, designed to prevent timing attacks when comparing sensitive data like password hashes or authentication tokens. It is intended for Node.js developers who need to perform secure comparisons, though the project's README now recommends using the built-in `crypto.timingSafeEqual()` method instead for modern Node.js versions.

Total donated
Undistributed
Share with your subscribers: