def decrypt(*args, **kwargs):
    try:
        return legacy_decrypt(*args, **kwargs)
    except (Error, ValueError) as e:
        return spec_compliant_decrypt(*args, **kwargs)
Decrypts legacy or spec-compliant JOSE token.
dataset/ETHPy150Open Demonware/jose/jose.py/decrypt