buf.readBytes(32).toString("hex") code example
Example: buffer from base64
const b64string = /* whatever */;
const buf = Buffer.from(b64string, 'base64');
const b64string = /* whatever */;
const buf = Buffer.from(b64string, 'base64');