Skip to content

GDATASoftwareAG/TypeRefHasher

Repository files navigation

TypeRef Hasher

license Build Test

CLI tool to compute the TypeRefHash (TRH) for .NET binaries.

Installation

There are multiple options to obtain the TypeRefHasher.

Windows

Install the tool with winget. The tool gets added to your PATH environment variable.

winget install GDATA.TypeRefHasher

Another option is to just download the binary or installer from the GitHub Releases tab

  1. trh.msi -> Windows x64 Installer (Allows uninstall and adds the tool to your PATH)
  2. trh.exe -> Windows x64 (Standalone binary)

Linux

Download the binary or installer from the GitHub Releases tab.

  1. trh -> Linux x64 (Standalone binary)

Usage

The usage is as straight forward as possible.

Windows:

> trh.exe file

Linux:

> trh file

In both cases the output is the TRH (example: 1defec485ab3060a9201f35d69cfcdec4b70b84a2b71c83b53795ca30d1ae8be) for the given file or an error message with a description why the hash could not be computed.

Build & Deploy

Find more information here