How To Safely Store A Password
codahale.com
How To Safely Store A Password
1–10 of 215 posts
Re: How To Safely Store A Password
#2eight characters is easy - try cracking 50
Re: How To Safely Store A Password
#3and/or stop using a single word and use sentences (phrase) eight characters is easy - try cracking 50
Re: How To Safely Store A Password
#4and/or stop using a single word and use sentences (phrase) eight characters is easy - try cracking 50
True.
This isn't meant for the user, though. This is meant for the developers. No matter how hard the developers try, users will always pick bad passwords. If you use salted SHA-1, then if the database gets compromised there goes 50% of the passwords. If, on the other hand, you use bcrypt, maybe only 5% of the passwords get cracked.
Bcrypt turns a massive news event (database leaked; thousands of passwords lost!) in to something much less newsworthy (database leaked; twenty passwords lost).
Re: How To Safely Store A Password
#5Re: How To Safely Store A Password
#6I have read this article and read the Wikipedia entry on bcrypt and I still cannot understand something. In this article it states that : "As computers get faster you can increase the work factor and the hash will get slower.". How can you make the algorithm slower over time and still be able to validate user passwords that were stored before you changed the speed? Could anyone enlighten me on this?
Re: How To Safely Store A Password
#7and/or stop using a single word and use sentences (phrase) eight characters is easy - try cracking 50
Not too difficult if it's composed of dictionary words. Why not automatically generate random strings to use? No pattern at all.
Re: How To Safely Store A Password
#8I have read this article and read the Wikipedia entry on bcrypt and I still cannot understand something. In this article it states that : "As computers get faster you can increase the work factor and the hash will get slower.". How can you make the algorithm slower over time and still be able to validate user passwords that were stored before you changed the speed? Could anyone enlighten me on this?
I believe that the work factor is encoded with the hash, so bcrypt can identify which work factor to use.
Your answer was right, it stores the work factor, the salt and the hash so that at any given time you can change the work factor and it will adjust in the database!
Re: How To Safely Store A Password
#9and/or stop using a single word and use sentences (phrase) eight characters is easy - try cracking 50
Not too difficult if it's composed of dictionary words. Why not automatically generate random strings to use? No pattern at all.
Re: How To Safely Store A Password
#10I have read this article and read the Wikipedia entry on bcrypt and I still cannot understand something. In this article it states that : "As computers get faster you can increase the work factor and the hash will get slower.". How can you make the algorithm slower over time and still be able to validate user passwords that were stored before you changed the speed? Could anyone enlighten me on this?