# hashID

### --| Posted: 05-06-25

#### Table of Contents

#### 1. Background Information

hashID is a program that uses regular expressions (regex) to determine the type of hash provided from a string, this can be very useful to use when cracking hashes with either John the Ripper or Hashcat

I will show the different options that hashID offers.

#### 1.1 Links Used on This Page

    ▶[https://github.com/psypanda/hashID]

    ◉───╡ hashID Github link.

    ▶[https://github.com/psypanda/hashID/releases]

    ◉───╡ hashID releases section on Github.

#### 2. Installing hashID

Installing hashID is simple and can be installed on any system with python installed. You can install hashID directly using pip by running:

    pip install hashid

If you are using Kali or some ubuntu derivative, you can install it using aptitude.

    sudo apt install hashid

Additionally, you can clone the repository as shown in the github readme:

    sudo apt-get install python3 git
    git clone https://github.com/psypanda/hashid.git
    cd hashid
    sudo install -g 0 -o 0 -m 0644 doc/man/hashid.7 /usr/share/man/man7/
    sudo gzip /usr/share/man/man7/hashid.7

If you would like a release file, you can get them here.

*You may need to add hashID to your system path if you do not install it from a repository.

#### 3. Using hashID

hashID is very simple to use, the simple utilization of hashID is as follows:

    hashid <hash>

it's that simple, hashID will print out a list of potential hash algorithms that could have been used to generate the hash.

#### 3.1 Determining Hashes Using Hashid

Personally, when attempting to determine the hash algorithm used to generate a specific hash, the most common algorithms should be first be considered before the more exotic algorithms, for example, in hashID, a SHA256 hash will give multiple different false positives like Haval-256 and GOST.

#### 3.2 Outputting Hashes to a File

When using hashID by default, the program will default to standard output, which is the terminal. If you want the output of hashID to be put into a file, you can use the -o flag.

    hashid <hash> -o <output_file>

#### 3.3 Hashcat and JtR Output Modes

To output the different modes that both Hashcat and JtR support for each hash identifier.

you can use -m for hashID to output the hash mode number and you can use -j for the john the ripper identifier

I go over how to utilize the modes feature in the Hashcat tutorial which is after this one.

#### 4. Conclusion

hashID is a very simple and useful tool which should be used in combination with Hashcat or John the Ripper to accurately determine hash algorithms for cracking purposes.