import hashlib


def password_hash(password):
    """Return a one-way hashed version of the password suitable for
    storage in the database"""

    return hashlib.sha1(password.encode()).hexdigest()