Better HN
topnewbestaskshowjobs
Log inSign up

CiPHPerCoder

6,663 karma · joined Feb 25, 2016 (10y ago) · 1,775 submissions

My name is Scott. I do a lot of open source security research, and cryptography.

Previously AWS Cryptography (2019 - 2023).

Unless otherwise stated, my opinions are my own and do not reflect my employer.

https://scottarc.blog/about/

Submissions

comment 7y ago · link · parent

Replace all 404 errors with 404 Party

https://www.youtube.com/watch?v=qvwwzV6ruGc

392.

Demystifying Server-Side HTTP Requests(paragonie.com ↗)

2 points · by CiPHPerCoder · 7y ago · discuss

393.

Demystifying Server-Side HTTP Requests for WordPress Developers(paragonie.com ↗)

1 points · by CiPHPerCoder · 7y ago · discuss

394.

Demystifying Server-Side HTTP Requests for WordPress Developers(paragonie.com ↗)

1 points · by CiPHPerCoder · 7y ago · 2 comments

comment 7y ago · link · parent

I count 11 now.

comment 7y ago · link · parent

> Specifically, do experienced PHP programmers stick to a subset of PHP, as in "PHP: The good parts"?

See: https://phptherightway.com

Modern PHP development comes in the form of loading dependencies from Composer/Packagist, rather than offloading a lot of bloat to the language. Lots of things have been deprecated (and even removed, like ext/mcrypt).

comment 7y ago · link · parent

VPNs don't help here.

https://panopticlick.eff.org

https://gist.github.com/joepie91/5a9909939e6ce7d09e29

comment 7y ago · link · parent

> Why is there so much attention on Google?

Amazon declared tomorrow "Prime Day" and a lot of workers are striking today and/or tomorrow.

Throwing shade at Google would be a good way to keep technical people from paying attention to the plights of workers.

But it could also just be a coincidence.

comment 7y ago · link · parent

The joke.

comment 7y ago · link · parent

Finally we get the long awaited sequel to One Flew Over the Cuckoo's Nest...

One flew over the dubcanada's head.

comment 7y ago · link · parent

Additionally, Telegram uses MTProto instead of TLS. What they should be doing is MTProto in addition to TLS. But, no.

comment 7y ago · link · parent

TL;DR - you're mostly avoiding the admonishment by using libsodium

There are still some dangerous things you can do (e.g. mismanage keys, reuse nonces).

I wrote a library called Halite for PHP developers that wraps libsodium and makes it even harder to misuse. My philosophy was, "You shouldn't even need to know what a nonce is to use it securely."

https://github.com/paragonie/halite

From elsewhere in the thread, PyNaCl takes a similar approach. So how dangerous "just using libsodium" is, with respect to the "don't roll your own crypto" guidance, depends a little bit on which binding you're using.

Also, a lot of tasks might require a specific protocol (PAKEs, VPN protocols, searchable encryption, etc.) that libsodium isn't suitable for.

comment 7y ago · link · parent

> 2. Make implementation of cryptography easier. This is slightly more difficult though, as it depends on your use-case.

No, this is actually much easier than increasing general understanding.

Just get the experts (which is a much smaller pool of individuals than the general populace) to commit to designing things like WireGuard instead of OpenVPN, sodium instead of OpenSSL, PASETO instead of JWT, etc.

comment 7y ago · link · parent

I'm mostly to blame for PHP adopting libsodium in version 7.2. Focusing on PHP was pretty on-brand at the time that was written.

I'm going to need to update it (Argon2id is now the default), so I might generalize the code (or make a tab system to switch between examples).

comment 7y ago · link · parent

Thanks!

I wish I were a little better at SEO so average nerds would have an easy time finding it.

comment 7y ago · link · parent

3a. Doing ECDH (e.g. over Curve25519) and SIDH (or SIKE, the NIST flavor of SIDH) and hashing both together (e.g. with BLAKE2) is a sensible insurance policy against breakthrough attacks against SIDH.

comment 7y ago · link · parent

> I think "key size" is something maybe protocol designers need to be worried about, but it's still about two hops above how kobs-set-for-safety I like recommendations I make to be for the median programmer.

From the article:

> The most important thing to keep in mind about cryptographic key sizes in 2019 is they don't matter nearly as much as the general public likes to think.

:P

The "general public" I'm referring to is the set of people who aren't cryptography protocol designers.

comment 7y ago · link · parent

This might be a better starting point: https://paragonie.com/blog/2017/06/libsodium-quick-reference...

comment 7y ago · link · parent

> For better or worse, that's just how it goes.

No, it isn't.

You don't have to use "bank-grade", "military-grade", etc. in your marketing. They don't actually mean anything, and only serve as a red flag for "we don't know what the fuck we're doing".

You can use almost-equally meaningless phrases like "state of the art", "industry standard", etc.

You can sell on a "proven track record" of not selling out to data brokers or yielding to government search warrants (although that mostly hinges on "never been subpoenaed" rather than "resisted a subpoena" in practical terms).

There's lots of other paths to take besides using "${DUMB}-grade" in your marketing copy. Saying "that's just how it goes" is yielding to a lazy cop-out with another lazier cop-out. It absolutely isn't just how it goes.

comment 7y ago · link · parent

> Islamophobia is a made up word designed specifically to silence criticisms of Islam without having to address them. No other religion has such a word or such protections.

https://rationalwiki.org/wiki/Christophobia

https://en.wiktionary.org/wiki/Judeophobia

What was that now?

I don't care if you have criticisms of Islam. But in the wake of the rise of stochastic terrorism especially among nationalist sentiments throughout the world, I do very much care about people echoing the same dog whistle arguments against Muslims on a thread where it's off topic.

comment 7y ago · link · parent

Your comments are bordering on islamophobic (and that's from a charitable interpretation of your intent).

Just don't. HN isn't the platform for hate.

comment 7y ago · link · parent

What is an abortionist?

comment 7y ago · link · parent

I don't understand. Is your entire point in this discussion to somehow justify talking down to other people?

> If the point is that many people in rural areas are economically struggling, then yes we agree, just as many poorer urban dwellers are (and to whom a random $12k received would also be hugely impactful), but that has nothing to do with example proposed.

My point was that the OP's use of the phrase "only $12,000" is offensive, classist language in the context it was written in. That point is unrelated to the rest of the discussion.

I don't get why anyone would want to double down on defending this language, especially since you weren't the person who used it. But here we are.

But hey, if $12,000/year is peanuts to anyone reading this thread: https://www.patreon.com/ciphpercoder

comment 7y ago · link · parent

But also: Everyone has higher rents, not just you. This will generally be reflected in the cost of living (i.e. not just for your rent will go up, but so will other expenses).

It's not trivial to do this calculation. Some things will surprise you:

You can get cheaper electricity bills in Seattle than where I live (Naples, FL), but you don't need air conditioning in Seattle. Living in Florida without AC is ill-advised.

comment 7y ago · link · parent

> $12000 doesn't mean the same thing when you consider the cost of living difference between the urban and rural areas.

We actually agree here. I think we're speaking past each other.

I'm arguing that "only $12,000" is dismissive of how impactful a difference that makes to the lives of people who don't live in a big city.

comment 7y ago · link · parent

My point was "only $12,000" sounds very ivory tower and tone-deaf to people for which $12,000 is an awful lot of money.

comment 7y ago · link · parent

If they can launch a global currency, they damn sure can build a tech community in a red state.

comment 7y ago · link · parent

As a short-term strategic move, sure. That's pragmatic.

But given a ceteris paribus comparison of the two, my question is what is inherently superior about the onsite position over the remote position?

comment 7y ago · link · parent

Witchcraft!

Seriously though: It'd be great if apartments were better sound-proofed. My only gripe with apartment living was inadequate privacy and being woken up at 3 AM by a lead-footed upstairs resident.

comment 7y ago · link · parent

Okay that's a more reasonable argument than what I thought you were making.

I'd contend that you're not considering the impact of sunk cost fallacies on business decision-making. Or if you have considered it, you've probably discounted it far more than is warranted.

It could be the case that, out of all the people currently employed by these companies, the majority believe they thrive in an onsite role rather than a remote one. Years of self-selection (especially if exacerbated by a lack of diversity in their employment experience, since these companies tend to hire out of colleges) could lead to a feedback loop.

Just because they're smart people doesn't mean they're impervious to human cognitive distortions.

How many of these companies have even trialed 100% remote positions, even if only for a year?

1
131415
60