News for hackers. Stuff that matters.
Re:Building a Stateless API Proxy by lvh on Thursday May 30, 2019 @09:39PM (#20057605)
I mean, part of the answer is "don't do that" but if you have to, secretbox or PASETO. Part of the problem is that "stateless token" can mean a lot of things depending on context; for internal use you generally want symmetric MAC possibly w/ symmetric encryption, for external use you probably want signing -- all of which have answers in Cryptographic Right Answers :)
Re:Building a Stateless API Proxy by rakoo on Friday May 31, 2019 @10:19AM (#20061086)
I was wondering more about how to format a payload that may be shared between agents in a standard, secure format, but that is probably not even a Cryptographic Question :)
Re:Building a Stateless API Proxy by lvh on Friday May 31, 2019 @10:50AM (#20061391)
Still the same answer unfortunately: depends on the use case. Sometimes you just want signing, sometimes it's OK to share a key, sometimes...