import _hashlib


def _getMD5(filename):
    """returns the MD5 signature of the file"""
    with open(filename) as f:
        d = f.read()
    h = _hashlib.md5(d).hexdigest() # HEX string representation of the hash
    return h