当前位置:网站首页>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'}
边栏推荐
- Ingersoll Rand panel maintenance IR Ingersoll Rand microcomputer controller maintenance xe-145m
- 小米旗下支付公司被罚 12 万,涉违规开立支付账户等:雷军为法定代表人,产品包括 MIUI 钱包 App
- 虛擬機14安裝win7(圖教程)
- 读取pdf文字和excel写入操作
- 线程和进程
- 引入 flink-sql-mysql-cdc-2.2.1 好多依赖冲突,有解决的吗?
- Regular verification of mobile phone number and email [easy to understand]
- 【云驻共创】DWS告警服务DMS详细介绍和集群连接方式简介
- Settings of gift giving module and other custom controls in one-to-one video chat system code
- abnormal
猜你喜欢

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

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

函数的分文件编写

布隆过滤器 课程研究报告

The concept of "tree structure" perfectly interprets the primary and secondary of things

Dbeaver installation and use tutorial (super detailed installation and use tutorial)

通过PyTorch构建的LeNet-5网络对手写数字进行训练和识别

dotnet 使用 Crossgen2 对 DLL 进行 ReadyToRun 提升启动性能

Dotnet uses crossgen2 to readytorun DLL to improve startup performance

JVM系列(2)——垃圾回收
随机推荐
R language plot visualization: plot to visualize overlapping histograms, and use geom at the bottom edge of the histogram_ The rugfunction adds marginal rugplots
JVM family (2) - garbage collection
Installing redis under Linux and windows (ultra detailed graphic tutorial)
Read PDF image and identify content
Abnormal occurrence and solution
Chapter 3 stack and queue
PMP考试重点总结九——收尾
Key summary V of PMP examination - execution process group
Linux下安装redis 、Windows下安装redis(超详细图文教程)
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
On the influence of small program on the digitalization of media industry
Settings of gift giving module and other custom controls in one-to-one video chat system code
【OpenCV 例程200篇】213. 绘制圆形
装饰模式(Decorator)
读取pdf图片并识别内容
ffmpeg录音录像
Comprehensive evaluation of outline note taking software workflow: advantages, disadvantages and evaluation
Dbeaver installation and use tutorial (super detailed installation and use tutorial)
Numpy array: join, flatten, and add dimensions
爬虫小操作