import hashlib


def hash_password(password):
    """
    Hash a giving password using md5 and return the hash value.

    :param str password: The password to hash
    :returns: The password as a md5 hash
    :rtype: str
    """
    return hashlib.md5(password).hexdigest()