CLI utility for calculating MD5 hashes of files, written in Pascal.
- 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/pasmd5
cd pasmd5
make
The compiled binary will be placed in bin/pasmd5
sudo make install
pasmd5 [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:
pasmd5 -d .
Process all files in specific directory, save to file:
pasmd5 -d /path/to/dir -o hashes.txt
Calculate hash for single file:
pasmd5 -f document.pdf
Calculate hash for single file and save to file:
pasmd5 -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 pasmd5
- Build using make:
make
- (Optional) Install system-wide:
sudo make install
Project structure:
pasmd5/
├── src/ # Source code
├── 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
PasMD5 licenced under MIT