Closed sandinmyjoints closed 1 week ago
https://nodejs.org/docs/latest-v20.x/api/crypto.html#cryptohashalgorithm-data-outputencoding
It can be faster than the object-based crypto.createHash() when hashing a smaller amount of data (<= 5MB) that's readily available
Oops, jumped the gun -- no ability to do HMAC with crypto.hash.
https://nodejs.org/docs/latest-v20.x/api/crypto.html#cryptohashalgorithm-data-outputencoding