V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
miniyao
V2EX  ›  Python

使用 itsdangerous 生成 token,和 JWT(Json web token) 有什么区别吗?

  •  
  •   miniyao · 2020-12-19 21:49:34 +08:00 · 1820 次点击
    这是一个创建于 1237 天前的主题,其中的信息可能已经有所发展或是发生改变。
    看起来 itsdangerous 和 jwt 生成 token 功能差不多,两者有什么区别吗?
    5 条回复    2020-12-20 14:55:16 +08:00
    ysc3839
        1
    ysc3839  
       2020-12-19 22:00:37 +08:00 via Android
    jwt 是个通用标准,有不同语言的实现。
    itsdangerous 似乎是私有的标准。
    johnsona
        2
    johnsona  
       2020-12-19 23:13:33 +08:00
    it 短,jwt 长,it 两段,jwt 三段,代码很简单,看
    black11black
        3
    black11black  
       2020-12-20 04:16:30 +08:00 via Android
    @johnsona 带师,我悟了!
    nl101531
        4
    nl101531  
       2020-12-20 09:25:47 +08:00
    做法都是类似的,信息存客户端,使用签名保证不可伪造
    johnsona
        5
    johnsona  
       2020-12-20 14:55:16 +08:00 via iPhone
    @black11black 哈哈哈,在 v 站看到你好几次了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   3220 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 13:48 · PVG 21:48 · LAX 06:48 · JFK 09:48
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.