drupflare/worker - v1.0.4
    Preparing search index...

    Function digestBytes

    • sha256 hex of a file's bytes; synchronous because the mount's load callback cannot await.

      node:crypto rather than @noble/hashes: 6.1 MB over 1,040 files read 4-10 ms against 550 ms on the local workerd (30 ms for noble on node).

      Parameters

      • bytes: Uint8Array

      Returns string