import hashlib


def hash_password(pw_in):
    """Take password as input, hash it in SHA-1, and split it for use later on"""
    hash = hashlib.sha1()
    hash.update(str.encode(pw_in))
    digest = hash.hexdigest()
    return [digest[:5], digest[5:]]