That one trick your LLM doesn't know about... Instead of createHash('sha1').update(data).digest('hex') You can do hash('sha1', data, 'hex')
1 repost20 likes
That one trick your LLM doesn't know about... Instead of createHash('sha1').update(data).digest('hex') You can do hash('sha1', data, 'hex')
1 repost20 likes
ugh why isn't this documented better in nodejs.org/api/crypto.h... this is so much nicer!
they should put a note directing to hash() under nodejs.org/api/crypto.h... with the aforementioned benefits/drawbacks ideally
Good call, lets update the docs github.com/nodejs/node/...