Flask
Flask session cookie
Follows the format: Payload.Timestamp.Signature
Part 1 (Payload)
eyJ1c2VyX2lkIjo1LCJ1c2VybmFtZSI6InRva3lvIn0Decoded:
{"user_id": 5, "username": "tokyo"}This is the actual session data.
Part 2 (Timestamp)
aWKOWwThis represents the time when the cookie was created.
Part 3 (Signature)
nCRg8rcB70usxtqPXEUgtXmZuEMThis is a cryptographic signature used to verify that the data has not been tampered with.
Use
HMACwithSHA-512orSHA-256
Last updated