Any way to make an MD5 has from a file reference.

I need to get the hash of the bytes, similar to the osx terminal command md5

Thanks
Dean