@drupflare/spool - v0.1.0
    Preparing search index...

    Function partitionId

    • The Spool-Partition value for a principal: an HMAC-SHA-256 under the server secret, so the browser can tell partitions apart without learning the principal, and one principal's id cannot be computed from another's.

      Parameters

      • secret: string | Uint8Array<ArrayBufferLike>
      • principal: string

      Returns Promise<string>