def hashed(source_filename, prepared_options, thumbnail_extension, **kwargs):
    parts = ':'.join([source_filename] + prepared_options)
    short_sha = hashlib.sha1(parts.encode('utf-8')).digest()
    short_hash = base64.urlsafe_b64encode(short_sha[:9]).decode('utf-8')
    return '.'.join([short_hash, thumbnail_extension])
Generate a short hashed thumbnail filename.
dataset/ETHPy150Open SmileyChris/easy-thumbnails/easy_thumbnails/namers.py/hashed