Function hashutf8

  • get hexadecimal hash value of UTF-8 string with specified hash algorithm

    Parameters

    • alg: string

      hash algorithm (ex. "SHA-256")

    • u8str: string

      hexadecimal string value to be hashed

    Returns Promise<string>

    hexadecimal hash value

    Example

    await hashutf8("SHA-256", "そらSky")
    -> ...