def get_id(addon):
    guid = addon.guid
    if len(guid) <= 64:
        return guid
    return hashlib.sha256(guid).hexdigest()
Return the addon GUID if <= 64 chars, or its sha256 hash otherwise.
dataset/ETHPy150Open mozilla/addons-server/src/olympia/lib/crypto/packaged.py/get_id