📅  最后修改于: 2022-03-11 14:48:28.931000             🧑  作者: Mango
pip install pyjwt
// Instead of
pip install jwt
// python file
import jwt
encoded_jwt = jwt.encode({'some': 'payload'}, 'secret', algorithm='HS256')
decoded_jwt = jwt.decode(encoded_jwt, 'secret', algorithm='HS256;)