当前位置:网站首页>Generate token
Generate token
2022-06-28 09:58:00 【Pert-】
pip install PyJWT
encoded = jwt.encode({"account": "13146152021","overdue_time":"1655827200"}, "secret", algorithm="HS256")
print(encoded)
res=jwt.decode(encoded, "secret", algorithms=["HS256"])
print(res)
## The result is :
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY2NvdW50IjoiMTMxNDYxNTIwMjEiLCJvdmVyZHVlX3RpbWUiOiIxNjU1ODI3MjAwIn0.VhPfiC0OC481eGmppxTa_OOLEyV-Itp6OGLeBe5ItXY
{'account': '13146152021', 'overdue_time': '1655827200'}
边栏推荐
- DBeaver安装与使用教程(超详细安装与使用教程)
- Ingersoll Rand panel maintenance IR Ingersoll Rand microcomputer controller maintenance xe-145m
- Application of X6 in data stack index management
- Wechat applet development log
- Sword finger offer | linked list transpose
- 错过金三银四,找工作4个月,面试15家,终于拿到3个offer,定级P7+
- 多线程-并发并行-线程进程
- Thread lifecycle
- 生成token
- PMP考试重点总结九——收尾
猜你喜欢
![QT signal and slot communication mechanism (when multiple windows communicate back and forth [parent and child windows])](/img/17/57ffb7393b71eddc5ac92ae3944338.jpg)
QT signal and slot communication mechanism (when multiple windows communicate back and forth [parent and child windows])

桥接模式(Bridge)

SQL中的DQL、DML、DDL和DCL是怎么区分和定义的

Bridge mode

全局异常处理器与统一返回结果

布隆过滤器 课程研究报告

How to view the web password saved by Google browser

Matplotlib属性及注解

详解final、finally和finalize

通过PyTorch构建的LeNet-5网络对手写数字进行训练和识别
随机推荐
优秀笔记软件盘点:好看且强大的可视化笔记软件、知识图谱工具Heptabase、氢图、Walling、Reflect、InfraNodus、TiddlyWiki
Bridge mode
R语言plotly可视化:plotly可视化互相重叠的直方图(histogram)、在直方图的底部边缘使用geom_rug函数添加边缘轴须图Marginal rug plots
代理模式(Proxy)
Importerror: no module named image [duplicate] - importerror: no module named image [duplicate]
Xiaomi's payment company was fined 120000 yuan, involving the illegal opening of payment accounts, etc.: Lei Jun is the legal representative, and the products include MIUI wallet app
浅谈小程序对传媒行业数字化的影响
DBeaver安装与使用教程(超详细安装与使用教程)
PHP curl forged IP address and header information code instance - Alibaba cloud
剑指Offer | 链表转置
Dotnet uses crossgen2 to readytorun DLL to improve startup performance
Proxy mode (proxy)
4 methods for exception handling
PMP考试重点总结七——监控过程组(1)
English translation plug-in installation of idea
大纲笔记软件 Workflowy 综合评测:优点、缺点和评价
PMP Exam key summary VI - chart arrangement
老板叫我写个APP自动化--Yaml文件读取--内附整个框架源码
Summary of MySQL basic knowledge points
Abnormal occurrence and solution