Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

python jwt parse

>>> import jwt
>>> encoded_jwt = jwt.encode({"some": "payload"}, "secret", algorithm="HS256")
>>> print(encoded_jwt)
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzb21lIjoicGF5bG9hZCJ9.Joh1R2dYzkRvDkqv3sygm5YyK8Gi4ShZqbhK2gxcs2U
>>> jwt.decode(encoded_jwt, "secret", algorithms=["HS256"])
{'some': 'payload'}
Comment

PREVIOUS NEXT
Code Example
Python :: python array delete last column 
Python :: python read url 
Python :: python file open modes 
Python :: membercount discord.py 
Python :: python print in color 
Python :: python beautifulsoup write to file 
Python :: set index to column pandas 
Python :: matplotlib show imaginary numbers 
Python :: pandas standard deviation on column 
Python :: python list of dates between 
Python :: save matplotlib figure with base64 
Python :: spress warnings selenium python 
Python :: python flatten dict 
Python :: how to get all links text from a website python beautifulsoup 
Python :: logging python utf-8 
Python :: mongodb python get all documents 
Python :: tkinter python may not be configured for Tk 
Python :: changing dtype of multiple columns to_datetime 
Python :: matplotlib plot adjust margins 
Python :: extract frames from video python 
Python :: remove negative numbers from list python 
Python :: web3py to wei 
Python :: python iterate columns 
Python :: python r squared 
Python :: how to remove first row of numpy array 
Python :: python datetime strptime hour minute second 
Python :: csrf token exempt django 
Python :: _csv.Error: field larger than field limit (131072) 
Python :: how to click in selenium 
Python :: python generate rsa key pair 
ADD CONTENT
Topic
Content
Source link
Name
4+4 =