Function hashrstr

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

    Parameters

    • alg: string

      hash algorithm (ex. "SHA-256")

    • rstr: string

      hexadecimal string value to be hashed

    Returns Promise<string>

    hexadecimal hash value

    Example

    await hashrstr("SHA-256", "\0\0\0")
    -> ...