Skip to content

AnmiTaliDev/pasmd5

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

pasmd5

CLI utility for calculating MD5 hashes of files, written in Pascal.

Features

  • Calculate MD5 hashes for single file or all files in directory
  • Output to console or file
  • No subdirectories processing
  • Simple and fast

Installation

Requirements

  • Free Pascal Compiler (FPC) 3.2+
  • make

Build from source

git clone https://github.com/anmitalidev/pasmd5
cd pasmd5
make

The compiled binary will be placed in bin/pasmd5

Install system-wide (optional)

sudo make install

Usage

pasmd5 [OPTIONS]

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)

Examples

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

Output format

Each line contains filename and its MD5 hash separated by space:

file1.txt d41d8cd98f00b204e9800998ecf8427e
image.png 98d2c7313ff79b4df8b6c96d8c276d8c
document.pdf a6b1a01f8cb1c4e8b3e53b9c8d7f1d3b

Building from source

  1. Clone the repository:
git clone <repository-url>
cd pasmd5
  1. Build using make:
make
  1. (Optional) Install system-wide:
sudo make install

Development

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

License

PasMD5 licenced under MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published