import hashlib


def md5_digest(input_string):
    """Generates MD5 hash from the input str.
    
    Arguments:
        input_string {str} -- Input str to generate MD5 hash from. 
    
    Returns:
        str -- MD5 hash
    """
    md5 = hashlib.md5()
    md5.update(input_string.encode('utf-8'))
    return md5.hexdigest()