import uuid
import hashlib


def hash_password(password: str) -> str:
    """Function used to hash password with a
    UID salt

    Arguments:
        password: str password to hash
    Returns:
        string containing hashed password
    """
    salt = uuid.uuid4().hex
    return hashlib.sha256(salt.encode() + password.encode()).hexdigest() + ':' + salt