• get hexadecimal hash value of ArrayBuffer with specified hash algorithm

    Parameters

    • alg: string

      hash algorithm (ex. "SHA-256")

    • ab: ArrayBuffer

      ArrayBuffer value to be hashed

    Returns Promise<string>

    hexadecimal hash value

    Example

    await hashab("SHA-256", hextoArrayBuffer("616161"))
    -> ...