News for hackers. Stuff that matters.
Re:Steam loses user database by lawnchair_larry on Thursday November 10, 2011 @06:57PM (#3222577)
The Use bcrypt rant comes up on HN a lot, but I've actually never seen a website that uses bcrypt or PBKDF2 in the real world. Hell, I rarely encounter developers or admins who even know what it is. I doubt it was more than md5+salt, but maybe.

Edit: I should clarify - there certainly are examples of bcrypt being used, and I know there are tools available. But pick several random websites that have forums or user accounts and the number actually using it will be very small. That has been my experience once exposed to the code/infrastructure anyway.

Re:Steam loses user database by po on Thursday November 10, 2011 @09:09PM (#3223035)
PBKDF2 will be in Django 1.4:

https://code.djangoproject.com/ticket/15367

edit Let me also add... this is for auth/password hashing, not data encryption. To any people reading this: if you don't understand the difference, and you are responsible for writing web applications, then please read up on it.

The data that Valve was storing (CC info) needs to be encrypted and I'm assuming that data then needs to be unencryptable. They have to store the key because they have to be able to recover the plain text. With password hashing, you will never need to be able to recover the password.

Re:Steam loses user database by ubernostrum on Friday November 11, 2011 @12:15AM (#3223511)
Also, if you're using Django, consider Playdoh:

https://github.com/mozilla/playdoh

It's what we use at Mozilla as the basis for most of our Django-based stuff, and gets you bcrypt password hashing -- even on older Django releases -- for free, along with some other niceties that probably need to find their way upstream soon :)

Re:Steam loses user database by Semiapies on Friday November 11, 2011 @03:28PM (#3226028)
Very interesting stuff - thanks!
Re:Steam loses user database by ketralnis on Thursday November 10, 2011 @07:08PM (#3222635)
I can't speak for many, but at least reddit (https://github.com/reddit/reddit/commit/a311805c8598232b14a4...), and Hipmunk do
Re:Steam loses user database by StavrosK on Friday November 11, 2011 @04:16AM (#3223987)
Happened a bit too late for reddit, though :p
Re:Steam loses user database by cheald on Thursday November 10, 2011 @07:03PM (#3222607)
Any modern Rails app is very likely using bcrypt to store password hashes. It's baked into most of the popular auth frameworks.
Re:Steam loses user database by JonnieCache on Thursday November 10, 2011 @08:11PM (#3222848)
It's actually now baked into rails itself. You can declare

    has_secure_password
in the model and you're away.
Re:Steam loses user database by lawnchair_larry on Thursday November 10, 2011 @10:10PM (#3223194)
Why would you have to declare it?
Re:Steam loses user database by mguillemot on Thursday November 10, 2011 @10:32PM (#3223241)
Because it adds a few attributes (like 'password') and methods (like 'authenticate') to your model, and you might not really want such things on every one of your models.

Clarification: has_secure_password does NOT mean you choose between secure or non-secure password, it just mean "I want a password on this model, and better make it secure guys!"

Re:Steam loses user database by tptacek on Thursday November 10, 2011 @09:49PM (#3223133)
We see bcrypt and/or PBKDF2 regularly.
Re:Steam loses user database by makmanalp on Thursday November 10, 2011 @07:07PM (#3222627)
Counterexample: I've recently been playing with http://brubeck.io/ and it uses bcrypt as the default: https://github.com/j2labs/brubeck/blob/master/brubeck/auth.p...
Re:Steam loses user database by aidenn0 on Friday November 11, 2011 @12:50AM (#3223581)
Wow, that's probably the first web framework I've seen that is more polished than the server it runs on top of; my experience with mongrel2 is that it's still a bit rough around the edges.
Re:Steam loses user database by RyanMcGreal on Friday November 11, 2011 @08:47AM (#3224551)
I administer a community news and public affairs site. Early this year, after reading about bcrypt on hacker news, I witched the site authentication to bcrypt from salted md4 hash. http://raisethehammer.org/blog/2084
Re:Steam loses user database by markbao on Thursday November 10, 2011 @10:13PM (#3223200)
The statement "I've actually never seen a website that uses bcrypt or PBKDF2 in the real world" doesn't discredit the "Use bcrypt[/PBKDF2]" argument, though.
Re:Steam loses user database by sp4rki on Friday November 11, 2011 @02:28PM (#3225818)
I think you'll probably find a whole lot of examples if you use a dataset of websites, webapps, and desktop/server apps made in the last decade. I work in business and enterprise application development, from simple webapps to complex systems on massive servers and I've been using and evangelizing bcrypt use around my circle for quite some time. At this point, most of the people I've encountered that are in charge of systems needing some type of encryption for their user data use bcrypt. I think most of the decent developers around the world already know of the perils of using weak encryption algorithms.
Re:Steam loses user database by chrischen on Thursday November 10, 2011 @07:03PM (#3222608)
It is extremely easy to use bcrypt. http://www.openwall.com/phpass/
Re:Steam loses user database by bjg on Thursday November 10, 2011 @07:55PM (#3222794)
In a lame web service / trivia game I created for a distributed systems graduate class I used bcrypt. https://github.com/bgianfo/distributed-systems
Re:Steam loses user database by cipherpunk on Saturday November 12, 2011 @12:06PM (#3228200)
The company I am with just moved from plaintext in-database password storage to using bcrypt with their latest product release, FWIW. It was either that or I left, heh.
Re:Steam loses user database by spullara on Thursday November 10, 2011 @11:08PM (#3223343)
Since it was just as easy as any other way I used bcrypt for my site. Seems common as of a year ago.