Interface implemented by platform provided hasher.

The hash implementation must support 'sha256' and 'sha1'.

The has implementation must support digesting to 'hex' or 'base64'.

Hierarchy

  • Hasher

Methods

  • Note: Client-side SDKs MUST implement either synchronous or asynchronous digest.

    Client SDKs do not have high throughput hashing operations.

    Parameters

    • encoding: string

    Returns Promise<string>

  • Note: All server SDKs MUST implement synchronous digest.

    Server SDKs have high performance requirements for bucketing users.

    Parameters

    • encoding: string

    Returns string

  • Parameters

    • data: string

    Returns Hasher

Generated using TypeDoc