import hashlib


def get_sha1_hash(password):
    """For a given password string, utf-8 encode it and hash it with SHA1."""
    encoded = password.encode('utf8')
    hashed = hashlib.sha1(encoded).hexdigest()

    return hashed