ArrayBuffer → 十六进制字符串

Array.from(new Uint8Array(hashBuf))
  .map((b) => b.toString(16).padStart(2, "0"))
  .join("");