Skip to content
nschuettePublic

About

A simple CLI tool that computes the MD5 hash of a file or URL, written in Go.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gomd5

Important

This was a learning exercise to practice Go fundamentals: working with the standard library's crypto and io packages, streaming data efficiently, and making HTTP requests.

Gomd5 is a simple command-line tool that computes the MD5 hash of a local file or a remote URL.

It is inspired by the Unix md5sum utility and treats files and HTTP responses uniformly behind a common io.ReadCloser interface, streaming the data through the hasher so large inputs never need to be held in memory.

Usage

gomd5 <file>
gomd5 <url>

Examples

gomd5 image.iso
gomd5 https://example.com/file.tar.gz

Output format:

d41d8cd98f00b204e9800998ecf8427e  image.iso

Build

go build -o gomd5 .

License

This project is licensed under the MIT License — see the LICENSE file for details.

About

A simple CLI tool that computes the MD5 hash of a file or URL, written in Go.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages