@launchdarkly/react-native-client-sdk - v10.23.2
    Preparing search index...

    Interface Hasher

    Interface implemented by platform provided hasher.

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

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

    interface Hasher {
        asyncDigest?(encoding: string): Promise<string>;
        digest?(encoding: string): string;
        update(data: string): Hasher;
    }
    Index
    • 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