@launchdarkly/js-client-sdk-common - v1.35.0
    Preparing search index...

    Interface Crypto

    Interface provided by the platform for doing cryptographic operations.

    interface Crypto {
        createHash(algorithm: string): Hasher;
        createHmac?(algorithm: string, key: string): Hmac;
        randomUUID(): string;
    }
    Index
    • Parameters

      • algorithm: string

      Returns Hasher

    • Note: Server SDKs MUST implement createHmac.

      Parameters

      • algorithm: string
      • key: string

      Returns Hmac

    • Returns string