Live data from Hacker News

Typing The Letters A-E-S Into Your Code? You’re Doing It Wrong

matasano.com

21–30 of 76 posts

Re: Typing The Letters A-E-S Into Your Code? You’re Doing It Wrong

#21

A “young, cool-people’s” coffee shop on the first floor of an old office building in downtown Chicago. A place like this exists? All I can think of is Intelligensia.

It's a Louis CK bit, and an inside joke because the bit does match up with Intelligentsia (there's actually one of those in LA, where LCK wrote the bit, so I've always wondered).

Our office is in fact a few floors up from the Intelligentsia in the Monadnock building.

Re: Typing The Letters A-E-S Into Your Code? You’re Doing It Wrong

#23
Isn't the whole problem in this situation that you are trusting the client with critical data? He takes possession of it, has unlimited time and opportunity to work on it, and successful falsification will be obvious for him? Why on earth trust the client with the data in the first place? I have never liked the "encrypted cookie" way of handling session storage.

Just have a server side session store and all of this cookie encryption crap just vanishes. Of course that won't help you with session fixation etc, but the post doesn't address that stuff either. Do it over TLS and you're pretty safe though.

And let's not forget the author's suggestion to pad out the cookie with 1000 bytes to make it harder to falsify. That cookie gets send with every single request. 20 images on the page, you're sending 20KB of junk up just to load the page. On a connection with slow upstream, like say ADSL, you can easily add a second or two of request latency. You might not care but some people sure do.

And come on, I read until the very end expecting to hear what "processes or threads" have to do with security, so tell us already!

Re: Typing The Letters A-E-S Into Your Code? You’re Doing It Wrong

#24
post #21

A “young, cool-people’s” coffee shop on the first floor of an old office building in downtown Chicago. A place like this exists? All I can think of is Intelligensia.

It's a Louis CK bit, and an inside joke because the bit does match up with Intelligentsia (there's actually one of those in LA, where LCK wrote the bit, so I've always wondered). Our office is in fact a few floors up from the Intelligentsia in the Monadnock building.

Very cool. I have always wanted to start a Haskell consultancy and run it out of that building ;)

Re: Typing The Letters A-E-S Into Your Code? You’re Doing It Wrong

#25
post #21

A “young, cool-people’s” coffee shop on the first floor of an old office building in downtown Chicago. A place like this exists? All I can think of is Intelligensia.

It's a Louis CK bit, and an inside joke because the bit does match up with Intelligentsia (there's actually one of those in LA, where LCK wrote the bit, so I've always wondered). Our office is in fact a few floors up from the Intelligentsia in the Monadnock building.

For variety you should head up a block to the Argo in the Marquette building. I work above the Argo, but sometimes visit your Intelligentsia for variety :)

Re: Typing The Letters A-E-S Into Your Code? You’re Doing It Wrong

#26
I always try to espouse the benefits of triple-rot13 as the cipher in interview questions about security. Key management is a breeze, for example, and it's VERY fast.

But it allows everyone to concentrate on how you're managing the secure context instead of what algorithm has been shown to cause cancer in rats.

Re: Typing The Letters A-E-S Into Your Code? You’re Doing It Wrong

#29
Great post! I'd love to see more of this kind of thing; approachable explanations of the right way to do security and how easy it is to do it wrong.

Unfortunately, there's seems to be a huge gap between the average working programmer, who often has little idea how to do security, and the security guru's who are often barely intelligible to the rest of us. :-)

Sadly, the result of most programmer's poor understanding of security is even worse than the bad crypto implementation in the article. It's often something as basic as thinking it's O.K. to store user passwords un-hashed. (http://news.ycombinator.com/item?id=628680)

Post reply on HN