import hashlib


def hash_password(password:str)->str:
    """
    Hashes the password for database storage
    
    Parameter:
        password (str): password intended to be hashed 

    Returns:
        hash (str): password hashed in md5

    Example:
        >>> password = 'Hello'
        >>> hash_password(password)
        '8b1a9953c4611296a827abf8c47804d7'
    """
    return hashlib.md5(str.encode(password)).hexdigest()