Storing sensitive information within JWTs is not recommended due to the ease with which they can be extracted. In this problem, you will see how easy it is to decode JWT and get the data.
JWT is stored in the format JWT:= [Header][Payload][Signature]. The payload is where the information you want is, and it can be easily decoded by:
from itsdangerous import base64_decode
decoded_data = base64_decode("payload")
decoded_data = decoded_data.decode("utf-8")
Download the dataset below containing two different JWT tokens. Using the above code, build a JWT payload decoder, apply the decoder to each data, and from the data, put the rti identifier for each token in a new line in the area below.
The whole three parts of the JWT are given in the data set. You have first to extract it and decode it afterward.