V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
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 · Dec 19, 2020 · 2276 views
    This topic created in 1956 days ago, the information mentioned may be changed or developed.
    看起来 itsdangerous 和 jwt 生成 token 功能差不多,两者有什么区别吗?
    5 replies    2020-12-20 14:55:16 +08:00
    ysc3839
        1
    ysc3839  
       Dec 19, 2020 via Android
    jwt 是个通用标准,有不同语言的实现。
    itsdangerous 似乎是私有的标准。
    johnsona
        2
    johnsona  
       Dec 19, 2020
    it 短,jwt 长,it 两段,jwt 三段,代码很简单,看
    black11black
        3
    black11black  
       Dec 20, 2020 via Android
    @johnsona 带师,我悟了!
    nl101531
        4
    nl101531  
       Dec 20, 2020
    做法都是类似的,信息存客户端,使用签名保证不可伪造
    johnsona
        5
    johnsona  
       Dec 20, 2020 via iPhone
    @black11black 哈哈哈,在 v 站看到你好几次了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1084 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 120ms · UTC 22:43 · PVG 06:43 · LAX 15:43 · JFK 18:43
    ♥ Do have faith in what you're doing.