RTCForge API Reference v1.1.1
    Preparing search index...

    Function sha256Hex

    • Compute the SHA-256 digest of a buffer and return it as a lowercase hex string.

      Parameters

      • bytes: ArrayBuffer | Uint8Array<ArrayBufferLike>

        The data to hash.

      Returns Promise<string>

      The 64-character lowercase hex-encoded digest.

      FileTransferError with code FT_INVALID_STATE if SubtleCrypto is unavailable in the current environment.