Skip to content
This repository was archived by the owner on Mar 27, 2025. It is now read-only.

Latest commit

 

History

History
52 lines (38 loc) · 1.38 KB

File metadata and controls

52 lines (38 loc) · 1.38 KB

Python MD4 Implementation

A lightweight and efficient implementation of the MD4 cryptographic hash function in Python. This repository provides an educational, Python-based implementation of MD4 for learning purposes, cryptographic research, or retrocompatibility with legacy systems.

Features

  • Pure Python implementation for portability.
  • Follows the original MD4 algorithm specification.
  • Includes test cases to validate functionality.

Usage

Installation

Clone the repository:

git clone https://github.com/timothyjxhn/MD4_Python.git
cd MD4_Python

Running the MD4 Script

To run the MD4 script, use the following command:

python md4.py -h

This will display the help message with usage instructions. You can hash a string or a file using the following commands:

  • Hash a string:

    python md4.py "your_string_here"
  • Hash a file:

    python md4.py -f path/to/your/file

Running the Test Cases

To run the test cases, use the following command:

python md4_test.py

All test case results were verified against the following online tool: CyberChef

References


Disclaimer: MD4 is considered cryptographically broken and unsuitable for secure applications. For educational and legacy support use cases only.