import hashlib


def encrypt_string(hash_string):
    """Encrypts a string with sha256

            Parameters:
            hash_string (string): Holds the string to be hashed

            Returns:
            sha_signature (string): Holds the hashed string
    """
    sha_signature = \
        hashlib.sha256(hash_string.encode()).hexdigest()
    return sha_signature