CLI utility for calculating MD5 hashes of files, written in Pascal (more hash algorithms coming soon).
- Calculate MD5 hashes for single file or all files in directory
- Output to console or file
- No subdirectories processing
- Simple and fast
- Free Pascal Compiler (FPC) 3.2+
- make
git clone https://github.com/anmitalidev/pashash
cd pashash
make
The compiled binary will be placed in bin/pashash
sudo make install
pashash [OPTIONS]
--version
- Show version information-d <dir>
- Process all files in directory-f <file>
- Process single file-o <file>
- Output file (if omitted, prints to console)
Process all files in current directory, output to console:
pashash -d .
Process all files in specific directory, save to file:
pashash -d /path/to/dir -o hashes.txt
Calculate hash for single file:
pashash -f document.pdf
Calculate hash for single file and save to file:
pashash -f document.pdf -o hash.txt
Each line contains filename and its MD5 hash separated by space:
file1.txt d41d8cd98f00b204e9800998ecf8427e
image.png 98d2c7313ff79b4df8b6c96d8c276d8c
document.pdf a6b1a01f8cb1c4e8b3e53b9c8d7f1d3b
- Clone the repository:
git clone <repository-url>
cd pashash
- Build using make:
make
- (Optional) Install system-wide:
sudo make install
Project structure:
pashash/
├── src/ # Source code (modular units)
├── bin/ # Compiled binary (created after build)
├── Makefile # Build configuration
└── README.md # This file
Build options in Makefile:
-O3
: Level 3 optimization-XX
: Smart linking on-Xs
: Smart linking on
PasHash licenced under MIT