当前位置:网站首页>生成token
生成token
2022-06-28 09:40: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)
##打印结果为:
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY2NvdW50IjoiMTMxNDYxNTIwMjEiLCJvdmVyZHVlX3RpbWUiOiIxNjU1ODI3MjAwIn0.VhPfiC0OC481eGmppxTa_OOLEyV-Itp6OGLeBe5ItXY
{'account': '13146152021', 'overdue_time': '1655827200'}
边栏推荐
- 如何查看谷歌浏览器保存的网页密码
- 数字人行业爆发在即,市场格局几何?
- Full link service tracking implementation scheme
- 01 distributed system overview
- Custom exception classes and exercises
- 纵观jBPM从jBPM3到jBPM5以及Activiti
- What is online account opening? Is it safe to open an account online now?
- dotnet 使用 Crossgen2 对 DLL 进行 ReadyToRun 提升启动性能
- 代理模式(Proxy)
- [ybtoj advanced training guidance] class roll call [string hash]
猜你喜欢
![1180: fractional line delimitation /p1068 [noip2009 popularization group] fractional line delimitation](/img/1a/162b060a6498e58278b6ca50e4953c.png)
1180: fractional line delimitation /p1068 [noip2009 popularization group] fractional line delimitation

This article explains in detail the difficult problems and solutions faced by 3D cameras

PMP考试重点总结八——监控过程组(2)

Machine virtuelle 14 installer win7 (tutoriel)

Redis sentinel cluster main database failure data recovery ideas # yyds dry goods inventory #

How to reduce the risk of project communication?

【OpenCV 例程200篇】213. 绘制圆形

Unity AssetBundle资源打包与资源加载

A classic JVM class loaded interview question class singleton{static singleton instance = new singleton(); private singleton() {}

Adapter mode
随机推荐
abnormal
Regular verification of mobile phone number and email [easy to understand]
Looking at jBPM from jbm3 to jbm5 and activiti
R语言plotly可视化:plotly可视化互相重叠的直方图(histogram)、在直方图的底部边缘使用geom_rug函数添加边缘轴须图Marginal rug plots
数字人行业爆发在即,市场格局几何?
【OpenCV 例程200篇】213. 绘制圆形
PMP考试重点总结七——监控过程组(1)
函数的分文件编写
最小栈<难度系数>
Matplotlib attribute and annotation
什么是在线开户?现在网上开户安全么?
PMP考试重点总结五——执行过程组
For the development of short video app, the elder warned me to choose the open source code
flink cep 跳过策略 AfterMatchSkipStrategy.skipPastLastEvent() 匹配过的不再匹配 碧坑指南
Starting from full power to accelerate brand renewal, Chang'an electric and electrification products sound the "assembly number"
Unity loads AssetBundle resources from the server and writes them to local memory, and loads the downloaded and saved AB resources from local memory to the scene
This article explains in detail the difficult problems and solutions faced by 3D cameras
On the influence of small program on the digitalization of media industry
PMP考试重点总结九——收尾
虛擬機14安裝win7(圖教程)