Post
ugh why isn't this documented better in nodejs.org/api/crypto.h... this is so much nicer!
nodejs.orgCrypto | Node.js v25.9.0 Documentation
they should put a note directing to hash() under nodejs.org/api/crypto.h... with the aforementioned benefits/drawbacks ideally
nodejs.orgCrypto | Node.js v25.9.0 Documentation
Good call, lets update the docs github.com/nodejs/node/...
github.comdoc: mention crypto.hash() for better perf by styfle · Pull Request #63420 · nodejs/nodeThe docs on crypto.hash() already mentioned why you would use it over crypto.createHash().
This PR adds the reverse so that the docs on crypto.createHash() mention why you would use crypto.hash().
0 reposts1 like