Choose between Serializer and Signer
mainItsDangerous provides two levels of data handling:
- Signer: The basic system that signs a given
bytesvalue based on signing parameters. - Serializer: A wrapper around a signer that enables serializing and signing data types other than
bytes(e.g., dictionaries, integers).
Recommendation: Typically, you should use a Serializer rather than a Signer. Serializers allow you to configure signing parameters easily and provide fallback signers to upgrade old tokens to new parameters.