Dave from the YouTube channel You Suck At Programming implemented the MD5 algorithm in pure Bash.
Here is the actual code: https://github.com/bahamas10/bash-md5