News for hackers. Stuff that matters.
Re:If You're Typing The Letters A-E-S Into Your Code, You're... by JimmyL on Monday January 04, 2010 @08:04PM (#1031591)
My takeaway from the article wasn't "don't use AES" - it was "use a sufficiently high-level cryptography library such that someone smarter than you is deciding which algorithm to use and with which options".
Re:If You're Typing The Letters A-E-S Into Your Code, You're... by NateLawson on Tuesday January 05, 2010 @12:49AM (#1031939)
Usually people focus on "which algorithm" (you may have heard endless debates about key length) when "which options" is what actually ends up biting you. But one argument seems fun and the other mundane, so the latter doesn't get the attention it requires.
Re:If You're Typing The Letters A-E-S Into Your Code, You're... by joe_the_user on Tuesday January 05, 2010 @01:46AM (#1032011)
Yes,

But it seems like the situation they describe is one where you wouldn't want to use encryption at all. Why give the user his data in an encrypted form when you can give the user an ID and keep his data entirely away from him? Seriously, when does giving someone data you don't want them to read ever work better than just not giving them data at all?

Re:If You're Typing The Letters A-E-S Into Your Code, You're... by NateLawson on Tuesday January 05, 2010 @12:37PM (#1032771)
I agree. That's why "keep the data on the server" is preferable to "send it to the user but protect it with custom crypto".
Re:If You're Typing The Letters A-E-S Into Your Code, You're... by joe_the_user on Tuesday January 05, 2010 @02:23PM (#1033037)
Yes,

Having a narrative reinforces the point that what you actually do depends on the entire context of the application. You would almost never be the one implementing cannot-be-broken-under-ANY-circumstances encryption. So you have to know what the circumstances are. In this case, the circumstances point to no-encryption-whatsoever!

Sure, you could point to other circumstances where something like what they're talking about would be useful but that's a million possible circumstances with a million possible encryption solutions and you've lost the useful urgency of the original concrete narrative.