import hashlib


def _file_key(file_path):
    """Converts a file path into a key for storing the file's committed contents in the _fragments/ directory."""
    return hashlib.sha256(('%s:%s' % (__package__, file_path)).encode('utf8')).hexdigest()