5 ms·
There are two obvious problems with this approach to engineering: 1. You don't know what you don't know, and there is a lot to know about cryptography beyond t
by tptacek 7y ago
There are two obvious problems with this approach to engineering:
1. You don't know what you don't know, and there is a lot to know about cryptography beyond the minimum needed to interoperate with other systems.
2. If you're engineering seriously, you know people are going to inherit your code and your design down the road, and if you're relying solely on a minimal feature set without a coherent, informed design, those people are building on sand.
Rolling your own JWT is a bad plan.
- macspoofing 7y agoIt's not like he is rolling out his own crypto library. He's just rolling his own token but encrypted/signed with industry standard crypto. It's not terrible to "roll your own JWT" if you don't actually care about interoperability. And he's right, it does sidestep a lot of issues because JWT and corresponding libraries are designed to handle far more use-cases than what he may need it for and therefore if you don't fully understand it all, you may be shipping with unsecure configuration.