MD5 signature of a file

version (2.17 KB) by Stefan Stoll
A one-file MATLAB implementation of MD5, no additional files needed.


Updated 5 Sep 2006

No License

d = md5(f)

Computes the MD5 has function of the file specified in the string f and returns it as a 64-character array in d.

md5() is a single m-file and no additional libraries or toolboxes are needed. The code is compact and clear, but very slow. So md5() is
useful for educational purposes.

Cite As

Stefan Stoll (2022). MD5 signature of a file (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R14
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!