import hashlib


def generate_hash(string_value):
    """
        1. Generates hexdigest out of a string_value
    """
    hash = hashlib.sha512()
    hash.update(string_value.encode('utf-8'))
    return hash.hexdigest()