TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Free (Almost) JWT eBook

5 点作者 kouzant将近 6 年前

1 comment

rvz将近 6 年前
After reading the pitfalls and mitigations section, I&#x27;m starting to wonder why JWTs&#x2F;JWEs&#x2F;etc are even adopted despite these attacks demonstrated by many cryptographers mentioned in this book. Since JWTs allow for a choice of algorithms (algorithm agility) to sign&#x2F;verify the tokens, it allows room for many developers to shoot themselves in the foot in securing these tokens, hence the multiple vulnerabilities documented in this book.<p>It&#x27;s worth looking at better alternatives that are more cryptographically secure and have sane defaults than JWTs these days. I&#x27;d rather use either PASETO [0], Branca [1] or Fernet [2] Tokens at this point.<p>[0] <a href="https:&#x2F;&#x2F;paseto.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;paseto.io&#x2F;</a><p>[1] <a href="https:&#x2F;&#x2F;branca.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;branca.io&#x2F;</a><p>[2] <a href="https:&#x2F;&#x2F;github.com&#x2F;fernet&#x2F;spec&#x2F;" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;fernet&#x2F;spec&#x2F;</a>