Function hashhex

  • get hexadecimal hash value of hexadecimal string data with specified hash algorithm

    Parameters

    • alg: string

      hash algorithm (ex. "SHA-256")

    • hex: string

      hexadecimal string value to be hashed

    Returns Promise<string>

    hexadecimal hash value

    Example

    await hashhex("SHA-256", "616161")
    -> ...