Closed
Description
- Node.js Version:10.16.0
- OS:windows 10
- Scope (install, code, runtime, meta, other?):runtime
- Module (and version) (if relevant):crypto
The shake128 and shake256 hash functions allow you to specify the size of the digest, however the createHash call doesn't seem to allow setting those options.
const hash = crypto.createHash('shake128');
hash.update('blabadeblablabla');
console.log( hash.digest('hex') );