Better HN
topnewbestaskshowjobs
Log inSign up

throwawaymath

5,982 karma · joined Apr 20, 2018 (8y ago) · 1,603 submissions

I've left. This used to be an enjoyable place to debate, but now it's frustrating to see ideologically driven downvotes on valid and on-topic comments.

I no longer have access to this account. If you want to reach me for past comments, you can do so at throwawaymathhn@gmail.com.

Submissions

comment 7y ago · link · parent

To be fair what you're describing is a PAKE, which is substantially different from "merely" moving the key-derivation functionality of password hashing from the server to the client. They're categorically different things. But you're right - if you're going down the rabbit hole of client-side hashing, you might as well implement a PAKE instead.

This kind of gets to the heart of what I was referring to when I said client-side hashes are like faster horses rather than cars. If you're spending this much effort, a superior protocol is better than an unorthodox, modified one. SRP is a PAKE which basically takes your proposal and moves it into a different layer of abstraction (TLS), and OPAQUE makes improvements upon it which allow you to use elliptic curves[1]. There are other reasons not to use PAKEs, but they're a much more coherent and defensible suggestion than just bolting the key derivation system onto the client rather than the server.

______________________

1. https://blog.cryptographyengineering.com/2018/10/19/lets-tal...

comment 7y ago · link · parent

I don't mean to engage in whataboutism here, but unless you're under the impression that no tech company is privacy conscious, what you're saying isn't true (though that'd be a reasonable impression, to be fair).

It's absolutely a security failure and it's not acceptable. But it's not a matter of "allowing" it to happen so much as, "Which vulnerability will we be caught by?" And it actually is a pretty normal vulnerability. For example, Apple[1], GitHub[2] and Twitter[3] have been vulnerable to this exact issue in recent memory.

I also don't mean to be defeatist. This kind of problem is preventable. But it's merely one dumb mistake in a universe of dumb mistakes that leads to serious security failures, all of which are easy to make. The most sophisticated and well-funded information security teams in the world - usually the FAANG teams - still miss things which look pretty silly in isolation.

At this scale being privacy conscious is necessary but insufficient. You can't realistically conclude anything about a company's dedication to privacy based on whether or not it was impacted by this kind of vulnerability. Making a corporate policy to hash passwords in the the database instead of storing them in plaintext is easy to codify, easy to implement and easy to verify. A corporate policy to never log authentication credentials is not nearly as well-defined, even if it's equally as important. That means more mental overhead, disagreement and uncertainty in preventing it. Ultimately, it also means more mistakes can be - and are - made.

________________________

1. https://darthnull.org/security/2014/03/10/cve-2014-1279-touc...

2. https://www.zdnet.com/article/github-says-bug-exposed-accoun...

3. https://arstechnica.com/information-technology/2018/05/twitt...

comment 7y ago · link · parent

That's actually not a best practice; on the contrary it's extremely uncommon. Not because it's bad, but because it just doesn't actually add a meaningful security improvement. On the other hand, it does add non-negligible complexity to your authentication system. In particular, it would have done absolutely nothing to prevent this specific vulnerability.

If you hash your users' passwords using a key-derivation algorithm on the client-side, each user's password simply becomes the original password's digest. From the server's perspective nothing has changed. Moreover the server will need to re-hash the password digest sent over the wire, because if the server is compromised the password digests can be directly replayed to the server to compromise corresponding accounts.

Additionally, since the shared secret between the client and server is the user's password digest, the password needs to be hashed using the same salt every time the user authenticates. So each user's password digest is still a de facto unique password which will be sent over the wire anyway. This scheme basically retrofits the server's job onto the client with added complexity. It's like the (slightly) faster horses version of password authentication, when we could really be experimenting with developing cars (like two/multi-factor authentication, more robust server-side controls and provable correctness).

That's not to say the scheme has no benefits whatsoever. It does mean that user passwords will be more complex, because the actual token stored by the server (the de facto password) is a digest. But there are two drawbacks - with enough users you'll still see many duplicated digests in your password database, even if you randomly generate salts on the client side. More importantly, you're offloading hashing to the client side in JavaScript. JavaScript can be very fast in 2019, but companies like Facebook and Google still maintain very low latency, substantially stripped-down versions of their websites[1] because client-side hashing isn't going to be nearly as fast as server-side hashing for a huge number of people. There's also a sizable population of people who don't even have JavaScript enabled, or who might have incompatible browsers.

tl;dr - Client-side hashing is not a best practice (and not widely deployed) because it comes with a nontrivial complexity increase, lower client compatibility and negligible security benefits. It also would not have prevented this vulnerability.

_______________________

1. For example, mbasic.facebook.com.

comment 7y ago · link · parent

> Those prices are ridiculous, especially in a time where we should be consuming news from a greater number of different resources, not a select few.

Leaving aside the comment about pricing, how do you consume more varied news than those "select few"? I read The Economist, NYT and WSJ every morning. Reading several articles (often on the same topic) across all three takes me about an hour. For a while I was trying to read Foreign Policy too but there's just not enough time.

I can only do this because I commute into the city on a relatively quiet train ride. I can't imagine adding another news source to this routine, let alone a bunch of them. What would you do, have a Monday set of sources, a Tuesday set and so on?

comment 7y ago · link · parent

I can't speak for The Atlantic because I don't read it, but I wouldn't categorize The Economist as right-leaning. Its positions on various issues are too nuanced; I think it would be more accurate to decompose its views into economic and social issues. Then you end up with something that looks economically conservative and socially progressive. But even that sort of leaves out a lot of details that tend to get smoothed over in more mainstream political discourse.

Take a look at the Wikipedia page covering The Economist's editorial stance[1]. In particular, note their presidential endorsements and their respective positions on climate change, drug decriminalization/legalization and American military action in Afghanistan and Iraq.

To drill into a specific example, consider that they've historically endorsed Democratic presidential candidates more often than not; on the other hand they endorsed George W. Bush in 2000 because they agreed with his, "small government, pro-market philosophy".

While they haven't done it in recent memory, they have in the past abstained from making any specific endorsement for a presidential candidate. More recently they haven't shied away from criticizing both candidates.[2]

____________________

1. https://en.wikipedia.org/wiki/The_Economist_editorial_stance

2. Here's a fun one: in 2004 The Economist very weakly (and sardonically) endorsed Kerry by saying, "The incompetent George W. Bush or the incoherent John Kerry." In contrast they gave two ringing endorsements for Obama.

comment 7y ago · link · parent

> There are two schools of thought: 1) Security has to be enforced by code

2) Your employees are reasonable, and won't try to maliciously bypass security controls

Huh? These aren't competing ideas. They're orthogonal, and should be covered by separate, complementary forms of security assurance.

comment 7y ago · link · parent

> As a result I suspect these days the elite universities must be filled with really dull people who wont achieve the same "success" as previous generations at those institutions.

Trading your conjecture for a bit of anecdata here: this has not been my experience. The most interesting (and kindest!) person I ever met went to Harvard after placing in their national speech and debate tournament.

I don't think any meaningful conclusion about the personalities of elite college attendees could be drawn from standardized tests and extracurriculars.

comment 7y ago · link · parent

That's the platonic ideal of a professor's utility, yes. In practice it's more of a mixed bag. Once you leave the top ~100 colleges the scales stop being tipped towards research nearly as much.

comment 7y ago · link · parent

Ah, by sociability I just meant the number of collaborators he worked with. What I'm getting at is that he's abnormal because he published so much, not because he published with so many coauthors. Many mathematicians would have similar looking publication records if they maintained the same level of collaboration and simply published...more.

But he was an oddball too, for sure.

comment 7y ago · link · parent

How are you going to be admitted to a graduate program without an undergraduate degree? The cases I'm aware of where that's happened are so rare and unique they may as well have never happened.

Even in those instances, I don't think any of them happened in the last decade or two. If anything it's probably more difficult than ever to e.g. impress the right faculty member and thus bypass graduate admissions these days (Lockhart did this after meeting Erdos at Columbia in the late 80s). The amount of bureaucracy has only increased over time. More importantly much of it has been systematically automated, so you longer even have a clear system for a human to bypass a requirement in exceptional cases.

I think it's also hard to make a really good case for it. I know someone who was admitted to Harvard at 16 years old. Upon admission he already had two full years of undergraduate credit completed through a gifted youth program at Stanford. He finished his bachelors degree before he turned 18 and received his PhD at 21. He didn't "need" undergraduate education in the usual sense of the word, but he still got it (albeit in a non-traditional way) before going to grad school.

It might sound harsh but when people like that exist and still get a bachelors degree, universities don't really have to make exceptions. There's just no pressure to do so, and in their eyes anyone without the qualification is an unknown quantity with an unfamiliar bureaucratic exception process tied to it.

comment 7y ago · link · parent

It does say applicants who do not meet those criteria will be evaluated on a case by case basis, though.

comment 7y ago · link · parent

> In my experience with pure math, it was mostly solitary.

I disagree, but it might be because I interpret the spirit of the question differently. I would not call an activity involving some collaboration between people at different universities (including email), "solitary." It may not be very socially engaging, but it's categorically not a solitary endeavor. People are working together.

To speak to your examples directly: as you're aware, they're extreme outliers. They're not just extreme because of the level of achievement; they're also nearly heroic in scope for a single person to work on without collaboration. It just doesn't happen much at that level of sophistication and complexity.

More to the point, if you peel back those examples you see quite a lot of non-solitary work. For example, Perelman refused the Fields medal with a declaration that the substantial prior work was just as important for the solution as his own work. He's a pretty big champion of the important of the community aspect of mathematics. Likewise Wiles actually needed collaboration to fix a critical flaw in his original proof of Fermat's Last Theorem.

And that really captures the heart of what I'm getting at, which is what mathematics is "about" by practice and intention. Most mathematicians engage with the research community by attending conferences and collaborating with their peers, even if that collaboration is largely asynchronous. They keep their fingers on the pulse of the academic landscape by talking with other people. In the cases where someone produces noteworthy research on their own, it still exists in a social framework.

A mathematical proof is intrinsically a social endeavor. To prove a theorem is to convince someone else that it must follow from a series of axioms, definitions and other theorems. Sometimes you can do the work on your own, but it won't matter if it's disconnected from the research community, and the easiest way to stay connected to the research community is through collaboration.

If no one else in the world agrees with your proof, your proof is meaningless (as an example, see the controversy around Mochizuki's Inter-universal Teichmüller theory). This is what peer review is for. Moreover if you construct a new mathematical theory, it's only meaningful insofar as it builds upon existing work developed by other researchers. The choice of axioms and definitions must be interesting and significant within the context of an existing body of work.

This is one of the reasons you so rarely see nontrivial research produced by isolation. It's (approximately) a myth, and instances of it happening receive outsized attention precisely because they're extraordinarily rare and unconventional. In reality, it's usually not a good sign for a researcher to work on something in solitude. In most cases it coincides with the stagnation of a mathematician's career, not the glorious unveiling of a solution to a decades-old open problem or a grand new theory.

I can see why the idea that mathematics is a solitary endeavor (or suited to solitary work) is an attractive one, because the most visible parts of it (writing papers, solving problems) can be done alone. But it's usually very inadvisable to go it alone in learning or practicing mathematics.

comment 7y ago · link · parent

Erdos wasn't out of the ordinary because he published with (read: collaborated with) so many coauthors. He was out of the ordinary because he published so many papers, period. His sociability was more of a difference of degree within mathematics, not category.

comment 7y ago · link · parent

If that were actually the case, this model would be far and away the best ever developed!

comment 7y ago · link · parent

> On the other hand, it's hard to imagine someone senior enough (in terms of experience, not years) who haven't ever hacked a FLOSS dependency to do something it originally didn't.

No, I find that pretty easy to imagine.

comment 7y ago · link · parent

Great explanation, but very minor nit: technically speaking a number is only normal if it's normal in every base.

comment 7y ago · link · parent

Agreed. It's like when he writes about Facebook and calls people "useds" instead of "users." Many of his opinions could be (or are) compelling and well-defended, but many of them are tangled up with his hostile (and sometimes childish) style of argumentation.

I wish he would tone it down sometimes, for lack of a better phrase. He doesn't have to compromise on his ideology to polish up his essays with less polarizing style. His arguments are already controversial, and he doesn't convince anyone who doesn't already agree with him by insisting on writing this way.

EDIT: Well apparently this is a controversial comment...the score just keeps going up and down.

comment 7y ago · link · parent

This isn't a fun answer, but you basically can't without substantial background in undergrad mathematics. The subject has some of the highest prerequisites of any upper undergrad/lower grad level math course, as it touches on (and uses) just about everything you'd learn through an undergrad math degree.

I don't want to discourage you, I'm just being realistic. If you want to work towards algebraic geometry, you can certainly do that. You'll need to first master linear algebra and abstract algebra. You should have a strong understanding of fields, groups, rings, vector spaces and modules. Someone else mentioned commutative algebra - that is more of a circular dependency with algebraic geometry than a hard one. It's good to have walking in, but realistically you can't master the subject without knowing algebraic geometry.

You'll also need analysis, in particular complex analysis for curves. Real analysis and topology should also be covered but I suppose with tenacity you could get by without them.

To translate these into concrete suggestions, in your position I'd try to work through the following, in order:

1. Linear Algebra Done Right (Axler)

2. Abstract Algebra (Dummit & Foot)

3. Complex Analysis (Ahlfors)

4. Algebraic Curves (Fulton)

The last one is a standard upper undergraduate introduction to the subject.

If possible you should organize a study group or take a class though, because trying to learn math on your own from a textbook is rough.

comment 7y ago · link · parent

The general argument is that iOS is more secure because Apple strictly controls both the hardware and the software. The two are very tightly integrated in Apple products, which means proprietary software for e.g. segregating userland or interacting with the secure enclave is specialized and well-audited.

The other (perhaps more compelling) argument is that Apple is only able to invest this level of security in its products because of its spectacular profits, which would likely be much lower if iOS were open source.

That's basically the gist of it.

EDIT: To whoeever downvoted this, I'm just relaying the argument.

comment 7y ago · link · parent

Indeed. Grothendieck is one of the few names I associate with the word "genius" without qualification. Up there with people like von Neumann and Witten. There are a lot of really smart people in the world, but they stand out even among the best.

comment 7y ago · link · parent

I don't think you've substantiated your first claim just by linking to the Wikipedia article about predatory pricing. Even the Wikipedia article admits that the devil is in the details, as it were; it's hard to distinguish between anticompetitive pricing and competitive pricing.

You're correct that Apple Music may be a loss leader, but even if it is a loss leader, there's significantly more nuance involved before we can declare it to be predatory pricing.

comment 7y ago · link · parent

That's a fair point. On the other hand, Microsoft Windows wasn't a marketplace with respect to web browsers.

comment 7y ago · link · parent

It's anticompetitive, but is it illegal? Is it unethical? Does Apple's favoritism of its own products on its platform mean competing products cannot exist on the platform, or that they're less capable/visible?

There are many platforms which rigidly control what's allowed on it. For example, is Netflix comparable? Netflix can control which providers are represented on its platform.

comment 7y ago · link · parent

You're making a strong point here, which is that every real world analogy of pointers breaks down since everything is data. But I'm still not sold on the idea that pointers are intrinsically a "make it or break it" topic for people to learn.

In fact, I'm resistant to that sort of conclusion in general. I don't really think there are things that people of average intelligence can't learn, given enough time and pedagogy. And I say that as someone with a background in mathematics, which is one area most typically associated with people "not getting it."

If people don't learn pointers, it could be because they're not sufficiently motivated or don't have it presented to them the right way. It could be that the overuse of analogies does them a disservice, and they really just need to pick up a book. Whatever the case may be, I'd hesitate to say it can't be learned by any population of people.

comment 7y ago · link · parent

Is there a way for you to quickly explain where/what the bias is, for people who have no idea what Gamergate is?

comment 7y ago · link · parent

To my recollection, dynamic programming problems were fasionable interview questions prior to the current wave of machine learning. That's to say I'm pretty sure they were being asked at Google/Facebook/etc around 2012 at least, likely earlier.

comment 7y ago · link · parent

Ah, I see what you're saying.

comment 7y ago · link · parent

Eh what? Westworld is rated 86% on Rotten Tomatoes and 8.8/10 on IMDB. True Blood is rated 69% and 7.9/10 on the same platforms, respectively.

Which ratings are you looking at?

EDIT: I also checked Metacritic. True Blood is rated 68 on average across seven seasons, meanwhile Westworld is rated 75 on average across two seasons. If you take the Metacritic rating peak of Westworld (Season 1) and the Metacritic rating peak of True Blood (Season 3), True Blood is only four points ahead.

Given the difference between the Metacritic score and the Rotten Tomatoes/IMDB scores, I'd be inclined to chalk it up to different audiences. But even on the preferential platform Westworld basically at parity with True Blood, not "far south" of it.

comment 7y ago · link · parent

Really? Why are the espresso machines used in coffee shops so expensive then?
1
131415
54