4 ms·
> JWT includes cryptographic agility for the client to change algorithms and and defines a “none” algorithm that disables the cryptography altogether. "none" i
by mooreds 5y ago
> JWT includes cryptographic agility for the client to change algorithms and and defines a “none” algorithm that disables the cryptography altogether.
"none" is only viable in very narrow circumstances (basically where you have other ways of verifying trust, like mTLS or an isolated network AND you know that signing has a material impact on your system performance). I agree that it shouldn't be used widely.
Thanks for the example. It feels a bit like the old dynamic vs static typing debate, where more flexibility can be helpful in some circumstances (monkeypatching that old ruby gem) but can come back and bit you too if you (and everyone who updates the code) are not careful.
Anyway, hope Paseto (and other solutions) continue to push the ball forward.
And if you are using JWTs, never accept or generate one with alg=none. :)