6,663 karma · joined Feb 25, 2016 (10y ago) · 1,775 submissions
Previously AWS Cryptography (2019 - 2023).
Unless otherwise stated, my opinions are my own and do not reflect my employer.
https://scottarc.blog/about/
comment 6y ago · link · parent
TL;DR - The main goal is: "Get off our lawn."
comment 6y ago · link · parent
I say we start referring to cryptocurrencies as "cyber cash" and then abbreviate it to "cyber". If anyone should suffer from appropriated terminology at the hands of blockchainiacs, it ought to be the insufferable sales staff at security industry conferences.
comment 6y ago · link · parent
> Msgpack is an PECL extension, thus you can simply install it by:
Having something available in PECL is a good first step, but nobody will use it unless you either:
1. Get it into the standard library (which requires an RFC for PHP Internals), OR
2. Write a pure-PHP polyfill installable from Composer, OR
3. Do #2 then #1 (using the polyfill's popularity to argue for the importance of the RFC acceptance to make #1 a reality).
Reason: A lot of the places PHP is deployed, you can't compile C code or install binary dependencies (.so, .dll files). You can't access the OS package manager, either.
But Composer is a pure-PHP package manager that still operates in these environments.
So if anyone on HN ever wants your thing to be used by PHP developers, don't just stop at "PHP extension, written in C, available in PECL".
comment 6y ago · link · parent
comment 6y ago · link · parent
If you're using v2, you're either signing with Ed25519 or encrypting with XChaCha20-Poly1305. There are no additional knobs or levers. Only boring cryptography.
A versioned JOSE that limited flexibility is dead in the water. JOSE users will bikeshed over backeards compatibility until the end of time. Might as well specify a new standard at that point. Hence PASETO.
comment 6y ago · link · parent
That's fair.
I wrote this in 2017 to give a single page arguments against the JOSE standards. The accusative tone is required by the fact that the entire page exists to attack the standard, based on technical arguments.
The target audience of the Paragon Initiative blog has always been "PHP developers", and PHP gives you a built-in session mechanism. Which, if you're writing PHP, you should just use. Session security in modern PHP boils down to "use HTTPS".
If you're doing some massively distributed system (the likes of a FAANG company project), you can disregard the advice aimed at LAMP stacks.
comment 6y ago · link · parent
Sure, here's one at random: https://github.com/awslabs/aws-encryption-sdk-specification
DJB is not one of the authors of that specification. ;)
comment 6y ago · link · parent
The specification is here: https://github.com/paragonie/paseto/tree/master/docs
If you can write an insecure implementation without violating the specification, please file an issue on Github.
comment 6y ago · link · parent
https://github.com/paragonie/paseto/tree/master/docs
> It looks more of a php lib.
https://paseto.io/ -- Several languages implement PASETO.
> To me it seems the author is not familiar with JWT[0]
How does one demonstrate familiarity with JWT beyond analyzing/critiquing the RFCs for JWT and correlating the specific language of the standard with real-world vulnerabilities of JWT implementations?
> and tries to solve the wrong problems(e.g assumes the idp or library being used are compromised.)
Assuming something that has happened several times already isn't a "wrong problem". https://auth0.com/blog/critical-vulnerabilities-in-json-web-...
comment 6y ago · link · parent
Forge this. For each session:
session_id = bin2hex(random_bytes(32))
Yes, you can change what you send to the server. But you can't hijack another user's session in this probability space (2^-256) by blind guessing. Instead, you need another way to leak their credentials to hijack the session.comment 6y ago · link · parent
We'll see about that. :)
> Every single company has no choice but to support JWT in some capacity.
This will change soon.
> Whenever one has to use social auth (Google/Facebook/twitter), or Microsoft products (ADFS/Office365), or third party authentication solutions (Okta/auth0), they're de facto dealing with OpenID Connect + JWT (or SAML but that's a different topic).
The plan for PASETO has always been to make it a JWT alternative for OIDC.
First comes the XChaCha RFC.
Second comes the PASETO RFC.
Finally, the OIDC-PASETO RFC.
1. https://tools.ietf.org/html/draft-irtf-cfrg-xchacha-03
2. https://github.com/paragonie/paseto/blob/master/docs/RFC/pas...
comment 6y ago · link · parent
Okta's a pretty big name in authn/authz and their engineers recently published an open source PASETO implementation.
https://developer.okta.com/blog/2019/10/17/a-thorough-introd...
comment 6y ago · link · parent
https://www.youtube.com/results?search_query=bkz+reduction
1. https://www.youtube.com/watch?v=c3Trwclh_Z4
2. https://www.youtube.com/watch?v=EapIVDlhvQU
3. https://www.youtube.com/watch?v=3cicTG3zeVQ
---- The scrollbar of my browser cuts here ----
4. https://www.youtube.com/watch?v=9i9BCsHxofE
...
* random may or may not have been influenced by Dual EC
comment 6y ago · link · parent
Violent crime is also a grim reality we all have to live with, even if things are as a whole improving (statistically).
> I found the page hilarious, wonder if I've become desensitised.
That's not necessarily a bad thing. Maybe it can come in handy (e.g. easier to remain calm in a bad situation). I hope neither of us ever has to find out.
comment 6y ago · link · parent
I don't think it's medically possible for me to relax more than I am right now without losing consciousness, thanks.
> They are not irrationally scared of Indians,
The term "phobic" doesn't just mean "irrationally scared", it also refers to cognitive distortions and feelings of contempt.
> they are annoyed that Indian videos are flooding their feeds,
The fact that the content is low quality or in a language the viewer doesn't understand is orthogonal to the people who made the video being Indian. Focusing on that fact instead of the actual problem shows a racial and/or national discriminatory motive and should be addressed.
> they want different content and that is common sense in this context. If the Indian videos were if sufficient quality the problem would be somewhat tempered, but they are not of sufficient quality to overcome their inappropriate placement.
Only "somewhat" tempered?
comment 6y ago · link · parent
There is value in being able to reliably filter by language. After all, if you can't understand a lecture video, then there's little point in watching it.
But how some of the commenters choose to express their thoughts comes across more as "I hate people from India" than "This is inconvenient".