Working version of md5_hash that can be integrated into the project