HashCrackRef

Hash identification and cracking command reference (does NOT crack)

v1.0.2
NixOS x86_64

Quick Start

Install

curl -fsSL https://cli.johlem.net/install.sh | bash -s -- hashcrackref

Uninstall

curl -fsSL https://cli.johlem.net/uninstall.sh | bash -s -- hashcrackref

NixOS / Nix

nix profile install "tarball+https://cli.johlem.net/releases/cli-johlem-net-latest.tar.gz#hashcrackref"

Features

Requirements

Runtime

NixOS x86_64 (built against nix-store glibc; zero extra runtime deps)

Dependencies

Zero third-party dependencies — Python standard library only.

Usage

hashcrackref <command> [OPTIONS]

Run hashcrackref --help to see every subcommand and flag, or hashcrackref help <command> for per-command help.

Examples

Identify a hash

$ hashcrackref identify 5d41402abc4b2a76b9719d911017c592
Hash:    5d41402abc4b2a76b9719d911017c592
Length:  32 characters
Charset: hex (lowercase)

Possible types (by likelihood):
  [HIGH  ] MD5    (hashcat=0,    john=raw-md5)
  [MEDIUM] NTLM   (hashcat=1000, john=nt)
  [MEDIUM] LM     (hashcat=3000, john=lm)
  [MEDIUM] MD4    (hashcat=900,  john=raw-md4)

Generate hashcat / john commands

$ hashcrackref command 5d41402abc4b2a76b9719d911017c592 --tool both
# Identified as: MD5 (hashcat=0, john=raw-md5)

# Hashcat
hashcat -m 0 -a 0 hash.txt /usr/share/wordlists/rockyou.txt
hashcat -m 0 -a 0 hash.txt /usr/share/wordlists/rockyou.txt -r best64.rule

# John the Ripper
john --format=raw-md5 --wordlist=/usr/share/wordlists/rockyou.txt hash.txt

Verify a plaintext

$ hashcrackref verify 5d41402abc4b2a76b9719d911017c592 hello
Hash:      5d41402abc4b2a76b9719d911017c592
Type:      MD5
Plaintext: hello
Computed:  5d41402abc4b2a76b9719d911017c592
Result:    MATCH

Install Layout

# Standard layout for all cli.johlem.net tools
~/.local/lib/hashcrackref/                       # Tool source files
~/.local/bin/hashcrackref                        # Executable wrapper
~/.local/log/cli.johlem.net/hashcrackref_*.log   # Install/uninstall logs

After install, run hashcrackref --help (requires ~/.local/bin in your PATH).

Changelog

# hashcrackref — Changelog

## v1.0.2 — 2026-06-22

- Standardise exit codes per SUITE_STANDARDS.md §1 — clap usage errors, unknown --format, missing-subcommand, no-hash-input, --type required, unsupported algorithm now exit 2 (was 3). Runtime dispatch failures now exit 3 (was 2). The two codes were inverted relative to the rest of the suite.

Integrity

Verify your download against these SHA256 checksums:

FileSHA256

This tool is provided as-is with no warranty. Use at your own risk. Always review scripts before running them. Not responsible for any damage or data loss. Intended for authorized security testing, research, and educational purposes only.

Release artefacts & provenance

Every signed release ships with checksum + signature sidecars plus a CycloneDX SBOM. Enterprise procurement can pin third-party components without unpacking the binary.