import hashlib


def hash_password(password, salt):
    """
    Securely hash a password using a provided salt
    :param password:
    :param salt:
    :return: Hex encoded SHA512 hash of provided password
    """
    password = str(password).encode("utf-8")
    salt = str(salt).encode("utf-8")
    return hashlib.sha512(password + salt).hexdigest()