def friendly_uuid(uuid):
    result = base64.b32encode(hashlib.sha1(force_bytes(uuid)).digest()[:5]).lower()
    unicode_result = result.decode('ascii')
    # avoid accidental profanity
    profanity_filter = (unicode_result.replace('e', '0')
                                      .replace('o', '1')
                                      .replace('u', '8')
                                      .replace('i', '9'))
    return profanity_filter
A shortend version of a UUID to use when collisions are acceptable.
dataset/ETHPy150Open fusionbox/django-widgy/widgy/contrib/form_builder/models.py/friendly_uuid