import hashlib


def get_sha256_of_string(the_string):
    """Returns SHA-256 hash for given string."""
    new_hash = hashlib.new("sha256")
    new_hash.update(bytes(the_string, "utf-8"))
    return new_hash