Hash Identifier
Identifie le ou les algorithmes de hachage possibles utilisés pour générer une chaîne de hachage donnée en se basant sur son format et sa longueur. Identifies the possible hash algorithm(s) used to generate a given hash string based on its format and length.
↗ https://github.com/blackploit/hash-identifierOverview
Hash Identifier is a simple interactive utility that inspects a hash string’s length, character set, and structure to suggest which algorithm(s) it was likely generated with (MD5, SHA-1, SHA-256, NTLM, MySQL, bcrypt, etc). It’s a quick triage step before feeding an unknown hash into hashcat or John the Ripper — picking the wrong -m/format wastes cracking time.
Common Usage
Launch interactively
python3 hash-id.py
Then paste the hash string at the prompt:
HASH: 5f4dcc3b5aa765d61d8327deb882cf99
Typical Workflow
# 1. Identify the likely algorithm
python3 hash-id.py
HASH: 8846f7eaee8fb117ad06bdd830b7586c
# Output suggests: MD5, possibly others of the same length
- Cross-check with hashcat’s own example-hash matching
hashcat --example-hashes | grep -i "MD5"
- Run the crack with the correct mode
hashcat -m 0 hash.txt rockyou.txt
Tips
- Length and charset alone are ambiguous for many algorithms (MD5 and NTLM are both 32 hex chars) — cross-reference with the source system (Windows SAM = NTLM, Linux /etc/shadow = usually sha512crypt, MySQL = its own format) whenever possible
hashcat --identify hash.txt(in newer hashcat versions) is a more actively maintained alternative that also suggests the-mmode number directly- Name::Hash Identifier is largely superseded in practice by
hashid(a Python rewrite with more modern format coverage) andhashcat --identify, but the core lookup logic is the same - Always confirm with a known plaintext/hash pair from the same source when in doubt — guessing wrong wastes GPU time on a long crack
Help / Man page
Hash Identifier v1.2
Usage:
python3 hash-id.py
Then enter a hash string at the interactive prompt. The tool analyzes:
- Total length of the hash
- Character set used (hex, base64, etc.)
- Presence of salts/delimiters (e.g. $1$, $2a$, $6$)
Output: a ranked list of possible algorithms, e.g.:
[+] MD5
[+] Domain Cached Credentials
[+] Haval-128
...
Note: format-only heuristic — does not verify against a known plaintext.
Vue d’ensemble
Hash Identifier est un utilitaire interactif simple qui examine la longueur, le jeu de caractères et la structure d’une chaîne de hachage pour suggérer le ou les algorithmes probablement utilisés (MD5, SHA-1, SHA-256, NTLM, MySQL, bcrypt, etc). C’est une étape de triage rapide avant de soumettre un hachage inconnu à hashcat ou John the Ripper : se tromper de -m/format fait perdre du temps de cassage.
Utilisation courante
# Lancer en mode interactif
python3 hash-id.py
Puis coller la chaîne de hachage au prompt :
HASH: 5f4dcc3b5aa765d61d8327deb882cf99
Flux de travail typique
# 1. Identifier l'algorithme probable
python3 hash-id.py
HASH: 8846f7eaee8fb117ad06bdd830b7586c
# La sortie suggère : MD5, éventuellement d'autres de la même longueur
- Recouper avec le propre système de correspondance d’exemples de hashcat
hashcat --example-hashes | grep -i "MD5"
- Lancer le cassage avec le bon mode
hashcat -m 0 hash.txt rockyou.txt
Conseils
- La longueur et le jeu de caractères seuls sont ambigus pour de nombreux algorithmes (MD5 et NTLM font tous les deux 32 caractères hex) : recoupez avec le système source (SAM Windows = NTLM, /etc/shadow Linux = généralement sha512crypt, MySQL = son propre format) dès que possible
hashcat --identify hash.txt(dans les versions récentes de hashcat) est une alternative plus activement maintenue qui suggère aussi directement le numéro de mode-m- Hash Identifier est aujourd’hui largement supplanté en pratique par
hashid(une réécriture Python avec une couverture de formats plus moderne) ethashcat --identify, mais la logique de recherche sous-jacente est la même - Confirmez toujours avec une paire clair/hachage connue de la même source en cas de doute : deviner à tort gaspille du temps GPU sur un cassage long
Aide / Page de manuel
Hash Identifier v1.2
Usage:
python3 hash-id.py
Then enter a hash string at the interactive prompt. The tool analyzes:
- Total length of the hash
- Character set used (hex, base64, etc.)
- Presence of salts/delimiters (e.g. $1$, $2a$, $6$)
Output: a ranked list of possible algorithms, e.g.:
[+] MD5
[+] Domain Cached Credentials
[+] Haval-128
...
Note: format-only heuristic — does not verify against a known plaintext.